/* Shared homepage palette and navigation, with the gaming interaction retained. */
body { background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; --accent: var(--red); --bright: var(--red); --line: var(--border); }
.dashboard { max-width: 1240px; margin: auto; background: radial-gradient(ellipse at 90% 35%, color-mix(in srgb, var(--red) 9%, transparent), transparent 63%), var(--bg); }
.topbar { margin: 0 5%; padding: 24px 0; flex-direction: row; }
.brand { font: 600 calc(14px * var(--site-font-scale))/1.6 'Google Sans Code', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.topmeta { gap: 10px; }
.back-link { color: var(--red); font: calc(11px * var(--site-font-scale))/1.6 'IBM Plex Mono', monospace; letter-spacing: .06em; border-bottom: 1px solid var(--red); }
.theme-toggle { font-family: 'IBM Plex Mono', monospace; }
.intro { margin: 36px 5% 0; }
.intro h1 { font-size: calc(clamp(32px, 5vw, 60px) * var(--site-font-scale)); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.intro .eyebrow { color: var(--muted); font-family: Inter, sans-serif; font-size: calc(11px * var(--site-font-scale)); text-transform: uppercase; }
.intro h1::after { content: ''; display: block; width: 36px; height: 3px; margin: 18px 0; background: var(--red); }
.intro p:not(.eyebrow) { color: var(--muted); font-size: calc(14px * var(--site-font-scale)); line-height: 1.7; }
.intro-side, .topmeta, .footer-note { color: var(--muted); }
.ribbon { border-color: color-mix(in srgb, var(--red) 19%, transparent); box-shadow: 0 -17px 0 color-mix(in srgb, var(--red) 5%, transparent), 0 -36px 0 color-mix(in srgb, var(--red) 3%, transparent); }
.ambient::after { background: none; }
.platform { background: var(--card); border-color: var(--border-strong); opacity: 1; }
.tile-face, .platform[data-key] .tile-face { background: linear-gradient(135deg, color-mix(in srgb, var(--red) 12%, var(--card)), var(--card) 85%); }
.tile-face::before { border-color: color-mix(in srgb, var(--ink) 8%, transparent); box-shadow: 0 0 0 16px color-mix(in srgb, var(--ink) 2%, transparent), 0 0 0 32px color-mix(in srgb, var(--ink) 2%, transparent); }
.tile-code, .tile-bottom, .platform[aria-pressed=true] .tile-bottom { color: var(--muted); }
.tile-word { color: var(--ink); }
.tile-accent { color: var(--red); }
.platform[aria-pressed=true] { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent), 0 18px 40px color-mix(in srgb, var(--ink) 9%, transparent); }
.platform[aria-pressed=true]::after { box-shadow: none; }
.slide-arrow, .selection button, .profile-actions a, .copy-id { background: var(--card); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 0; }
.selection button { min-height: 44px; padding: 11px 20px; border-color: var(--red); font: calc(12px * var(--site-font-scale))/1.6 'IBM Plex Mono', monospace; }
.selection button:hover, .slide-arrow:hover, .profile-actions a:hover, .copy-id:hover { background: var(--red); color: #fff; }
.selection h2 { font-family: 'Google Sans Code', monospace; }
.page-dot { background: var(--border-strong); }
.page-dot.active { background: var(--red); }
.home-bottom, .profile-footer { color: var(--muted); background: transparent; }
kbd { color: var(--ink); border-color: var(--border-strong); }
.profile-back, .profile-caption, .profile-origin, .card-label, .card-status, .card-explanation, .empty-slot { color: var(--muted); }
.profile-overline, .card-label span:last-child, .card-link, .copy-status { color: var(--red); }
.card-shell { background: var(--card); border-color: var(--border); box-shadow: var(--shadow-soft); }
.empty-slot { border-color: var(--border-strong); }
:root[data-theme="eva01"] body .tile-code,
:root[data-theme="eva01"] body .tile-bottom,
:root[data-theme="eva01"] body .platform[aria-pressed=true] .tile-bottom { color: var(--muted); }
:root[data-theme="eva01"] body .tile-accent,
:root[data-theme="eva01"] body .profile-overline,
:root[data-theme="eva01"] body .card-label span:last-child,
:root[data-theme="eva01"] body .card-link,
:root[data-theme="eva01"] body .copy-status { color: var(--eva-lime); }
:root[data-theme="eva01"] body .platform[aria-pressed=true]::after { background: var(--eva-lime); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
@media (max-width: 620px) {
  .topbar { margin: 0 6%; padding: 18px 0; gap: 10px; }
  .brand { font-size: calc(12px * var(--site-font-scale)); }
  .back-link { font-size: calc(10px * var(--site-font-scale)); }
  .topmeta { gap: 8px; }
  .intro { margin: 28px 6% 0; }
}

@media (max-width: 620px) {
  .topbar, .topmeta { flex-wrap: wrap; }
}

/* Spazio per il pulsante Torna su nel footer compatto di Gaming. */
@media screen {
  body.back-to-top-page .home-bottom { padding-bottom: 40px; }
}
