/* games: hub Giochi (/giochi), minigiochi, missioni di oggi e teaser in Home.
   Colori, font, raggi e componenti arrivano dal design system (design-system.css, classi ds-*). */
.gx-page, .gx-stage, .gx-home, .gx-daily, .gx-missions, .gx-rewards {
  --gx-ink: var(--ds-ink-900);
  --gx-ink-2: var(--ds-ink-850);
  --gx-ink-3: var(--ds-ink-800);
  --gx-paper: var(--ds-text);
  --gx-lime: var(--ds-lime);
  --gx-lime-soft: var(--ds-lime-soft);
  --gx-red: var(--ds-red);
  --gx-blue: var(--ds-rarity-rare);
  --gx-flame: var(--ds-spike);
  --gx-muted: var(--ds-text-2);
  --gx-rule: var(--ds-line);
  --gx-rule-strong: var(--ds-line-strong);
  --gx-display: var(--ds-font-display);
  --gx-body: var(--ds-font-body);
  --gx-gutter: var(--ds-gutter);
}
.gx-page *, .gx-stage *, .gx-home * { box-sizing: border-box; }
.gx-icon { flex-shrink: 0; display: inline-block; vertical-align: -3px; }

/* Header: il chip livello è un link verso /stagione */
a.level-chip { color: inherit; text-decoration: none; }
a.level-chip:hover { border-color: var(--ds-lime-line); }

/* ---------- Pagina ---------- */
main.gx-page {
  width: 100%; max-width: none; margin: 0; padding: 0 0 var(--ds-section-y-tight);
  background: var(--ds-ink-900); color: var(--ds-text); font-family: var(--ds-font-body);
  overflow-x: clip;
}
main.gx-page::before, main.gx-page::after { display: none; }
.gx-page h1, .gx-page h2, .gx-page h3, .gx-page p, .gx-stage h2, .gx-stage p, .gx-home h2, .gx-home p { margin: 0; }
.gx-eyebrow { display: block; }
.gx-muted { color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.5; }
.gx-page .ds-btn .gx-icon, .gx-stage .ds-btn .gx-icon, .gx-home .ds-btn .gx-icon { width: 18px; height: 18px; }

/* ---------- Hero (DsPageHero) con il pannello giocatore ---------- */
.gx-hero .ds-hero__aside { width: min(400px, 34vw); }
.gx-hero.ds-hero--feature .ds-hero__inner { min-height: min(64vh, 560px); }

/* Pannello giocatore: un solo livello (stagione), punti come valuta */
.gx-player {
  display: grid; gap: var(--ds-space-4); padding: var(--ds-space-5);
  border: 1px solid var(--ds-line-strong); border-top: 2px solid var(--ds-lime); border-radius: var(--ds-r-2);
  background: var(--ds-ink-850); color: var(--ds-text);
}
.gx-player-title { display: block; font: 400 var(--ds-display-s)/1 var(--ds-font-display); text-transform: uppercase; }
.gx-guest-games { display: flex; flex-wrap: wrap; gap: var(--ds-space-2); margin: 0; padding: 0; list-style: none; }
.gx-guest-games .ds-btn { text-decoration: none; }
.gx-player-login { display: inline-flex; align-items: center; gap: var(--ds-space-2); min-height: var(--ds-tap); color: var(--ds-lime); font-size: var(--ds-text-sm); font-weight: 700; text-decoration: none; }
.gx-player-login:hover { text-decoration: underline; text-underline-offset: 4px; }
.gx-player-mobile { display: none; }
.gx-player-copy { color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.5; }
.gx-player-level { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--ds-space-4); color: inherit; text-decoration: none; }
.gx-player-level-copy { display: grid; gap: var(--ds-space-2); min-width: 0; }
.gx-player-xp { color: var(--ds-text-2); font-size: var(--ds-text-sm); }
.gx-player-xp b { color: var(--ds-text); font-weight: 700; }
.gx-ring {
  --pct: 0; position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 76px; height: 76px; border-radius: var(--ds-r-pill);
  background: conic-gradient(var(--ds-lime) calc(var(--pct) * 1%), var(--ds-line-strong) 0);
}
.gx-ring::before { content: ""; position: absolute; inset: 6px; border-radius: var(--ds-r-pill); background: var(--ds-ink-850); }
.gx-ring b, .gx-ring small { position: relative; }
.gx-ring b { margin-top: -6px; color: var(--ds-text); font: 400 32px/1 var(--ds-font-display); }
.gx-ring small { position: absolute; bottom: 12px; color: var(--ds-lime); font: 700 9px/1 var(--ds-font-body); letter-spacing: .04em; text-transform: uppercase; }
.gx-player-points {
  display: flex; align-items: baseline; gap: var(--ds-space-2); padding: var(--ds-space-3) 0;
  border-top: 1px solid var(--ds-line); color: var(--ds-text); text-decoration: none;
}
.gx-player-points b { font: 400 34px/1 var(--ds-font-display); }
.gx-player-points span { color: var(--ds-text-2); font-size: var(--ds-text-sm); font-weight: 600; }
.gx-player-points .gx-icon { margin-left: auto; color: var(--ds-lime); align-self: center; }
.gx-player-points:hover span { color: var(--ds-text); }
.gx-player-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); }
.gx-player-stats div { padding: var(--ds-space-3) 0; }
.gx-player-stats div + div { padding-left: var(--ds-space-3); border-left: 1px solid var(--ds-line); }
.gx-player-stats dt { color: var(--ds-text-2); font: 700 var(--ds-label-size)/1.2 var(--ds-font-body); letter-spacing: var(--ds-tracking-caps); text-transform: uppercase; }
.gx-player-stats dd { margin: 6px 0 0; color: var(--ds-text); font: 400 24px/1 var(--ds-font-display); }
.gx-player-stats dd .gx-icon { color: var(--gx-flame); vertical-align: -1px; }
.gx-player-stats div[data-broken] dd { color: var(--ds-text-2); }
.gx-player-reset { color: var(--ds-text-2); font-size: var(--ds-text-xs); }
.gx-player-reset b { color: var(--ds-lime); font-weight: 700; }
.gx-player-warn { display: block; padding: var(--ds-space-2) var(--ds-space-3); border-left: 2px solid var(--ds-warning); border-radius: var(--ds-r-1); background: color-mix(in srgb, var(--ds-warning) 10%, transparent); color: var(--ds-warning); font-size: var(--ds-text-xs); line-height: 1.4; }

/* ---------- Sezioni ---------- */
.gx-section { padding-top: var(--ds-section-y-tight); }
.gx-section-head .ds-section-head__meta { max-width: 52ch; }

/* ---------- Giochi principali (ds-game-card dal registro ITSME_GAMES) ---------- */
.gx-main-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-4); }
.gx-main-card { min-height: 300px; }
.gx-main-card[data-flagship] { grid-column: span 2; min-height: 360px; }
.gx-main-card .ds-game-card__body { gap: var(--ds-space-3); }
.gx-main-card[data-flagship] .ds-game-card__title { font-size: clamp(44px, 4.6vw, 72px); }
.gx-main-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-main-chips .ds-chip:not(.ds-chip--solid) { background: color-mix(in srgb, var(--ds-ink-950) 72%, transparent); }
.gx-main-tagline { max-width: 42ch; color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.45; }
.gx-main-cta { display: inline-flex; align-items: center; gap: var(--ds-space-2); color: var(--ds-lime); font: 700 15px/1.2 var(--ds-font-body); }
.gx-main-cta .gx-icon { transition: transform var(--ds-dur-2) var(--ds-ease); }
.gx-main-card:hover .gx-main-cta .gx-icon { transform: translateX(3px); }
.gx-main-grid + * { margin-top: var(--ds-space-4); }
/* Strategia a turni: cinque card più basse in una riga (due per riga sul telefono) */
.gx-turn-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-space-3); }
.gx-turn-card { min-height: 240px; }
.gx-turn-card .ds-game-card__title { font-size: clamp(26px, 2.2vw, 34px); overflow-wrap: anywhere; }
.gx-turn-card .gx-main-tagline { font-size: var(--ds-text-sm); }

/* ---------- Minigiochi ---------- */
.gx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-4); }
.gx-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-2); background: var(--ds-ink-850); color: var(--ds-text);
  text-align: left; text-decoration: none; font: inherit; cursor: pointer;
  transition: border-color var(--ds-dur-2) var(--ds-ease), transform var(--ds-dur-2) var(--ds-ease);
}
.gx-card:hover { border-color: var(--ds-line-strong); transform: translateY(-2px); }
.gx-card[data-wide] { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
.gx-card-art { position: relative; display: block; height: 150px; overflow: hidden; background: var(--ds-ink-800); }
.gx-card[data-wide] .gx-card-art { height: 100%; min-height: 240px; }
.gx-card-art img { width: 100%; height: 100%; object-fit: cover; }
.gx-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--ds-ink-850)); }
.gx-card[data-wide] .gx-card-art::after { background: linear-gradient(90deg, transparent 50%, var(--ds-ink-850)); }
.gx-card-art i { position: absolute; display: block; }
.gx-card-tags { position: absolute; top: var(--ds-space-3); left: var(--ds-space-3); z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.gx-card-tags .ds-chip { font-style: normal; background: color-mix(in srgb, var(--ds-ink-950) 82%, transparent); }
.gx-card-tags .ds-chip:not(.ds-chip--lime) { color: var(--ds-text); }
.gx-card-body { display: flex; flex: 1; flex-direction: column; gap: var(--ds-space-3); padding: var(--ds-space-2) var(--ds-space-5) var(--ds-space-5); }
.gx-card[data-wide] .gx-card-body { padding-top: var(--ds-space-5); }
.gx-card-title { font: 400 var(--ds-display-s)/1 var(--ds-font-display); text-transform: uppercase; }
.gx-card[data-wide] .gx-card-title { font-size: clamp(28px, 2.6vw, 40px); }
.gx-card-desc { color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.5; }
.gx-card-meta { color: var(--ds-text-3); font-size: var(--ds-text-xs); }
.gx-card-board { display: grid; gap: var(--ds-space-2); }
.gx-card-boardlabel { color: var(--ds-text-2); font: 700 var(--ds-label-size)/1.2 var(--ds-font-body); letter-spacing: var(--ds-tracking-caps); text-transform: uppercase; }
.gx-card-cta { display: inline-flex; align-items: center; gap: var(--ds-space-2); margin-top: auto; padding-top: var(--ds-space-1); color: var(--ds-lime); font: 700 15px/1.2 var(--ds-font-body); }
.gx-card-cta .gx-icon { transition: transform var(--ds-dur-2) var(--ds-ease); }
.gx-card:hover .gx-card-cta .gx-icon { transform: translateX(3px); }
/* Illustrazioni CSS */
.gx-card-art--peek { background: linear-gradient(180deg, #1b2a38 0 58%, #2a2620 58% 100%); }
.gx-card-art--peek i:nth-child(1) { left: 12%; bottom: 0; width: 22%; height: 62%; background: var(--ds-ink-900); box-shadow: inset 0 0 0 3px #384656; }
.gx-card-art--peek i:nth-child(2) { right: 14%; top: 18%; width: 18%; height: 26%; background: var(--ds-ink-900); box-shadow: inset 0 0 0 3px #384656; }
.gx-card-art--peek i:nth-child(3) { left: 21%; bottom: 0; width: 34px; height: 64px; border-radius: 17px 17px 4px 4px; background: var(--gx-red); box-shadow: 0 0 26px rgba(255, 70, 85, .7); animation: gx-peek-bob 2.4s ease-in-out infinite; }
.gx-card-art--peek i:nth-child(4) { right: 19%; top: 28%; width: 26px; height: 40px; border-radius: 13px 13px 2px 2px; background: var(--gx-blue); box-shadow: 0 0 20px rgba(74, 184, 255, .6); animation: gx-peek-bob 2.4s 1.2s ease-in-out infinite; }
@keyframes gx-peek-bob { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(10%); } }
.gx-card-art--aimlite { background: radial-gradient(circle at 50% 50%, #142230, #0b1219); }
.gx-card-art--aimlite i { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--gx-red) 19% 46%, #fff 47% 58%, var(--gx-red) 59%); box-shadow: 0 0 22px rgba(255, 70, 85, .5); }
.gx-card-art--aimlite i:nth-child(1) { left: 18%; top: 22%; }
.gx-card-art--aimlite i:nth-child(2) { left: 56%; top: 46%; width: 30px; height: 30px; }
.gx-card-art--aimlite i:nth-child(3) { left: 76%; top: 16%; width: 24px; height: 24px; }
.gx-card-art--aimlite i:nth-child(4) { left: 46%; top: 42%; width: 52px; height: 52px; background: none; box-shadow: none; border: 2px solid var(--gx-lime); border-radius: 0; clip-path: polygon(0 45%, 38% 45%, 38% 0, 62% 0, 62% 45%, 100% 45%, 100% 55%, 62% 55%, 62% 100%, 38% 100%, 38% 55%, 0 55%); opacity: .0; }
.gx-card-art--osu { background: radial-gradient(circle at 70% 40%, rgba(255, 103, 199, .25), transparent 60%), #120d1a; }
.gx-card-art--osu i { border-radius: 50%; border: 3px solid #ff67c7; }
.gx-card-art--osu i:nth-child(1) { left: 22%; top: 30%; width: 54px; height: 54px; background: rgba(255, 103, 199, .25); }
.gx-card-art--osu i:nth-child(2) { left: 19%; top: 22%; width: 78px; height: 78px; border-width: 2px; opacity: .6; animation: gx-approach 1.6s linear infinite; }
.gx-card-art--osu i:nth-child(3) { left: 58%; top: 40%; width: 44px; height: 44px; background: rgba(255, 103, 199, .2); }
.gx-card-art--osu i:nth-child(4) { left: 34%; top: 46%; width: 140px; height: 6px; border: 0; border-radius: var(--ds-r-1); background: linear-gradient(90deg, #ff67c7, transparent); transform: rotate(8deg); }
@keyframes gx-approach { from { transform: scale(1.5); opacity: 0; } 60% { opacity: .9; } to { transform: scale(.75); opacity: 0; } }
.gx-card-art--reflex { background: linear-gradient(135deg, #0d3b1d, var(--ds-ink-900) 70%); }
.gx-card-art--reflex i:nth-child(1) { left: 18px; top: 34px; width: auto; height: auto; color: var(--gx-lime); font: 400 64px/1 var(--gx-display); font-style: normal; }
.gx-card-art--reflex i:nth-child(1)::before { content: "187 MS"; text-shadow: 0 0 30px rgba(216, 172, 64, .45); }
.gx-card-art--reflex i:nth-child(2) { right: 22px; top: 30px; width: 46px; height: 46px; border-radius: 50%; background: var(--gx-lime); box-shadow: 0 0 40px rgba(216, 172, 64, .7); animation: gx-pulse 1.8s ease-in-out infinite; }
@keyframes gx-pulse { 0%, 100% { transform: scale(.9); opacity: .65; } 50% { transform: scale(1.05); opacity: 1; } }


/* Mini classifica */
.gx-board { display: grid; gap: 0; margin: 2px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ds-line); }
.gx-board li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ds-line); font-size: var(--ds-text-sm); }
.gx-board li b { color: var(--ds-lime); font: 400 18px/1 var(--ds-font-display); }
.gx-board li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ds-text); }
.gx-board li span em { margin-left: 8px; padding: 2px 5px; border-radius: var(--ds-r-1); background: var(--ds-lime); color: var(--ds-on-lime); font: 700 var(--ds-label-size)/1.2 var(--ds-font-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.gx-board li strong { color: var(--ds-text); font-variant-numeric: tabular-nums; font-weight: 700; }
.gx-board li strong small { margin-left: 3px; color: var(--ds-text-2); font-size: var(--ds-label-size); font-weight: 600; }
.gx-board li[data-me] { background: var(--ds-lime-soft); box-shadow: -8px 0 0 var(--ds-lime-soft), 8px 0 0 var(--ds-lime-soft); }
.gx-board--empty { display: block; padding: 10px 0; border-top: 1px solid var(--ds-line); border-bottom: 1px solid var(--ds-line); color: var(--ds-text-2); font-size: var(--ds-text-sm); }

/* Aim Coach banner */
.gx-coach {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-5);
  margin-top: var(--ds-space-4); padding: var(--ds-space-4) var(--ds-space-5); border: 1px solid var(--ds-line); border-radius: var(--ds-r-2);
  background: var(--ds-ink-850); color: var(--ds-text); text-decoration: none;
  transition: border-color var(--ds-dur-2) var(--ds-ease);
}
.gx-coach:hover { border-color: var(--ds-line-strong); }
.gx-coach-copy { display: grid; gap: var(--ds-space-1); min-width: 0; }
.gx-coach strong { display: block; font: 400 var(--ds-display-s)/1 var(--ds-font-display); text-transform: uppercase; }
.gx-coach small { color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.5; }
.gx-coach-cta { display: inline-flex; gap: var(--ds-space-2); align-items: center; color: var(--ds-lime); font-weight: 700; white-space: nowrap; }
.gx-coach-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.gx-coach-bars i { width: 8px; background: var(--ds-lime); }
.gx-coach-bars i:nth-child(1) { height: 30%; opacity: .35; }
.gx-coach-bars i:nth-child(2) { height: 48%; opacity: .5; }
.gx-coach-bars i:nth-child(3) { height: 42%; opacity: .6; }
.gx-coach-bars i:nth-child(4) { height: 72%; opacity: .8; }
.gx-coach-bars i:nth-child(5) { height: 100%; }

/* ---------- Missioni e bonus (ds-card, ds-list/ds-row, ds-check) ---------- */
.gx-today { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--ds-space-4); align-items: stretch; }
.gx-missions, .gx-daily { font-family: var(--ds-font-body); }
.gx-card-h { margin: var(--ds-space-1) 0 0; font: 400 var(--ds-display-s)/1 var(--ds-font-display); text-transform: uppercase; }
.gx-missions-head, .gx-daily-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--ds-space-4); }
.gx-missions-pts { color: var(--ds-lime); font: 400 32px/1 var(--ds-font-display); white-space: nowrap; }
.gx-missions-pts small { color: var(--ds-text-2); font-size: 18px; }
.gx-missions-meter { margin: var(--ds-space-1) 0 var(--ds-space-2); }
.gx-mission-list { margin-top: var(--ds-space-1); }
.gx-mission.ds-row { min-height: 64px; }
.gx-mission .ds-check { color: var(--ds-on-lime); }
.gx-mission .ds-check .gx-icon { width: 14px; height: 14px; }
.gx-mission-info { display: grid; gap: 2px; min-width: 0; }
.gx-mission[data-done] .ds-row__title { color: var(--ds-text-2); text-decoration: line-through; text-decoration-color: var(--ds-lime-line); }
.gx-mission-reward { color: var(--ds-lime); font-weight: 700; }
.gx-mission-reward[data-done] { color: var(--ds-text-3); }
.gx-mission-bar.ds-progress { height: 4px; max-width: 220px; margin-top: var(--ds-space-2); }
.gx-mission-status { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; color: var(--ds-lime); font: 700 var(--ds-label-size)/1 var(--ds-font-body); letter-spacing: var(--ds-tracking-caps); text-transform: uppercase; }
.gx-missions-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ds-space-2) var(--ds-space-4); margin-top: auto; }
.gx-missions-foot p { color: var(--ds-text-3); font-size: var(--ds-text-xs); }
.gx-missions-foot .ds-btn--ghost { min-height: 40px; font-size: var(--ds-text-sm); }

.gx-daily { gap: var(--ds-space-4); }
.gx-streak { display: inline-flex; align-items: center; gap: 6px; color: var(--gx-flame); font: 400 20px/1 var(--ds-font-display); text-transform: uppercase; white-space: nowrap; }
.gx-daily-copy { margin: 0; color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.5; }
.gx-daily-copy--warn { color: var(--ds-warning); }
.gx-streak-track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gx-streak-track span { display: grid; place-items: center; min-width: 0; aspect-ratio: 1 / 1.1; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-1); background: var(--ds-ink-800); }
.gx-streak-track b { color: var(--ds-text-2); font: 400 20px/1 var(--ds-font-display); }
.gx-streak-track span[data-on] { border-color: var(--gx-flame); background: color-mix(in srgb, var(--gx-flame) 24%, var(--ds-ink-850)); }
.gx-streak-track span[data-on] b { color: var(--ds-text); }
.gx-streak-track span[data-next] { border-color: var(--ds-lime); border-style: dashed; }
.gx-streak-track span[data-next] b { color: var(--ds-lime); }
.gx-daily-action { display: grid; gap: var(--ds-space-2); margin-top: auto; }
.gx-claim { box-shadow: var(--ds-glow-lime); }
.gx-reason { text-align: center; }
.gx-daily[data-compact] { gap: var(--ds-space-3); }
.gx-missions[data-compact] .gx-mission.ds-row { min-height: 56px; }

/* ---------- Premi ---------- */
.gx-rewards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-4); align-items: stretch; }
.gx-reward { color: var(--ds-text); text-decoration: none; }
.gx-reward .ds-progress { margin-top: var(--ds-space-1); }
.gx-reward-cta { display: inline-flex; align-items: center; gap: var(--ds-space-2); margin-top: auto; padding-top: var(--ds-space-2); color: var(--ds-lime); font-weight: 700; }

/* Titoli in palio (TitleHallOfFame di milestones.jsx) */
.gx-titles > * { margin-top: 0; }

/* ---------- Stage (overlay dei giochi) ---------- */
.gx-stage {
  position: fixed; inset: 0; z-index: var(--ds-z-game); display: flex; flex-direction: column;
  background: radial-gradient(1000px 500px at 50% -10%, rgba(216, 172, 64, .08), transparent 60%), var(--ds-ink-950);
  color: var(--gx-paper); font-family: var(--gx-body);
  animation: gx-stage-in var(--ds-dur-3) var(--ds-ease);
}
@keyframes gx-stage-in { from { opacity: 0; transform: scale(.985); } }
.gx-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gx-gutter); border-bottom: 1px solid var(--gx-rule); }
.gx-stage-bar span { display: block; color: var(--gx-muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.gx-stage-bar strong { font: 400 24px/1.1 var(--gx-display); text-transform: uppercase; }
.gx-stage-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--gx-rule-strong); background: none; color: var(--gx-paper); font: 700 14px var(--gx-body); cursor: pointer; }
.gx-stage-close kbd { padding: 2px 5px; border: 1px solid var(--gx-rule-strong); color: var(--gx-muted); font: 600 11px var(--gx-body); }
.gx-stage-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 3vw, 40px) var(--gx-gutter) 40px; }
.gx-stage-body > * { width: min(100%, 1100px); margin-inline: auto; }
.gx-stage h2 { font: 400 clamp(54px, 8vw, 110px)/.9 var(--gx-display); text-transform: uppercase; }
.gx-stage h2 em { color: var(--gx-lime); font-style: normal; }

/* HUD */
.gx-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.gx-hud strong { color: var(--gx-lime); font: 400 40px/1 var(--gx-display); min-width: 64px; }
.gx-hud span { color: var(--gx-paper); font-weight: 700; font-size: 15px; }
.gx-hud span[data-on] { color: var(--gx-lime); }

/* Quiz */
.gx-quiz--intro { display: grid; justify-items: start; gap: 20px; max-width: 760px; padding-top: clamp(10px, 4vh, 60px); }
.gx-quiz--intro > p { color: var(--gx-muted); font-size: 17px; line-height: 1.6; max-width: 620px; }
.gx-quiz-today { margin: 0; color: var(--ds-text-2); font-size: var(--ds-text-sm); line-height: 1.5; }
.gx-quiz-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gx-quiz-cats li { padding: 7px 11px; border: 1px solid var(--gx-rule-strong); color: var(--gx-paper); font-size: 13px; font-weight: 600; }
.gx-quiz { display: grid; gap: 20px; max-width: 900px; }
.gx-quiz-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gx-quiz-step { font: 400 32px/1 var(--gx-display); }
.gx-quiz-step small { color: var(--gx-muted); font-size: 20px; }
.gx-quiz-cat { padding: 6px 10px; border: 1px solid var(--gx-lime); color: var(--gx-lime); font: 700 11px/1 var(--gx-body); letter-spacing: .14em; text-transform: uppercase; }
.gx-quiz-score { margin-left: auto; font: 400 26px/1 var(--gx-display); color: var(--gx-paper); font-variant-numeric: tabular-nums; }
.gx-quiz-timer { height: 6px; background: rgba(243, 240, 231, .08); overflow: hidden; }
.gx-quiz-timer span { display: block; height: 100%; background: var(--gx-lime); transform-origin: left; transition: transform 100ms linear, background-color 300ms; }
.gx-quiz-timer span[data-low] { background: var(--gx-red); }
.gx-quiz-q { font: 700 clamp(24px, 3.2vw, 40px)/1.2 var(--gx-body) !important; text-transform: none !important; letter-spacing: -.01em; text-wrap: balance; }
.gx-quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gx-quiz-option {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 18px; text-align: left;
  border: 1px solid var(--gx-rule-strong); background: var(--gx-ink-2); color: var(--gx-paper);
  font: 600 17px/1.3 var(--gx-body); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.gx-quiz-option:hover:not(:disabled) { border-color: var(--gx-lime); background: #142019; transform: translateY(-1px); }
.gx-quiz-option kbd { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--gx-rule-strong); color: var(--gx-muted); font: 700 13px var(--gx-body); }
.gx-quiz-option:disabled { cursor: default; }
.gx-quiz-option[data-state="right"] { border-color: var(--gx-lime); background: rgba(216, 172, 64, .16); box-shadow: 0 0 0 1px var(--gx-lime), 0 0 30px rgba(216, 172, 64, .2); }
.gx-quiz-option[data-state="right"] kbd { background: var(--gx-lime); border-color: var(--gx-lime); color: var(--gx-ink); }
.gx-quiz-option[data-state="wrong"] { border-color: var(--gx-red); background: rgba(255, 70, 85, .14); animation: gx-shake 300ms; }
.gx-quiz-option[data-state="dim"] { opacity: .45; }
.gx-quiz-reveal { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-left: 4px solid var(--gx-red); background: rgba(255, 70, 85, .08); animation: gx-rise 240ms ease-out; }
.gx-quiz-reveal[data-ok] { border-color: var(--gx-lime); background: rgba(216, 172, 64, .08); }
.gx-quiz-reveal strong { font: 400 26px/1.1 var(--gx-display); text-transform: uppercase; }
.gx-quiz-reveal[data-ok] strong { color: var(--gx-lime); }
.gx-quiz-reveal p { margin-top: 6px; color: var(--gx-paper); font-size: 15.5px; line-height: 1.5; }
.gx-quiz-hint { color: var(--gx-muted); font-size: 13px; }
@keyframes gx-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes gx-rise { from { opacity: 0; transform: translateY(8px); } }
.gx-quiz-dots { display: flex; gap: 8px; }
.gx-quiz-dots span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gx-red); color: var(--gx-red); font-weight: 700; }
.gx-quiz-dots span[data-ok] { border-color: var(--gx-lime); background: var(--gx-lime); color: var(--gx-ink); }

/* Risultato */
.gx-result { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: clamp(4px, 2vh, 30px); }
.gx-result-main { display: grid; justify-items: start; gap: 18px; }
.gx-result-main > p { color: var(--gx-muted); font-size: 16px; line-height: 1.5; }
.gx-result-score { font: 400 clamp(80px, 12vw, 150px)/.9 var(--gx-display); color: var(--gx-lime); text-shadow: 0 0 60px rgba(216, 172, 64, .25); font-variant-numeric: tabular-nums; }
.gx-result-score small { margin-left: 8px; font-size: .3em; color: var(--gx-paper); }
.gx-result-board { padding: 20px 22px; border: 1px solid var(--gx-rule); background: var(--gx-ink-2); }
.gx-result-board .gx-board { margin-top: 12px; }
.gx-result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gx-result-note { flex-basis: 100%; color: var(--gx-lime); font-size: 13px; }
.gx-countdown { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border: 1px solid var(--gx-rule); }
.gx-countdown span { color: var(--gx-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.gx-countdown strong { font: 400 30px/1 var(--gx-display); color: var(--gx-paper); font-variant-numeric: tabular-nums; }
.gx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; margin: 0; border-top: 1px solid var(--gx-rule); }
.gx-stats div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--gx-rule); }
.gx-stats dt { color: var(--gx-muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.gx-stats dd { margin: 6px 0 0; font: 400 32px/1 var(--gx-display); }
.gx-stats dd small { margin-left: 3px; font-size: 15px; color: var(--gx-muted); }

/* Peek Reflex */
.gx-peek-intro { display: grid; justify-items: start; gap: 20px; max-width: 780px; padding-top: clamp(10px, 4vh, 50px); }
.gx-peek-intro > p { color: var(--gx-muted); font-size: 17px; line-height: 1.6; }
.gx-peek-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.gx-peek-legend > div { display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--gx-rule); max-width: 330px; }
.gx-peek-legend .gx-sil { grid-row: span 2; width: 30px; height: 46px; }
.gx-peek-legend strong { font-size: 15px; }
.gx-peek-legend small { color: var(--gx-muted); font-size: 13px; }
.gx-sil { display: block; border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px; position: relative; }
.gx-sil::before { content: ""; position: absolute; left: 50%; top: -38%; width: 64%; aspect-ratio: 1; border-radius: 50%; background: inherit; transform: translateX(-50%); }
.gx-sil--enemy { background: var(--gx-red); box-shadow: 0 0 24px rgba(255, 70, 85, .75); }
.gx-sil--ally { background: var(--gx-blue); box-shadow: 0 0 18px rgba(74, 184, 255, .55); }
.gx-peek-legend .gx-sil::before { top: -40%; }
.gx-peek-legend .gx-sil { margin-top: 12px; height: 34px; }

.gx-peek-arena {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 190px); overflow: hidden;
  border: 1px solid var(--gx-rule-strong); background: #0d141b; cursor: crosshair; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.gx-peek-arena[data-shake="a"] { animation: gx-shake-a 260ms; }
.gx-peek-arena[data-shake="b"] { animation: gx-shake-b 260ms; }
@keyframes gx-shake-a { 30% { transform: translateX(-8px); } 60% { transform: translateX(6px); } }
@keyframes gx-shake-b { 30% { transform: translateX(8px); } 60% { transform: translateX(-6px); } }
.gx-peek-sky { position: absolute; inset: 0 0 55% 0; background: linear-gradient(180deg, #233a52, #4d6a83); }
.gx-peek-sky::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(255, 180, 120, .25)); }
.gx-peek-wall { position: absolute; inset: 18% 0 14% 0; background: linear-gradient(180deg, #c9b693, #a8916b); box-shadow: inset 0 -30px 60px rgba(0, 0, 0, .25); }
.gx-peek-wall::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 0, 0, .08) 2px, transparent 2px), linear-gradient(90deg, rgba(0, 0, 0, .06) 2px, transparent 2px); background-size: 100% 22%, 12.5% 100%; }
.gx-peek-door { position: absolute; bottom: 0; width: 15%; height: 62%; background: #11181f; box-shadow: inset 0 0 0 5px #5b4b36; }
.gx-peek-door--l { left: 7%; }
.gx-peek-door--r { right: 7%; }
.gx-peek-win { position: absolute; top: 8%; width: 13%; height: 28%; background: #11181f; box-shadow: inset 0 0 0 5px #5b4b36; }
.gx-peek-win--l { left: 22.5%; }
.gx-peek-win--r { right: 22.5%; }
.gx-peek-sign { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 4px 12px; background: var(--gx-ink); color: var(--gx-lime); font: 400 clamp(14px, 2vw, 28px)/1 var(--gx-display); letter-spacing: .06em; }
.gx-peek-crate { position: absolute; left: 50%; bottom: 6%; width: 18%; height: 22%; transform: translateX(-50%); z-index: 3; background: repeating-linear-gradient(45deg, #7a5a33 0 10px, #6c4f2c 10px 20px); box-shadow: inset 0 0 0 5px #4a361e, 0 10px 20px rgba(0, 0, 0, .4); }
.gx-peek-arena::after { content: ""; position: absolute; inset: auto 0 0 0; height: 14%; background: linear-gradient(180deg, #3a3329, #26221c); z-index: 1; }
.gx-peek-target {
  position: absolute; z-index: 2; width: clamp(56px, 7vw, 96px); height: clamp(80px, 11vw, 150px); padding: 0; border: 0; background: none;
  transform: translate(-50%, -50%); cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.gx-peek-target .gx-sil { position: absolute; inset: 26% 12% 0 12%; animation: gx-peek-in 140ms ease-out both; }
.gx-peek-target.from-left .gx-sil { --from: translateX(-70%); }
.gx-peek-target.from-right .gx-sil { --from: translateX(70%); }
.gx-peek-target.from-bottom .gx-sil { --from: translateY(60%); }
.gx-peek-target.from-top .gx-sil { --from: translateY(-40%); }
@keyframes gx-peek-in { from { transform: var(--from); opacity: .2; } to { transform: none; opacity: 1; } }
.gx-peek-target[data-enemy] .gx-sil::after { content: ""; position: absolute; left: 22%; right: 22%; top: -18%; height: 5px; background: #fff; opacity: .85; border-radius: var(--ds-r-1); }
.gx-peek-target .gx-sil::before { top: -34%; }
.gx-peek-life { position: absolute; left: 10%; right: 10%; bottom: -8px; height: 3px; background: rgba(255, 255, 255, .85); transform-origin: left; animation: gx-life var(--window) linear forwards; }
@keyframes gx-life { to { transform: scaleX(0); } }
.gx-peek-target:not([data-enemy]) .gx-peek-life { background: var(--gx-blue); }
.gx-peek-cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); pointer-events: none; opacity: .5; background: linear-gradient(var(--gx-lime), var(--gx-lime)) center / 2px 100% no-repeat, linear-gradient(var(--gx-lime), var(--gx-lime)) center / 100% 2px no-repeat; }
.gx-fx { position: absolute; z-index: 5; transform: translate(-50%, -120%); pointer-events: none; color: var(--gx-lime); font: 400 clamp(18px, 2.2vw, 28px)/1 var(--gx-display); white-space: nowrap; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); animation: gx-fx 700ms ease-out forwards; }
.gx-fx[data-bad] { color: var(--gx-red); }
@keyframes gx-fx { to { transform: translate(-50%, -240%); opacity: 0; } }

/* Aim Lite */
.gx-aimlite-intro { display: grid; gap: 20px; }
.gx-aimlite-intro > p { color: var(--gx-muted); font-size: 17px; line-height: 1.6; max-width: 640px; }
.gx-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gx-mode { display: grid; gap: 10px; padding: 0 0 18px; border: 1px solid var(--gx-rule-strong); background: var(--gx-ink-2); color: var(--gx-paper); text-align: left; font: inherit; cursor: pointer; transition: border-color 160ms, transform 160ms; }
.gx-mode:hover { border-color: var(--gx-lime); transform: translateY(-2px); }
.gx-mode > :not(.gx-mode-art) { margin-inline: 18px; }
.gx-mode strong { font: 400 32px/1 var(--gx-display); text-transform: uppercase; }
.gx-mode small { color: var(--gx-muted); font-size: 14px; line-height: 1.5; }
.gx-mode > b { display: inline-flex; gap: 10px; align-items: center; color: var(--gx-lime); }
.gx-mode-art { position: relative; display: block; height: 130px; background: radial-gradient(circle, #142230, #0b1219); overflow: hidden; }
.gx-mode-art i { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--gx-red) 19% 46%, #fff 47% 58%, var(--gx-red) 59%); }
.gx-mode-art--gridshot i:nth-child(1) { left: 20%; top: 25%; }
.gx-mode-art--gridshot i:nth-child(2) { left: 50%; top: 55%; }
.gx-mode-art--gridshot i:nth-child(3) { left: 75%; top: 20%; }
.gx-mode-art--tracking i:nth-child(1) { left: 45%; top: 40%; background: radial-gradient(circle, #fff 0 30%, var(--gx-lime) 31%); box-shadow: 0 0 24px rgba(216, 172, 64, .6); animation: gx-track-demo 3s ease-in-out infinite; }
.gx-mode-art--tracking i:nth-child(2), .gx-mode-art--tracking i:nth-child(3) { display: none; }
@keyframes gx-track-demo { 0%, 100% { transform: translate(-120px, -10px); } 50% { transform: translate(120px, 20px); } }
.gx-aim-field {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 190px); overflow: hidden;
  border: 1px solid var(--gx-rule-strong); cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 50%, #142230, #090f15 75%);
  background-image: linear-gradient(rgba(243, 240, 231, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 240, 231, .04) 1px, transparent 1px), radial-gradient(circle at 50% 50%, #142230, #090f15 75%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}
.gx-aim-target {
  position: absolute; width: clamp(48px, 6vw, 72px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0 16%, var(--gx-red) 17% 44%, #fff 45% 56%, var(--gx-red) 57%);
  box-shadow: 0 0 24px rgba(255, 70, 85, .5); cursor: crosshair; touch-action: none; -webkit-tap-highlight-color: transparent;
  animation: gx-target-in 120ms ease-out;
}
@keyframes gx-target-in { from { transform: translate(-50%, -50%) scale(.4); } }
.gx-aim-target--track { pointer-events: none; animation: none; background: radial-gradient(circle, #fff 0 22%, #66707a 23%); box-shadow: none; transition: background 120ms; }
.gx-aim-target--track[data-on] { background: radial-gradient(circle, #fff 0 22%, var(--gx-lime) 23%); box-shadow: 0 0 34px rgba(216, 172, 64, .7); }

/* ---------- Home teaser ---------- */
.gx-home { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--gx-rule); align-items: start; }
.gx-home-head { display: grid; justify-items: start; gap: 18px; }
.gx-home-head h2 { display: grid; font: 400 clamp(52px, 6vw, 96px)/1 var(--gx-display); text-transform: uppercase; }
.gx-home-head h2 span:last-child { color: var(--gx-lime); }
.gx-home-head p { color: var(--gx-muted); font-size: 17px; line-height: 1.55; max-width: 460px; }
.gx-home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gx-home-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--gx-rule); background: var(--gx-ink-2); color: var(--gx-paper); text-decoration: none; transition: border-color 200ms, transform 200ms; }
.gx-home-card:hover { border-color: rgba(216, 172, 64, .5); transform: translateY(-3px); }
.gx-home-card .gx-card-art { height: 170px; }
.gx-home-card > span:last-child { display: grid; gap: 6px; padding: 14px 18px 18px; }
.gx-home-card em { justify-self: start; }
.gx-home-card strong { font: 400 30px/1 var(--gx-display); text-transform: uppercase; }
.gx-home-card small { color: var(--gx-muted); font-size: 14px; }
.gx-home-progress { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; }


/* ---------- Responsive (560 / 820 / 1180) ---------- */
@media (max-width: 1179.98px) {
  .gx-main-grid, .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-turn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-card[data-wide] { grid-column: auto; display: flex; }
  .gx-card[data-wide] .gx-card-art { height: 170px; min-height: 0; }
  .gx-card[data-wide] .gx-card-art::after { background: linear-gradient(180deg, transparent 40%, var(--ds-ink-850)); }
  .gx-card[data-wide] .gx-card-body { padding-top: var(--ds-space-2); }
  .gx-card[data-wide-m] { grid-column: span 2; }
  .gx-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 819.98px) {
  .gx-hero .ds-hero__aside { display: none; }
  .gx-player-mobile { display: block; padding-top: var(--ds-space-6); }
  .gx-hero.ds-hero--feature .ds-hero__inner { min-height: 0; }
  .gx-hero .ds-hero__actions .ds-btn { flex: 1 1 auto; }
  .gx-today, .gx-result, .gx-home, .gx-home-progress { grid-template-columns: 1fr; }
}
@media (max-width: 559.98px) {
  main.gx-page { padding-bottom: var(--ds-space-6); }
  .gx-section { padding-top: var(--ds-space-6); }
  .gx-section-head .ds-eyebrow { display: none; }
  .gx-section-head { margin-bottom: var(--ds-space-4); padding-bottom: var(--ds-space-3); }
  .gx-section-head .ds-section-head__meta { display: none; }
  .gx-hero .ds-lede { display: none; }
  .gx-hero .ds-hero__inner { gap: var(--ds-space-4); }
  .gx-player { padding: var(--ds-space-4); gap: var(--ds-space-3); }
  .gx-ring { width: 60px; height: 60px; }
  .gx-ring b { margin-top: 0; font-size: 26px; }
  /* Anello piccolo: la scritta «Livello» toccava il bordo; c'è già nell'etichetta accanto. */
  .gx-ring small { display: none; }
  .gx-player-points { padding: var(--ds-space-2) 0; }
  .gx-player-points b { font-size: 28px; }
  .gx-player-stats dd { font-size: 20px; }
  .gx-player-reset, .gx-player-warn { display: none; }
  /* Giochi principali: Spike Chess intero, gli altri 2x2 compatti */
  .gx-main-grid { gap: var(--ds-space-3); }
  .gx-main-card { min-height: 164px; }
  .gx-main-card[data-flagship] { min-height: 280px; }
  .gx-main-card .ds-game-card__body { gap: var(--ds-space-2); padding: var(--ds-space-3); }
  .gx-main-card:not([data-flagship]) .ds-game-card__title { font-size: 24px; }
  .gx-main-card:not([data-flagship]) .gx-main-tagline { display: none; }
  .gx-main-card:not([data-flagship]) .gx-main-chips .ds-chip:not(:first-child) { display: none; }
  .gx-main-card[data-flagship] .ds-game-card__title { font-size: 48px; }
  .gx-turn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-3); }
  .gx-turn-card { min-height: 164px; }
  .gx-turn-card .ds-game-card__title { font-size: 22px; }
  .gx-main-cta { font-size: var(--ds-text-sm); }
  /* Minigiochi: 2 colonne compatte; solo il quiz è largo */
  .gx-grid { gap: var(--ds-space-3); }
  .gx-card-art, .gx-card[data-wide] .gx-card-art { height: 68px; }
  .gx-card[data-wide-m] .gx-card-art { height: 112px; }
  .gx-card-body, .gx-card[data-wide] .gx-card-body { gap: var(--ds-space-2); padding: var(--ds-space-1) var(--ds-space-3) var(--ds-space-3); }
  .gx-card-title, .gx-card[data-wide] .gx-card-title { font-size: 20px; }
  .gx-card[data-wide-m] .gx-card-title { font-size: 26px; }
  .gx-card-desc, .gx-card-board, .gx-card-meta { display: none; }
  .gx-card:not([data-wide-m]) .gx-card-tags .ds-chip:not(:first-child) { display: none; }
  .gx-card-tags { top: var(--ds-space-2); left: var(--ds-space-2); }
  .gx-card-cta { font-size: var(--ds-text-sm); }
  .gx-card:not([data-wide-m]) .gx-card-cta { display: none; }
  .gx-card:not([data-wide-m]) .gx-card-body { padding-bottom: var(--ds-space-4); }
  .gx-coach { grid-template-columns: minmax(0, 1fr) auto; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); }
  .gx-coach-bars, .gx-coach small { display: none; }
  .gx-coach strong { font-size: 20px; }
  .gx-coach .ds-eyebrow { display: none; }
  .gx-missions.ds-card, .gx-daily.ds-card { padding: var(--ds-space-4); }
  .gx-daily-copy:not(.gx-daily-copy--warn) { display: none; }
  .gx-daily .gx-card-h { font-size: 20px; }
  .gx-streak-track span { aspect-ratio: auto; height: 36px; }
  .gx-streak-track b { font-size: 16px; }
  .gx-daily, .gx-missions { gap: var(--ds-space-3); }
  .gx-missions-foot { margin-top: 0; }
  .gx-mission.ds-row { min-height: 56px; padding-block: var(--ds-space-2); }
  .gx-rewards { gap: var(--ds-space-3); }
  .gx-reward.ds-card { padding: var(--ds-space-4); gap: var(--ds-space-2); }
  .gx-reward .ds-card__title { font-size: 20px; }
  .gx-reward .ds-card__body, .gx-reward .ds-eyebrow { display: none; }
  .gx-reward-cta { font-size: var(--ds-text-sm); }
  .gx-reward .ds-eyebrow { font-size: var(--ds-label-size); }
  /* Stage dei minigiochi */
  .gx-mode-grid, .gx-home-cards { grid-template-columns: 1fr; }
  .gx-quiz-options { grid-template-columns: 1fr; }
  .gx-quiz-option { min-height: 58px; font-size: 16px; }
  .gx-quiz-reveal { flex-direction: column; align-items: stretch; }
  .gx-quiz-reveal .ds-btn { width: 100%; }
  .gx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gx-peek-arena, .gx-aim-field { aspect-ratio: auto; height: calc(100dvh - 160px); min-height: 380px; max-height: 720px; }
  .gx-stage-body { padding-bottom: 16px; }
  .gx-peek-door { width: 24%; height: 50%; }
  .gx-peek-door--l { left: 3%; }
  .gx-peek-door--r { right: 3%; }
  .gx-peek-win { width: 22%; height: 22%; }
  .gx-peek-win--l { left: 17%; }
  .gx-peek-win--r { right: 17%; }
  .gx-peek-crate { width: 30%; height: 16%; }
  .gx-peek-target { width: 70px; height: 104px; }
  .gx-hud strong { font-size: 32px; }
  .gx-stage-bar strong { font-size: 20px; }
  .gx-stage-close kbd { display: none; }
  .gx-result-actions .ds-btn, .gx-result-actions .ds-login { flex: 1 1 100%; }
  .gx-home-card .gx-card-art { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-page *, .gx-stage *, .gx-home * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .gx-peek-life { animation-duration: var(--window) !important; }
}

/* ---------- Battle Pass / Marketplace: come guadagnare punti ---------- */
.points-howto { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; margin-top: 28px; padding: 20px 24px; border: 1px dashed rgba(216, 172, 64, .45); background: rgba(216, 172, 64, .04); }
.points-howto > span { color: var(--ds-lime); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.points-howto ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.points-howto li { display: grid; gap: 3px; padding-left: 12px; border-left: 2px solid var(--ds-lime); }
.points-howto li b { font-size: 14px; }
.points-howto li small { color: var(--m-muted, var(--ds-text-2)); font-size: 13px; line-height: 1.4; }
.pass-reward[data-claimed] { border-color: rgba(216, 172, 64, .45); }
@media (max-width: 819.98px) {
  .points-howto { grid-template-columns: 1fr; }
  .points-howto ul { grid-template-columns: 1fr; }
  .points-howto .btn { justify-self: start; }
}

/* ---------- Home: clip della community senza artwork quando ci sono video ---------- */

.gx-home-progress { align-items: start; }

/* ---------- Review fix: quiz ripresa, classifica di sempre, serie persa ---------- */
.gx-quiz-resume { color: var(--gx-paper); }
.gx-quiz-resume b { display: block; margin-bottom: 4px; color: var(--gx-lime); }
.gx-quiz-cats li[data-state="ok"] { border-color: var(--gx-lime); color: var(--gx-lime); }
.gx-quiz-cats li[data-state="ko"] { border-color: rgba(255, 70, 85, .6); color: var(--ds-red); text-decoration: line-through; }
.gx-quiz-rule { font-size: 13px; }
.gx-today-score { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--ds-r-1); border: 1px solid rgba(216, 172, 64, .35); background: var(--gx-lime-soft); }
.gx-today-score span { color: var(--gx-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gx-today-score strong { grid-row: span 2; color: var(--gx-lime); font: 400 28px/1 var(--gx-display); }
.gx-today-score small { color: var(--gx-paper); font-size: 13px; }
.gx-board-note { margin: 10px 0 0 !important; font-size: 12px; }
:where(.gx-page, .gx-stage, .gx-home) :is(b, strong) { font-weight: 700; }
