/* ── Font self-hosted (prima venivano da Google Fonts: una connessione esterna in meno,
   caricamento più veloce e nessun IP inviato a Google). Licenza OFL, vedi /fonts. ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/dm-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/dm-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/dm-sans-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/dm-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/space-grotesk-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/space-grotesk-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/space-grotesk-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(../fonts/space-grotesk-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/space-grotesk-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(../fonts/space-grotesk-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ═══════════════════════════════════════════════
   Pet the Dog — main.css v9
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #f0c821;
  --surface: #e8bc18;
  --surface2:#ddb010;
  --ink:     #111111;
  --ink2:    #2a2000;
  --red:     #c8391f;
  --blue:    #1a3a8f;
  --green:   #1a5c2a;
  --purple:  #4a1a8f;
  --tan:     #a87d5d;
  --teal:    #1a6b74;
  --orange:  #c9701f;
  --muted:   #7a5c00;
  --border:  rgba(0,0,0,.13);

  /* Dark mode vars (Easter egg) */
  --dm-bg:      #0b0b0b;
  --dm-surface: #141414;
  --dm-ink:     #f0c821;
  --dm-ink2:    #c8a200;
  --dm-muted:   #555;
  --dm-border:  rgba(240,200,33,.13);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'DM Sans', sans-serif; overflow-x: hidden; transition: background .4s, color .4s; }
a { text-decoration: none; color: inherit; }

/* ── DARK MODE ── */
body.dark-mode {
  --bg:      var(--dm-bg);
  --surface: var(--dm-surface);
  --surface2:#1c1c1c;
  --ink:     #f0c821;
  --ink2:    #c8a200;
  --muted:   #555;
  --border:  rgba(240,200,33,.13);
  --red:     #c8391f;
  background: var(--dm-bg);
  color: #ede8d6;
}
body.dark-mode .hero-title { color: var(--dm-ink); text-shadow: 4px 4px 0 var(--red), 6px 6px 0 rgba(200,57,31,.35); }
body.dark-mode .hero-sub { color: rgba(255,255,255,.65); }
body.dark-mode .hero-rule { background: var(--dm-ink); }
body.dark-mode nav { background: rgba(11,11,11,.97); border-bottom: 2px solid rgba(240,200,33,.18); }
body.dark-mode .nav-brand-text { color: var(--dm-ink); }
body.dark-mode .nav-links a { color: rgba(255,255,255,.6); }
body.dark-mode .nav-links a:hover { color: var(--dm-ink); }
body.dark-mode .nav-socials a { color: rgba(255,255,255,.4); }
body.dark-mode .nav-socials a:hover { color: var(--dm-ink); }
body.dark-mode .nav-hamburger span { background: #fff; }
body.dark-mode .mobile-menu { background: var(--dm-bg); }
body.dark-mode .mobile-menu a { color: #ede8d6; }
body.dark-mode .section-heading { color: #ede8d6; }
body.dark-mode .section-eyebrow { color: var(--dm-ink); }
body.dark-mode .games-block-label { color: rgba(255,255,255,.35); border-color: rgba(255,255,255,.08); }
body.dark-mode .section-mid { background: #161616; }
body.dark-mode .latest-item { border-color: rgba(255,255,255,.08); }
body.dark-mode .latest-date { color: #555; }
body.dark-mode .latest-text { color: rgba(255,255,255,.7); }
body.dark-mode .latest-text a { color: var(--dm-ink); border-color: rgba(240,200,33,.3); }
body.dark-mode .social-pill { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.12); }
body.dark-mode .social-pill:hover { border-color: var(--dm-ink); color: var(--dm-ink); }
body.dark-mode .no-ai-banner { background: var(--dm-ink); color: var(--dm-bg); }
body.dark-mode .no-ai-tag { background: var(--dm-bg); color: var(--dm-ink); }
body.dark-mode #hero::before { background-image: linear-gradient(rgba(240,200,33,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(240,200,33,.06) 1px, transparent 1px); }
body.dark-mode #hero::after { background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(11,11,11,.8) 100%); }
body.dark-mode .section-dark .team-track-wrap::before { background: linear-gradient(90deg, #0b0b0b, transparent); }
body.dark-mode .section-dark .team-track-wrap::after { background: linear-gradient(-90deg, #0b0b0b, transparent); }
body.dark-mode .archive-item { background: #161616; border-color: rgba(255,255,255,.08); }
body.dark-mode .archive-item-title { color: var(--dm-ink); }
body.dark-mode .archive-item-meta { color: #555; }
body.dark-mode .archive-link { color: rgba(255,255,255,.4); }
body.dark-mode .archive-link:hover { color: var(--dm-ink); border-color: var(--dm-ink); }
body.dark-mode .btn { background: var(--dm-ink); color: #111; }
body.dark-mode .newsletter-wrap { background: #161616; border-color: rgba(240,200,33,.15); }
body.dark-mode .newsletter-input { background: #0b0b0b; border-color: rgba(240,200,33,.2); color: #ede8d6; }
body.dark-mode .newsletter-input::placeholder { color: #444; }
body.dark-mode .theme-toggle { background: var(--dm-bg); border-color: rgba(240,200,33,.25); color: var(--dm-ink); }

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 36px; height: 36px;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.15);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { transform: rotate(20deg); background: rgba(0,0,0,.12); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  background: rgba(17,17,17,.97); backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(240,200,33,.18);
  transition: background .4s, border-color .4s;
}
.nav-brand { display: flex; align-items: center; gap: .9rem; }
.nav-brand img { height: 40px; width: auto; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.2)); }
.nav-brand-text { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 700; color: var(--bg); line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; transition: color .4s; }
.nav-right { display: flex; align-items: center; gap: .8rem; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.6); transition: color .18s; letter-spacing: .02em; }
.nav-links a:hover { color: var(--bg); }
.nav-socials { display: flex; gap: .6rem; align-items: center; }
.nav-socials a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: rgba(255,255,255,.4); transition: color .18s; }
.nav-socials a:hover { color: var(--bg); }
.nav-socials svg { width: 15px; height: 15px; fill: currentColor; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--bg); transition: transform .2s, opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px; z-index: 190;
  background: var(--bg); flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; padding: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--ink); transition: opacity .15s; }
.mobile-menu a:hover { opacity: .55; }
.mobile-menu-socials { display: flex; gap: 1.2rem; margin-top: 1rem; }
.mobile-menu-socials a { color: var(--ink2); opacity: .55; }
.mobile-menu-socials a:hover { opacity: 1; }
.mobile-menu-socials svg { width: 20px; height: 20px; fill: currentColor; }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 4.5rem 2rem 3.5rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(0,0,0,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  transition: background-image .4s;
}
#hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(240,200,33,.7) 100%);
  transition: background .4s;
}
#hero > * { position: relative; z-index: 1; }

/* ── MASCOT ── */
.mascot-wrap {
  position: relative; width: 340px; height: auto;
  margin-bottom: 1.8rem; user-select: none; line-height: 0;
}
.mascot-wrap:hover { cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="26" font-size="26">🤚</text></svg>') 10 4, pointer; }
.mascot-sprite { width: 100%; height: auto; display: block; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.18)); transition: filter .15s; }
.mascot-wrap:hover .mascot-sprite { filter: drop-shadow(5px 5px 0 rgba(0,0,0,.28)); }
.hearts-container { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: visible; }
.heart { position: absolute; font-size: 1.4rem; animation: heart-fly 1.1s ease-out forwards; pointer-events: none; }
@keyframes heart-fly { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-90px) scale(1.4); } }
.pet-counter {
  display: inline-block; margin-top: .6rem;
  font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 700;
  color: var(--bg); white-space: nowrap; letter-spacing: .08em;
  opacity: 0; transition: opacity .3s;
  background: var(--ink); padding: .2rem .7rem;
}
.pet-counter.show { opacity: 1; }

/* ── HERO TEXT ── */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 700;
  color: var(--ink); line-height: 1; letter-spacing: -.03em;
  text-shadow: 4px 4px 0 var(--red), 6px 6px 0 rgba(200,57,31,.35);
  margin-bottom: .7rem; transition: color .4s, text-shadow .4s;
}
.hero-rule { width: 40px; height: 3px; background: var(--ink); margin: 0 auto 1.2rem; transition: background .4s; }
.hero-sub {
  font-size: clamp(.9rem, 1.8vw, 1.05rem); color: var(--ink2);
  max-width: 480px; line-height: 1.85; margin-bottom: 2.8rem;
  letter-spacing: .01em; font-weight: 500; transition: color .4s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: .82rem; font-weight: 700; padding: .85rem 1.9rem;
  background: var(--ink); color: var(--bg);
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .12s, box-shadow .12s, background .4s, color .4s;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: none;
}
.btn:hover  { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--red); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }

/* ── SECTIONS ── */
.section-wrap { padding: 5.5rem 2rem; transition: background .4s; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 700;
  color: var(--ink2); letter-spacing: .22em; opacity: .55;
  margin-bottom: .7rem; display: block; text-transform: uppercase; transition: color .4s;
}
.section-heading {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; color: var(--ink); margin-bottom: 3rem;
  line-height: 1.05; letter-spacing: -.025em; transition: color .4s;
}
.divider { width: 100%; height: 2px; background: rgba(0,0,0,.1); transition: background .4s; }
.section-dark { background: var(--ink); transition: background .4s; }
.section-dark .section-eyebrow { color: rgba(240,200,33,.55); }
.section-dark .section-heading { color: var(--bg); }
.section-mid { background: var(--surface2); transition: background .4s; }

/* ── GAMES ── */
.games-block { margin-bottom: 3.5rem; }
.games-block-label {
  font-family: 'Space Grotesk', sans-serif; font-size: .64rem; font-weight: 700;
  color: var(--ink2); opacity: .5; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.4rem; padding-bottom: .65rem;
  border-bottom: 2px solid rgba(0,0,0,.1); display: block; transition: color .4s, border-color .4s;
}
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.games-grid.main { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.games-grid.jam  { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

.game-card {
  border: 2px solid rgba(0,0,0,.2); position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; overflow: hidden;
}
.game-card:hover {
  transform: translateY(-7px) rotate(-.3deg);
  box-shadow: 8px 8px 0 rgba(0,0,0,.22);
}
/* Main card colours */
.game-card[data-color="1"] { background: #1a3a8f; }
.game-card[data-color="2"] { background: #c8391f; }
.game-card[data-color="3"] { background: #1a5c2a; }
.game-card[data-color="4"] { background: #111; }
.game-card[data-color="5"] { background: #4a1a8f; }
.game-card[data-color="1"] .game-thumb { background: #0d2060; }
.game-card[data-color="2"] .game-thumb { background: #a02c16; }
.game-card[data-color="3"] .game-thumb { background: #0d3d1a; }
.game-card[data-color="4"] .game-thumb { background: #000; }
.game-card[data-color="5"] .game-thumb { background: #2e0e60; }
/* Varianti con nome (stessi colori dei numeri 1-5, + 3 nuovi per Goen/Prelude/TTRPG) */
.game-card[data-color="blue"]   { background: var(--blue); }
.game-card[data-color="red"]    { background: var(--red); }
.game-card[data-color="green"]  { background: var(--green); }
.game-card[data-color="black"]  { background: #111; }
.game-card[data-color="purple"] { background: var(--purple); }
.game-card[data-color="tan"]    { background: var(--tan); }
.game-card[data-color="teal"]   { background: var(--teal); }
.game-card[data-color="orange"] { background: var(--orange); }
.game-card[data-color="blue"]   .game-thumb { background: #0d2060; }
.game-card[data-color="red"]    .game-thumb { background: #a02c16; }
.game-card[data-color="green"]  .game-thumb { background: #0d3d1a; }
.game-card[data-color="black"]  .game-thumb { background: #000; }
.game-card[data-color="purple"] .game-thumb { background: #2e0e60; }
.game-card[data-color="tan"]    .game-thumb { background: #6e5a44; }
.game-card[data-color="teal"]   .game-thumb { background: #0d3d42; }
.game-card[data-color="orange"] .game-thumb { background: #8f4a12; }

.game-thumb {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.6rem; position: relative; overflow: hidden; flex-shrink: 0;
}
/* Jam cards: smaller thumb */
.game-card.jam .game-thumb { font-size: 2.4rem; }
.game-card.jam .game-info { padding: .9rem 1rem 1.1rem; }
.game-card.jam .game-title { font-size: .78rem; }
.game-card.jam .game-desc { font-size: .78rem; margin-bottom: .6rem; }

.game-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(0,0,0,.5));
}
.game-thumb-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(0,0,0,.65); opacity: 0;
  display: flex; align-items: center; justify-content: center; transition: opacity .2s;
}
.game-thumb-overlay span {
  font-family: 'Space Grotesk', sans-serif; font-size: .75rem; font-weight: 700;
  color: #fff; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid #fff; padding-bottom: .2rem;
}
.game-card:hover .game-thumb-overlay { opacity: 1; }
.game-wip-badge {
  position: absolute; top: .7rem; right: .7rem; z-index: 3;
  font-family: 'Space Grotesk', sans-serif; font-size: .6rem; font-weight: 700;
  background: var(--bg); color: var(--ink); padding: .22rem .55rem;
  letter-spacing: .08em; text-transform: uppercase; animation: blink 1.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.game-year {
  position: absolute; top: .7rem; left: .7rem; z-index: 3;
  font-family: 'Space Grotesk', sans-serif; font-size: .58rem; font-weight: 600;
  background: rgba(0,0,0,.5); color: #fff; padding: .22rem .5rem; letter-spacing: .05em;
}
.game-info { padding: 1.2rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.game-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; line-height: 1.2; letter-spacing: -.01em; }
.game-desc { font-size: .84rem; color: rgba(255,255,255,.72); line-height: 1.7; margin-bottom: .9rem; flex: 1; }
.game-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.game-tag { font-size: .62rem; font-weight: 600; background: rgba(255,255,255,.12); color: rgba(255,255,255,.72); padding: .12rem .45rem; letter-spacing: .04em; text-transform: uppercase; }
.game-award { font-size: .64rem; font-weight: 700; color: var(--bg); letter-spacing: .06em; background: rgba(255,255,255,.15); display: inline-block; padding: .15rem .5rem; margin-bottom: .7rem; }
.game-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: auto; }
.game-link { font-size: .76rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .14s; letter-spacing: .02em; }
.game-link:hover { border-color: #fff; }
.game-link.sec { color: rgba(255,255,255,.45); border-color: transparent; }
.game-link.sec:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }
.progress-bar { width: 100%; height: 4px; background: rgba(255,255,255,.15); margin-bottom: .4rem; overflow: hidden; }
.progress-fill { height: 100%; background: #fff; width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1); }

/* ── TEAM ── */
.team-track-wrap { overflow: hidden; position: relative; padding: .5rem 0; }
.team-track-wrap::before,
.team-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: 100px; pointer-events: none;
}
.team-track-wrap::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.team-track-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.team-track { display: flex; gap: 1.6rem; will-change: transform; }
.team-card {
  flex-shrink: 0; width: 180px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 1rem 1.2rem; text-align: center; transition: border-color .18s, background .18s;
}
.team-card:hover { border-color: rgba(240,200,33,.5); background: rgba(255,255,255,.1); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto .9rem; overflow: hidden;
  border: 2px solid rgba(255,255,255,.15); background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-placeholder { font-size: 2.2rem; line-height: 1; }
.team-name { font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 700; color: var(--bg); margin-bottom: .35rem; letter-spacing: .06em; text-transform: uppercase; }
.team-role { font-size: .74rem; color: rgba(240,200,33,.75); }
.carousel-arrows { display: flex; justify-content: center; gap: .8rem; margin-top: 1.6rem; }
.carousel-arrow {
  width: 40px; height: 40px; background: transparent;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.65);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.carousel-arrow:hover { border-color: var(--bg); color: var(--bg); }

/* ── LATEST ── */
.latest-list { display: flex; flex-direction: column; }
.latest-item {
  display: grid; grid-template-columns: 80px 70px 1fr;
  align-items: center; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid rgba(0,0,0,.1);
  transition: padding-left .15s;
}
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { padding-left: .5rem; }
.latest-date { font-family: 'Space Grotesk', sans-serif; font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.latest-label {
  font-family: 'Space Grotesk', sans-serif; font-size: .55rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .18rem .45rem;
  display: inline-block; width: 64px; text-align: center;
}
.latest-label.devlog  { background: var(--ink); color: var(--bg); }
.latest-label.release { background: var(--red); color: #fff; }
.latest-label.jam     { background: var(--blue); color: #fff; }
.latest-label.news    { background: var(--surface2); color: var(--ink2); border: 1px solid rgba(0,0,0,.15); }
.latest-text { font-size: .9rem; color: var(--ink2); line-height: 1.5; font-weight: 500; }
.latest-text a { color: var(--ink); font-weight: 700; border-bottom: 1px solid rgba(0,0,0,.2); transition: border-color .14s; }
.latest-text a:hover { border-color: var(--ink); }

/* ── NEWSLETTER ── */
.newsletter-wrap {
  background: rgba(0,0,0,.06);
  border: 2px solid rgba(0,0,0,.1);
  padding: 2rem;
  margin-top: 3rem;
  transition: background .4s, border-color .4s;
}
.newsletter-label {
  font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 700;
  color: var(--ink2); letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: .5rem; display: block; opacity: .6;
}
.newsletter-heading {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--ink); margin-bottom: .4rem; letter-spacing: -.01em;
}
.newsletter-sub { font-size: .85rem; color: var(--ink2); opacity: .7; margin-bottom: 1.2rem; line-height: 1.6; }
.newsletter-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.newsletter-input {
  flex: 1; min-width: 220px;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.5);
  border: 2px solid rgba(0,0,0,.15);
  color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: .9rem;
  outline: none; transition: border-color .18s, background .4s;
}
.newsletter-input:focus { border-color: var(--ink); background: rgba(255,255,255,.8); }
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-btn {
  font-family: 'Space Grotesk', sans-serif; font-size: .75rem; font-weight: 700;
  padding: .75rem 1.4rem; background: var(--ink); color: var(--bg);
  border: none; cursor: pointer; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--red); transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}
.newsletter-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }
.newsletter-success { font-family: 'Space Grotesk', sans-serif; font-size: .85rem; font-weight: 600; color: var(--green); display: none; margin-top: .5rem; }

/* ── NO AI ── */
.no-ai-banner {
  background: var(--ink); color: var(--bg);
  padding: 1.1rem 2rem; display: flex; align-items: center;
  justify-content: center; gap: .8rem; flex-wrap: wrap;
  transition: background .4s, color .4s;
}
.no-ai-tag {
  background: var(--bg); color: var(--ink);
  font-family: 'Space Grotesk', sans-serif; font-size: .55rem; font-weight: 800;
  padding: .18rem .55rem; letter-spacing: .1em; text-transform: uppercase; flex-shrink: 0;
  transition: background .4s, color .4s;
}
.no-ai-text { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 500; letter-spacing: .02em; line-height: 1.5; }

/* ── CONTACT ── */
.social-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.social-pill {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem; border: 2px solid rgba(0,0,0,.15);
  color: var(--ink2); font-size: .78rem; font-weight: 600;
  transition: border-color .16s, background .16s, color .4s, border-color .4s;
}
.social-pill:hover { border-color: var(--ink); background: rgba(0,0,0,.05); }
.social-pill svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ── FOOTER ── */
footer { background: var(--ink); color: var(--bg); padding: 3rem 2rem 2rem; transition: background .4s; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: start; margin-bottom: 2.5rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: .8rem; display: block; }
.footer-brand-name { font-family: 'Space Grotesk', sans-serif; font-size: .85rem; font-weight: 700; color: var(--bg); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.footer-brand-desc { font-size: .8rem; color: rgba(255,255,255,.4); max-width: 240px; line-height: 1.7; }
.footer-col-title { font-family: 'Space Grotesk', sans-serif; font-size: .6rem; font-weight: 700; color: rgba(255,255,255,.3); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; gap: .5rem; }
.footer-copy { font-size: .72rem; color: rgba(255,255,255,.3); letter-spacing: .04em; cursor: pointer; transition: color .2s; }
.footer-copy:hover { color: rgba(255,255,255,.6); }
.footer-socials { display: flex; gap: .8rem; }
.footer-socials a { color: rgba(255,255,255,.35); transition: color .15s; display: flex; }
.footer-socials a:hover { color: var(--bg); }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }

/* ── ARCHIVE ── */
.archive-hero { padding: 8rem 2rem 4rem; max-width: 1160px; margin: 0 auto; }
.archive-section { margin-bottom: 4rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.archive-item { background: var(--surface2); border: 2px solid rgba(0,0,0,.1); padding: 1.1rem 1.2rem; transition: border-color .16s, transform .16s, background .4s; }
.archive-item:hover { border-color: rgba(0,0,0,.28); transform: translateY(-2px); }
.archive-item-title { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; transition: color .4s; }
.archive-item-meta { font-size: .74rem; color: var(--muted); margin-bottom: .6rem; }
.archive-item-links { display: flex; gap: .55rem; }
.archive-link { font-size: .72rem; font-weight: 600; color: var(--ink2); border-bottom: 1px solid transparent; transition: color .14s, border-color .14s; }
.archive-link:hover { color: var(--ink); border-color: var(--ink); }

/* ── DEVLOG ── */
.devlog-hero { padding: 8rem 2rem 3rem; max-width: 800px; margin: 0 auto; }
.devlog-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.devlog-tag { font-family: 'Space Grotesk', sans-serif; font-size: .55rem; font-weight: 700; background: var(--ink); color: var(--bg); padding: .2rem .55rem; letter-spacing: .1em; text-transform: uppercase; }
.devlog-date { font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.devlog-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--ink); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 1rem; }
.devlog-body { max-width: 800px; margin: 0 auto; padding: 0 2rem 6rem; }
.devlog-body p { font-size: 1rem; line-height: 1.85; color: var(--ink2); margin-bottom: 1.4rem; font-weight: 500; }
.devlog-body h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 2.5rem 0 1rem; letter-spacing: -.02em; }
.devlog-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink2); margin: 2rem 0 .8rem; }
.devlog-body img { width: 100%; border: 2px solid rgba(0,0,0,.12); margin: 1.5rem 0; }
.devlog-nav { display: flex; justify-content: space-between; padding: 2rem; border-top: 2px solid rgba(0,0,0,.1); max-width: 800px; margin: 0 auto; }
.devlog-nav a { font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 700; color: var(--ink2); letter-spacing: .04em; transition: color .15s; }
.devlog-nav a:hover { color: var(--ink); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  width: 44px; height: 44px; background: var(--ink); color: var(--bg);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 3px 3px 0 var(--red);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .2s, box-shadow .15s, background .4s, color .4s;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--red); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── EASTER EGG: CHAOS / WOOF ── */
@keyframes shake { 0%,100%{transform:translate(0)} 25%{transform:translate(-3px,2px)} 75%{transform:translate(3px,-2px)} }
body.chaos-mode .game-card, body.chaos-mode .team-card { animation: shake .12s infinite; }
body.chaos-mode nav { background: var(--red) !important; }
body.chaos-mode .hero-title { color: var(--red) !important; letter-spacing: .1em !important; }
@keyframes dog-spin { to { transform: rotate(360deg); } }
body.chaos-mode .mascot-sprite { animation: dog-spin .4s linear infinite !important; }
@keyframes rain-fall { from{transform:translateY(-60px) rotate(0deg);opacity:1} to{transform:translateY(110vh) rotate(720deg);opacity:.3} }
.rain-dog { position: fixed; top: -60px; pointer-events: none; z-index: 9998; font-size: 2rem; animation: rain-fall 1.8s linear forwards; }

/* woof animation */
@keyframes woof-bounce { 0%,100%{transform:scale(1) rotate(0)} 30%{transform:scale(1.15) rotate(-5deg)} 60%{transform:scale(1.1) rotate(5deg)} }
.mascot-wrap.woof .mascot-sprite { animation: woof-bounce .5s ease-in-out !important; }

/* ── KONAMI ── */
.konami-flash { position: fixed; inset: 0; z-index: 9997; background: var(--bg); opacity: 0; pointer-events: none; animation: konami-flash .6s ease-out; }
@keyframes konami-flash { 0%{opacity:.8} 100%{opacity:0} }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  .nav-links, .nav-socials { display: none; }
  .nav-hamburger { display: flex; }
  .games-grid, .games-grid.main, .games-grid.jam { grid-template-columns: 1fr; }
  .section-wrap { padding: 4rem 1.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .mascot-wrap { width: 260px; }
  .no-ai-banner { flex-direction: column; text-align: center; }
  .latest-item { grid-template-columns: 1fr; gap: .3rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { min-width: unset; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-sprite, .rain-dog { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  body.chaos-mode * { animation: none !important; }
}

/* ── Dark mode: team section ── */
body.dark-mode .section-dark {
  background: #0e0e0e;
  border-top: 1px solid rgba(240,200,33,.1);
  border-bottom: 1px solid rgba(240,200,33,.1);
}
body.dark-mode .team-track-wrap::before {
  background: linear-gradient(90deg, #0e0e0e, transparent);
}
body.dark-mode .team-track-wrap::after {
  background: linear-gradient(-90deg, #0e0e0e, transparent);
}
body.dark-mode .team-card {
  background: rgba(240,200,33,.06);
  border-color: rgba(240,200,33,.12);
}
body.dark-mode .team-card:hover {
  background: rgba(240,200,33,.1);
  border-color: rgba(240,200,33,.3);
}
body.dark-mode .team-avatar {
  background: rgba(0,0,0,.5);
  border-color: rgba(240,200,33,.15);
}
body.dark-mode .team-name { color: #f0c821; }
body.dark-mode .team-role { color: rgba(240,200,33,.6); }
body.dark-mode .section-dark .section-eyebrow { color: rgba(240,200,33,.5); }
body.dark-mode .section-dark .section-heading { color: #ede8d6; }
body.dark-mode .carousel-arrow {
  border-color: rgba(240,200,33,.2);
  color: rgba(240,200,33,.5);
}
body.dark-mode .carousel-arrow:hover {
  border-color: #f0c821;
  color: #f0c821;
}

/* ── GAME THUMB con immagine ── */
.game-thumb { position: relative; }
.game-thumb-emoji {
  position: relative; z-index: 1; font-size: 3.6rem;
  pointer-events: none;
}
.game-card.jam .game-thumb-emoji { font-size: 2.4rem; }
.game-thumb img { z-index: 0; }

/* ── JAM BADGE & NOTE ── */
.game-jam-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif; font-size: .58rem; font-weight: 600;
  color: rgba(255,255,255,.5); letter-spacing: .06em;
  margin-bottom: .5rem; border-left: 2px solid rgba(255,255,255,.2);
  padding-left: .5rem;
}
.game-jam-note {
  font-size: .72rem; color: rgba(255,255,255,.4); font-style: italic;
  margin-bottom: .6rem; line-height: 1.5;
}
.game-pct-label {
  font-size: .62rem; color: rgba(255,255,255,.45);
  margin-bottom: .7rem; letter-spacing: .06em; font-weight: 600;
}

/* ── EXTRAS SECTION ── */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.extra-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--surface2); border: 2px solid rgba(0,0,0,.1);
  padding: 1.3rem 1.4rem;
  transition: border-color .18s, transform .18s, background .4s;
}
.extra-card:hover {
  border-color: rgba(0,0,0,.28); transform: translateY(-3px);
}
.extra-icon {
  font-size: 2.2rem; flex-shrink: 0; line-height: 1;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.08); border: 1px solid rgba(0,0,0,.08);
}
.extra-info { flex: 1; min-width: 0; }
.extra-meta {
  font-family: 'Space Grotesk', sans-serif; font-size: .6rem; font-weight: 600;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .3rem;
}
.extra-title {
  font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 700;
  color: var(--ink); margin-bottom: .4rem; letter-spacing: -.01em;
  transition: color .4s;
}
.extra-desc {
  font-size: .82rem; color: var(--ink2); line-height: 1.6;
  margin-bottom: .7rem; opacity: .8;
}

/* Dark mode extras */
body.dark-mode .extra-card { background: #161616; border-color: rgba(255,255,255,.07); }
body.dark-mode .extra-card:hover { border-color: rgba(240,200,33,.25); }
body.dark-mode .extra-icon { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.05); }
body.dark-mode .extra-title { color: #ede8d6; }
body.dark-mode .extra-desc { color: rgba(255,255,255,.55); }
body.dark-mode .extra-meta { color: #555; }

/* ── IMAGE guide comment in CSS ──
   Per aggiungere immagini alle card:
   1. Metti il file in img/games/nomefile.jpg
   2. In data.js aggiungi: image: 'img/games/nomefile.jpg'
   L'immagine diventa lo sfondo della thumbnail automaticamente.
── */

/* ── EXTRA PROJECT type badge ── */
.game-extra-type {
  position: absolute; bottom: .7rem; right: .7rem; z-index: 3;
  font-family: 'Space Grotesk', sans-serif; font-size: .42rem; font-weight: 700;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  padding: .22rem .55rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.2);
}

/* ═══════════════════════════════════════════════
   TEAM MEMBER PAGES
   ═══════════════════════════════════════════════ */
.member-hero {
  padding: 7rem 2rem 0;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.member-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(240,200,33,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(240,200,33,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.member-hero-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr;
  gap: 2.5rem; align-items: end;
  padding-bottom: 3rem;
  position: relative; z-index: 1;
}
.member-avatar-large {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(240,200,33,.3);
  background: rgba(240,200,33,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; flex-shrink: 0; overflow: hidden;
}
.member-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.member-breadcrumb {
  font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.35); letter-spacing: .06em; margin-bottom: .8rem;
}
.member-breadcrumb a { color: rgba(255,255,255,.35); transition: color .15s; }
.member-breadcrumb a:hover { color: var(--bg); }
.member-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  color: var(--bg); line-height: 1; letter-spacing: -.03em;
  text-shadow: 3px 3px 0 rgba(200,57,31,.4);
  margin-bottom: .5rem;
}
.member-role-tag {
  font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700;
  color: rgba(240,200,33,.7); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem; display: block;
}
.member-links { display: flex; gap: .6rem; }
.member-link {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.12);
  transition: color .15s, border-color .15s;
}
.member-link:hover { color: var(--bg); border-color: rgba(255,255,255,.4); }
.member-link svg { width: 14px; height: 14px; fill: currentColor; }

.member-body { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.member-grid { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }

.member-bio {
  font-size: 1rem; line-height: 1.85; color: var(--ink2);
  font-weight: 500; margin-bottom: 2rem;
}

/* Credits table */
.member-credits { }
.member-credits-title {
  font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 700;
  color: var(--muted); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
.member-credit-item {
  padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,.08);
}
.member-credit-item:last-child { border-bottom: none; }
.member-credit-game {
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 700;
  color: var(--ink); margin-bottom: .3rem; letter-spacing: -.01em;
}
.member-credit-roles { display: flex; flex-wrap: wrap; gap: .3rem; }
.member-credit-role {
  font-size: .65rem; font-weight: 600;
  background: rgba(0,0,0,.06); color: var(--ink2);
  padding: .15rem .45rem; letter-spacing: .04em; text-transform: uppercase;
}

body.dark-mode .member-credits-title { color: #444; border-color: rgba(255,255,255,.08); }
body.dark-mode .member-credit-item { border-color: rgba(255,255,255,.06); }
body.dark-mode .member-credit-game { color: #ede8d6; }
body.dark-mode .member-credit-role { background: rgba(255,255,255,.07); color: rgba(255,255,255,.55); }
body.dark-mode .member-bio { color: rgba(255,255,255,.65); }

/* Team index page */
.team-page-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.team-page-card {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--surface2); border: 2px solid rgba(0,0,0,.1);
  padding: 1.3rem 1.4rem;
  transition: border-color .18s, transform .18s, background .4s;
  text-decoration: none; color: inherit;
}
.team-page-card:hover { border-color: rgba(0,0,0,.3); transform: translateY(-3px); }
body.dark-mode .team-page-card { background: #161616; border-color: rgba(255,255,255,.07); }
body.dark-mode .team-page-card:hover { border-color: rgba(240,200,33,.25); }
.team-page-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,0,0,.08); border: 2px solid rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; overflow: hidden;
}
body.dark-mode .team-page-avatar { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.team-page-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-page-name {
  font-family: 'Space Grotesk', sans-serif; font-size: .9rem; font-weight: 700;
  color: var(--ink); margin-bottom: .2rem; letter-spacing: -.01em;
}
body.dark-mode .team-page-name { color: #ede8d6; }
.team-page-role { font-size: .78rem; color: var(--muted); }
.team-page-arrow { margin-left: auto; color: var(--muted); font-size: 1rem; }

@media (max-width: 768px) {
  .member-hero-inner { grid-template-columns: 1fr; }
  .member-avatar-large { width: 80px; height: 80px; font-size: 2.2rem; }
  .member-grid { grid-template-columns: 1fr; }
}
/* ── Game desc sub (smaller, muted) ── */
.game-desc-sub {
  font-size: .74rem; color: rgba(255,255,255,.42);
  line-height: 1.6; margin-top: -.4rem; margin-bottom: .8rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   ARCHIVE — material cards (file groups w/ count)
   Stessa "chip" già usata per .game-wip-badge / .game-year / .devlog-tag,
   così la card non ha 3 bottoni identici ma un badge che dice quanti file ci sono dentro.
   ═══════════════════════════════════════════════ */
.archive-game-block { margin-bottom: 4rem; }
.archive-game-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
body.dark-mode .archive-game-header { border-color: rgba(255,255,255,.08); }
.archive-game-emoji { font-size: 1.8rem; line-height: 1; }
.archive-game-name {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
}
body.dark-mode .archive-game-name { color: #ede8d6; }
.archive-game-year {
  font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 600;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
}
.archive-view-all {
  margin-left: auto; font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700;
  color: var(--muted); border-bottom: 1px solid transparent; transition: color .14s, border-color .14s;
}
.archive-view-all:hover { color: var(--ink); border-color: var(--ink); }
body.dark-mode .archive-view-all:hover { color: #ede8d6; border-color: #ede8d6; }

.archive-material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }
.archive-material {
  position: relative; display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface2); border: 2px solid rgba(0,0,0,.1);
  padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
  transition: border-color .16s, transform .16s, box-shadow .16s, background .4s;
}
.archive-material:hover { border-color: rgba(0,0,0,.28); transform: translateY(-4px); box-shadow: 6px 6px 0 rgba(0,0,0,.15); }
body.dark-mode .archive-material { background: #161616; border-color: rgba(255,255,255,.07); }
body.dark-mode .archive-material:hover { border-color: rgba(240,200,33,.25); box-shadow: 6px 6px 0 rgba(0,0,0,.4); }
.archive-material-type {
  font-family: 'Space Grotesk', sans-serif; font-size: .55rem; font-weight: 700;
  color: var(--muted); letter-spacing: .14em; text-transform: uppercase;
}
.archive-material-title {
  font-family: 'Space Grotesk', sans-serif; font-size: .85rem; font-weight: 700;
  color: var(--ink); line-height: 1.2;
}
body.dark-mode .archive-material-title { color: #ede8d6; }
.archive-material-meta { font-size: .72rem; color: var(--muted); }
.archive-material-count {
  position: absolute; top: .7rem; right: .7rem;
  font-family: 'Space Grotesk', sans-serif; font-size: .58rem; font-weight: 700;
  background: var(--ink); color: var(--bg); padding: .22rem .55rem;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   PROJECT SUBPAGE (archive/<game>/) — hero + panels
   Template generico riusabile per ogni gioco in archive/: cambia solo
   data-accent sull'hero e il contenuto dei panel. Foamie usa "blue".
   ═══════════════════════════════════════════════ */
.project-hero {
  color: #fff; padding: 7rem 2rem 3rem; position: relative; overflow: hidden;
  background: var(--ink);
}
.project-hero[data-accent="blue"]   { background: var(--blue); }
.project-hero[data-accent="red"]    { background: var(--red); }
.project-hero[data-accent="green"]  { background: var(--green); }
.project-hero[data-accent="purple"] { background: var(--purple); }
.project-hero[data-accent="tan"]    { background: var(--tan); }
.project-hero[data-accent="teal"]   { background: var(--teal); }
.project-hero[data-accent="orange"] { background: var(--orange); }
.project-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.project-hero-inner { max-width: 1000px; margin: 0 auto; position: relative; z-index: 1; }
.project-breadcrumb {
  font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.4); letter-spacing: .06em; margin-bottom: 1rem;
}
.project-breadcrumb a { color: rgba(255,255,255,.4); transition: color .15s; }
.project-breadcrumb a:hover { color: #fff; }
.project-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.7);
  padding: .25rem .65rem; margin-bottom: .8rem;
}
.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 700;
  color: #fff; line-height: 1; letter-spacing: -.03em;
  text-shadow: 4px 4px 0 rgba(0,0,0,.25); margin-bottom: .8rem;
}
.project-subtitle { font-size: .95rem; color: rgba(255,255,255,.65); max-width: 540px; line-height: 1.7; font-weight: 500; }

.project-panel { margin-bottom: 4rem; }
.project-panel-title {
  font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 700;
  color: var(--muted); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.2rem; padding-bottom: .6rem;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
body.dark-mode .project-panel-title { border-color: rgba(255,255,255,.08); color: #444; }

.project-trailer-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #111; overflow: hidden; }
.project-trailer-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.project-screenshots { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: rgba(0,0,0,.1); }
.project-screenshots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: opacity .2s; }
.project-screenshots img:hover { opacity: .85; }

.project-concepts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2px; background: rgba(0,0,0,.1); }
.project-concepts img { width: 100%; height: auto; display: block; transition: opacity .2s; }
.project-concepts img:hover { opacity: .85; }

.project-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1px; background: rgba(0,0,0,.1); max-width: 640px; }
.project-info-cell { background: var(--surface2); padding: 1rem 1.2rem; transition: background .4s; }
body.dark-mode .project-info-cell { background: #161616; }
.project-info-label { font-size: .6rem; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.project-info-value { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 600; color: var(--ink); }
body.dark-mode .project-info-value { color: #ede8d6; }

@media (max-width: 600px) {
  .project-screenshots { grid-template-columns: 1fr; }
  .project-concepts { grid-template-columns: repeat(2,1fr); }
}

/* ── Games grid più piccola per le pagine team member ── */
.games-grid.member { grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: .9rem; }
.games-grid.member .game-thumb { font-size: 2.2rem; }
.games-grid.member .game-info { padding: .9rem 1rem 1rem; }
.games-grid.member .game-title { font-size: .82rem; margin-bottom: .35rem; }
.games-grid.member .game-desc { font-size: .74rem; margin-bottom: .6rem; }
.games-grid.member .game-tags { gap: .25rem; margin-bottom: .6rem; }
.games-grid.member .game-tag { font-size: .58rem; padding: .1rem .4rem; }
.games-grid.member .game-links { gap: .55rem; }
.games-grid.member .game-link { font-size: .7rem; }

/* ═══════════════════════════════════════════════
   BACK BAR — riusa lo stile di .devlog-nav
   (stessa pagina serve sia sotto le project subpage che sotto i team member)
   ═══════════════════════════════════════════════ */
.gp-back-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  max-width: 1000px; margin: 0 auto; padding: 2rem;
  border-top: 2px solid rgba(0,0,0,.1);
}
body.dark-mode .gp-back-bar { border-color: rgba(255,255,255,.08); }
.gp-back-bar a {
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 700;
  color: var(--ink2); letter-spacing: .04em; transition: color .15s;
}
.gp-back-bar a:hover { color: var(--ink); }
body.dark-mode .gp-back-bar a { color: rgba(255,255,255,.55); }
body.dark-mode .gp-back-bar a:hover { color: #ede8d6; }

/* ═══════════════════════════════════════════════
   TEAM MEMBER — favorite games
   Stessa logica hover-overlay di .game-thumb-overlay, applicata a una cover verticale.
   ═══════════════════════════════════════════════ */
.favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: .9rem; }
.favorite-game { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 2px solid rgba(0,0,0,.1); background: var(--surface2); }
body.dark-mode .favorite-game { border-color: rgba(255,255,255,.08); background: #161616; }
.favorite-game img { width: 100%; height: 100%; object-fit: cover; display: block; }
.favorite-game-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.65); opacity: 0;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: .6rem;
  transition: opacity .2s;
}
.favorite-game:hover .favorite-game-overlay { opacity: 1; }
.favorite-game-overlay span {
  font-family: 'Space Grotesk', sans-serif; font-size: .7rem; font-weight: 700;
  color: #fff; letter-spacing: .04em; line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   ACCESSIBILITY — skip-to-content link
   Invisibile finché non riceve focus da tastiera (Tab),
   permette di saltare la nav ripetuta su ogni pagina.
   ═══════════════════════════════════════════════ */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 10001;
  background: var(--ink, #111); color: var(--bg, #f0c821);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .8rem;
  padding: .7rem 1.2rem; text-decoration: none; letter-spacing: .02em;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ═══════════════════════════════════════════════
   ACCESSIBILITY — prefers-reduced-motion
   Azzera durata di animazioni/transizioni CSS per chi ha
   disattivato le animazioni a livello di sistema operativo.
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════
   NOSCRIPT — messaggio per chi naviga senza JavaScript
   (il sito costruisce quasi tutto il contenuto via JS)
   ═══════════════════════════════════════════════ */
.noscript-banner {
  background: #c8391f; color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .85rem;
  text-align: center; padding: .9rem 1.5rem; line-height: 1.6;
}
.noscript-banner a { color: #fff; text-decoration: underline; }

/* ═══ Ottimizzazioni (ott. 2026) ═══ */
/* Immagini delle card: prima erano stili inline ripetuti in ogni card */
.game-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Le card del team ora sono link veri: funzionano anche da tastiera e sui cloni del carosello */
a.team-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.team-card:focus-visible { outline: 2px solid var(--bg, #f0c821); outline-offset: 3px; }
/* [hidden] deve vincere su eventuali display impostati nelle classi */
[hidden] { display: none !important; }
/* Trailer YouTube "a richiesta": mostra solo la miniatura e carica il player
   (~1 MB di script) solo al click. Usa youtube-nocookie.com. */
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.yt-facade:hover img, .yt-facade:focus-visible img { opacity: 1; }
.yt-facade-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 50px; display: flex; align-items: center; justify-content: center;
  background: #c8391f; color: #fff; font-size: 1.4rem; box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  transition: transform .15s;
}
.yt-facade:hover .yt-facade-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:focus-visible { outline: 3px solid #f0c821; outline-offset: -3px; }
