  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 999;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--bg);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
  }
  .skip-link:focus {
    left: 12px;
    top: 12px;
  }

  :root {
    --gold:  #c9a84c;
    --gold2: #ffe28a;
    --white: #f0f0f0;
    --dim:   #999;
    --bg:    #060606;
    --pulse: #ffe28a;
    --pulse-dim: rgba(255,226,138,0.35);
    --pulse-glow: rgba(201,168,76,0.45);
    --red:   #ff4466;
    --surface:        rgba(8,8,8,0.55);
    --surface-strong: rgba(8,8,8,0.92);
    --surface-inset:  rgba(201,168,76,0.04);
    --bd-gold:        rgba(201,168,76,0.22);
    --bd-gold-soft:   rgba(201,168,76,0.12);
    --bd-gold-strong: rgba(201,168,76,0.35);
    --radius-lg: 12px;
    --radius:    10px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
    --shell-max: 600px;
    --bar-h: 52px;
    --font-display: 'Orbitron', monospace;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  }

  html, body {
    width: 100%; height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);
  }

  .landing-title,
  .landing-hud,
  .landing-hud-item,
  .stat-lbl,
  .stat-val,
  .stat-sub,
  .deck-section-title,
  .deck-dist-title,
  .deck-fee-val,
  .deck-dist-pct,
  .deck-nav,
  .hud-label,
  .hud-value,
  .cta-button,
  .w3-btn,
  .w3-cell .lbl,
  .w3-cell .val,
  .pool-hero,
  .leader-hero,
  .leader-hero-sub,
  #gate-step,
  #gate-title,
  #gate-sub,
  #gate-back,
  .idle-dash-lbl,
  .idle-dash-val,
  .idle-dash-val.score,
  .idle-dash-gap,
  .landing-chain,
  .lore-label,
  .split-title,
  .split-lbl,
  .split-pct,
  .network-badge,
  .lang-btn,
  .shell-logo,
  #result-label,
  .result-score,
  .result-rating,
  .round-btn,
  #combo-streak,
  #countdown-num {
    font-family: var(--font-display);
  }

  body.landing-active {
    overflow: hidden;
    padding: 0;
  }
  body.landing-active #global-chrome {
    top: calc(12px + var(--safe-t));
    right: calc(16px + var(--safe-r));
    z-index: 15;
    display: flex;
  }
  body:not(.landing-active) #global-chrome { display: none; }
  #aurora-bg {
    opacity: 1;
    transition: opacity 0.45s ease;
  }
  body.landing-active #aurora-bg {
    opacity: 0.35;
  }
  body:not(.landing-active) #landing-field,
  body:not(.landing-active) .landing-vignette,
  body:not(.landing-active) .landing-particles {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
  }
  body.landing-active #landing-field,
  body.landing-active .landing-vignette,
  body.landing-active .landing-particles {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
  }

  #app-shell {
    width: 100%;
    max-width: var(--shell-max);
    min-height: 100%;
    margin: 0 auto;
    display: none;
    flex-direction: column;
    position: relative;
    z-index: 1;
  }
  #app-shell.active { display: flex; }
  #app-shell.locked #game-panel,
  #app-shell.locked #app-footer {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
  }

  /* ── Landing (reference style) ── */
  #site-landing {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: calc(30px + var(--safe-t)) 20px calc(30px + var(--safe-b));
    transition: opacity 0.5s ease, visibility 0.5s;
    overflow: hidden;
  }
  #site-landing.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  #landing-field {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  #landing-field polygon {
    transition: stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.5s ease, filter 0.2s ease;
  }

  .landing-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 60% at 50% 45%, transparent 0%, rgba(6,6,6,0.55) 72%, rgba(6,6,6,0.92) 100%),
      linear-gradient(180deg, rgba(6,6,6,0.35) 0%, transparent 18%, transparent 82%, rgba(6,6,6,0.5) 100%);
  }

  .scanlines {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 3px;
    opacity: 0.1;
    z-index: 3;
    pointer-events: none;
  }

  .effects-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
  }
  .cursor-halo {
    position: absolute;
    left: var(--cursor-x, 50%);
    top: var(--cursor-y, 50%);
    width: 30vw;
    height: 30vw;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255,226,138,0.15), rgba(255,226,138,0.04) 26%, transparent 68%);
    filter: blur(24px);
    opacity: var(--cursor-active, 0);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
  }
  .scan-wave {
    position: absolute;
    left: -10%; right: -10%;
    height: 12vh;
    background: linear-gradient(180deg, transparent, rgba(255,226,138,0.01) 28%, rgba(255,226,138,0.12) 50%, rgba(255,226,138,0.01) 72%, transparent);
    mix-blend-mode: screen;
    filter: blur(8px);
    transform: rotate(15deg);
  }
  .scan-wave-a { top: -15%; animation: sweepDown 8s linear infinite; }
  .scan-wave-b { top: -15%; animation: sweepDown 8s linear infinite; animation-delay: 4s; opacity: 0.6; }
  .ambient { position: absolute; border-radius: 9999px; filter: blur(80px); mix-blend-mode: screen; opacity: 0.6; }
  .ambient-one { width: 40vw; height: 40vw; top: -10vw; left: -8vw; background: radial-gradient(circle, rgba(201,168,76,0.22), transparent 68%); animation: driftOne 22s ease-in-out infinite; }
  .ambient-two { width: 35vw; height: 35vw; top: 10vw; right: -10vw; background: radial-gradient(circle, rgba(255,226,138,0.14), transparent 68%); animation: driftTwo 26s ease-in-out infinite; }
  .ambient-three { width: 32vw; height: 32vw; bottom: -12vw; left: 8vw; background: radial-gradient(circle, rgba(80,60,20,0.18), transparent 70%); animation: driftThree 28s ease-in-out infinite; }
  .ambient-four { width: 25vw; height: 25vw; bottom: 4vw; right: 12vw; background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 66%); animation: driftFour 18s ease-in-out infinite; }

  .landing-shell {
    width: 100%;
    max-width: 520px;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 5;
    gap: 12px;
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .landing-shell::-webkit-scrollbar { display: none; }

  .landing-hud {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 2px;
    padding: 0 4px;
    animation: landingFadeUp 0.7s ease both;
  }

  .landing-hud-item {
    color: rgba(201,168,76,0.55);
    white-space: nowrap;
  }

  #landing-hud-epoch {
    text-align: right;
  }

  .landing-hero {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    padding: 8px 0;
    overflow: visible;
  }

  .title-wrap {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-inline: 12px;
    overflow: visible;
    flex-shrink: 0;
    container-type: inline-size;
    container-name: landing-title;
    animation: landingFadeUp 0.8s ease 0.1s both;
  }

  .title-ornament {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    height: 32px;
    padding: 0;
    overflow: visible;
  }
  .title-ornament-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(201,168,76,0.22) 14%,
      rgba(201,168,76,0.38) 50%,
      rgba(201,168,76,0.22) 86%,
      transparent 100%
    );
    box-shadow: 0 0 8px rgba(201,168,76,0.12);
    pointer-events: none;
  }
  .title-ornament-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 30%;
    height: 3px;
    transform: translateY(-50%) translateX(-110%);
    border-radius: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,226,138,0.5) 20%,
      var(--gold2) 50%,
      rgba(255,226,138,0.5) 80%,
      transparent 100%
    );
    box-shadow:
      0 0 14px rgba(255,226,138,0.85),
      0 0 30px rgba(201,168,76,0.6);
    animation: ornamentPulseTravel 2.4s linear infinite;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 1;
  }

  .title-hex {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transform-origin: center center;
    filter: drop-shadow(0 0 5px rgba(201,168,76,0.45));
    animation: ornamentBoltFlash 2.4s linear infinite;
  }

  .landing-title {
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.35rem, 5.2vw, 2.5rem);
    line-height: 1.5;
    padding: 0.38em 0.12em 0.44em;
    letter-spacing: 0.04em;
    font-weight: 900;
    color: var(--white);
    overflow: visible;
    flex-shrink: 0;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    text-shadow:
      0 0 10px rgba(255,226,138,0.2),
      0 0 40px rgba(201,168,76,0.15),
      -2px 0 0 rgba(255,226,138,0.3),
      2px 0 0 rgba(201,168,76,0.2);
  }
  @container landing-title (min-width: 0px) {
    .landing-title {
      font-size: clamp(1.35rem, 10.2cqw, 2.65rem);
    }
  }
  @media (min-width: 601px) {
    .landing-title {
      animation: glitchPulse 6s infinite steps(1, end);
    }
  }

  .landing-tagline {
    width: 100%;
    max-width: 340px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: var(--dim);
    text-transform: none;
    animation: landingFadeUp 0.85s ease 0.18s both;
  }

  .landing-panel {
    position: relative;
    width: 100%;
    padding: 20px 18px 18px;
    background: var(--surface);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
      0 0 40px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,226,138,0.06),
      inset 0 0 30px rgba(201,168,76,0.03);
    animation: landingFadeUp 0.85s ease 0.22s both, neuralBorderPulse 4s ease-in-out infinite;
    animation-delay: 0.22s, 0.5s;
  }
  .landing-panel::before,
  .landing-panel::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.65;
    pointer-events: none;
  }
  .landing-panel::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
  }
  .landing-panel::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
  }
  .panel-corner-tr,
  .panel-corner-bl {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.65;
    pointer-events: none;
  }
  .panel-corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
  .panel-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }

  .lore-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .lore-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    text-align: left;
  }
  .lore-section:last-child { margin-bottom: 0; }

  .lore-label {
    margin: 0;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.75;
  }

  .lore-body {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: rgba(240,240,240,0.9);
  }

  .lore-fees {
    margin: 0;
    padding: 10px 12px;
    border-left: 2px solid var(--gold2);
    background: linear-gradient(90deg, rgba(201,168,76,0.08), transparent);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.4px;
    color: var(--gold2);
    text-shadow: 0 0 10px rgba(201,168,76,0.2);
  }

  .lore-footnote {
    margin: 4px 0 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    color: var(--dim);
    opacity: 0.85;
  }

  .lore-section-economy { gap: 10px; }

  .split-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px;
    border: 1px solid var(--bd-gold-soft);
    border-radius: var(--radius-sm);
    background: var(--surface-inset);
  }

  .split-title {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,226,138,0.65);
  }

  .split-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .split-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--bd-gold-soft);
    min-width: 0;
  }

  .split-lbl {
    font-size: 7px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
    text-align: center;
    line-height: 1.2;
  }

  .split-pct {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold2);
    font-variant-numeric: tabular-nums;
  }

  .split-amt {
    font-size: 8px;
    color: rgba(240,240,240,0.55);
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1.2;
  }

  .step-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(201,168,76,0.12);
  }
  .step-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .step-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold2);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 0 14px rgba(201,168,76,0.12), inset 0 0 10px rgba(201,168,76,0.05);
    position: relative;
    animation: stepGlow 3s ease-in-out infinite;
  }
  .step-node:nth-child(1) .step-ring { animation-delay: 0s; }
  .step-node:nth-child(3) .step-ring { animation-delay: 0.45s; }
  .step-node:nth-child(5) .step-ring { animation-delay: 0.9s; }
  .step-node:nth-child(7) .step-ring { animation-delay: 1.35s; }
  .step-ring::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255,226,138,0.15);
    animation: stepRingPulse 2.5s ease-out infinite;
  }
  .step-label {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: rgba(240,240,240,0.65);
    text-align: center;
    line-height: 1.35;
    max-width: 72px;
  }
  .step-connector {
    flex: 0 0 16px;
    height: 1px;
    margin-top: 18px;
    background: linear-gradient(90deg, rgba(201,168,76,0.15), rgba(255,226,138,0.45), rgba(201,168,76,0.15));
    box-shadow: 0 0 6px rgba(201,168,76,0.2);
    position: relative;
    overflow: hidden;
  }
  .step-connector::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,226,138,0.8), transparent);
    animation: connectorSweep 2.2s ease-in-out infinite;
  }
  .step-connector:nth-of-type(2)::after { animation-delay: 0.3s; }
  .step-connector:nth-of-type(4)::after { animation-delay: 0.65s; }
  .step-connector:nth-of-type(6)::after { animation-delay: 1s; }

  .landing-how-wrap {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 0 4px;
    animation: landingFadeUp 0.9s ease 0.32s both;
  }
  .landing-how-wrap .nc-how-it-works {
    width: 100%;
    max-width: 420px;
  }

  .landing-cta-wrap {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 4px 0 8px;
    animation: landingFadeUp 0.9s ease 0.38s both;
  }

  .cta-outer {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
  }
  .cta-outer::before {
    content: "";
    position: absolute;
    inset: -8px -12px;
    border-radius: 2px;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.18), transparent 70%);
    filter: blur(8px);
    animation: ctaAura 2.8s ease-in-out infinite;
    pointer-events: none;
  }

  .cta-button {
    position: relative;
    width: 100%;
    padding: 18px 28px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(201,168,76,0.1) 0%, rgba(8,8,8,0.6) 100%);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow:
      0 0 24px rgba(201,168,76,0.15),
      inset 0 0 20px rgba(201,168,76,0.06);
    backdrop-filter: blur(6px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .cta-button::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,226,138,0.18), transparent);
    animation: ctaShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
  }
  .cta-button:hover {
    color: #fff;
    border-color: var(--gold2);
    background: linear-gradient(180deg, rgba(201,168,76,0.16) 0%, rgba(12,12,12,0.7) 100%);
    box-shadow:
      0 0 32px rgba(255,226,138,0.3),
      inset 0 0 24px rgba(255,226,138,0.08);
    transform: translateY(-2px);
  }
  .cta-button:active { transform: scale(0.98) translateY(0); }
  .cta-outer.hud-scan-card,
  .result-play-wrap.hud-scan-card {
    border-radius: var(--radius-lg);
  }
  .cta-outer.hud-scan-card::before,
  .result-play-wrap.hud-scan-card::before {
    border-radius: inherit;
  }
  .cta-outer.hud-scan-card .cta-button,
  .result-play-wrap.hud-scan-card .cta-button {
    width: 100%;
    border: none;
    border-radius: calc(var(--radius-lg) - 1px);
    background: linear-gradient(180deg, rgba(201,168,76,0.1) 0%, rgba(8,8,8,0.6) 100%);
    color: var(--white);
    letter-spacing: 3px;
    box-shadow: inset 0 0 20px rgba(201,168,76,0.06);
  }
  .cta-outer.hud-scan-card .cta-button:hover,
  .result-play-wrap.hud-scan-card .cta-button:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(201,168,76,0.16) 0%, rgba(12,12,12,0.7) 100%);
    box-shadow: inset 0 0 24px rgba(255,226,138,0.08);
    transform: translateY(-2px);
  }
  .cta-button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
  .cta-button.loading,
  .w3-btn.loading,
  .round-btn.loading {
    pointer-events: none;
    opacity: 0.85;
  }
  .cta-button.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cta-button.loading::before {
    position: static;
    display: inline-block;
    top: auto;
    left: auto;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    transform: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
  }
  .w3-btn.loading::before,
  .round-btn.loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    vertical-align: middle;
  }

  .landing-chain {
    flex-shrink: 0;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--gold);
    opacity: 0.45;
    text-align: center;
    width: 100%;
    padding-bottom: 2px;
    animation: landingFadeUp 1s ease 0.48s both;
  }

  .landing-disclaimer {
    flex-shrink: 0;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 12px 8px;
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: 0.2px;
    color: var(--dim);
    opacity: 0.55;
    text-align: center;
    animation: landingFadeUp 1s ease 0.52s both;
  }
  .landing-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 4px 12px calc(12px + var(--safe-b));
    text-align: center;
    animation: landingFadeUp 1s ease 0.56s both;
  }

  .landing-particles {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
  }
  .landing-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--gold2);
    box-shadow: 0 0 6px var(--gold);
    opacity: 0.35;
    animation: particleDrift var(--dur, 8s) linear infinite;
    animation-delay: var(--delay, 0s);
  }

  #global-chrome {
    position: fixed;
    top: calc(var(--safe-t) + 8px);
    right: calc(12px + var(--safe-r));
    z-index: 80;
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    align-items: center;
    max-width: calc(100vw - 24px - var(--safe-l) - var(--safe-r));
  }

  #shell-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px;
    gap: 10px;
    min-height: 44px;
  }
  .shell-header-left,
  .shell-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .shell-header-right { flex-shrink: 0; }
  #home-btn {
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 6px 10px;
    min-height: 32px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--bd-gold-strong);
    background: var(--surface-strong);
    color: var(--dim);
    cursor: pointer;
    touch-action: manipulation;
  }
  #home-btn:hover { color: var(--gold); border-color: var(--gold); }
  #shell-header #help-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 11px;
  }

  #game-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 12px;
  }

  #game-arena {
    position: relative;
    flex: 1;
    min-height: 300px;
    max-height: min(62vh, 560px);
    overflow: hidden;
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius);
    background:
      radial-gradient(ellipse 75% 65% at 50% 48%, rgba(201,168,76,0.07) 0%, transparent 62%),
      radial-gradient(ellipse 100% 100% at 50% 50%, rgba(12,12,12,0.4) 0%, rgba(0,0,0,0.85) 100%);
    box-shadow:
      inset 0 0 50px rgba(0,0,0,0.55),
      0 0 24px rgba(201,168,76,0.08);
  }
  #game-arena::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(ellipse 95% 90% at 50% 50%, transparent 35%, rgba(0,0,0,0.55) 100%);
  }

  #field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  #field polygon {
    shape-rendering: geometricPrecision;
  }

  #aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }

  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
  }

  .blob-1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(201,168,76,0.18) 0%, transparent 70%);
    top: -15%; left: -10%;
    animation: orbitA 28s ease-in-out infinite;
  }
  .blob-2 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(255,226,138,0.12) 0%, transparent 70%);
    bottom: -20%; right: -15%;
    animation: orbitB 24s ease-in-out infinite;
  }
  .blob-3 {
    width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(80,60,20,0.15) 0%, transparent 70%);
    top: 30%; left: 25%;
    animation: orbitC 32s ease-in-out infinite;
  }
  .blob-4 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(201,168,76,0.14) 0%, transparent 70%);
    top: -5%; right: 5%;
    animation: orbitD 20s ease-in-out infinite;
  }

  @keyframes orbitA {
    0%   { transform: translate(0, 0)      scale(1); }
    25%  { transform: translate(18vw, 12vh) scale(1.1); }
    50%  { transform: translate(10vw, 28vh) scale(0.95); }
    75%  { transform: translate(-5vw, 15vh) scale(1.05); }
    100% { transform: translate(0, 0)      scale(1); }
  }
  @keyframes orbitB {
    0%   { transform: translate(0, 0)       scale(1); }
    30%  { transform: translate(-20vw, -10vh) scale(1.08); }
    60%  { transform: translate(-12vw, -25vh) scale(0.92); }
    80%  { transform: translate(5vw, -8vh)  scale(1.04); }
    100% { transform: translate(0, 0)       scale(1); }
  }
  @keyframes orbitC {
    0%   { transform: translate(0, 0)       scale(1); }
    20%  { transform: translate(-12vw, -8vh) scale(1.12); }
    50%  { transform: translate(8vw, 14vh)  scale(0.9); }
    80%  { transform: translate(14vw, -6vh) scale(1.06); }
    100% { transform: translate(0, 0)       scale(1); }
  }
  @keyframes orbitD {
    0%   { transform: translate(0, 0)      scale(1); }
    35%  { transform: translate(-15vw, 18vh) scale(1.15); }
    65%  { transform: translate(-8vw, 30vh) scale(0.88); }
    100% { transform: translate(0, 0)      scale(1); }
  }

  .hex-flash { animation: hexFlash 0.22s ease-out; }

  #lang-switch,
  #lang-switch-game {
    display: flex;
    gap: 4px;
  }
  #lang-switch { margin-left: auto; }
  .lang-btn {
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 5px 8px;
    min-height: 32px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--bd-gold-strong);
    background: var(--surface-strong);
    color: var(--dim);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .lang-btn.active {
    color: var(--gold2);
    border-color: var(--gold);
    background: rgba(201,168,76,0.12);
  }

  #help-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 1px solid var(--bd-gold-strong);
    background: var(--surface-strong);
    color: var(--gold);
    cursor: pointer;
    touch-action: manipulation;
  }

  #app-footer {
    flex-shrink: 0;
    padding: 8px 12px 12px;
    text-align: center;
  }
  #footer-copyright,
  .footer-copyright {
    margin-top: 0;
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  .footer-copy {
    color: var(--gold);
    opacity: 0.4;
  }
  .footer-manifest {
    color: var(--gold2);
    opacity: 0.85;
    text-shadow:
      0 0 6px rgba(201, 168, 76, 0.35),
      0 0 14px rgba(255, 226, 138, 0.18);
  }
  .footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
  }
  .footer-legal-sep {
    color: var(--gold);
    opacity: 0.25;
    font-size: 9px;
  }
  .footer-legal-link {
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.45;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s, opacity 0.2s, text-shadow 0.2s;
  }
  .footer-legal-link:hover,
  .footer-legal-link:focus-visible {
    opacity: 1;
    color: var(--gold2);
    text-shadow:
      0 0 6px rgba(201, 168, 76, 0.35),
      0 0 12px rgba(255, 226, 138, 0.15);
    outline: none;
  }

  .legal-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px calc(24px + var(--safe-b));
    background: rgba(10, 9, 7, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
  }
  .legal-modal.show {
    display: flex;
    pointer-events: all;
    animation: fadeIn 0.3s ease;
  }
  .legal-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(520px, 92vw);
    max-height: min(72vh, 640px);
    background: rgba(12, 11, 9, 0.98);
    border: 1px solid #d4af37;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.65);
  }
  .legal-modal-card::before,
  .legal-modal-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.55;
    pointer-events: none;
  }
  .legal-modal-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .legal-modal-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
  .legal-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
  }
  .legal-modal-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.4;
  }
  .legal-modal-close {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.75;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 6px 8px;
    cursor: pointer;
    touch-action: manipulation;
    transition: color 0.2s, opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  .legal-modal-close:hover,
  .legal-modal-close:focus-visible {
    opacity: 1;
    color: var(--gold2);
    border-color: var(--gold2);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.25);
    outline: none;
  }
  .legal-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px 18px;
    font-family: var(--font-body);
    font-size: 11px;
    line-height: 1.65;
    color: var(--white);
    opacity: 0.88;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.45) rgba(10, 9, 7, 0.5);
  }
  .legal-modal-body::-webkit-scrollbar { width: 6px; }
  .legal-modal-body::-webkit-scrollbar-track {
    background: rgba(10, 9, 7, 0.5);
  }
  .legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.45);
    border-radius: 3px;
  }
  .legal-modal-body p { margin: 0 0 10px; }
  .legal-modal-body p:last-child { margin-bottom: 0; }
  .legal-modal-body .legal-updated {
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--gold);
    opacity: 0.55;
    text-transform: uppercase;
  }
  .legal-modal-body h3 {
    margin: 14px 0 6px;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--gold2);
  }
  .legal-modal-body h3:first-of-type { margin-top: 0; }
  .legal-modal-body .legal-text { white-space: pre-line; }

  #help-dialog {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 20px calc(24px + var(--safe-b));
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
  }
  #help-dialog.show {
    display: flex;
    pointer-events: all;
    animation: fadeIn 0.3s ease;
  }
  .help-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 18px 16px 14px;
    background: var(--surface-strong);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    text-align: left;
  }
  .help-card::before,
  .help-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.55;
    pointer-events: none;
  }
  .help-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .help-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
  #help-dialog-title {
    margin: 0 0 10px;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--gold);
  }
  .help-card ol {
    margin: 0 0 14px;
    padding: 0 0 0 20px;
    line-height: 1.65;
    opacity: 0.85;
    font-size: 11px;
    color: var(--white);
  }
  .help-card li { margin-bottom: 4px; }
  #help-dialog-close {
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 10px 14px;
    min-height: 36px;
    width: 100%;
    border: 1px solid var(--bd-gold-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--gold);
    cursor: pointer;
    touch-action: manipulation;
  }
  #help-dialog-close:hover {
    color: var(--gold2);
    border-color: var(--gold);
  }

  #nc-economics:not(.pool-dash-footnote) {
    display: block;
    font-size: 10px;
    letter-spacing: 0;
    color: var(--gold);
    opacity: 0.7;
    margin-top: 5px;
    text-align: center;
  }

  .network-badge {
    display: inline-block;
    font-size: 5px;
    letter-spacing: 1.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 7px;
    margin-top: 3px;
  }
  .network-badge.net-testnet {
    color: #7dce82;
    border: 1px solid rgba(125,206,130,0.45);
    background: rgba(125,206,130,0.08);
  }
  .network-badge.net-mainnet {
    color: var(--gold2);
    border: 1px solid rgba(201,168,76,0.45);
    background: rgba(201,168,76,0.08);
  }

  .explorer-link {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0;
    color: var(--gold2);
    opacity: 0.75;
    text-decoration: none;
    margin-top: 3px;
  }
  .explorer-link:hover { opacity: 1; text-decoration: underline; }

  /* ── HUD (above arena, inside shell) ── */
  #hud {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding: 8px 12px 10px;
    flex-shrink: 0;
  }
  .hud-block { display: flex; flex-direction: column; gap: 3px; flex: 1; }
  .hud-block.hud-center {
    text-align: center;
    align-items: center;
    flex: 1.15;
    min-width: 0;
    padding: 0 4px;
  }
  .hud-block.hud-center.hidden { display: none; }
  .hud-leader-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--gold2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .hud-leader-score {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    line-height: 1.1;
  }
  .hud-block.hud-center.you-lead .hud-leader-name {
    color: var(--gold2);
    text-shadow: 0 0 12px rgba(255,226,138,0.35);
  }
  .hud-block.hud-center.you-lead .hud-leader-score {
    color: var(--gold2);
    text-shadow: 0 0 14px rgba(201,168,76,0.45);
  }
  .hud-block.hud-right { text-align: right; align-items: flex-end; }
  .hud-label { font-size: 8px; letter-spacing: 4px; color: var(--gold); opacity: 0.55; }
  .hud-value {
    font-size: 26px; font-weight: 900;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.25);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s, text-shadow 0.3s, transform 0.15s;
  }
  #timer.warning { color: var(--gold); text-shadow: 0 0 16px var(--gold), 0 0 32px var(--gold); }
  #timer.critical {
    color: var(--red);
    text-shadow: 0 0 18px var(--red), 0 0 36px rgba(255,68,102,0.5);
    animation: timerPulse 0.45s ease-in-out infinite;
  }
  #timer.glitch { animation: glitch 0.11s infinite; }
  #timer.tick-bump { transform: scale(1.12); }
  .hud-value.beat-best {
    color: var(--gold2);
    text-shadow: 0 0 14px var(--gold), 0 0 28px var(--gold2);
  }

  #mute-btn,
  #result-mute-btn {
    position: relative;
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--bd-gold-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    color: var(--gold);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  #mute-btn::before,
  #mute-btn::after,
  #result-mute-btn::before,
  #result-mute-btn::after {
    content: none;
  }
  .mute-btn .sound-icon {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(201,168,76,0.35));
  }
  .mute-btn .sound-icon-off {
    display: none;
  }
  .mute-btn.muted .sound-icon-on {
    display: none;
  }
  .mute-btn.muted .sound-icon-off {
    display: block;
  }
  .mute-btn.muted {
    opacity: 0.45;
  }
  .mute-btn.muted .sound-icon {
    filter: none;
  }

  #mute-btn {
    font-family: inherit;
    grid-column: 3;
    justify-self: end;
  }

  #result-mute-btn {
    position: fixed;
    top: calc(12px + var(--safe-t));
    right: calc(12px + var(--safe-r));
    z-index: 105;
    display: none;
    font-family: inherit;
  }
  #result.show ~ #result-mute-btn,
  #result-mute-btn.show { display: flex; }
  #result-mute-btn.muted { opacity: 0.45; }

  #nc-share-btn { margin-top: 6px; }

  /* ── Web3 header (3 columns) ── */
  #web3-bar {
    flex-shrink: 0;
    display: none;
    align-items: stretch;
    justify-content: space-between;
    gap: 7px;
    padding: 7px 8px;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--bd-gold);
    backdrop-filter: blur(6px);
  }
  #web3-bar.show { display: flex; }

  #hud.hud-idle .hud-value {
    font-size: 20px;
    color: var(--dim);
    text-shadow: none;
  }
  #hud.hud-idle .hud-label {
    opacity: 0.45;
  }

  .w3-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-width: 0;
  }
  .w3-col.w3-left {
    flex: 1 1 0;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 8px;
    background: var(--surface);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,226,138,0.05);
  }
  .w3-col.w3-left.wallet-hud {
    position: relative;
    width: 100%;
    gap: 8px;
    padding: 10px 10px 12px;
    background: rgba(20, 18, 14, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    font-family: 'Orbitron', monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .w3-col.w3-left.wallet-hud:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
  }
  .w3-col.w3-left.wallet-hud:not(.hud-scan-card)::before,
  .w3-col.w3-left.wallet-hud::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.45;
    pointer-events: none;
  }
  .w3-col.w3-left.wallet-hud:not(.hud-scan-card)::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
  }
  .w3-col.w3-left.wallet-hud::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
  }
  .wallet-hud-micro {
    font-size: 6px;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.45;
    text-transform: uppercase;
  }
  .wallet-hud .w3-cell .val {
    max-width: 120px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(201, 168, 76, 0.25);
  }
  .wallet-hud .network-badge {
    align-self: flex-start;
  }
  .wallet-ref-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    min-height: 32px;
    font-family: 'Orbitron', monospace;
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--gold2);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(8, 8, 8, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 0;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  .wallet-ref-btn:hover {
    filter: none;
    color: var(--bg);
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    border-color: var(--gold2);
    box-shadow:
      0 0 16px rgba(255, 226, 138, 0.35),
      0 0 32px rgba(201, 168, 76, 0.2);
  }
  .wallet-ref-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .w3-col.w3-center { flex: 1 1 auto; align-items: center; text-align: center; }
  .w3-col.w3-center.pool-dash {
    position: relative;
    align-items: stretch;
    text-align: left;
    gap: 4px;
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 10px 6px;
    background: rgba(20, 18, 14, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
    font-family: 'Orbitron', monospace;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .w3-col.w3-center.pool-dash:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
  }
  .w3-col.w3-center.pool-dash:not(.hud-scan-card)::before,
  .w3-col.w3-center.pool-dash::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.45;
    pointer-events: none;
  }
  .w3-col.w3-center.pool-dash:not(.hud-scan-card)::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
  }
  .w3-col.w3-center.pool-dash::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
  }
  .pool-dash-micro {
    font-size: 6px;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.45;
    text-transform: uppercase;
  }
  .pool-dash-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    min-width: 0;
  }
  .pool-dash-lbl {
    display: block;
    line-height: 1.2;
    flex-shrink: 0;
  }
  #web3-bar .pool-dash-lbl {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: var(--gold);
    opacity: 0.6;
  }
  .pool-dash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }
  .pool-dash-val {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pool-dash-explorer {
    flex: 0 0 auto;
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 0;
    opacity: 0.65;
    white-space: nowrap;
  }
  .pool-dash-footnote {
    display: block;
    font-size: 9px;
    letter-spacing: 0.3px;
    color: var(--dim);
    opacity: 0.5;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    padding-top: 4px;
    margin-top: 2px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .pool-dash-js-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .w3-col.w3-right {
    flex: 1 1 0;
    align-items: stretch;
    justify-content: center;
  }
  .w3-col.w3-right.game-hud {
    position: relative;
    gap: 6px;
    padding: 10px 10px 12px;
    background: rgba(20, 18, 14, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    font-family: 'Orbitron', monospace;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .w3-col.w3-right.game-hud:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
  }
  .w3-col.w3-right.game-hud:not(.hud-scan-card)::before,
  .w3-col.w3-right.game-hud::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.45;
    pointer-events: none;
  }
  .w3-col.w3-right.game-hud:not(.hud-scan-card)::before {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
  }
  .w3-col.w3-right.game-hud::after {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
  }
  .game-hud-micro {
    font-size: 6px;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.45;
    text-transform: uppercase;
  }
  .game-hud-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .game-hud-lbl {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: var(--gold);
    opacity: 0.6;
    line-height: 1.2;
  }
  .game-hud-hint {
    margin: 0;
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 0.3px;
    color: var(--white);
    opacity: 0.85;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .w3-right-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: stretch;
    width: 100%;
  }
  .w3-right-actions .w3-btn {
    width: 100%;
  }

  .w3-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  #web3-bar .w3-col > .lbl,
  .w3-cell .lbl { font-size: 7px; letter-spacing: 1.5px; color: var(--gold); opacity: 0.6; }
  .w3-cell .val { font-size: 9px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 98px; }
  .pool-hero {
    font-size: 14px;
    font-weight: 900;
    color: var(--gold2);
    text-shadow: 0 0 8px rgba(201,168,76,0.4);
    line-height: 1.1;
  }
  .pool-dash .pool-hero.pool-dash-val {
    font-size: 13px;
    line-height: 1.2;
    text-shadow: 0 0 6px rgba(201, 168, 76, 0.3);
  }
  .leader-hero {
    font-size: 8px;
    color: var(--white);
    margin-top: 1px;
  }
  .leader-hero-sub {
    font-size: 7px;
    color: var(--gold2);
    opacity: 0.8;
  }
  #app-shell:not(.game-idle) .leader-hero {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold2);
  }
  #app-shell:not(.game-idle) .leader-hero-sub {
    font-size: 16px;
    font-weight: 900;
    color: var(--white);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.15);
  }

  .w3-col.w3-center:not(.pool-dash) .explorer-link {
    align-self: center;
    margin-top: 3px;
  }
  .w3-col.w3-center.pool-dash .pool-dash-explorer {
    align-self: center;
    margin-top: 0;
  }

  .w3-btn {
    font-family: var(--font-display);
    font-size: 7px; letter-spacing: 1.5px; font-weight: 700;
    color: var(--bg);
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    border: none; border-radius: var(--radius-sm);
    padding: 6px 8px;
    min-height: 31px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: filter 0.15s, transform 0.1s;
  }
  .w3-btn:hover { filter: brightness(1.1); }
  .w3-btn:active { transform: scale(0.96); }
  .w3-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .w3-btn.ghost {
    background: transparent; color: var(--gold);
    border: 1px solid rgba(201,168,76,0.5);
  }

  #nc-claim-wrap {
    width: 100%;
    display: flex;
  }
  .claim-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
  .claim-advanced {
    width: 100%;
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.25);
    padding: 6px 8px;
  }
  .claim-advanced > summary {
    cursor: pointer;
    font-size: 7px;
    letter-spacing: 1.4px;
    color: var(--gold);
    opacity: 0.75;
    list-style: none;
    user-select: none;
  }
  .claim-advanced > summary::-webkit-details-marker { display: none; }
  .claim-advanced[open] > summary { margin-bottom: 6px; opacity: 1; }
  .claim-advanced-hint {
    margin: 0 0 8px;
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.75;
  }
  .claim-advanced-lbl {
    display: block;
    font-size: 7px;
    letter-spacing: 0.6px;
    color: var(--muted);
    line-height: 1.35;
    margin-bottom: 4px;
  }
  .claim-advanced-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
    padding: 7px 8px;
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.4px;
    color: var(--white);
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: var(--radius);
  }
  .claim-advanced-input:focus {
    outline: none;
    border-color: rgba(201,168,76,0.65);
    box-shadow: 0 0 0 1px rgba(201,168,76,0.2);
  }
  .tx-explainer {
    width: 100%;
    border: 1px solid rgba(201,168,76,0.22);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.25);
    padding: 6px 8px;
    box-sizing: border-box;
  }
  .tx-explainer > summary {
    cursor: pointer;
    font-size: 7px;
    letter-spacing: 1.4px;
    color: var(--gold);
    opacity: 0.75;
    list-style: none;
    user-select: none;
  }
  .tx-explainer > summary::-webkit-details-marker { display: none; }
  .tx-explainer[open] > summary { margin-bottom: 6px; opacity: 1; }
  .tx-explainer-body {
    margin: 0 0 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--white);
    opacity: 0.88;
  }
  .tx-explainer-link {
    display: inline-block;
    font-size: 8px;
    letter-spacing: 0.6px;
    color: var(--gold2);
    text-decoration: none;
    opacity: 0.9;
  }
  .tx-explainer-link:hover {
    opacity: 1;
    text-decoration: underline;
  }
  #gate-tx-explainer { margin-bottom: 4px; }
  .result-tx-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    margin-top: 14px;
  }
  .result-tx-panel #nc-submit-btn {
    margin-top: 0;
    width: 100%;
    max-width: none;
  }
  #nc-claim-to-btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  #nc-claim-btn {
    position: relative;
    width: 100%;
    padding: 11px 10px;
    font-size: 8px;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: var(--bg);
    box-shadow:
      0 0 24px rgba(255,226,138,0.35),
      0 0 48px rgba(201,168,76,0.18),
      inset 0 1px 0 rgba(255,255,255,0.35);
    animation: claimGlow 2.6s ease-in-out infinite;
    overflow: hidden;
  }
  #nc-claim-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: ctaShimmer 3.2s ease-in-out infinite;
    pointer-events: none;
  }
  #nc-claim-btn:hover {
    filter: brightness(1.08);
    box-shadow:
      0 0 32px rgba(255,226,138,0.5),
      0 0 60px rgba(201,168,76,0.28),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }
  @keyframes claimGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(255,226,138,0.3), 0 0 48px rgba(201,168,76,0.16), inset 0 1px 0 rgba(255,255,255,0.35); }
    50%      { box-shadow: 0 0 34px rgba(255,226,138,0.5), 0 0 64px rgba(201,168,76,0.3), inset 0 1px 0 rgba(255,255,255,0.4); }
  }

  /* ── Gate overlay (same visual language as landing) ── */
  #gate {
    position: fixed; inset: 0;
    z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column;
    padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
    background: rgba(6,6,6,0.92);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #gate.show { display: flex; animation: fadeIn 0.35s ease; }

  .gate-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 28px 22px 24px;
    background: var(--surface);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
      0 0 50px rgba(0,0,0,0.55),
      inset 0 1px 0 rgba(255,226,138,0.06);
    animation: landingFadeUp 0.45s ease both;
  }
  .gate-shell::before,
  .gate-shell::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.65;
    pointer-events: none;
  }
  .gate-shell::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .gate-shell::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

  #gate-step {
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--gold2);
    text-shadow: 0 0 15px rgba(255,226,138,0.3);
  }
  #gate-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,226,138,0.15);
    line-height: 1.1;
  }
  #gate-text {
    width: 100%;
    padding-left: 14px;
    border-left: 2px solid var(--gold);
    color: rgba(240,240,240,0.88);
    text-align: left;
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0;
    text-transform: none;
  }
  #gate-sub {
    font-size: 8px;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.55;
  }
  #gate-back {
    margin-top: 8px;
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--dim);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    touch-action: manipulation;
  }
  #gate-back:hover { color: var(--gold); }
  #gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    align-items: stretch;
  }
  #gate-btn,
  #gate-btn-secondary {
    width: 100%;
  }
  #gate-btn-secondary.cta-button.ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.45);
    box-shadow: none;
  }
  #gate-btn-secondary.cta-button.ghost:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 12px rgba(201,168,76,0.2);
  }

  #wallet-picker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
  }
  #wallet-picker.show { display: flex; }
  .wallet-picker-shell {
    width: min(100%, 360px);
    padding: 24px 20px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: rgba(8, 8, 8, 0.95);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.12);
  }
  #wallet-picker-title {
    margin: 0 0 16px;
    font-family: Orbitron, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-align: center;
  }
  #wallet-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }
  .wallet-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: Inter, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }
  .wallet-picker-item:hover {
    border-color: rgba(201, 168, 76, 0.55);
    background: rgba(201, 168, 76, 0.08);
  }
  .wallet-picker-item img { border-radius: 6px; flex-shrink: 0; }
  #wallet-picker-cancel { width: 100%; }

  .landing-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }
  #hint {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    text-align: center;
    font-size: 8px;
    letter-spacing: 4px;
    color: var(--gold);
    opacity: 0.45;
    z-index: 5;
    animation: breathe 2s ease-in-out infinite;
    pointer-events: none;
  }
  #hint.hidden { display: none; }

  #coach-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 20px calc(24px + var(--safe-b));
    background: rgba(0,0,0,0.55);
    pointer-events: none;
  }
  #coach-overlay.show {
    display: flex;
    pointer-events: all;
    animation: fadeIn 0.3s ease;
  }
  .coach-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 18px 16px 14px;
    background: var(--surface-strong);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
  }
  .coach-card::before,
  .coach-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.55;
    pointer-events: none;
  }
  .coach-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .coach-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
  #coach-text {
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: 0;
    color: var(--white);
    margin-bottom: 14px;
  }
  .coach-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }
  #coach-skip {
    font-family: inherit;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--dim);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
  }
  #coach-next {
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: var(--bg);
    cursor: pointer;
  }

  #idle-dashboard {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px 28px;
    pointer-events: none;
  }
  #idle-dashboard.hidden { display: none; }

  .idle-dash-panel {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px 14px;
    background: var(--surface);
    border: 1px solid var(--bd-gold);
    border-radius: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
      0 0 20px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 226, 138, 0.04);
    animation: landingFadeUp 0.5s ease both;
    pointer-events: all;
  }
  .idle-dash-panel:not(.hud-scan-card)::before,
  .idle-dash-panel::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.5;
    pointer-events: none;
  }
  .idle-dash-panel:not(.hud-scan-card)::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
  .idle-dash-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
  .idle-dash-pool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
  }
  .idle-dash-pool-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold2);
    text-shadow: 0 0 14px rgba(201, 168, 76, 0.35);
    line-height: 1;
  }
  .idle-dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .idle-dash-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 8px;
    background: var(--surface-inset);
    border: 1px solid var(--bd-gold-soft);
    border-radius: var(--radius-sm);
    min-width: 0;
  }
  .idle-dash-cell.idle-dash-you {
    border-color: rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.05);
  }
  .idle-dash-lbl {
    font-size: 7px;
    letter-spacing: 3px;
    color: var(--gold);
    opacity: 0.55;
  }
  .idle-dash-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .idle-dash-val.score {
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }
  .idle-dash-sub {
    font-size: 7px;
    letter-spacing: 1.5px;
    color: var(--dim);
    opacity: 0.85;
  }
  .idle-dash-leader-score {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold2);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-height: 22px;
    text-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
    animation: leaderScorePulse 2.2s ease-in-out infinite;
  }
  .idle-dash-leader-score:empty {
    display: none;
  }
  .idle-dash-leader-addr {
    font-size: 8px;
    letter-spacing: 0.5px;
    color: var(--white);
    opacity: 0.75;
  }
  .idle-dash-leader:not(.has-score) .idle-dash-leader-addr {
    font-size: 11px;
    font-weight: 600;
    color: var(--dim);
    opacity: 0.85;
  }
  .idle-dash-gap {
    text-align: center;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--gold2);
    text-shadow: 0 0 10px rgba(255, 226, 138, 0.2);
    min-height: 14px;
  }
  .idle-dash-gap.leading { color: var(--gold2); animation: neuralTextPulse 2.5s ease-in-out infinite; }
  .idle-dash-epoch {
    text-align: center;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.5;
  }
  .idle-dash-start-wrap {
    margin-top: 4px;
  }
  .idle-dash-start-wrap .round-btn.start {
    width: 100%;
    padding: 14px 20px;
    font-size: 11px;
    letter-spacing: 3px;
  }
  #hud.hud-idle .hud-value {
    font-size: 22px;
    color: var(--gold2);
  }

  #game-controls {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 10px 12px 6px;
  }
  .controls-side { width: 44px; }

  #round-controls {
    grid-column: 2;
    justify-self: center;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }
  .round-btn {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s, transform 0.1s, opacity 0.2s;
  }
  .round-btn.start {
    color: var(--bg);
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    box-shadow: 0 0 16px rgba(201,168,76,0.35);
  }
  .round-btn.stop {
    color: var(--gold);
    background: var(--surface-strong);
    border: 1px solid var(--bd-gold-strong);
    box-shadow: none;
  }
  .round-btn.stop:hover:not(:disabled) {
    filter: none;
    color: var(--gold2);
    border-color: var(--gold);
    background: var(--surface-strong);
  }
  .round-btn.start:hover:not(:disabled) { filter: brightness(1.12); }
  .round-btn:active:not(:disabled) { transform: scale(0.96); }
  .round-btn:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
  .round-btn.hidden { display: none; }

  #btn-outer.hidden { visibility: hidden; pointer-events: none; opacity: 0; }

  #combo-streak {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    z-index: 45;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--gold2);
    text-shadow: 0 0 12px var(--gold), 0 0 24px rgba(255,226,138,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s, transform 0.12s;
  }
  #combo-streak.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: comboPop 0.28s ease-out;
  }

  #countdown-overlay {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    z-index: 44;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--gold2);
    text-shadow: 0 0 24px var(--gold), 0 0 48px rgba(255,226,138,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s, transform 0.15s;
  }
  #countdown-overlay.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    animation: countdownPop 0.35s ease-out;
  }

  /* ── Hex button (inside arena) ── */
  .hex-ripple {
    position: absolute;
    z-index: 26;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: hexRipplePulse 0.55s ease-out forwards;
    will-change: transform, opacity;
  }

  #btn-outer {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: left 0.0s, top 0.0s;
  }
  #btn-outer.teleport { animation: teleportIn 0.18s ease-out forwards; }
  #click-btn {
    position: relative; background: none; border: none;
    cursor: pointer; outline: none;
    display: flex; align-items: center; justify-content: center;
    pointer-events: all;
    min-width: 44px; min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    filter: drop-shadow(0 0 10px rgba(201,168,76,0.55)) drop-shadow(0 0 22px rgba(255,226,138,0.35)) drop-shadow(0 0 40px rgba(201,168,76,0.25));
  }
  #click-btn.pop { animation: pop 0.13s ease-out forwards; }
  #click-btn.bump { animation: bump 0.1s ease-out; }

  .spark {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 40;
    animation: sparkFly 0.38s ease-out forwards;
  }

  /* ── Results overlay ── */
  #result {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 100;
    display: none;
    align-items: center; justify-content: center; flex-direction: column;
    gap: 12px;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #result.show { display: flex; animation: fadeIn 0.4s ease; }
  #result.high-score .result-glow {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.25) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 1.4s ease-in-out infinite alternate;
  }
  .result-sub { font-size: 8px; letter-spacing: 6px; color: var(--gold); opacity: 0.55; }
  #result-score {
    font-size: 96px; font-weight: 900; color: var(--white);
    text-shadow: 0 0 40px rgba(255,255,255,0.15); line-height: 1;
    animation: scoreReveal 0.55s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    z-index: 1;
  }
  #result-label { font-size: 8px; letter-spacing: 4px; color: var(--dim); }
  #result-rating {
    font-size: 16px; font-weight: 700; letter-spacing: 3px;
    color: var(--gold); text-shadow: 0 0 16px var(--gold);
    animation: glowPulse 1.4s ease-in-out infinite alternate;
  }

  #nc-submit-btn {
    width: 100%;
    max-width: 300px;
    font-size: 12px;
    padding: 14px 24px;
  }
  #nc-submit-status {
    font-size: 8px; letter-spacing: 3px; color: var(--gold2);
    min-height: 12px; text-align: center;
  }

  .result-play-wrap.hud-scan-card {
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
  }
  .result-play-wrap.hud-scan-card .cta-button {
    padding: 14px 24px;
    font-size: 12px;
  }

  .confetti {
    position: fixed;
    width: 6px; height: 6px;
    z-index: 110;
    pointer-events: none;
    animation: confettiFall 1.2s ease-out forwards;
  }

  /* ── Toast ── */
  #nc-toast {
    position: fixed;
    bottom: calc(24px + var(--safe-b));
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 300;
    max-width: 90vw;
    padding: 12px 18px;
    font-size: 10px; letter-spacing: 1px;
    color: var(--white);
    background: var(--surface-strong);
    border: 1px solid var(--bd-gold-strong);
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: none;
    overflow: hidden;
    line-height: 1.45;
    pointer-events: none;
  }
  #nc-toast.show {
    display: block;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  #nc-toast.success { border-color: rgba(125,206,130,0.55); }
  #nc-toast.error { border-color: #c0392b; color: #ffb3a7; }

  /* ── Keyframes ── */
  @keyframes glitch {
    0%   { transform: translate(0); color: var(--white); }
    20%  { transform: translate(-3px,1px); color: var(--gold2); clip-path: inset(10% 0 80% 0); }
    40%  { transform: translate(3px,-1px); clip-path: inset(60% 0 20% 0); }
    60%  { transform: translate(-2px,0); clip-path: none; color: var(--white); }
    80%  { transform: translate(2px,1px); clip-path: inset(40% 0 40% 0); }
    100% { transform: translate(0); clip-path: none; }
  }
  @keyframes pop {
    0%   { transform: scale(1); filter: brightness(1); }
    40%  { transform: scale(0.82); filter: brightness(2.2); }
    100% { transform: scale(1); filter: brightness(1); }
  }
  @keyframes bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.14); }
    100% { transform: scale(1); }
  }
  @keyframes hexFlash {
    0%   { filter: brightness(3); opacity: 1; }
    100% { filter: brightness(1); }
  }
  @keyframes teleportIn {
    0%   { transform: translate(-50%,-50%) scale(0.55); opacity: 0; filter: brightness(1.4); }
    70%  { transform: translate(-50%,-50%) scale(1.04); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(1); opacity: 1; filter: brightness(1); }
  }
  @keyframes hexRipplePulse {
    0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 0.7; }
    100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
  }
  @keyframes sparkFly {
    0%   { transform: translate(var(--sx),var(--sy)) scale(1); opacity: 1; }
    100% { transform: translate(var(--ex),var(--ey)) scale(0); opacity: 0; }
  }
  @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
  @keyframes scoreReveal {
    0%   { transform: scale(0.3) rotate(-8deg); opacity: 0; }
    60%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
  }
  @keyframes glowPulse {
    from { text-shadow: 0 0 8px var(--gold); opacity: 0.85; }
    to   { text-shadow: 0 0 28px var(--gold), 0 0 55px var(--gold2); opacity: 1; }
  }
  @keyframes breathe { 0%,100% { opacity: 0.35; } 50% { opacity: 0.65; } }
  @keyframes boltPulse {
    0%,100% { filter: drop-shadow(0 0 5px var(--gold)) drop-shadow(0 0 14px var(--gold)); }
    50%      { filter: drop-shadow(0 0 10px var(--gold2)) drop-shadow(0 0 28px var(--gold)) drop-shadow(0 0 2px #fff); }
  }
  @keyframes ornamentPulseTravel {
    0% {
      transform: translateY(-50%) translateX(-110%);
      opacity: 0;
    }
    4% {
      opacity: 1;
    }
    96% {
      opacity: 1;
    }
    100% {
      transform: translateY(-50%) translateX(340%);
      opacity: 0;
    }
  }
  @keyframes ornamentBoltFlash {
    0%, 44%, 56%, 100% {
      filter: drop-shadow(0 0 5px rgba(201,168,76,0.45));
      transform: scale(1);
    }
    50% {
      filter:
        drop-shadow(0 0 6px #fff)
        drop-shadow(0 0 14px var(--gold2))
        drop-shadow(0 0 28px var(--gold));
      transform: scale(1.14);
    }
  }
  @keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
  }
  @keyframes comboPop {
    0%   { transform: translate(-50%,-50%) scale(0.55); opacity: 0; }
    45%  { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(1); opacity: 0.8; }
  }
  @keyframes countdownPop {
    0%   { transform: translateX(-50%) scale(0.5); opacity: 0; }
    40%  { transform: translateX(-50%) scale(1.15); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  }
  @keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(120px) rotate(720deg); opacity: 0; }
  }
  @keyframes glitchPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(255,226,138,0.16), 0 0 28px rgba(201,168,76,0.2), -2px 0 0 rgba(255,226,138,0.3), 2px 0 0 rgba(201,168,76,0.2); }
    25% { text-shadow: 0 0 12px rgba(255,226,138,0.25), 0 0 32px rgba(201,168,76,0.3), 2px 0 0 rgba(255,226,138,0.35), -2px 0 0 rgba(201,168,76,0.22); }
    50% { text-shadow: 0 0 10px rgba(255,226,138,0.14), 0 0 24px rgba(201,168,76,0.18), -3px 0 0 rgba(255,226,138,0.25), 3px 0 0 rgba(201,168,76,0.18); }
  }
  @keyframes driftOne { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(8vw,5vh,0) scale(1.1); } }
  @keyframes driftTwo { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-6vw,7vh,0) scale(1.05); } }
  @keyframes driftThree { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(6vw,-5vh,0) scale(1.12); } }
  @keyframes driftFour { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5vw,-3vh,0) scale(1.08); } }
  @keyframes sweepDown {
    0% { transform: translateY(-20vh); opacity: 0; }
    15% { opacity: 0.7; }
    50% { opacity: 1; }
    85% { opacity: 0.6; }
    100% { transform: translateY(140vh); opacity: 0; }
  }
  @keyframes landingFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes neuralBorderPulse {
    0%, 100% { border-color: rgba(201,168,76,0.22); box-shadow: 0 0 12px rgba(201,168,76,0.08); }
    50%      { border-color: rgba(255,226,138,0.45); box-shadow: 0 0 24px rgba(255,226,138,0.18); }
  }
  @keyframes neuralGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(201,168,76,0.15)); }
    50%      { filter: drop-shadow(0 0 8px rgba(255,226,138,0.4)); }
  }
  @keyframes leaderScorePulse {
    0%, 100% {
      color: var(--gold2);
      text-shadow: 0 0 10px rgba(201, 168, 76, 0.35);
      transform: scale(1);
    }
    50% {
      color: #fff;
      text-shadow:
        0 0 18px rgba(255, 226, 138, 0.7),
        0 0 36px rgba(201, 168, 76, 0.4);
      transform: scale(1.04);
    }
  }
  @keyframes neuralTextPulse {
    0%, 100% { text-shadow: 0 0 8px rgba(201,168,76,0.25); }
    50%      { text-shadow: 0 0 16px rgba(255,226,138,0.45); }
  }
  @keyframes stepGlow {
    0%, 100% { box-shadow: 0 0 14px rgba(201,168,76,0.12), inset 0 0 10px rgba(201,168,76,0.05); }
    50%      { box-shadow: 0 0 28px rgba(255,226,138,0.35), inset 0 0 18px rgba(255,226,138,0.12); }
  }
  @keyframes stepRingPulse {
    0%   { transform: scale(1); opacity: 0.5; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
  }
  @keyframes connectorSweep {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(220%); }
  }
  @keyframes ctaShimmer {
    0%, 70%, 100% { left: -100%; }
    85% { left: 140%; }
  }
  @keyframes ctaAura {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.04); }
  }
  @keyframes particleDrift {
    0%   { transform: translate(0, 0); opacity: 0; }
    8%   { opacity: 0.7; }
    92%  { opacity: 0.5; }
    100% { transform: translate(var(--dx, 40px), var(--dy, -120px)); opacity: 0; }
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  @keyframes laserScan {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  @media (prefers-reduced-motion: reduce) {
    #aurora-bg .blob,
    #landing-field,
    .landing-particles,
    .scanlines,
    .effects-layer,
    .landing-vignette,
    .scan-wave,
    .ambient,
    .landing-title,
    .title-ornament,
    .title-ornament-track,
    .title-ornament-pulse,
    .title-hex,
    .landing-particle,
    .step-ring,
    .step-connector,
    .hud-scan-card::before,
    .cta-button::before,
    .cta-outer::before,
    #game-arena,
    .landing-panel,
    .idle-dash-panel,
    .gate-shell,
    #timer.glitch,
    #combo-streak.show,
    #countdown-overlay.show,
    .spark,
    .confetti,
    .hex-ripple,
    #nc-claim-btn,
    .idle-dash-leader-score {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
    }
  }

  @media (max-height: 680px) {
    .landing-hero { gap: 12px; padding: 4px 0; }
    .landing-panel { padding: 14px 14px 12px; }
    .lore-block { gap: 8px; }
    .lore-body, .lore-fees { font-size: 9px; }
    .split-grid { grid-template-columns: repeat(2, 1fr); }
    .split-pct { font-size: 10px; }
    .step-pipeline { margin-top: 12px; padding-top: 12px; }
    .landing-title { font-size: clamp(1.25rem, 9.5cqw, 2.2rem); letter-spacing: 0.03em; }
    .cta-button { padding: 14px 20px; }
  }
  @media (max-width: 600px) {
    #web3-bar { flex-wrap: nowrap; padding: 6px 5px; gap: 5px; }
    .w3-col.w3-left, .w3-col.w3-center, .w3-col.w3-right { flex: 1 1 0; min-width: 0; }
    .w3-col.w3-left.wallet-hud,
    .w3-col.w3-center.pool-dash,
    .w3-col.w3-right.game-hud { padding: 7px 6px 8px; gap: 5px; }
    .game-hud-hint { font-size: 7px; -webkit-line-clamp: 3; }
    .pool-dash-main { gap: 2px; }
    .pool-dash-row { gap: 6px; }
    .pool-dash-val,
    .pool-dash .pool-hero.pool-dash-val { font-size: 12px; }
    .pool-dash-footnote { font-size: 8px; -webkit-line-clamp: 2; }
    .pool-hero { font-size: 13px; }
    .w3-cell .val { max-width: 84px; font-size: 7px; }
    .wallet-hud .w3-cell .val { max-width: 100px; }
    .wallet-ref-btn { min-height: 28px; font-size: 6px; }
    .w3-btn { padding: 6px 7px; font-size: 6px; min-height: 28px; }

    #game-arena { min-height: 260px; max-height: 55vh; }
    .hud-label { font-size: 7px; letter-spacing: 3px; }
    .hud-value { font-size: 22px; }
    .hud-leader-score { font-size: 17px; }
    .hud-leader-name { font-size: 9px; }

    #gate { padding: 20px; }
    #gate-title { font-size: 1.25rem; letter-spacing: 3px; }
    #gate-text { font-size: 10px; }
    .cta-button { font-size: 11px; padding: 16px 20px; letter-spacing: 3px; }
    .landing-panel { padding: 16px 14px 14px; }
    .lore-body, .lore-fees { font-size: 9px; }
    .step-ring { width: 30px; height: 30px; font-size: 9px; }
    .step-label { font-size: 6px; max-width: 58px; letter-spacing: 1px; }
    .step-connector { flex: 0 0 10px; }
    .landing-tagline { font-size: 9px; letter-spacing: 1px; }
    .landing-title { letter-spacing: 0.03em; }

    #result { gap: 10px; padding: 16px; }
    #result-score { font-size: 64px; }
    #result-rating { font-size: 13px; }
    #nc-submit-btn { font-size: 11px; padding: 13px 16px; width: 100%; max-width: 300px; }

    .round-btn { font-size: 9px; padding: 10px 16px; }
  }

  @media (max-width: 380px) {
    .landing-stats-strip {
      grid-template-columns: 1fr;
    }
    .w3-btn { padding: 8px 8px; font-size: 7px; }
    #result-score { font-size: 52px; }
    #combo-streak { font-size: 14px; }
    .round-btn { padding: 10px 12px; font-size: 8px; }
    .pool-hero { font-size: 16px; }
  }

  @media (max-height: 520px) and (orientation: landscape) {
    #game-arena { min-height: 180px; max-height: 48vh; }
    .hud-value { font-size: 18px; }
    #app-footer { display: none; }
    #result {
      justify-content: flex-start;
      padding-top: 12px;
      gap: 6px;
    }
    #result-score { font-size: 48px; }
    #result-rating { font-size: 11px; }
    #nc-submit-btn { margin-top: 6px; padding: 10px 16px; }
    .result-play-wrap.hud-scan-card { margin-top: 6px; }
    .result-play-wrap.hud-scan-card .cta-button { padding: 10px 16px; font-size: 11px; }
  }

  @media (min-width: 601px) {
    body {
      display: flex;
      justify-content: center;
      background: radial-gradient(ellipse at center, rgba(20,20,20,0.6) 0%, var(--bg) 70%);
    }
    #app-shell {
      border-left: 1px solid rgba(201,168,76,0.12);
      border-right: 1px solid rgba(201,168,76,0.12);
      box-shadow: 0 0 80px rgba(0,0,0,0.6);
    }
  }

  /* ── Trust deck landing ── */
  .landing-cta-hero {
    width: 100%;
    padding: 4px 0 0;
    animation: landingFadeUp 0.85s ease 0.2s both;
  }

  .landing-stats-strip {
    width: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 4px;
    animation: landingFadeUp 0.9s ease 0.25s both;
  }

  .stat-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 10px;
    background: var(--surface);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 0;
  }

  .hud-scan-card {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
  }

  .hud-scan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 30%,
      rgba(212, 175, 55, 1) 50%,
      transparent 70%,
      transparent 100%
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    background-size: 200% 100%;
    background-position: 200% 0;
    animation: laserScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 10;
  }

  .landing-stats-strip .hud-scan-card:nth-child(1)::before { animation-delay: 0s; }
  .landing-stats-strip .hud-scan-card:nth-child(2)::before { animation-delay: 1.3s; }
  .landing-stats-strip .hud-scan-card:nth-child(3)::before { animation-delay: 2.6s; }
  .deck-panel.hud-scan-card::before { animation-delay: 3.9s; }

  #web3-bar .hud-scan-card:nth-child(1)::before { animation-delay: 0s; }
  #web3-bar .hud-scan-card:nth-child(2)::before { animation-delay: 1.3s; }
  #web3-bar .hud-scan-card:nth-child(3)::before { animation-delay: 2.6s; }
  #game-arena.hud-scan-card::before { animation-delay: 3.9s; }
  .idle-dash-panel.hud-scan-card::before { animation-delay: 5.2s; }

  .hud-scan-card:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
  }
  .hud-scan-card:hover::before {
    animation-play-state: paused;
    opacity: 0.3;
  }

  .hud-scan-card > * {
    position: relative;
    z-index: 11;
  }

  .cta-outer.hud-scan-card,
  .result-play-wrap.hud-scan-card {
    border: 1px solid rgba(212, 175, 55, 0.52) !important;
    box-shadow:
      0 0 22px rgba(212, 175, 55, 0.3),
      0 0 44px rgba(201, 168, 76, 0.14),
      inset 0 1px 0 rgba(255, 226, 138, 0.16);
  }
  .cta-outer.hud-scan-card::before,
  .result-play-wrap.hud-scan-card::before {
    background: linear-gradient(
      90deg,
      transparent 0%,
      transparent 22%,
      rgba(255, 226, 138, 1) 50%,
      transparent 78%,
      transparent 100%
    ) border-box;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.55));
  }
  .cta-outer.hud-scan-card::after,
  .result-play-wrap.hud-scan-card::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: calc(var(--radius-lg) - 3px);
    pointer-events: none;
    z-index: 12;
    border: 1px solid rgba(255, 226, 138, 0.14);
    box-shadow: inset 0 0 16px rgba(201, 168, 76, 0.08);
  }
  .cta-outer.hud-scan-card:hover,
  .result-play-wrap.hud-scan-card:hover {
    border-color: rgba(255, 226, 138, 0.72) !important;
    box-shadow:
      0 0 30px rgba(255, 226, 138, 0.42),
      0 0 56px rgba(201, 168, 76, 0.22),
      inset 0 1px 0 rgba(255, 226, 138, 0.24);
  }
  .cta-outer.hud-scan-card:hover::before,
  .result-play-wrap.hud-scan-card:hover::before {
    animation-play-state: running;
    opacity: 1;
  }

  .stat-lbl {
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.6;
  }

  .stat-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold2);
    text-shadow: 0 0 10px rgba(201, 168, 76, 0.25);
    line-height: 1.2;
    word-break: break-word;
  }

  .stat-val-sm {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    word-break: break-all;
  }

  .stat-sub {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    opacity: 0.75;
  }

  .deck-panel {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    padding: 14px 0;
    background: var(--surface);
    border: 1px solid var(--bd-gold);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
      0 0 40px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,226,138,0.06),
      inset 0 0 30px rgba(201,168,76,0.03);
    animation: landingFadeUp 0.95s ease 0.32s both;
  }
  .deck-panel.hud-scan-card {
    overflow: visible;
  }
  .deck-panel:not(.hud-scan-card)::before,
  .deck-panel::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--gold2);
    border-style: solid;
    opacity: 0.65;
    pointer-events: none;
    z-index: 2;
  }
  .deck-panel:not(.hud-scan-card)::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
  }
  .deck-panel::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
  }
  .deck-panel > .panel-corner-tr,
  .deck-panel > .panel-corner-bl {
    z-index: 11;
  }

  .deck-viewport {
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    touch-action: pan-y;
  }

  .deck-nav {
    flex-shrink: 0;
    width: 28px;
    align-self: center;
    margin: 0 2px;
    padding: 0;
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: var(--radius-sm);
    background: rgba(8,8,8,0.65);
    color: var(--gold2);
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
    z-index: 4;
  }
  .deck-nav:hover:not(:disabled) {
    border-color: rgba(201,168,76,0.65);
    background: rgba(201,168,76,0.1);
  }
  .deck-nav:disabled {
    opacity: 0.25;
    cursor: default;
  }

  .deck-track {
    flex: 1;
    min-width: 0;
    position: relative;
    --deck-slide-offset: 28px;
    padding: 0;
  }

  .deck-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 0 10px 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition:
      transform 0.32s cubic-bezier(0.25, 0.1, 0.25, 1),
      opacity 0.28s ease;
  }
  .deck-section.deck-slide-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
  }
  .deck-section.deck-slide-from-right {
    transform: translateX(var(--deck-slide-offset));
    opacity: 0;
    z-index: 3;
  }
  .deck-section.deck-slide-from-left {
    transform: translateX(calc(-1 * var(--deck-slide-offset)));
    opacity: 0;
    z-index: 3;
  }
  .deck-section.deck-slide-to-left {
    transform: translateX(calc(-1 * var(--deck-slide-offset)));
    opacity: 0;
    z-index: 1;
  }
  .deck-section.deck-slide-to-right {
    transform: translateX(var(--deck-slide-offset));
    opacity: 0;
    z-index: 1;
  }
  .deck-section.deck-slide-animating {
    will-change: transform, opacity;
  }
  .deck-section.deck-measure {
    position: relative !important;
    height: auto !important;
    visibility: hidden;
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none;
    z-index: 0 !important;
  }
  .deck-section.deck-slide-active:hover {
    background: rgba(201,168,76,0.03);
  }

  @media (prefers-reduced-motion: reduce) {
    .deck-section {
      transition: opacity 0.15s ease;
    }
    .deck-section.deck-slide-from-right,
    .deck-section.deck-slide-from-left,
    .deck-section.deck-slide-to-left,
    .deck-section.deck-slide-to-right {
      transform: none !important;
    }
    .deck-section.deck-slide-animating {
      will-change: opacity;
    }
  }

  .deck-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 0 2px;
  }
  .deck-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 1px solid rgba(201,168,76,0.45);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  }
  .deck-dot.active {
    background: var(--gold2);
    border-color: var(--gold2);
    box-shadow: 0 0 8px rgba(255,226,138,0.45);
    transform: scale(1.15);
  }
  .deck-dot:hover:not(.active) {
    border-color: rgba(201,168,76,0.75);
    background: rgba(201,168,76,0.15);
  }

  .deck-section-title {
    flex-shrink: 0;
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.65;
    text-align: center;
  }

  .deck-section-body {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(240, 240, 240, 0.88);
    letter-spacing: 0;
  }

  .deck-fee-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
  }
  .deck-fee-desc {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(240, 240, 240, 0.85);
    text-align: center;
  }
  .deck-fee-label {
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 0;
  }
  .deck-fee-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold2);
    text-shadow: 0 0 8px rgba(201,168,76,0.2);
    line-height: 1.35;
  }
  .deck-fee-note {
    font-size: 10px;
    font-weight: 400;
    color: rgba(240, 240, 240, 0.6);
    text-shadow: none;
  }

  .deck-dist-block {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--bd-gold-soft);
  }
  .deck-dist-title {
    margin: 0 0 6px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.75;
    text-align: center;
  }
  .deck-dist-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
  }
  .deck-dist-row:last-child {
    margin-bottom: 0;
  }
  .deck-dist-label {
    font-size: 10px;
    color: var(--dim);
    flex: 1;
    min-width: 0;
  }
  .deck-dist-val {
    font-size: 11px;
    line-height: 1.4;
    color: rgba(240, 240, 240, 0.88);
    flex-shrink: 0;
    text-align: right;
  }
  .deck-dist-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold2);
    text-shadow: 0 0 8px rgba(201,168,76,0.2);
  }
  .deck-dist-rest {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.55;
    color: rgba(240, 240, 240, 0.75);
  }

  .deck-footnote {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--bd-gold-soft);
    font-size: 9px;
    line-height: 1.5;
    color: var(--dim);
    opacity: 0.9;
    text-align: center;
  }

  .deck-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .deck-steps li {
    display: block;
  }

  .deck-step-text {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(240, 240, 240, 0.88);
  }

  @media (max-width: 600px) {
    .landing-stats-strip {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }
    .deck-nav {
      width: 24px;
      font-size: 16px;
    }
    .deck-section {
      padding: 0 6px 2px;
    }
    .deck-track {
      --deck-slide-offset: 20px;
    }
    .stat-val {
      font-size: 11px;
    }
    .stat-val-sm {
      font-size: 9px;
    }
    .stat-sub {
      font-size: 7px;
      margin-top: 2px;
    }
    .landing-hud {
      font-size: 8px;
      letter-spacing: 1.5px;
      padding-right: 72px;
    }
  }

  .spark { will-change: transform, opacity; }
  .confetti { will-change: transform, opacity; }
  #btn-outer.teleport { will-change: transform, opacity; }
  #game-arena { contain: layout style; }

  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  .pool-hero:empty,
  .leader-hero:empty {
    background: linear-gradient(90deg, rgba(201,168,76,0.08) 25%, rgba(201,168,76,0.15) 50%, rgba(201,168,76,0.08) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    min-height: 1em;
  }