:root {
  --bg: #0b0a10;
  --bg-2: #110f18;
  --panel: #16131f;
  --panel-2: #1d1929;
  --line: #2a2538;
  --text: #efecf7;
  --muted: #9a93ad;
  --lime: #c6ff3d;
  --violet: #9b5cff;
  --pink: #ff4f8b;
  --radius: 14px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, iframe { display: block; }
::selection { background: var(--lime); color: #0b0a10; }

.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.mono { font-family: var(--mono); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11,10,16,.78); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 21px var(--display); letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; position: relative; background: var(--violet); }
.logo-mark::after { content: ''; position: absolute; inset: 6px 4px 9px 9px; border-radius: 4px; background: var(--lime); box-shadow: -4px 4px 0 rgba(11,10,16,.6); }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav .spacer { flex: 1; }
.pill-twitch { font: 500 12px var(--mono); color: #d9c7ff; border: 1px solid #3a2c5c; background: #1b1430; padding: 5px 10px; border-radius: 99px; }
@media (max-width: 760px) { .nav-links, .pill-twitch { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lime); color: #0b0a10; }
.btn-primary:hover { background: #d6ff6e; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #4a4260; background: var(--panel); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- fake stream stage ---------- */
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #050409; border: 1px solid var(--line); }
.stage .game { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(80, 200, 160, .35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 75% 35%, rgba(155, 92, 255, .35), transparent 70%),
    linear-gradient(180deg, #1a2440 0%, #0f1a2b 55%, #12301f 56%, #0b1d14 100%); }
.stage .game::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: 18%; height: 30%;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 6%, transparent 6% 9%); clip-path: polygon(0 100%, 5% 30%, 12% 60%, 20% 10%, 31% 55%, 40% 25%, 52% 70%, 63% 15%, 75% 50%, 86% 20%, 100% 100%); opacity: .7; }
.stage .game::after { content: 'LIVE'; position: absolute; top: 3.5%; right: 2.5%; font: 700 clamp(8px, 1.1vw, 13px) var(--mono); letter-spacing: .1em; color: #fff; background: #e91916; padding: .25em .6em; border-radius: 4px; }
.stage.checker .game { background: repeating-conic-gradient(#15121d 0 25%, #1b1726 0 50%) 0 0 / 28px 28px; }
.stage.checker .game::before, .stage.checker .game::after { display: none; }
.stage iframe { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; background: transparent; pointer-events: none; }

/* ---------- cards / chips ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--muted); font: 500 13px var(--body); cursor: pointer; transition: .15s; }
.chip:hover { color: var(--text); border-color: #453d5a; }
.chip.on { color: #0b0a10; background: var(--lime); border-color: var(--lime); }
.tier { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tier-free { background: #1c2a12; color: var(--lime); }
.tier-pro { background: #2a1630; color: #ff9cc2; }

input[type=text], textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: 400 15px/1.5 var(--body); padding: 12px 14px; outline: none; transition: border-color .15s; }
input[type=text]:focus, textarea:focus { border-color: var(--violet); }
textarea { resize: vertical; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--lime); color: #0b0a10; font-weight: 600; padding: 10px 18px; border-radius: 10px; transition: .25s; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer.site { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--text); }
[hidden] { display: none !important; }

/* Auth */
.nav-auth { position: relative; display: flex; align-items: center; }
.nav-auth .who { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 4px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 13px var(--body); cursor: pointer; }
.nav-auth .who:hover { background: var(--panel); border-color: #4a4260; }
.nav-auth .who img, .nav-auth .who .ph { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; background: var(--violet); display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; }
.nav-auth .who .nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.5); display: none; flex-direction: column; gap: 6px; z-index: 60; }
.auth-menu.open { display: flex; }
.auth-menu .hd { font: 500 12px var(--mono); color: var(--muted); padding: 6px 8px 4px; }
.auth-menu a, .auth-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 500 14px var(--body); text-decoration: none; cursor: pointer; width: 100%; }
.auth-menu a:hover, .auth-menu button:hover { border-color: #4a4260; background: var(--panel-2); }
.auth-menu svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) { .nav-auth .who .nm { display: none; } }
.login-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(11,10,16,.72); backdrop-filter: blur(4px); z-index: 90; }
.login-modal.open { display: flex; }
.login-card { position: relative; width: min(380px, 100%); padding: 26px 22px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.login-card h2 { font: 800 24px var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.login-card .x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.login-card .x:hover { background: var(--bg-2); color: var(--text); }
.login-card .opts { display: flex; flex-direction: column; gap: 8px; }
.login-card .opts a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 15px var(--body); text-decoration: none; }
.login-card .opts a:hover { border-color: #4a4260; background: var(--panel-2); }
.login-card .opts svg { width: 20px; height: 20px; }
.login-card .none { color: var(--muted); font-size: 14px; }
