  :root {
    --bg: #020204;
    --ink: #f3f5f8;
    --muted: #8a94a6;
    --accent: #f2a93b;
    --accent-rgb: 242, 169, 59;
    --col-left: max(40px, calc(50vw - 690px));
    --col-w: min(490px, 41vw);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scrollbar-width: none; background: var(--bg); color: var(--ink); }
  html::-webkit-scrollbar { display: none; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", system-ui, sans-serif; overflow-x: hidden; }
  html[lang="en"] [data-ru], html[lang="ru"] [data-en] { display: none !important; }

    @media (pointer: fine) { html, body, a, button, input { cursor: none !important; } }
  .cur-dot, .cur-ring, .cur-label {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99999; display: none; will-change: transform;
  }
  .cur-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 14px var(--accent); margin: -3.5px 0 0 -3.5px;
    transition: background 0.3s, box-shadow 0.3s;
  }
  .cur-ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(var(--accent-rgb), 0.78); border-radius: 50%;
    transition: width 0.2s, height 0.2s, margin 0.2s, border-radius 0.35s, border-color 0.3s, background 0.2s;
  }
  .cur-ring.shape-square { border-radius: 3px; }
  .cur-ring.shape-diamond { border-radius: 2px; }
  .cur-ring.hovering {
    width: 50px; height: 50px; margin: -25px 0 0 -25px;
    background: rgba(var(--accent-rgb), 0.14); border-color: var(--accent);
  }
  .cur-label {
    font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
    background: rgba(2,2,4,0.88); padding: 2px 6px; border-radius: 3px;
    border: 1px solid rgba(var(--accent-rgb), 0.45); white-space: nowrap;
  }
  @media (pointer: fine) { .cur-dot, .cur-ring, .cur-label { display: block; } }

    .topnav {
    position: fixed; top: 0; left: 0; right: 0; height: 60px; z-index: 60;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 max(28px, calc(50vw - 690px));
    background: linear-gradient(180deg, rgba(2,2,4,0.94), rgba(2,2,4,0.4) 75%, transparent);
  }
  .brand {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
    font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  }
  .brand img { width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.18); }
  .nav-right { display: flex; align-items: center; gap: 7px; }

  .nav-support {
    display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
    border-radius: 4px; text-decoration: none; font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.94); background: rgba(24, 22, 16, 0.85);
    border: 1px solid rgba(245, 184, 65, 0.5);
    transition: background 0.16s, border-color 0.16s, color 0.16s;
  }
  .nav-support svg { color: #f5b841; flex: none; }
  .nav-support:hover { background: rgba(54, 42, 20, 0.92); border-color: #f5b841; color: #fff; }

  .nav-social {
    width: 32px; height: 32px; border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.78); background: rgba(14,16,22,0.8);
    border: 1px solid rgba(255,255,255,0.14); text-decoration: none;
    transition: border-color 0.16s, color 0.16s, background 0.16s;
  }
  .nav-social:hover { background: rgba(36,40,50,0.9); color: #fff; }
  .nav-social.yt:hover { border-color: rgba(255, 68, 68, 0.8); color: #ff4444; }
  .nav-social.st:hover { border-color: rgba(102, 192, 244, 0.8); color: #66c0f4; }
  .nav-social.rd:hover { border-color: rgba(255, 87, 34, 0.8); color: #ff5722; }

  .nav-lang {
    height: 32px; padding: 0 10px; border-radius: 4px;
    font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.16); background: rgba(14,16,22,0.8); color: #e2e8f0;
    transition: border-color 0.16s, color 0.16s;
  }
  .nav-lang:hover { border-color: var(--accent); color: #fff; }

    .scroll-rail {
    position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
    z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 18px;
    user-select: none;
  }
  .rail-track {
    position: absolute; right: 5px; top: 8px; bottom: 8px; width: 2px;
    background: rgba(255,255,255,0.13); border-radius: 2px;
  }
  .rail-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: var(--accent); box-shadow: 0 0 12px var(--accent); border-radius: 2px;
  }
  .rail-node {
    position: relative; display: flex; align-items: center; gap: 8px;
    background: none; border: 0; padding: 3px 0; color: rgba(255,255,255,0.42);
    font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; transition: color 0.25s;
  }
  .rail-node:hover, .rail-node.active { color: #fff; }
  .rail-node .pip {
    width: 12px; height: 12px; border-radius: 50%; background: #0a0c10;
    border: 2px solid rgba(255,255,255,0.28);
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  }
  .rail-node.active .pip {
    background: var(--accent); border-color: var(--accent);
    transform: scale(1.25); box-shadow: 0 0 14px var(--accent);
  }

    .parallax-stage {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: #020204;
  }
  .bg-card {
    position: absolute; left: 50%; top: 50%;
    width: min(74vw, 960px); height: min(126vh, 1180px);
    margin: 0; border-radius: 26px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 40px 140px rgba(0,0,0,0.9);
    opacity: 0; will-change: transform, opacity;
  }
  .bg-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: saturate(0.88) contrast(1.06) brightness(0.62);
  }
  .bg-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 75% 70% at 62% 50%, rgba(2,2,4,0.18) 0%, rgba(2,2,4,0.72) 72%, rgba(2,2,4,0.96) 100%);
  }
  .parallax-vignette {
    position: absolute; inset: 0; pointer-events: none; z-index: 4;
    background:
      linear-gradient(90deg, rgba(2,2,4,0.88) 0%, rgba(2,2,4,0.52) 38%, rgba(2,2,4,0.22) 68%, rgba(2,2,4,0.72) 100%),
      linear-gradient(180deg, rgba(2,2,4,0.72) 0%, transparent 18%, transparent 78%, rgba(2,2,4,0.88) 100%);
  }

    #morphCanvas {
    position: fixed; inset: 0; width: 100vw; height: 100vh; display: block;
    z-index: 2; background: transparent;
  }
  .scroll-spacer { position: relative; z-index: 10; height: 360vh; pointer-events: none; }
  .ui-stage { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }

    .hero-header {
    position: absolute; left: var(--col-left); top: 50%; transform: translateY(-50%);
    width: var(--col-w); text-align: left; pointer-events: auto; will-change: transform, opacity;
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--accent); padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.38); background: rgba(var(--accent-rgb), 0.08);
    margin-bottom: 14px;
  }
  .hero-header h1 {
    margin: 0 0 14px; font-family: "Space Grotesk", sans-serif;
    font-size: clamp(34px, 4.3vw, 58px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
    background: linear-gradient(180deg, #ffffff 35%, rgba(255,255,255,0.65));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero-sub { margin: 0 0 18px; max-width: 46ch; font-size: 14px; line-height: 1.56; color: #9ca7b8; }
  .feature-chips { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .f-chip {
    font-family: "JetBrains Mono", monospace; font-size: 11px; color: #d5dce8;
    padding: 5px 10px; border-radius: 4px; background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.11);
  }
  .scroll-cue {
    position: absolute; bottom: 32px; left: var(--col-left);
    font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.62);
    display: flex; align-items: center; gap: 8px;
    animation: bob 2.1s ease-in-out infinite;
  }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

    .intro-deck-wrap {
    position: absolute; left: min(66vw, calc(50vw + 235px)); top: 50%;
    width: 0; height: 0; perspective: 1200px; z-index: 22;
    pointer-events: auto; will-change: opacity, transform;
  }
  .intro-deck {
    position: relative; width: 0; height: 0; transform-style: preserve-3d;
    transition: transform 0.12s ease-out;
  }
  .deck-card {
    position: absolute; left: -122px; top: -183px;
    width: 244px; height: 366px; border-radius: 12px; overflow: hidden;
    background: #101218; border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 28px 70px rgba(0,0,0,0.82), 0 0 0 1px rgba(0,0,0,0.7);
    text-decoration: none; color: #fff; display: block;
    transform-origin: 50% 85%;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s, box-shadow 0.28s, filter 0.25s;
  }
  .deck-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .deck-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 22%, rgba(4,6,10,0.2) 55%, rgba(4,6,10,0.92) 100%);
  }
  .deck-meta {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
    display: flex; flex-direction: column; gap: 4px; pointer-events: none;
  }
  .deck-badge {
    align-self: flex-start; font-family: "JetBrains Mono", monospace; font-size: 9px;
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 3px;
    background: rgba(6,8,12,0.82); border: 1px solid var(--dc); color: var(--dc);
  }
  .deck-title {
    font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700;
    line-height: 1.08; letter-spacing: -0.02em; color: #fff;
  }
  .deck-sub {
    font-family: "JetBrains Mono", monospace; font-size: 10px; color: rgba(255,255,255,0.72);
  }

    .deck-card.c-left   { z-index: 2; transform: translate(-112px, 4px) rotate(-8deg) scale(0.99); }
  .deck-card.c-right  { z-index: 1; transform: translate(112px, 16px) rotate(8deg) scale(0.95); filter: brightness(0.88); }

    .intro-deck:hover .deck-card.c-left   { transform: translate(-134px, 10px) rotate(-11deg) scale(0.97); }
  .intro-deck:hover .deck-card.c-right  { transform: translate(134px, 18px) rotate(11deg) scale(0.95); }
  .intro-deck .deck-card:hover {
    z-index: 10; filter: brightness(1.04); border-color: var(--dc);
    box-shadow: 0 34px 85px rgba(0,0,0,0.9), 0 0 38px color-mix(in srgb, var(--dc) 34%, transparent);
  }
  .intro-deck .deck-card.c-left:hover   { transform: translate(-140px, -16px) rotate(-5deg) scale(1.06); }
  .intro-deck .deck-card.c-right:hover  { transform: translate(140px, -12px) rotate(5deg) scale(1.06); }
  .deck-card:hover img { transform: scale(1.05); }

  .deck-hint {
    position: absolute; left: -140px; top: 204px; width: 280px; text-align: center;
    font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,0.48); pointer-events: none;
  }

    .game-stack {
    position: absolute; left: var(--col-left); top: 47%; width: var(--col-w);
    opacity: 0; pointer-events: none; transform: translateY(-50%);
    will-change: transform, opacity;
  }
  .game-stack.visible { pointer-events: auto; }

  .game-hud { width: 100%; }
  .hud-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
  .hud-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden; }
  .hud-icon img { width: 100%; height: 100%; object-fit: cover; }
  .hud-kicker {
    font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; margin-bottom: 3px; display: block;
  }
  .hud-title { margin: 0; font-size: clamp(26px, 2.9vw, 36px); line-height: 1.04; }
  .hud-copy { margin: 0 0 15px; font-size: 13.5px; line-height: 1.54; }
  .hud-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
  .hud-tool {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
    font-size: 11px; font-weight: 600; transition: transform 0.15s, border-color 0.15s, background 0.15s;
  }
  .hud-tool:hover { transform: translateY(-1px); }
  .hud-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .hud-cta {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; text-decoration: none;
    font-size: 13px; font-weight: 700; border: 0; transition: transform 0.16s, filter 0.16s;
  }
  .hud-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
  .hud-socials { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
  .hud-socials .nav-social { width: 38px; height: 38px; }

    .theme-pz {
    background: rgba(15, 17, 21, 0.94); border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 60px rgba(0,0,0,0.72);
    padding: 22px 24px; border-radius: 3px;
  }
  .theme-pz .hud-icon { border: 1px solid rgba(242,169,59,0.55); border-radius: 3px; background: #141414; }
  .theme-pz .hud-kicker { color: #f2a93b; }
  .theme-pz .hud-title { font-family: "Space Grotesk", sans-serif; color: #fff; }
  .theme-pz .hud-copy { color: #c4c9d2; }
  .theme-pz .hud-tool {
    background: rgba(34, 34, 38, 0.92); border: 1px solid rgba(255,255,255,0.2);
    color: #e6e6e6; border-radius: 2px; font-family: "JetBrains Mono", monospace;
  }
  .theme-pz .hud-tool:hover { border-color: #f2a93b; color: #f2a93b; }
  .theme-pz .hud-cta { background: #f2a93b; color: #111; border-radius: 2px; font-family: "Space Grotesk", sans-serif; }

    .theme-rw {
    background: linear-gradient(180deg, rgba(24, 31, 40, 0.95), rgba(16, 22, 29, 0.96));
    border: 2px solid #5f7489;
    box-shadow: inset 0 0 0 1px rgba(150, 195, 235, 0.25), 0 24px 60px rgba(0,0,0,0.74);
    padding: 22px 24px; border-radius: 2px;
  }
  .theme-rw .hud-icon { border: 1px solid #6fa7c9; background: #151f29; border-radius: 2px; }
  .theme-rw .hud-kicker { color: #67d4ff; }
  .theme-rw .hud-title { font-family: "Chakra Petch", sans-serif; color: #eaf4ff; }
  .theme-rw .hud-copy { color: #b5cadb; }
  .theme-rw .hud-tool {
    background: linear-gradient(180deg, #2a3745, #1f2a36);
    border: 1px solid #6b8299; color: #e2effa; border-radius: 2px; font-family: "Chakra Petch", sans-serif;
  }
  .theme-rw .hud-tool:hover { border-color: #ffd166; color: #ffd166; }
  .theme-rw .hud-cta {
    background: linear-gradient(180deg, #4cc3f7, #2d95c9); color: #06131d;
    border: 1px solid #9be3ff; border-radius: 2px; font-family: "Chakra Petch", sans-serif;
    text-transform: uppercase; letter-spacing: 0.06em;
  }

    .bottom-guides {
    position: absolute; left: var(--col-left); bottom: 22px;
    right: 365px; z-index: 26;
    display: flex; flex-direction: column; gap: 7px;
    opacity: 0; pointer-events: none; transform: translateY(14px);
    transition: opacity 0.28s, transform 0.28s;
  }
  .bottom-guides.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

  .bg-top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .bg-head {
    font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--accent);
    display: flex; align-items: center; gap: 8px; flex: 1;
  }
  .bg-head::after { content: ""; flex: 1; height: 1px; background: rgba(var(--accent-rgb), 0.26); }

  .bg-controls { display: flex; align-items: center; gap: 5px; }
  .bg-arrow {
    width: 26px; height: 26px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.16); background: rgba(10,12,17,0.88);
    color: #d7e0ed; font-size: 13px; display: grid; place-items: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }
  .bg-arrow:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }

  .bg-all-btn {
    height: 26px; padding: 0 10px; border-radius: 4px;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.14); color: #fff;
    font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.16s, transform 0.15s, box-shadow 0.16s;
  }
  .bg-all-btn:hover { background: var(--accent); color: #090a0d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35); }

  .bg-rail-wrap {
    position: relative; overflow: hidden;
    mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
  }
  .bg-strip {
    display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; padding-right: 40px;
  }
  .bg-strip::-webkit-scrollbar { display: none; }
  .bg-chip {
    flex: none; padding: 7px 11px; border-radius: 4px; text-decoration: none;
    background: rgba(10, 12, 17, 0.94); border: 1px solid rgba(255,255,255,0.14);
    color: #d2dce9; font-size: 11.5px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
  }
  .bg-chip:hover { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb), 0.14); transform: translateY(-1px); }
  .bg-chip .num { font-family: "JetBrains Mono", monospace; font-size: 9.5px; color: var(--accent); opacity: 0.85; }
  .bg-chip em { font-style: normal; color: var(--accent); font-family: "JetBrains Mono", monospace; }

    .calc-hud {
    position: absolute; right: 56px; bottom: 22px; width: 266px; z-index: 25;
    pointer-events: auto; font-family: "JetBrains Mono", monospace;
    background: rgba(7, 9, 14, 0.94);
    border: 1px solid rgba(var(--accent-rgb), 0.36);
    border-top: 2px solid var(--accent);
    border-radius: 5px; padding: 11px 13px;
    box-shadow: 0 18px 46px rgba(0,0,0,0.7);
    transition: border-color 0.35s;
  }
  .calc-top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,0.09);
  }
  .calc-title { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
  .calc-cam {
    font-size: 9.5px; color: #cfd8e6; padding: 2px 5px; border-radius: 3px;
    background: rgba(var(--accent-rgb), 0.14); border: 1px solid rgba(var(--accent-rgb), 0.28);
  }
  .calc-meta-line {
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 9.5px; color: #8c98ab; margin-bottom: 8px;
    padding: 4px 7px; border-radius: 3px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .calc-meta-line b { color: #e8eef6; font-weight: 600; }

  .res-list { display: flex; flex-direction: column; gap: 4px; }
  .res-item { display: flex; flex-direction: column; gap: 2px; }
  .res-row { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: #cbd5e4; }
  .res-row b { color: #fff; font-weight: 700; }
  .res-bar { height: 2.5px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
  .res-bar i { display: block; height: 100%; background: var(--accent); transition: width 0.35s ease, background 0.35s; }

    .finale-sheet-bg {
    position: fixed; inset: 0; z-index: 25; pointer-events: none;
    background: radial-gradient(ellipse 85% 65% at 50% 18%, rgba(20, 26, 40, 0.96), rgba(4, 5, 9, 0.99) 74%);
    border-top: 1px solid rgba(var(--accent-rgb), 0.52);
    box-shadow: 0 -24px 90px rgba(0, 0, 0, 0.92), 0 -2px 26px rgba(var(--accent-rgb), 0.22);
    opacity: 0; transform: translate3d(0, 100vh, 0);
    will-change: transform, opacity;
  }
  .finale {
    position: absolute; left: 50%; top: 50%;
    width: min(1120px, calc(100vw - 120px));
    transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
    will-change: transform, opacity; z-index: 28;
  }
  .finale.visible { pointer-events: auto; }

  .finale-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin-bottom: 18px;
    will-change: transform, opacity;
  }
  .finale-title { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; color: #fff; }
  .fin-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .fin-switch {
    display: inline-flex; align-items: center; gap: 3px; padding: 3px;
    border-radius: 999px; background: rgba(12, 15, 22, 0.94);
    border: 1px solid rgba(255,255,255,0.16);
  }
  .fin-sw-btn {
    border: 0; background: transparent; color: rgba(255,255,255,0.65);
    font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 600;
    padding: 6px 10px; border-radius: 999px; transition: all 0.16s; white-space: nowrap;
  }
  .fin-sw-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .fin-sw-btn.active { background: #fff; color: #090a0d; }
  .fin-replay-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 11px; border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.14); border: 1px solid rgba(var(--accent-rgb), 0.5);
    color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 700;
    transition: background 0.16s, transform 0.16s, color 0.16s;
  }
  .fin-replay-btn:hover { background: var(--accent); color: #090a0d; transform: translateY(-1px); }

    .v2-stage-wrap { position: relative; }
  .v2-scan-beam {
    position: absolute; left: -12px; right: -12px; top: 0; height: 2px;
    z-index: 30; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, #ffffff 50%, var(--accent) 82%, transparent 100%);
    box-shadow: 0 0 18px 2px rgba(var(--accent-rgb), 0.85), 0 -16px 32px rgba(var(--accent-rgb), 0.3);
    will-change: transform, opacity;
  }
  .v2-scan-beam::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 54px;
    background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.16));
  }

    .v1-tag {
    align-self: flex-start; font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.12em; padding: 3px 7px; border-radius: 3px;
    background: rgba(6,8,12,0.82); border: 1px solid var(--c); color: var(--c);
  }
  .v1-actions { display: flex; gap: 8px; }
  .v1-btn-main {
    flex: 1; padding: 10px 12px; border-radius: 5px; border: 0; background: var(--c); color: #090a0d;
    font-family: "Space Grotesk", sans-serif; font-size: 12.5px; font-weight: 700; text-decoration: none;
    text-align: center; transition: filter 0.15s;
  }
  .v1-btn-main:hover { filter: brightness(1.1); }
  .v1-btn-sub {
    padding: 10px 11px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.22);
    background: rgba(8,10,14,0.82); color: #e2e8f2; font-family: "JetBrains Mono", monospace;
    font-size: 11px; font-weight: 600; transition: border-color 0.15s, color 0.15s;
  }
  .v1-btn-sub:hover { border-color: var(--c); color: #fff; }
  .v1-foot {
    margin-top: 14px; padding: 11px 16px; border-radius: 7px;
    background: rgba(10, 12, 18, 0.84); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-family: "JetBrains Mono", monospace; font-size: 11px; color: #8c98ab;
  }
  .v1-foot-links { display: flex; align-items: center; gap: 10px; }
  .v1-foot-links a { color: #d5dfed; text-decoration: none; transition: color 0.15s; }
  .v1-foot-links a:hover { color: #f5b841; }

    .v2-split {
    display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px;
    height: min(56vh, 450px);
  }
  .v2-list {
    display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent;
    will-change: transform, opacity, clip-path;
  }
  .v2-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(12, 15, 22, 0.84); color: #cbd5e4; text-align: left;
    font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 600;
    transition: background 0.16s, border-color 0.16s, color 0.16s;
    will-change: transform, opacity;
  }
  .v2-item:hover, .v2-item.active {
    background: rgba(20, 25, 36, 0.94); border-color: var(--c); color: #fff;
  }
  .v2-item .v2-left { display: flex; align-items: center; gap: 10px; }
  .v2-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
  .v2-item small {
    font-family: "JetBrains Mono", monospace; font-size: 9.5px; letter-spacing: 0.08em;
    padding: 2px 6px; border-radius: 3px; background: rgba(255,255,255,0.06); color: #8c98ab;
  }
  .v2-item.live small { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }

  .v2-monitor {
    position: relative; border-radius: 10px; overflow: hidden;
    background: #0c0f16; border: 1px solid rgba(255,255,255,0.16);
    display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: 0 28px 80px rgba(0,0,0,0.75);
    will-change: transform, opacity, clip-path;
  }
  .v2-mon-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0.55; transition: opacity 0.25s, transform 0.35s;
  }
  .v2-monitor::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,8,12,0.2) 0%, rgba(6,8,12,0.72) 55%, rgba(6,8,12,0.97) 100%);
  }
  .v2-mon-body { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; gap: 10px; will-change: opacity, transform; }
  .v2-mon-body h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 32px; color: #fff; }
  .v2-mon-body p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: #c4cfdf; max-width: 50ch; }
  .v2-mon-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
  .v2-mon-specs span {
    font-family: "JetBrains Mono", monospace; font-size: 10.5px; padding: 4px 9px;
    border-radius: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #dce4f0;
  }

    .modal-backdrop {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(2, 3, 6, 0.86);
    display: grid; place-items: center; padding: 24px;
    opacity: 0; pointer-events: none; transition: opacity 0.24s ease;
  }
  .modal-backdrop.open { opacity: 1; pointer-events: auto; }

  .modal-shell {
    width: min(1040px, 100%); height: min(82vh, 760px);
    display: grid; grid-template-rows: auto auto 1fr auto;
    background: #0a0c11; border: 1px solid rgba(var(--accent-rgb), 0.45);
    border-top: 2px solid var(--accent); border-radius: 10px;
    box-shadow: 0 36px 100px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    transform: translateY(22px) scale(0.97); opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  }
  .modal-backdrop.open .modal-shell { transform: translateY(0) scale(1); opacity: 1; }

  .modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.09);
    background: rgba(14, 17, 24, 0.9);
  }
  .modal-games { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .mg-tab {
    border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03);
    color: #9ba7ba; padding: 7px 12px; border-radius: 5px;
    font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 7px; transition: all 0.16s;
  }
  .mg-tab:hover { color: #fff; border-color: rgba(255,255,255,0.34); }
  .mg-tab.active { background: var(--tc); color: #08090d; border-color: var(--tc); }
  .mg-tab .cnt { opacity: 0.78; font-size: 10px; }

  .modal-close {
    width: 34px; height: 34px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
    color: #d6dfec; font-size: 18px; display: grid; place-items: center;
    transition: all 0.15s;
  }
  .modal-close:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.12); }

  .modal-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(10, 12, 17, 0.8);
  }
  .search-wrap {
    position: relative; flex: 1 1 240px; max-width: 340px;
  }
  .search-wrap svg {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: #7d899d; pointer-events: none;
  }
  .search-input {
    width: 100%; height: 34px; padding: 0 12px 0 34px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.04);
    color: #fff; font-family: "Inter", sans-serif; font-size: 13px; outline: none;
    transition: border-color 0.16s, background 0.16s;
  }
  .search-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.07); }
  .search-input::placeholder { color: #6f7c91; }

  .cat-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
  .cat-chip {
    padding: 5px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03); color: #9aa7ba;
    font-family: "JetBrains Mono", monospace; font-size: 10.5px; transition: all 0.15s;
  }
  .cat-chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
  .cat-chip.active { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); border-color: var(--accent); }

    .modal-body {
    overflow-y: auto; padding: 18px 20px;
    scrollbar-width: thin; scrollbar-color: rgba(var(--accent-rgb), 0.5) #0a0c11;
  }
  .modal-body::-webkit-scrollbar { width: 7px; }
  .modal-body::-webkit-scrollbar-track { background: #090b10; }
  .modal-body::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), 0.45); border-radius: 4px; }

  .guide-cards {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  }
  .g-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: rgba(16, 19, 26, 0.85); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 7px; overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }
  .g-card:hover {
    transform: translateY(-3px); border-color: var(--accent);
    box-shadow: 0 14px 32px rgba(0,0,0,0.55);
  }
  .g-thumb {
    position: relative; height: 104px; overflow: hidden;
    background: #0d1017; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
  }
  .g-thumb.real-bg {
    background-size: cover; background-position: center;
  }
  .g-thumb.real-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,8,12,0.15), rgba(6,8,12,0.75));
  }
  .g-thumb-tag {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    font-family: "JetBrains Mono", monospace; font-size: 9px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 6px; border-radius: 3px;
    background: rgba(6,8,12,0.85); border: 1px solid rgba(var(--accent-rgb), 0.45);
    color: var(--accent);
  }
  .g-thumb-time {
    position: absolute; bottom: 7px; right: 8px; z-index: 2;
    font-family: "JetBrains Mono", monospace; font-size: 9px; color: rgba(255,255,255,0.78);
    background: rgba(6,8,12,0.78); padding: 2px 5px; border-radius: 3px;
  }
  .g-card-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
  .g-card-title { font-size: 13px; font-weight: 700; line-height: 1.3; color: #eef2f8; }
  .g-card-sub { font-size: 11.5px; line-height: 1.4; color: #8c98ab; }

  .empty-state {
    grid-column: 1 / -1; text-align: center; padding: 48px 16px;
    font-family: "JetBrains Mono", monospace; font-size: 13px; color: #8894a8;
  }

    .modal-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.09);
    background: rgba(12, 14, 20, 0.92);
    font-family: "JetBrains Mono", monospace; font-size: 11px; color: #8a96a9;
  }
  .pager { display: flex; align-items: center; gap: 5px; }
  .pg-btn {
    min-width: 28px; height: 28px; padding: 0 7px; border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03);
    color: #cbd5e4; font-family: inherit; font-size: 11px; font-weight: 600;
    transition: all 0.14s;
  }
  .pg-btn:hover:not(:disabled) { border-color: var(--accent); color: #fff; }
  .pg-btn.active { background: var(--accent); color: #090a0d; border-color: var(--accent); }
  .pg-btn:disabled { opacity: 0.3; }

  .toast {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    z-index: 950; padding: 9px 16px; border-radius: 6px; background: rgba(8, 10, 14, 0.95);
    border: 1px solid var(--accent); font-family: "JetBrains Mono", monospace; font-size: 12px; color: #fff;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .toast.show { opacity: 1; }

    .hero-badge, .f-chip, .hud-tool, .bg-chip, .bg-all-btn,
  .v1-btn-sub, .v1-foot, .v2-item, .g-card, .nav-support, .game-hud, .modal-shell {
    position: relative;
  }
  .deck-card { --glow-c: var(--dc); }
  .v1-card, .fin-card, .v2-item { --glow-c: var(--c); }
  .glow-target::before {
    content: "";
    position: absolute; inset: 0; border-radius: inherit; padding: 1.8px;
    pointer-events: none; z-index: 8;
    opacity: var(--glow-active, 0);
    transition: opacity 0.2s ease;
    background: conic-gradient(
      from calc((var(--glow-angle, 0) - 42) * 1deg) at 50% 50%,
      transparent 0deg,
      color-mix(in srgb, var(--glow-c, var(--accent)) 35%, transparent) 12deg,
      var(--glow-c, var(--accent)) 30deg,
      #ffffff 42deg,
      #d79f1e 52deg,
      #dd7bbb 62deg,
      #67d4ff 72deg,
      var(--glow-c, var(--accent)) 80deg,
      transparent 94deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
  .glow-target.glow-hot {
    box-shadow: 0 0 22px color-mix(in srgb, var(--glow-c, var(--accent)) 18%, transparent);
  }

    .glow-heading {
    position: relative;
    display: inline-block;
    max-width: 100%;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: inherit;
  }
  .glow-heading-base {
    display: block;
    position: relative; z-index: 1;
    background: radial-gradient(
      240px circle at var(--tx, -999px) var(--ty, -999px),
      #ffffff 0%,
      color-mix(in srgb, var(--accent) 72%, #fff) 30%,
      rgba(255, 255, 255, 0.94) 60%,
      rgba(255, 255, 255, 0.72) 100%
    );
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .glow-heading-stroke {
    display: block;
    position: absolute; inset: 0; z-index: 2; pointer-events: none; user-select: none;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.75));
    opacity: var(--tga, 0);
    -webkit-mask-image: radial-gradient(160px circle at var(--tx, -999px) var(--ty, -999px), #000 0%, rgba(0,0,0,0.68) 45%, transparent 78%);
    mask-image: radial-gradient(160px circle at var(--tx, -999px) var(--ty, -999px), #000 0%, rgba(0,0,0,0.68) 45%, transparent 78%);
    transition: opacity 0.18s ease;
  }

  @media (max-width: 980px) {
    :root { --col-left: 16px; --col-w: calc(100vw - 32px); }
    .hero-header, .game-stack {
      left: 16px; right: 16px; top: auto; bottom: 86px; width: auto; transform: none;
    }
    .finale { left: 16px; right: 16px; width: auto; top: 52%; max-height: 78vh; overflow-y: auto; }
    .v1-deck, .v2-split, .v3-split, .v3-facts { grid-template-columns: 1fr; height: auto; }
    .v1-card { height: 210px; }
    .v3-bottom-row { grid-template-columns: 1fr 1fr; }
    .intro-deck-wrap { left: 50%; top: 26%; transform: scale(0.58); }
    .bottom-guides { right: 16px; bottom: 14px; }
    .scroll-cue, .calc-hud, .scroll-rail { display: none !important; }
    .topnav { padding: 0 14px; }
    .guide-cards { grid-template-columns: 1fr; }
  }
