/* /games/<slug> — one game's page, plus the Grand Tour toys (games-pages agent).
   The hero keeps its own night colors in light mode; the sections below follow the page theme. */

.gpage { --game: #FF6B1A; --game-2: #FFC23D; --game-ink: color-mix(in srgb, var(--game) 55%, var(--fg)); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.ghero { position: relative; isolation: isolate; overflow: hidden; color: #FFF3DF; background: #151B2E; border-bottom: 4px solid var(--outline); }
.ghero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, color-mix(in srgb, var(--game) 50%, transparent), transparent 70%),
    radial-gradient(circle at 12% 110%, color-mix(in srgb, var(--game-2) 22%, transparent), transparent 45%),
    linear-gradient(160deg, color-mix(in srgb, var(--game) 30%, #151B2E) 0%, #121629 75%);
}
.ghero-bg::before, .ghero-bg::after { content: ''; position: absolute; pointer-events: none; }
.ghero-inner { /* no z-index: the copy sits above the toy layer (z 1), the key art below it */
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 100px);
}
.ghero-copy { position: relative; z-index: 2; }
.ghero-crumb { margin: 0 0 .7em; font: 600 var(--step--1)/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--game-2) 70%, #FFF3DF); }
.ghero-crumb a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.ghero-crumb a:hover { color: #FFC23D; }
.ghero-title {
  margin: 0 0 .22em; font-size: var(--step-5); line-height: .98; color: #FFF3DF; letter-spacing: -.005em;
  text-shadow: 0 .055em 0 color-mix(in srgb, var(--game) 40%, #0D1120), 0 .12em .35em rgba(0, 0, 0, .35);
}
.ghero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 1em; }
.ghero-tagline { font-size: var(--step-1); line-height: 1.4; color: #E6E2F0; max-width: 34ch; margin: 0 0 1.5em; }
.ghero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.ghero .draft-tag { background: rgba(255, 194, 61, .18); }

.gtag {
  display: inline-flex; align-items: center; gap: .5em; padding: .42em .8em .42em .6em; border-radius: 99px;
  font: 600 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  background: #0D1120; color: #FFF3DF; border: 2px solid rgba(255, 255, 255, .12);
}
.gtag::before { content: ''; width: .8em; height: .8em; border-radius: 2px; transform: rotate(45deg); background: var(--gem, #FFC23D); box-shadow: 0 0 8px var(--gem, #FFC23D); }
.gtag-out { --gem: #3BD16F; } .gtag-soon { --gem: #FF8A3D; } .gtag-proto { --gem: #4FD1C5; }

.btn-hero-2 { --btn-bg: #FFF3DF; --btn-fg: #0D1120; --btn-edge: #B9AFA0; }
.btn-soon {
  --btn-bg: rgba(255, 243, 223, .1); --btn-fg: #FFF3DF; --btn-edge: rgba(0, 0, 0, .35);
  border-style: dashed; border-color: rgba(255, 243, 223, .55); cursor: default;
}
.btn.btn-soon[aria-disabled="true"] { opacity: 1; cursor: default; }
.btn-soon:hover { transform: none; box-shadow: 0 5px 0 var(--btn-edge); }
.btn-soon svg { opacity: .8; }
.ghero-postcard {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .5em .2em;
  font: 600 var(--step-0)/1.2 var(--font-display); color: #FFF3DF; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--game-2) 70%, transparent); text-underline-offset: .25em;
}
.ghero-postcard svg { width: 1.3em; height: 1.3em; flex: none; transition: transform .3s var(--spring); }
.ghero-postcard:hover { color: #FFC23D; }
.ghero-postcard:hover svg { transform: rotate(-12deg) scale(1.15); }

.ghero-art { position: relative; z-index: 0; justify-self: center; width: min(100%, 520px); }
.ghero-frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 26px; border: 5px solid var(--outline);
  background: #0B0E1A; transform: rotate(2deg) translate(var(--px, 0px), var(--py, 0px));
  box-shadow: 0 12px 0 rgba(0, 0, 0, .35), 0 0 0 8px color-mix(in srgb, var(--game) 55%, transparent), 0 30px 60px rgba(0, 0, 0, .4);
  transition: transform .5s var(--spring);
}
.ghero-frame .keyart { width: 100%; height: 100%; }
.ghero-frame.wobble { animation: frame-wobble .6s var(--spring); }
@keyframes frame-wobble { 0% { transform: rotate(2deg); } 30% { transform: rotate(-1deg) scale(1.03); } 60% { transform: rotate(3deg); } 100% { transform: rotate(2deg); } }

/* per-game backdrops */
.ghero-shardfall .ghero-bg::before { /* stars */
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 243, 223, .8) 0 1px, transparent 1.6px) 0 0 / 97px 83px,
    radial-gradient(circle, rgba(201, 184, 255, .6) 0 1.2px, transparent 2px) 40px 30px / 131px 109px;
  opacity: .7;
}
.ghero-shardfall .ghero-bg::after { /* distant crystal ridge */
  left: 0; right: 0; bottom: 0; height: 96px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='96' viewBox='0 0 340 96'%3E%3Cpath d='M0 96 V66 L18 50 L30 64 L50 24 L68 60 L88 48 L102 66 L128 32 L148 62 L170 52 L188 68 L212 22 L234 62 L254 50 L274 66 L298 36 L320 62 L340 54 V96Z' fill='%232A2066'/%3E%3Cpath d='M0 96 V80 L40 70 L60 80 L110 66 L150 80 L200 70 L240 82 L290 70 L340 78 V96Z' fill='%23231A55'/%3E%3C/svg%3E") 0 100% / 340px 96px repeat-x;
}
.ghero-elysian-arcade .ghero-bg {
  background:
    radial-gradient(ellipse 50% 60% at 75% 40%, rgba(255, 194, 61, .35), transparent 70%),
    linear-gradient(180deg, #1A0830 0%, #3C0F4C 65%, #1C0A2A 100%);
}
.ghero-elysian-arcade .ghero-bg::after { /* neon floor */
  left: -40%; right: -40%; bottom: -2px; height: 46%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 90, 205, .45) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(0deg, rgba(255, 90, 205, .45) 0 2px, transparent 2px 46px);
  transform: perspective(320px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent); mask-image: linear-gradient(0deg, #000 30%, transparent);
}
.ghero-precision-putt .ghero-bg { /* the green, freshly mown */
  background:
    radial-gradient(ellipse 70% 80% at 50% 40%, transparent 55%, rgba(8, 40, 20, .45)),
    repeating-linear-gradient(100deg, #238A48 0 90px, #27964F 90px 180px);
}
.ghero-precision-putt .ghero-bg::after { /* the fringe */
  inset: 0; border: 14px solid #1C7A3E; box-shadow: inset 0 0 0 4px rgba(13, 17, 32, .35);
}
.ghero-precision-putt .ghero-title { text-shadow: 0 .055em 0 #145C2E, 0 .12em .35em rgba(0, 0, 0, .3); }
.ghero-precision-putt .ghero-tagline { color: #F1FFF4; }
.ghero-precision-putt .ghero-crumb { color: #D4FFE0; }

/* ── sections ────────────────────────────────────────────────────────────── */
.gsec { padding-block: clamp(36px, 5vw, 64px) 0; }
.gsec-more { padding-bottom: clamp(56px, 8vw, 110px); }
.gsec-title { position: relative; display: flex; align-items: center; gap: .5em; font-size: var(--step-2); margin-bottom: .7em; }
.gwatch { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gabout-text { font-size: var(--step-1); line-height: 1.55; }
.gdraft-note { color: var(--fg-muted); font-size: var(--step--1); display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }

/* trailer */
.gscreen {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border-radius: 22px; border: 4px solid var(--outline); color: #FFF3DF; text-decoration: none;
  background:
    radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--game) 45%, #0B0E1A), #0B0E1A 70%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px rgba(255, 255, 255, .06), inset 0 0 60px rgba(0, 0, 0, .7);
}
.gscreen video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.gscreen-soon { cursor: pointer; font: inherit; }
.gscreen-static {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px);
}
.gscreen-static::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .06), transparent); animation: scan 5s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
.gplay {
  position: relative; display: grid; place-items: center; width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--game) 80%, #0D1120); border: 4px solid var(--outline); box-shadow: 0 6px 0 rgba(0, 0, 0, .4);
  transition: transform .3s var(--spring);
}
.gplay svg { width: 44%; height: 44%; margin-left: 8%; color: #FFF3DF; }
.gscreen-soon .gplay { opacity: .55; filter: grayscale(.4); }
.gscreen:hover .gplay { transform: scale(1.08) rotate(-4deg); }
.gscreen-note { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; font: 600 var(--step-0)/1 var(--font-display); }
.gscreen-link span:last-child { position: absolute; bottom: 16px; font: 600 var(--step-0)/1 var(--font-display); }
.gscreen.wobble .gplay { animation: wobble .6s var(--spring); }

/* screenshots */
.gshots {
  list-style: none; margin: 0 auto; padding: 4px 0 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(78vw, 260px), 1fr); gap: clamp(14px, 2vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.gshot { position: relative; scroll-snap-align: start; }
.gshot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 3px solid var(--outline); }
.gshot-ph {
  position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 16 / 9; border-radius: 16px;
  border: 3px dashed color-mix(in srgb, var(--fg-muted) 60%, transparent); color: var(--fg-muted);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--game) 7%, transparent) 0 14px, transparent 14px 28px), var(--bg-2);
  font: 600 var(--step--1)/1.2 var(--font-display); text-align: center; padding: 10px; cursor: pointer; transition: transform .3s var(--spring);
}
.gshot-ph svg { width: 52px; height: 40px; opacity: .8; }
.gshot-ph:hover { transform: translateY(-3px) rotate(-1deg); }
.gshot-ph.wobble { animation: wobble .6s var(--spring); }

/* features + facts */
.ginfo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gfeat-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gfeat-list li {
  position: relative; padding: 14px 18px 14px 56px; border-radius: 18px; border: 3px solid var(--outline);
  background: var(--panel); font-weight: 700; line-height: 1.4; box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
  transition: transform .3s var(--spring);
}
body:not(.is-home) .gfeat-list li { border-color: var(--line); }
.gfeat-list li:hover { transform: translateX(4px) rotate(-.5deg); }
.gfeat-list li::before {
  content: ''; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 5px; transform: rotate(45deg);
  background: var(--game); border: 3px solid var(--outline); box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .4);
}
.gfacts { position: relative; }
.gfacts-table { position: relative; width: 100%; border-collapse: separate; border-spacing: 0; border: 3px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.gfacts-table th, .gfacts-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.gfacts-table tr + tr th, .gfacts-table tr + tr td { border-top: 2px dashed var(--line); }
.gfacts-table th { width: 38%; font: 600 var(--step--1)/1.5 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.gfacts-table td { font-weight: 800; }

/* more games */
.gmore { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.gmore > li { display: flex; }
.gmore-card {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; color: var(--fg); text-decoration: none;
  border-radius: 22px; border: 4px solid var(--outline); background: var(--panel);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c, var(--line)) 70%, #0D1120);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring);
}
.gmore-card:hover { color: var(--fg); transform: translateY(-5px) rotate(-1deg); box-shadow: 0 11px 0 color-mix(in srgb, var(--c, var(--line)) 70%, #0D1120); }
.gmore-art { display: block; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 4px solid var(--outline); background: #0B0E1A; }
.gmore-art .keyart { width: 100%; height: 100%; }
.gmore-body { display: grid; gap: 8px; justify-items: start; padding: 14px 18px 18px; }
.gmore-name { font: 700 var(--step-1)/1.1 var(--font-display); }
.gmore-text { color: var(--fg-muted); font-size: .95rem; line-height: 1.4; }
.gmore-all { justify-content: center; align-items: flex-start; gap: 8px; padding: 22px; border-style: dashed; border-color: var(--line); box-shadow: none; background: transparent; }
.gmore-all:hover { box-shadow: none; }
.gmore-all svg { width: 34px; height: 34px; color: var(--accent); transition: transform .3s var(--spring); }
.gmore-all:hover svg { transform: translateX(6px); }

@media (max-width: 900px) {
  .ghero-inner { grid-template-columns: 1fr; }
  .ghero-art { order: -1; width: min(100%, 420px); }
  .gwatch, .ginfo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ghero-inner { padding-top: 26px; gap: 22px; }
  .ghero-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .ghero-actions .btn-big { width: 100%; }
  .ghero-art { width: 86%; }
}

/* ══ THE GRAND TOUR TOYS ═══════════════════════════════════════════════════ */
.toy-counter {
  position: fixed; left: 0; right: 0; margin-inline: auto; width: fit-content; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 64;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px;
  background: #1B2238; color: #FFF3DF; border: 3px solid var(--outline); box-shadow: 0 5px 0 rgba(0, 0, 0, .35), 0 0 0 2px color-mix(in srgb, var(--game) 60%, transparent);
  font: 700 1rem/1 var(--font-display); animation: pop-in .45s var(--spring);
}
.toy-counter svg { width: 32px; height: 32px; flex: none; }
.toy-counter b { font-size: 1.15rem; color: var(--game-2); font-variant-numeric: tabular-nums; }
.toy-counter.is-bump { animation: jar-bump .5s var(--spring); }
.toy-counter.is-done { background: color-mix(in srgb, var(--game) 45%, #1B2238); }

/* ── putt (Precision Putt) ─────────────────────────────────────────────── */
.ghero-word { white-space: nowrap; }
.putt-hole { position: relative; display: inline-block; }
.ghero.putt-on {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M31 3 L12 25' stroke='%230D1120' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M31 3 L12 25' stroke='%23D8D3E6' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M3 25 h13 a3.5 3.5 0 0 1 0 7 h-13 z' fill='%23C8A15A' stroke='%230D1120' stroke-width='2.2' stroke-linejoin='round'/%3E%3Crect x='27.5' y='1' width='7' height='7' rx='2' fill='%23FF6B1A' stroke='%230D1120' stroke-width='1.6'/%3E%3C/svg%3E") 5 29, pointer;
}
.ghero.putt-on :is(a, button) { cursor: pointer; }
.putt-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.putt-ball {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0;
  border-radius: 50%; border: 3px solid var(--outline); pointer-events: auto; touch-action: none; cursor: grab;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0 28%, #E6ECF2 60%, #BFCAD6 100%);
  box-shadow: 3px 5px 0 rgba(8, 30, 16, .35);
}
.putt-ball::before { content: ''; position: absolute; inset: -20px; border-radius: 50%; }
.putt-ball::after { /* dimples */
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle at 30% 60%, #AAB7C4 0 1.3px, transparent 1.8px), radial-gradient(circle at 62% 38%, #AAB7C4 0 1.3px, transparent 1.8px), radial-gradient(circle at 60% 72%, #AAB7C4 0 1.3px, transparent 1.8px);
}
.putt-ball:active { cursor: grabbing; }
.putt-ball:focus-visible { outline: 3px solid #FFC23D; outline-offset: 4px; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 194, 61, .25); }
.putt-ball.is-idle { animation: ball-bob 2.4s ease-in-out infinite; }
@keyframes ball-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.putt-ball.is-sunk { transition: transform .35s var(--ease-out), scale .35s var(--ease-out), opacity .35s; scale: .2; opacity: 0; }
.putt-tee { position: absolute; width: 60px; height: 16px; margin: 6px 0 0 -30px; border-radius: 50%; background: rgba(8, 40, 20, .35); border: 2px dashed rgba(255, 243, 223, .35); }
.putt-aim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.putt-aim line { stroke-linecap: round; }
.putt-flag { position: absolute; left: 0; top: 0; width: 44px; height: 70px; margin: -66px 0 0 -2px; pointer-events: none; transform-origin: 2px 66px; }
.putt-flag svg { width: 100%; height: 100%; overflow: visible; }
.putt-flag .flag-cloth { transform-origin: 4px 8px; animation: flag-wave 1.6s ease-in-out infinite; }
@keyframes flag-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.9); } }
.putt-flag.is-pop { animation: flag-pop .8s var(--spring); }
@keyframes flag-pop { 0% { transform: translateY(0); } 35% { transform: translateY(-30px) rotate(-8deg); } 100% { transform: none; } }
.putt-cup { position: absolute; width: 30px; height: 12px; margin: -6px 0 0 -15px; border-radius: 50%; background: rgba(13, 17, 32, .55); pointer-events: none; }
.putt-say {
  position: absolute; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 12px; white-space: nowrap; pointer-events: none;
  background: #FFF3DF; color: #0D1120; border: 3px solid var(--outline); font: 700 1rem/1 var(--font-display);
  animation: say-pop 1.8s var(--spring) both;
}
@keyframes say-pop { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%); } }
.ghero-title.is-hop .putt-hole { animation: hole-hop .7s var(--spring); }
@keyframes hole-hop { 0% { transform: none; } 30% { transform: translateY(-.18em) scale(1.2, .85); } 60% { transform: translateY(.04em) scale(.9, 1.1); } 100% { transform: none; } }

/* ── shards (Shardfall) ─────────────────────────────────────────────────── */
.shard-layer { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.ghero.shards-on .ghero-inner { pointer-events: none; }
.ghero.shards-on .ghero-inner :is(a, button, .shard-cluster) { pointer-events: auto; }
.ghero.shards-on .ghero-art { z-index: auto; }
.ghero.shards-on .shard-cluster { z-index: 2; }
.shard {
  position: absolute; left: 0; top: 0; width: 44px; height: 54px; margin: -27px 0 0 -22px; padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; will-change: transform;
}
.shard svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 8px rgba(185, 164, 255, .7)); }
.shard:focus-visible { outline: 3px solid #FFC23D; outline-offset: 2px; border-radius: 12px; }
.shard.is-calm { animation: shard-fade 6s ease both; }
@keyframes shard-fade { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
.shard-frag { position: absolute; left: 0; top: 0; width: 18px; height: 18px; pointer-events: none; animation: frag-fly .75s var(--ease-out) forwards; }
@keyframes frag-fly { 0% { transform: translate(var(--x0), var(--y0)) rotate(0) scale(1); opacity: 1; } 100% { transform: translate(var(--x1), var(--y1)) rotate(var(--r)) scale(.4); opacity: 0; } }
.shard-cluster {
  position: absolute; left: -18px; bottom: -22px; z-index: 3; width: 86px; height: 86px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform .3s var(--spring); -webkit-tap-highlight-color: transparent;
}
.shard-cluster svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.shard-cluster:hover { transform: scale(1.08) rotate(-4deg); }
.shard-cluster.wobble { animation: wobble .6s var(--spring); }
.shard-cluster:focus-visible { outline: 3px solid #FFC23D; outline-offset: 2px; border-radius: 16px; }
.shard-cluster .glint { animation: glint 3.2s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: 1; } }

/* ── tokens (Elysian Arcade) ─────────────────────────────────────────────── */
.ea-token {
  position: absolute; z-index: 3; width: 34px; height: 34px; padding: 0; border: 0; background: none; border-radius: 50%;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .3s var(--spring);
}
.ea-token svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.ea-token:hover { transform: scale(1.15) rotate(-10deg); }
.ea-token:focus-visible { outline: 3px solid #FFC23D; outline-offset: 3px; }
.ea-token .shine { animation: token-shine 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes token-shine { 0%, 80%, 100% { opacity: 0; } 88% { opacity: 1; } }
.ea-token.is-got { pointer-events: none; animation: token-got .6s var(--ease-out) forwards; }
@keyframes token-got { 0% { transform: none; } 40% { transform: translateY(-26px) rotateY(360deg) scale(1.3); opacity: 1; } 100% { transform: translateY(-40px) rotateY(720deg) scale(.3); opacity: 0; } }
.ea-token.tuck { z-index: 0; } /* sits behind its frame and peeks out */
.gshot { isolation: isolate; }
.ea-token.at-hero { left: -28px; top: 20%; z-index: -1; transform: rotate(-16deg); }
.ea-token.at-hero:hover { transform: translateX(-6px) rotate(-24deg); }
.ea-token.at-shot { top: -24px; right: 18%; transform: rotate(-12deg); }
.ea-token.at-shot:hover { transform: translateY(-6px) rotate(-18deg); }
.ea-token.at-feats { right: -8px; bottom: -14px; }
.gfacts-table td.has-token { padding-right: 58px; }
.gshots.has-token { padding-top: 30px; }
.ea-token.at-facts { right: 12px; top: 50%; margin-top: -17px; }
.ea-token.at-more { position: relative; display: inline-block; vertical-align: middle; width: 30px; height: 30px; margin-left: .2em; }

/* ── calm mode ──────────────────────────────────────────────────────────── */
html.calm .ghero-frame { transform: rotate(2deg) !important; }
html.calm .putt-flag .flag-cloth, html.calm .putt-ball.is-idle, html.calm .gscreen-static::after, html.calm .shard-cluster .glint, html.calm .ea-token .shine { animation: none !important; }
