  :root {
    --font-xbox: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-tic: "Source Code Pro", ui-monospace, monospace;
    --x-green: #6faa1e;
    --x-green-hi: #9cd93c;
    --x-green-deep: #3d6610;
  }
  /* Jacket modal on surfer: solid panel (no GPU backdrop-blur over hidden WebGL) */
  #jacketModal.surfer-jacket-modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 16, 0.97);
  }
  body.jacket-modal-open canvas {
    visibility: hidden !important;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { overscroll-behavior: none; }
  body {
    background: #000; overflow: hidden; overscroll-behavior: none; touch-action: none;
    font-family: var(--font-tic); user-select: none;
  }
  canvas { display: block; }

  #ui {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 10;
  }

  #score {
    position: fixed; top: 28px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 52px; font-weight: 900; letter-spacing: 0.06em;
    font-family: var(--font-tic);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
    transition:
      transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
      color 0.35s ease,
      text-shadow 0.55s ease,
      filter 0.55s ease;
  }
  #score.pop {
    transform: translateX(-50%) scale(1.15);
    transition: transform 0.05s, opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease, text-shadow 0.55s ease, filter 0.55s ease;
  }

  #speed-label {
    position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    font-family: var(--font-tic);
    transition:
      transform 0.48s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
      opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
  }
  #ui.ui--crash-out #score {
    opacity: 0;
    filter: blur(3px);
    transform: translateX(-50%) translateY(-14px) scale(0.9);
  }
  #ui.ui--crash-out #speed-label {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  @media (prefers-reduced-motion: reduce) {
    #score, #speed-label { transition: none !important; }
    #ui.ui--crash-out #score,
    #ui.ui--crash-out #speed-label { filter: none; transform: translateX(-50%); }
  }

  .bgm-toggle {
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    z-index: 25;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .bgm-toggle:hover { color: #fff; border-color: rgba(156, 217, 60, 0.45); }
  .bgm-toggle:active { transform: scale(0.94); }
  .bgm-toggle[aria-pressed="true"] { color: rgba(255, 255, 255, 0.38); }
  .bgm-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .bgm-toggle__off { display: none; }
  .bgm-toggle[aria-pressed="true"] .bgm-toggle__on { display: none; }
  .bgm-toggle[aria-pressed="true"] .bgm-toggle__off { display: block; }

  #lives {
    display: none; /* instant crash — no life counter */
  }
  .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.9);
    transition: all 0.3s;
  }
  .dot.off { background: #1e1e1e; box-shadow: none; }

  /* overlay screens */
  #overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 20; pointer-events: all;
    transition: opacity 0.85s ease;
  }
  #overlay.hidden { opacity: 0; pointer-events: none; }
  #overlay.overlay--go-fade {
    background: rgba(0,0,0,0.94);
    pointer-events: none;
  }
  #overlay.overlay--go-fade .go-stack {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  #overlay.overlay--go-fade .go-fx {
    opacity: 0;
    transition: opacity 1.1s ease 0.2s;
  }
  #overlay.overlay--go-in .go-fx {
    opacity: 1;
    transition: opacity 0.9s ease;
  }
  #overlay.overlay--go-in .go-stack {
    opacity: 1;
    transition: opacity 0.75s ease 0.08s;
  }

  /* Hero title: title docked top center; START docked bottom center */
  #overlay.title-lite {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding-top: max(clamp(10px, 2.5vh, 28px), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(18px, 5vh, 48px), env(safe-area-inset-bottom, 0px));
    padding-left: max(clamp(16px, 4vw, 28px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(16px, 4vw, 28px), env(safe-area-inset-right, 0px));
    background: transparent;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
  }
  #overlay.title-lite .title-dock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
  #overlay.title-lite .title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: clamp(12.6rem, 69.6vw, 26.4rem);
    margin-inline: auto;
    margin-top: clamp(0.5rem, 2vh, 1rem);
    padding-inline: 2vw;
    box-sizing: border-box;
  }
  @media (max-width: 480px) {
    #overlay.title-lite .title-stack {
      max-width: clamp(10.8rem, 57.6vw, 16.8rem);
      margin-top: clamp(0.75rem, 3vh, 1.5rem);
      padding-inline: 4vw;
    }
  }
  #overlay.title-lite .title-stack .title-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 2px 28px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 48px rgba(0, 0, 0, 0.45));
  }
  #overlay.title-lite .btn {
    display: block;
    margin-inline: auto;
    align-self: center;
  }

  .rat-select-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
    pointer-events: all;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    transform: translateY(-50%);
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 160ms ease, opacity 160ms ease;
  }
  .rat-select-arrow--prev {
    left: max(10px, env(safe-area-inset-left, 0px));
  }
  .rat-select-arrow--next {
    right: max(10px, env(safe-area-inset-right, 0px));
  }
  #overlay.title-lite .rat-select-arrow {
    display: flex;
  }
  .rat-select-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .rat-select-arrow:active {
    transform: translateY(-50%) scale(0.97);
    background: rgba(0, 0, 0, 0.46);
  }
  @media (hover: hover) and (pointer: fine) {
    .rat-select-arrow:hover {
      background: rgba(0, 0, 0, 0.46);
    }
  }
  @media (max-width: 480px) {
    .rat-select-arrow {
      width: 44px;
      height: 44px;
    }
  }

  #overlay h1 {
    font-size: clamp(64px, 13vw, 130px);
    font-weight: 700; letter-spacing: -0.02em;
    color: #fff; margin-bottom: 6px;
    font-family: var(--font-xbox);
  }
  .tagline {
    color: rgba(255,255,255,0.4); font-size: 12px; font-weight: 600;
    letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 64px;
    font-family: var(--font-tic);
  }
  .fs {
    font-size: 76px; font-weight: 900; color: #fff;
    letter-spacing: 0.04em; margin-bottom: 6px;
    font-family: var(--font-tic); font-variant-numeric: tabular-nums;
  }
  .fl {
    color: rgba(255,255,255,0.4); font-size: 11px; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 56px;
    font-family: var(--font-tic);
  }

  .btn {
    border: 1px solid var(--x-green-deep);
    padding: 16px 52px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.12em; cursor: pointer;
    font-family: var(--font-xbox);
    color: #fff;
    background: linear-gradient(180deg, var(--x-green-hi) 0%, var(--x-green) 50%, var(--x-green-deep) 100%);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: filter 0.12s ease, transform 0.1s ease;
    pointer-events: all;
    touch-action: manipulation;
    -webkit-touch-callout: none;
  }
  .btn:hover { filter: brightness(1.08); transform: scale(1.04); }
  .btn:active { transform: scale(0.97); filter: brightness(0.96); }

  #score.hit-flash {
    color: #ff3b3b;
    text-shadow: 0 0 40px rgba(255, 60, 60, 0.85);
    transform: translateX(-50%) scale(1.18);
  }

  #crash-flash {
    position: fixed; inset: 0; z-index: 15;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 50, 50, 0.42) 0%, rgba(120, 0, 0, 0.2) 45%, transparent 72%);
    opacity: 0;
    transition: opacity 0.07s ease-out;
  }
  #crash-flash.on { opacity: 1; }

  #loader {
    position: fixed; inset: 0;
    background: #000;
    z-index: 30;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-tic);
    color: #fff;
    transition: opacity 0.4s;
    padding-left:   max(clamp(16px, 4vw, 28px), env(safe-area-inset-left, 0px));
    padding-right:  max(clamp(16px, 4vw, 28px), env(safe-area-inset-right, 0px));
    padding-bottom: max(clamp(18px, 5vh, 48px), env(safe-area-inset-bottom, 0px));
    padding-top:    max(clamp(10px, 2.5vh, 28px), env(safe-area-inset-top, 0px));
  }
  #loader.hidden { opacity: 0; pointer-events: none; }
  .loader-inner {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    width: min(82vw, 360px);
  }
  .loader-label {
    font-size: 14px; font-weight: 700; letter-spacing: 0.28em;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
  }
  .loader-bar {
    width: 100%; height: 2px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
  }
  .loader-bar-fill {
    width: 0%; height: 100%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.6);
    transition: width 0.18s linear;
  }
  .loader-pct {
    font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.55);
  }

  /* Game over screen */
  #overlay:not(.title-lite) {
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    gap: 0;
    padding:
      max(20px, calc(env(safe-area-inset-top, 0px) + 10px))
      max(16px, env(safe-area-inset-right, 0px))
      max(20px, calc(env(safe-area-inset-bottom, 0px) + 10px))
      max(16px, env(safe-area-inset-left, 0px));
    background:
      radial-gradient(ellipse 120% 80% at 50% 0%, rgba(111, 170, 30, 0.07) 0%, transparent 52%),
      rgba(0, 0, 0, 0.94);
  }
  .go-fx {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
  }
  #overlay:not(.title-lite).overlay--go-in .go-fx { opacity: 1; }
  .go-fx__vignette {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 50% 38%, rgba(111, 170, 30, 0.11) 0%, transparent 48%),
      radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
  }
  .go-fx__scan {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.16) 2px,
      rgba(0, 0, 0, 0.16) 4px
    );
    animation: goScanDrift 10s linear infinite;
  }
  .go-fx__grid {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -8%;
    height: 42%;
    opacity: 0.22;
    background:
      linear-gradient(rgba(156, 217, 60, 0.14) 1px, transparent 1px),
      linear-gradient(90deg, rgba(156, 217, 60, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: perspective(420px) rotateX(58deg);
    transform-origin: center bottom;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 88%);
  }
  @keyframes goScanDrift {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
  }
  .go-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 100%;
    flex-shrink: 1;
    min-height: 0;
  }
  #overlay:not(.title-lite) #goScreen {
    width: min(92vw, 22rem);
    flex-shrink: 0;
  }
  #overlay:not(.title-lite).overlay--nick-kb {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
  .go-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(92vw, 22rem);
    flex-shrink: 0;
  }
  #overlay.title-lite .go-actions {
    width: auto;
    margin-top: 0;
  }
  #overlay.title-lite .go-fx {
    opacity: 0;
    visibility: hidden;
  }
  #overlay:not(.title-lite) .go-actions {
    margin-top: clamp(20px, 3vh, 28px);
  }
  #overlay:not(.title-lite) .go-actions .btn {
    width: 100%;
    display: block;
    padding: 14px 24px;
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  #overlay:not(.title-lite) .go-actions .btn-go-secondary {
    padding: 14px 24px !important;
  }
  #goBuyBtn {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .go-screen {
    width: 100%;
    margin: 0;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(14px, 2.2vh, 22px);
  }
  .go-screen--hidden {
    display: none !important;
  }
  .go-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(52px, 7.5vh, 64px);
    overflow: visible;
    flex-shrink: 0;
  }
  #overlay:not(.title-lite) .go-actions .btn-go-secondary {
    padding: 14px 24px !important;
  }
  #goBuyBtn {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  #overlay:not(.title-lite) .go-actions .btn:not(.btn-go-secondary) {
    position: relative;
    overflow: hidden;
    box-shadow:
      0 4px 20px rgba(111, 170, 30, 0.35),
      0 4px 16px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  @media (prefers-reduced-motion: no-preference) {
    #overlay:not(.title-lite) .go-actions .btn:not(.btn-go-secondary)::after {
      content: '';
      position: absolute;
      top: 0;
      left: -120%;
      width: 55%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
      animation: goBtnShine 3.2s ease-in-out infinite;
      pointer-events: none;
    }
  }
  @keyframes goBtnShine {
    0%, 68%, 100% { left: -120%; }
    82% { left: 130%; }
  }
  .go-brand-rx {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: clamp(104px, 15vh, 132px);
    max-width: min(92vw, 22rem);
    object-fit: contain;
    opacity: 0.92;
    filter: drop-shadow(0 0 14px rgba(156, 217, 60, 0.38));
  }
  .go-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 3vh, 24px) clamp(16px, 3vw, 20px);
    border: 2px solid var(--x-green-deep);
    background: rgba(8, 8, 14, 0.88);
    box-shadow:
      inset 0 1px 0 rgba(156, 217, 60, 0.12),
      0 8px 32px rgba(0, 0, 0, 0.45),
      0 0 48px rgba(111, 170, 30, 0.08);
  }
  .go-hero-card__road {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 11px,
        rgba(255,255,255,0.03) 11px,
        rgba(255,255,255,0.03) 12px
      ),
      repeating-linear-gradient(
        -14deg,
        transparent,
        transparent 10px,
        rgba(156, 217, 60, 0.045) 10px,
        rgba(156, 217, 60, 0.045) 12px
      );
    animation: goRoadScroll 2.8s linear infinite;
  }
  .go-hero-card__frame {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(156, 217, 60, 0.14);
    pointer-events: none;
  }
  .go-hero-card__corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--x-green-hi);
    border-style: solid;
    pointer-events: none;
    opacity: 0.7;
  }
  .go-hero-card__corner--tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
  .go-hero-card__corner--tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
  .go-hero-card__corner--bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
  .go-hero-card__corner--br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }
  @keyframes goRoadScroll {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 36px, 0 48px; }
  }
  .go-hero-card--top {
    animation: none;
  }
  @keyframes goTopGlow {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(156, 217, 60, 0.12), 0 8px 32px rgba(0, 0, 0, 0.45); border-color: var(--x-green-deep); }
    50% { box-shadow: inset 0 1px 0 rgba(156, 217, 60, 0.35), 0 0 48px rgba(111, 170, 30, 0.35); border-color: var(--x-green-hi); }
  }
  @media (prefers-reduced-motion: no-preference) {
    .go-hero-card--top { animation: goTopGlow 2.2s ease-in-out infinite; }
    .go-kicker--in { animation: goKickerGlitch 0.55s ease; }
  }
  @keyframes goKickerGlitch {
    0%, 100% { transform: translate(0); opacity: 1; filter: none; }
    15% { transform: translate(-2px, 1px); color: var(--x-green-hi); opacity: 0.88; }
    30% { transform: translate(2px, -1px); opacity: 0.75; }
    45% { transform: translate(-1px, 0); opacity: 0.95; }
    60% { transform: translate(1px, 1px); color: rgba(255,120,120,0.9); }
  }
  .go-kicker {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-family: var(--font-tic);
    text-align: center;
  }
  .go-score {
    position: relative;
    z-index: 1;
    font-size: clamp(64px, 17vw, 108px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin: clamp(4px, 0.8vh, 8px) 0;
    font-family: var(--font-tic);
    font-variant-numeric: tabular-nums;
    text-align: center;
    text-shadow:
      0 0 24px rgba(255,255,255,0.35),
      0 0 64px rgba(156,217,60,0.2);
  }
  .go-score--hot {
    color: var(--x-green-hi);
    text-shadow:
      0 0 32px rgba(156,217,60,0.65),
      0 0 80px rgba(111,170,30,0.35);
  }
  .go-score--pulse {
    animation: goScorePulse 0.6s ease;
  }
  .go-stats {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255,255,255,0.38);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--font-tic);
    text-align: center;
  }
  .go-rank {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: var(--x-green-hi);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: var(--font-tic);
    text-align: center;
  }
  .go-rank[hidden] { display: none; }
  .go-buy-block {
    width: 100%;
    margin: 0;
    pointer-events: all;
  }
  .go-buy-block[hidden] {
    display: none !important;
  }
  .btn-go-secondary {
    width: 100%;
    background: transparent !important;
    border: 1px solid var(--x-green) !important;
    box-shadow: none !important;
    color: var(--x-green-hi) !important;
    text-shadow: none !important;
    touch-action: manipulation;
    -webkit-touch-callout: none;
  }
  .btn-go-secondary:hover {
    background: rgba(111, 170, 30, 0.12) !important;
    filter: none !important;
  }
  .go-lb {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding: 14px 12px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2px;
    background:
      linear-gradient(180deg, rgba(12,12,20,0.75) 0%, rgba(6,6,12,0.85) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 4px 24px rgba(0,0,0,0.35);
  }
  @keyframes goFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes goScorePop {
    0% { opacity: 0; transform: scale(0.82); }
    70% { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes goScorePulse {
    0%, 100% { text-shadow: 0 0 40px rgba(255,255,255,0.25); }
    50% { text-shadow: 0 0 56px rgba(156,217,60,0.75); color: var(--x-green-hi); }
  }
  @media (prefers-reduced-motion: no-preference) {
    #overlay.overlay--go-in .go-anim-d0 { animation: goFadeUp 0.62s ease backwards; animation-delay: 0.08s; }
    #overlay.overlay--go-in .go-anim-d1 { animation: goFadeUp 0.68s ease backwards; animation-delay: 0.18s; }
    #overlay.overlay--go-in .go-anim-d1 .go-score { animation: goScorePop 0.72s cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: 0.28s; }
    #overlay.overlay--go-in .go-anim-d2 { animation: goFadeUp 0.62s ease backwards; animation-delay: 0.34s; }
    #overlay.overlay--go-in .go-anim-d3 { animation: goFadeUp 0.58s ease backwards; animation-delay: 0.46s; }
    #overlay.overlay--go-in .go-anim-d4 { animation: goFadeUp 0.58s ease backwards; animation-delay: 0.56s; }
  }
  .lb-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  @media (min-width: 380px) {
    .lb-row {
      flex-direction: row;
      align-items: flex-end;
    }
    .lb-nick-wrap { flex: 1; min-width: 0; }
    .lb-submit {
      width: auto !important;
      flex-shrink: 0;
      white-space: nowrap;
    }
  }
  .lb-label {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--font-tic);
    text-align: center;
  }
  .lb-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(12,12,22,0.85);
    color: #fff;
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font-tic);
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 2px;
    outline: none;
    text-align: center;
  }
  .lb-nick-btn {
    display: block;
    width: 100%;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
  }
  .lb-nick-btn:focus-visible {
    border-color: var(--x-green-hi);
    box-shadow: 0 0 0 1px rgba(156,217,60,0.35);
  }
  .lb-nick-btn.is-open {
    border-color: var(--x-green-hi);
    box-shadow: 0 0 0 1px rgba(156,217,60,0.35);
  }
  .lb-nick-display {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lb-nick-display--empty {
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 11px;
  }
  .lb-keyboard {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding:
      8px max(8px, env(safe-area-inset-right, 0px))
      max(8px, env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
    background: rgba(6, 6, 12, 0.98);
    border-top: 1px solid var(--x-green-deep);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    touch-action: manipulation;
    transform: translateY(100%);
    transition: transform 0.22s ease;
    pointer-events: none;
  }
  .lb-keyboard.is-open {
    transform: translateY(0);
    pointer-events: all;
  }
  .lb-keyboard[hidden] {
    display: block !important;
  }
  .lb-input-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 auto 8px;
    padding: 10px 12px;
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid var(--x-green-deep);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-tic);
    font-size: 14px;
    letter-spacing: 0.02em;
    min-height: 1.4em;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
  }
  .lb-input-bar::-webkit-scrollbar { display: none; }
  .lb-input-bar-text {
    white-space: nowrap;
  }
  .lb-input-bar-text:empty::before {
    content: attr(data-placeholder);
    color: rgba(255,255,255,0.35);
    font-style: italic;
  }
  .lb-input-bar-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: var(--x-green-hi);
    animation: lb-caret-blink 1s steps(2, start) infinite;
    flex-shrink: 0;
  }
  @keyframes lb-caret-blink {
    to { visibility: hidden; }
  }
  .lb-kb-row {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 5px;
  }
  .lb-kb-row:last-child {
    margin-bottom: 0;
  }
  .lb-kb-key {
    flex: 1 1 0;
    min-width: 0;
    max-width: 2.4rem;
    height: 2.35rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 2px;
    background: rgba(18, 18, 28, 0.95);
    color: #fff;
    font-family: var(--font-tic);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  .lb-kb-key:active {
    background: rgba(111, 170, 30, 0.28);
    border-color: var(--x-green-hi);
  }
  .lb-kb-key--wide {
    flex: 2.2 1 0;
    max-width: none;
  }
  .lb-kb-key--action {
    flex: 1.4 1 0;
    max-width: none;
    color: var(--x-green-hi);
    border-color: rgba(111, 170, 30, 0.45);
  }
  .lb-kb-key--done {
    flex: 1.6 1 0;
    max-width: none;
    background: linear-gradient(180deg, var(--x-green-hi) 0%, var(--x-green) 50%, var(--x-green-deep) 100%);
    color: #fff;
    border-color: var(--x-green-deep);
  }
  @media (prefers-reduced-motion: reduce) {
    .lb-keyboard { transition: none; }
  }
  @media (max-height: 740px) {
    #overlay:not(.title-lite) {
      padding-top: max(14px, calc(env(safe-area-inset-top, 0px) + 8px));
    }
    #overlay:not(.title-lite) .go-actions {
      margin-top: clamp(14px, 2vh, 20px);
    }
    .go-screen { gap: clamp(10px, 1.8vh, 16px); }
    .go-score { font-size: clamp(48px, 14vw, 80px); }
    .go-hero-card { padding: 14px 16px; }
    .go-brand { height: clamp(44px, 6.5vh, 54px); }
    .go-brand-rx { height: clamp(88px, 12.5vh, 108px); }
    .lb-list { max-height: min(20vh, 100px); }
    .lb-kb-key { height: 2.1rem; font-size: 11px; }
  }
  .lb-submit {
    width: 100%;
    padding: 12px 20px !important;
    font-size: 11px !important;
  }
  .lb-toast {
    min-height: 1.25em;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(155,240,11,0.85);
    text-align: center;
    font-family: var(--font-tic);
    line-height: 1.35;
    padding: 0 6px;
  }
  .lb-thanks {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(155,240,11,0.95);
    text-align: center;
    font-family: var(--font-tic);
    padding: 6px 8px;
    text-transform: uppercase;
  }
  .lb-heading {
    color: rgba(255,255,255,0.38);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-family: var(--font-tic);
    margin-top: 2px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .lb-heading::before,
  .lb-heading::after {
    content: '';
    flex: 1;
    max-width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(156,217,60,0.35), transparent);
  }
  .lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-tic);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    max-height: min(24vh, 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(8,8,14,0.55);
    border-radius: 2px;
  }
  .lb-li {
    display: grid;
    grid-template-columns: 1.65em 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    text-align: left;
  }
  .lb-li--in {
    animation: goFadeUp 0.38s ease backwards;
  }
  .lb-li--you {
    box-shadow: inset 0 0 0 1px rgba(156,217,60,0.35);
  }
  .lb-li--top {
    background: rgba(111,170,30,0.12);
    color: var(--x-green-hi);
  }
  .lb-li-rank {
    color: rgba(255,255,255,0.45);
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .lb-li--top .lb-li-rank {
    color: var(--x-green-hi);
  }
  @media (prefers-reduced-motion: reduce) {
    .go-fx__scan,
    .go-hero-card__road,
    .go-hero-card--top,
    #overlay:not(.title-lite) .go-actions .btn:not(.btn-go-secondary)::after {
      animation: none !important;
    }
    .lb-li--in,
    .go-kicker--in { animation: none !important; }
  }
