.game-page { min-height: 100vh; background: radial-gradient(circle at 82% 7%, rgba(77,225,255,.16), transparent 27%), radial-gradient(circle at 8% 65%,rgba(255,63,129,.11),transparent 30%), #030408; font-family:"Space Grotesk",sans-serif; }
.game-back { color: #bdbdb8; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.game-back:hover, .game-back:focus-visible { color: #fff; }
.game-main { padding: 125px 4vw 60px; }
.game-heading { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 4vw; max-width: 1500px; margin: 0 auto 38px; }
.game-heading h1 { font-family:Syne,sans-serif; font-weight:800; letter-spacing:-.07em; font-size: clamp(3.6rem, 9vw, 9rem); background: linear-gradient(95deg,#fff 12%,#4de1ff 48%,#ffd44a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-heading > p:last-child { max-width: 390px; margin: 0 0 14px; color: #a6a6a1; line-height: 1.6; }
.game-stage { max-width: 1500px; margin: 0 auto; overflow:hidden; border: 1px solid rgba(77,225,255,.34); border-radius:32px; background: rgba(10,12,18,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 28px 85px rgba(0,0,0,.5),0 0 55px rgba(77,225,255,.11); }
.game-stage.is-playing { overscroll-behavior: contain; touch-action: none; }
.game-stage.is-playing * { -webkit-user-select: none; user-select: none; }
.game-hud { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,.1); background:linear-gradient(90deg,rgba(77,225,255,.07),rgba(255,63,129,.05)); backdrop-filter:blur(14px); }
.game-hud p { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0; padding: 18px 24px; border-right: 1px solid rgba(255,255,255,.1); }
.game-hud p:last-child { border-right: 0; }
.game-hud span { color: #777; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.game-hud strong { font: 700 1.5rem/1 Syne, sans-serif; letter-spacing: .02em; }
.game-hud p:nth-child(1) strong { color: #4de1ff; }
.game-hud p:nth-child(2) strong { color: #ffd44a; }
.game-hud p:nth-child(3) strong { color: #75f08c; }
.game-hud p:nth-child(4) strong { color: #ff3f81; }
.canvas-wrap { position: relative; overflow: hidden; }
.canvas-wrap::after { content:''; position:absolute; inset:0; z-index:2; pointer-events:none; background:radial-gradient(circle at 30% 55%,rgba(255,212,74,.5),transparent 28%); opacity:0; }
.canvas-wrap.is-pulsing::after { animation:token-pulse .32s ease; }
.canvas-wrap.is-hit { animation:game-hit .34s ease; }
@keyframes token-pulse { 40% { opacity:1; } }
@keyframes game-hit { 25% { transform:translateX(-7px); filter:saturate(1.5); } 55% { transform:translateX(5px); } }
#game-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #050505; touch-action: none; -webkit-tap-highlight-color: transparent; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 42%,rgba(77,225,255,.13),transparent 42%),rgba(3,4,8,.76); backdrop-filter: blur(8px); }
.game-overlay.hidden { display: none; }
.overlay-kicker { color: #8b8b87; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.game-overlay h2 { margin-top: 8px; font-family:Syne,sans-serif; font-weight:800; letter-spacing:-.06em; font-size: clamp(2.6rem, 7vw, 6.5rem); }
.game-overlay > p:not(.overlay-kicker) { max-width: 520px; margin: 18px 0 28px; color: #bdbdb8; line-height: 1.6; }
.runner-select { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; width:min(680px,100%); margin:0 0 22px; }
.runner-card { display:flex; align-items:center; gap:10px; min-width:0; min-height:66px; padding:8px 10px; border:1px solid rgba(255,255,255,.2); border-radius:16px; background:rgba(8,10,18,.86); color:#fff; text-align:left; cursor:pointer; }
.runner-card img { width:46px; height:46px; flex:0 0 46px; border-radius:50%; object-fit:cover; border:1px solid rgba(77,225,255,.55); }
.runner-card[data-runner="w4"] img { object-position:50% 54%; }
.runner-card[data-runner="bravie"] img { object-position:62% 50%; }
.runner-card span { min-width:0; display:flex; flex-direction:column; gap:3px; }
.runner-card strong,.runner-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.runner-card strong { font:700 .78rem Syne,sans-serif; }
.runner-card small { color:#93938f; font-size:.62rem; }
.runner-card.selected { border-color:#4de1ff; box-shadow:0 0 24px rgba(77,225,255,.22); }
.runner-card.locked { opacity:.48; cursor:not-allowed; filter:grayscale(.75); }
.game-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-top: 1px solid #333; }
.game-controls p { margin: 0; color: #8b8b87; font-size: .88rem; }
.game-action-buttons { display:flex; gap:10px; }
.jump-button { min-width: 150px; min-height: 58px; border: 1px solid #4de1ff; border-radius:999px; background: linear-gradient(135deg,#4de1ff,#aef4ff); color: #050505; box-shadow: 0 0 24px rgba(77,225,255,.28); font: 700 .85rem "Space Grotesk", sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.slide-button { min-width:150px; min-height:58px; border:1px solid #ff3f81; border-radius:999px; background:linear-gradient(135deg,#ff3f81,#ffd44a); color:#050505; box-shadow:0 0 24px rgba(255,63,129,.24); font:700 .85rem "Space Grotesk",sans-serif; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }
.jump-button:active,.slide-button:active { transform: translateY(2px); }
.jump-button,.slide-button { touch-action:none; -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none; }
.sr-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.game-after { max-width: 1500px; display: flex; justify-content: space-between; align-items: center; gap: 28px; margin: 0 auto; padding: 60px 0 0; }
.game-after p { margin: 0; color: #777; }
.game-after a { font: 700 clamp(1.5rem, 3.5vw, 3.5rem)/1.05 Syne, sans-serif; letter-spacing:-.045em; text-align: right; text-decoration: none; text-transform: uppercase; }

@media (max-width: 860px) {
  .game-page { overscroll-behavior-y:none; }
  .game-main { padding: 105px 18px 45px; }
  .game-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 26px; }
  .game-heading h1 { font-size: clamp(3.5rem, 18vw, 6rem); }
  .game-heading > p:last-child { margin-top: 8px; }
  .game-stage { border-radius:20px; contain:paint; }
  .game-hud { grid-template-columns:repeat(2,1fr); backdrop-filter:none; }
  .game-hud p { flex-direction: column; gap: 7px; padding: 13px 14px; border-bottom:1px solid #333; }
  .game-hud p:nth-child(2n) { border-right:0; }
  .game-hud p:nth-child(n+3) { border-bottom:0; }
  .game-hud strong { font-size: 1.2rem; }
  .game-overlay { justify-content: flex-end; padding-bottom: 8%; background: rgba(5,5,5,.6); }
  .game-overlay h2 { font-size: clamp(2.2rem, 11vw, 4.2rem); }
  .game-overlay > p:not(.overlay-kicker) { max-width: 340px; margin: 8px 0 16px; font-size: .85rem; }
  .runner-select { gap:6px; margin-bottom:14px; }
  .runner-card { min-height:58px; padding:6px; border-radius:12px; }
  .runner-card img { width:38px; height:38px; flex-basis:38px; }
  .runner-card strong { font-size:.64rem; }
  .runner-card small { font-size:.53rem; }
  .canvas-wrap.is-hit { animation:none; }
  .game-controls { position:sticky; bottom:0; z-index:5; align-items: stretch; flex-direction: column; padding: 14px 14px max(14px,env(safe-area-inset-bottom)); background:rgba(8,10,18,.97); }
  .game-action-buttons { width:100%; }
  .jump-button,.slide-button { width: 50%; min-width:0; }
  .game-controls p { text-align: center; }
  .game-after { align-items: flex-start; flex-direction: column; padding-top: 42px; }
  .game-after a { text-align: left; }
}
