:root {
  --bg: #000000;
  --panel: #0c0c0f;
  --panel-2: #121216;
  --fg: #f4f4f6;
  --muted: #9a9aa4;
  --faint: #61616b;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.20);
  --glow: rgba(255, 255, 255, 0.16);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --disp: "Space Grotesk", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg); color: var(--fg);
  min-height: 100vh; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }

/* ============ BACKGROUND (soft, minimal) ============ */
.fx-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.14; pointer-events: none; filter: grayscale(0.2); }
.fx-orb, .fx-spot, .fx-vignette { position: fixed; pointer-events: none; z-index: 0; }
.fx-dots { display: none; }
.fx-orb {
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.045), transparent 60%);
  filter: blur(50px);
}
.fx-orb.o1 { top: -340px; left: 50%; transform: translateX(-50%); width: 1100px; height: 620px; opacity: 0.9; }
.fx-orb.o2 { bottom: -360px; right: -220px; animation: drift 34s var(--ease) infinite alternate; }
.fx-orb.o3 { display: none; }
@keyframes drift { to { transform: translate(-120px, -70px); } }
.fx-spot { inset: 0; transition: background 0.25s ease; }
.fx-vignette { inset: 0; background: radial-gradient(130% 100% at 50% 20%, transparent 55%, rgba(0,0,0,0.9) 100%); }

/* ============ LOADER ============ */
#loader { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: var(--bg); transition: opacity 0.7s ease, visibility 0.7s; }
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark { width: 48px; height: 48px; color: #fff; animation: lspin 2.6s var(--ease) infinite; }
@keyframes lspin { to { transform: rotate(360deg); } }
.loader-text { font-family: var(--disp); letter-spacing: 0.32em; color: var(--muted); text-transform: uppercase; font-size: 12px; }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 30;
  width: min(940px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 10px 9px 22px;
  background: linear-gradient(180deg, rgba(26,26,32,0.78), rgba(14,14,18,0.72));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255,255,255,0.05) inset, 0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.topbar::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 22%, transparent 45%);
}
.topbar:hover { border-color: var(--line-2); box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255,255,255,0.07) inset; }
.brand { font-family: var(--disp); font-weight: 700; font-size: 20px; display: inline-flex; align-items: center; gap: 11px; letter-spacing: -0.01em; }
.brand-mark { width: 23px; height: 23px; color: #fff; transition: transform 0.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.topright { display: flex; align-items: center; gap: 12px; }
.topbtn { font-size: 14px; font-weight: 500; color: var(--fg); border: 1px solid var(--line-2); padding: 10px 20px; border-radius: 999px; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.topbtn:hover { background: rgba(255,255,255,0.06); border-color: #fff; }

/* ============ CONSOLE / HERO ============ */
.console { position: relative; z-index: 10; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(96px, 13vw, 124px) clamp(22px, 6vw, 60px) 56px; display: flex; flex-direction: column; }
.hero { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.hero h1 { font-family: var(--disp); font-size: clamp(40px, 8vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 span { color: var(--muted); }
.hero p { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); margin: 18px auto 0; max-width: 460px; }
.hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pill { font-size: 13px; color: var(--fg); background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }

/* ============ GAME CARDS ============ */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; align-content: start; }
.game {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.4s;
}
.game.active { cursor: pointer; }
.game.active:hover { border-color: var(--line-2); transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,0.6); }
.game.active:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.game.locked { opacity: 0.5; cursor: not-allowed; }
.game.locked .g-media { filter: grayscale(1); }
.g-media { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.g-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55)); }
.g-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.g-badge.live { background: #fff; color: #000; }
.g-badge.soon { background: rgba(0,0,0,0.4); color: var(--fg); border: 1px solid var(--line-2); }
.g-open { position: absolute; bottom: 14px; right: 16px; z-index: 2; font-size: 13px; font-weight: 600; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.game.active:hover .g-open { opacity: 1; transform: none; }
.g-lock { position: absolute; bottom: 14px; right: 16px; z-index: 2; font-size: 16px; opacity: 0.7; }
.g-body { padding: 18px 20px 20px; }
.g-body h3 { font-family: var(--disp); font-size: 21px; font-weight: 600; }
.g-body p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.g-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.g-foot span:first-child { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.g-cta { font-size: 13px; color: var(--muted); }

/* ============ FOOTER ============ */
.footer { position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px clamp(22px, 6vw, 60px) 32px; border-top: 1px solid var(--line); }
.foot-brand { font-family: var(--disp); font-weight: 600; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; }
.foot-brand svg { width: 17px; height: 17px; color: #fff; }
.foot-meta { font-size: 13px; color: var(--faint); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.foot-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.foot-links a:hover { color: #fff; }
@media (max-width: 640px) { .footer { flex-direction: column; gap: 16px; text-align: center; } }

/* ============ LEGAL PAGES (terms / privacy) ============ */
.legal .hero h1 { text-align: center; }
.legal-doc { max-width: 760px; margin: 0 auto; width: 100%; }
.legal-sum { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 8px; }
.legal-sum .sec-kicker { display: block; margin-bottom: 9px; }
.legal-sum p { color: var(--muted); line-height: 1.75; font-size: 14.5px; }
.legal-sec { margin-top: 30px; }
.legal-sec h2 { font-family: var(--disp); font-size: clamp(19px, 3vw, 24px); font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 13px; }
.legal-sec .ls-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.legal-sec p { color: var(--muted); line-height: 1.8; font-size: 14.5px; margin-top: 12px; }
.legal-sec ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.legal-sec li { margin-top: 4px; }
.legal-sec a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-sec .inline-code { font-family: var(--mono); font-size: 0.9em; background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.legal-updated { color: var(--faint); font-size: 13px; margin-top: 34px; text-align: center; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); }
.sheet {
  position: relative; z-index: 1; width: min(1000px, 94vw); max-height: 90vh; overflow: hidden;
  margin: 5vh auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 50px 130px rgba(0,0,0,0.8);
  animation: pop 0.4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet-close { position: absolute; top: 16px; right: 18px; z-index: 5; width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--fg); font-size: 14px; cursor: pointer; border-radius: 50%; transition: background 0.25s, color 0.25s, transform 0.35s; }
.sheet-close:hover { background: #fff; color: #000; transform: rotate(90deg); }
.sheet-grid { display: grid; grid-template-columns: 340px 1fr; max-height: 90vh; }

/* LEFT: buy */
.buy { padding: 32px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.buy-kicker { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.buy h3 { font-family: var(--disp); font-size: 27px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -0.02em; }
.buy-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field-label { font-size: 12px; letter-spacing: 0.04em; color: var(--faint); text-transform: uppercase; margin-bottom: 12px; }
.plan-list { display: grid; gap: 9px; margin-bottom: 20px; }
.plan { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.plan:hover { border-color: var(--line-2); }
.plan.active { border-color: #fff; background: rgba(255,255,255,0.08); }
.plan-name { font-size: 14px; color: var(--fg); }
.plan-price { font-family: var(--disp); font-size: 16px; font-weight: 600; color: var(--fg); margin-left: auto; }
.plan-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; background: #fff; color: #000; padding: 4px 8px; border-radius: 999px; }
.buy-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.buy-price span { font-family: var(--disp); font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.buy-price small { font-size: 14px; color: var(--faint); }
.buy-feats { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.buy-feats li { font-size: 14px; color: #cfcfd6; padding-left: 26px; position: relative; }
.buy-feats li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.buy-btn { margin-top: auto; text-align: center; font-family: var(--disp); font-weight: 600; font-size: 17px; background: #fff; color: #000; padding: 16px; border-radius: 999px; transition: transform 0.2s var(--ease), box-shadow 0.3s; }
.buy-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--glow); }
.buy-notes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12px; color: var(--muted); }

/* RIGHT: media */
.media { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-y: auto; }
.media .media-feats-label { margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.media .buy-feats { grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0; }
.stage { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #000 center/cover no-repeat; cursor: zoom-in; }
.stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .stage-tag { position: absolute; left: 0; bottom: 0; padding: 10px 14px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.8)); width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000 center/cover no-repeat; cursor: pointer; transition: border-color 0.25s, transform 0.2s; }
.thumb:hover { transform: translateY(-2px); border-color: var(--line-2); }
.thumb.active { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.thumb .vico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.thumb .vico::after { content: ""; width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; filter: drop-shadow(0 0 6px rgba(0,0,0,0.8)); margin-left: 3px; }

/* ============ LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.92); padding: 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.lightbox-close { position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,0.06); color: var(--fg); font-size: 16px; cursor: pointer; }
.lightbox-close:hover { background: #fff; color: #000; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .sheet-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .buy { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ AUTH CHIP ============ */
.auth-chip { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--fg); background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); padding: 8px 16px 8px 9px; border-radius: 999px; cursor: pointer; transition: background 0.25s, transform 0.2s, border-color 0.25s; }
.auth-chip.ghost { padding: 10px 20px; }
.auth-chip:hover { transform: translateY(-1px); border-color: #fff; background: rgba(255,255,255,0.08); }
.auth-chip .ac-ava { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.auth-chip .ac-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ AUTH MODAL ============ */
.auth-box {
  position: relative; z-index: 1; width: min(400px, 94vw); margin: 12vh auto 0;
  background: var(--panel-2); border: 1px solid var(--line); padding: 34px 32px 36px; border-radius: var(--r-lg);
  box-shadow: 0 50px 130px rgba(0,0,0,0.8);
  animation: pop 0.36s var(--ease);
}
.auth-head { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 26px; font-family: var(--disp); font-weight: 700; font-size: 21px; }
.auth-head svg { width: 23px; height: 23px; color: #fff; }
/* Discord OAuth login */
.auth-oauth { margin-top: 0; }
.btn-discord { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; font-family: var(--disp); font-weight: 600; font-size: 15.5px; color: #fff; background: #5865F2; border: none; padding: 14px; border-radius: 999px; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.2s; }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 14px 38px rgba(88,101,242,0.4); }
.btn-discord svg { width: 22px; height: 22px; fill: #fff; }

/* ============ ACCOUNT ============ */
.acc-box {
  position: relative; z-index: 1; width: min(620px, 94vw); max-height: 86vh; overflow-y: auto;
  margin: 8vh auto 0; background: var(--panel-2); border: 1px solid var(--line); padding: 32px; border-radius: var(--r-lg);
  box-shadow: 0 50px 130px rgba(0,0,0,0.8);
  animation: pop 0.36s var(--ease);
}
.acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.acc-kicker { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.acc-head h3 { font-family: var(--disp); font-size: 25px; font-weight: 700; margin-top: 6px; }
.acc-logout { font-size: 13px; color: var(--muted); background: none; border: 1px solid var(--line-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.acc-logout:hover { background: #fff; color: #000; border-color: #fff; }
.acc-sub { font-size: 13px; letter-spacing: 0.02em; color: var(--faint); text-transform: uppercase; margin-bottom: 18px; }
.acc-list { display: grid; gap: 14px; }
.acc-empty { text-align: center; padding: 40px 0; color: var(--muted); display: grid; gap: 18px; justify-items: center; }
.acc-shop { font-family: var(--disp); font-weight: 600; background: #fff; color: #000; border: none; padding: 13px 24px; border-radius: 999px; cursor: pointer; }
.acc-item { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; background: rgba(255,255,255,0.02); }
.ai-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ai-tier { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.ai-top h5 { font-family: var(--disp); font-size: 19px; font-weight: 600; margin-top: 4px; }
.ai-date { font-size: 12px; color: var(--faint); }
.ai-key { background: rgba(0,0,0,0.5); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.ai-key-label { font-size: 11px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.ai-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ai-key-row code { font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; color: var(--fg); }
.ai-copy { font-size: 12.5px; color: #000; background: #fff; border: none; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: transform 0.2s; }
.ai-copy:hover { transform: translateY(-1px); }
.ai-dl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--disp); font-weight: 600; font-size: 14.5px; color: var(--fg); border: 1px solid var(--line-2); padding: 12px 20px; border-radius: 999px; transition: background 0.25s, color 0.25s, transform 0.2s; }
.ai-dl:hover { background: #fff; color: #000; transform: translateY(-2px); }

/* ---- user panel tabs ---- */
.acc-box { width: min(720px, 94vw); }
.acc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.acc-tab { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.acc-tab:hover { color: #fff; border-color: var(--line-2); }
.acc-tab.active { background: #fff; color: #000; border-color: #fff; }
.acc-tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.acc-tab .tab-count { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255,255,255,0.12); color: var(--fg); }
.acc-tab.active .tab-count { background: rgba(0,0,0,0.12); color: #000; }
.acc-content { min-height: 120px; }

/* ---- profile pane ---- */
.pf-grid { display: grid; gap: 12px; }
.pf-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 18px; }
.pf-row .pf-label { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.pf-row .pf-val { font-family: var(--disp); font-weight: 600; font-size: 15px; word-break: break-all; text-align: right; }

/* ---- generic empty pane ---- */
.pane-empty { text-align: center; padding: 46px 16px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }
.pane-empty .pe-ico { font-size: 26px; opacity: 0.6; }
.pane-empty p { font-size: 14px; }
.pane-empty small { color: var(--faint); font-size: 12.5px; }

/* ---- programs pane ---- */
.pg-group { margin-bottom: 26px; }
.pg-group:last-child { margin-bottom: 0; }
.pg-group-title { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pg-card { display: flex; align-items: center; gap: 13px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 15px; transition: border-color 0.25s; }
.pg-card:hover { border-color: var(--line-2); }
.pg-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); display: grid; place-items: center; }
.pg-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; }
.pg-info { flex: 1; min-width: 0; }
.pg-info h5 { font-family: var(--disp); font-size: 15px; font-weight: 600; line-height: 1.2; }
.pg-info p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pg-dl { flex: none; font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s, transform 0.2s; white-space: nowrap; }
.pg-dl:hover { background: #fff; color: #000; transform: translateY(-1px); }
.pg-dl.disabled { opacity: 0.35; pointer-events: none; }

/* ============ UPDATE POPUP (left-middle) ============ */
.update-pop {
  position: fixed; left: 0; top: 50%; z-index: 85;
  width: min(330px, 86vw); transform: translate(-115%, -50%);
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: none;
  border-radius: 0 18px 18px 0; padding: 20px 22px 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
  transition: transform 0.55s var(--ease); will-change: transform;
}
.update-pop.show { transform: translate(0, -50%); }
.up-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--fg); font-size: 12px; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.3s; }
.up-close:hover { background: #fff; color: #000; transform: rotate(90deg); }
.up-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.up-head svg { width: 18px; height: 18px; color: #fff; }
.up-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; background: #fff; color: #000; padding: 3px 9px; border-radius: 999px; }
.up-time { font-size: 11px; color: var(--faint); margin-left: auto; padding-right: 22px; }
.up-title { font-family: var(--disp); font-size: 17px; font-weight: 600; margin-bottom: 7px; padding-right: 18px; letter-spacing: -0.01em; }
.up-msg { color: var(--muted); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* ============ TOAST ============ */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 24px); z-index: 90; opacity: 0; pointer-events: none; font-size: 14px; color: #000; background: #fff; padding: 14px 24px; border-radius: 999px; box-shadow: 0 16px 50px rgba(0,0,0,0.6); transition: opacity 0.3s, transform 0.3s var(--ease); max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { box-shadow: 0 16px 50px rgba(255,255,255,0.25); }

@media (max-width: 560px) {
  .auth-chip .ac-name { max-width: 70px; }
}

/* ============ 3D COVERFLOW ============ */
.hero.compact { margin: 0 auto clamp(8px, 2vw, 22px); }
.hero.compact h1 { font-size: clamp(32px, 6vw, 56px); }
.cf { position: relative; height: clamp(340px, 50vh, 480px); display: flex; align-items: center; justify-content: center; perspective: 1600px; margin: 6px 0 4px; }
.cf-stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cover { position: absolute; top: 50%; left: 50%; width: clamp(215px, 26vw, 290px); aspect-ratio: 3 / 4; cursor: pointer; transition: transform 0.55s var(--ease), opacity 0.55s var(--ease); will-change: transform; }
.cover-inner { position: absolute; inset: 0; background: #050507 center/cover no-repeat; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.4s, box-shadow 0.4s; }
.cover.center .cover-inner { border-color: var(--line-2); box-shadow: 0 50px 110px rgba(0,0,0,0.75); }
.cover.locked .cover-inner { filter: grayscale(1); }
.cover-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cover-art svg { width: 52%; height: 52%; color: #fff; opacity: 0.05; }
.cover.center .cover-art svg { opacity: 0.08; }
.cover-badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 999px; }
.cover-badge.live { background: #fff; color: #000; }
.cover-badge.soon { background: rgba(0,0,0,0.45); color: var(--muted); border: 1px solid var(--line-2); }
.cover-name { position: relative; font-family: var(--disp); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.cover-sub { position: relative; color: var(--muted); font-size: 13px; margin-top: 5px; }
.cf-nav { position: absolute; z-index: 200; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.25s, color 0.25s, transform 0.2s; }
.cf-nav:hover { background: #fff; color: #000; }
.cf-nav:active { transform: translateY(-50%) scale(0.94); }
.cf-nav.prev { left: clamp(6px, 4vw, 36px); }
.cf-nav.next { right: clamp(6px, 4vw, 36px); }
.cf-meta { text-align: center; max-width: 540px; margin: 0 auto; }
.cf-meta h2 { font-family: var(--disp); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.cf-meta > p { color: var(--muted); margin-top: 7px; font-size: 15px; min-height: 22px; }
.cf-cta { margin-top: 20px; font-family: var(--disp); font-weight: 600; font-size: 16px; background: #fff; color: #000; border: none; padding: 14px 30px; border-radius: 999px; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.25s, color 0.25s; }
.cf-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 42px var(--glow); }
.cf-cta.disabled { background: rgba(255,255,255,0.07); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }
.cf-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.cf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: background 0.25s, transform 0.25s; }
.cf-dot.active { background: #fff; transform: scale(1.35); }
@media (max-width: 560px) {
  .cf-nav { width: 42px; height: 42px; font-size: 20px; }
}

/* ============ ABOUT / WHY SECTIONS ============ */
.section { max-width: 1000px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) 0 0; text-align: center; }
.sec-kicker { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.section h2 { font-family: var(--disp); font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; }
.about p { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 600px; margin: 18px auto 0; line-height: 1.7; }
.about-stats { display: flex; gap: clamp(24px, 6vw, 64px); justify-content: center; flex-wrap: wrap; margin-top: 42px; }
.about-stats > div { display: flex; flex-direction: column; gap: 4px; }
.about-stats b { font-family: var(--disp); font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.about-stats span { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.games-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 40px; text-align: left; padding: 0; }
.games-list li a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 16px 18px; text-decoration: none; color: var(--fg);
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.games-list li a:hover { border-color: var(--line-2); transform: translateY(-3px); background: rgba(255,255,255,0.03); }
.games-list strong { font-family: var(--disp); font-size: 16px; font-weight: 600; }
.gl-tag { font-size: 12.5px; color: var(--muted); }
.gl-status { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.gl-status.live { color: #fff; font-weight: 700; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 44px; text-align: left; }
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 26px; transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s; }
.why-card:hover { border-color: var(--line-2); transform: translateY(-4px); background: rgba(255,255,255,0.03); }
.why-ico { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.6; }
.why-card h3 { font-family: var(--disp); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ============ CONTACT ============ */
.contact { margin: clamp(30px, 4vw, 58px) calc(-1 * clamp(22px, 6vw, 60px)) 0; }
.contact-band { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(110% 160% at 100% 0%, rgba(255,255,255,0.09), transparent 55%), var(--panel); padding: clamp(24px, 2.6vw, 36px) clamp(34px, 5vw, 60px); }
.contact-art { position: absolute; inset: 0; pointer-events: none; }
.contact-art svg { position: absolute; right: -50px; top: 50%; transform: translateY(-50%); width: clamp(320px, 42vw, 460px); height: auto; opacity: 0.55; filter: drop-shadow(0 0 30px rgba(255,255,255,0.15)); }
.contact-inner { position: relative; z-index: 1; max-width: 520px; }
.contact h2 { font-family: var(--disp); font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; }
.contact p { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); margin-top: 14px; max-width: 440px; line-height: 1.7; }
.contact-links { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.contact-btn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--disp); font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.3s, background 0.25s, color 0.25s, border-color 0.25s; }
.contact-btn svg { width: 22px; height: 22px; fill: currentColor; }
.contact-btn.tg { background: #fff; color: #000; }
.contact-btn.tg:hover { transform: translateY(-2px); box-shadow: 0 14px 42px var(--glow); }
.contact-btn.dc { background: rgba(255,255,255,0.05); color: #fff; border-color: var(--line-2); }
.contact-btn.dc:hover { border-color: #fff; transform: translateY(-2px); }
@media (max-width: 620px) { .contact-art svg { opacity: 0.22; } }

/* ============ TOPBAR: active link ============ */
.topbtn.active { background: #fff; color: #000; border-color: #fff; }

/* ============ INSTRUCTIONS PAGE ============ */
.instr { max-width: 880px; margin: 0 auto; width: 100%; }
.instr .hero { max-width: 720px; }
.instr .hero h1 { text-align: center; }
.instr .lead { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); text-align: center; max-width: 560px; margin: 16px auto 0; line-height: 1.7; }

.instr-section { margin-top: clamp(44px, 7vw, 68px); }
.instr-section > .sec-kicker { display: block; }
.instr-section h2 { font-family: var(--disp); font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 22px; }

/* requirements */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.req-item { display: flex; gap: 13px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.req-item .req-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.req-item .req-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.req-item h4 { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.req-item p { color: var(--muted); font-size: 13px; margin-top: 3px; line-height: 1.55; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 16px; counter-reset: step; }
.step { position: relative; display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; transition: border-color 0.3s, transform 0.3s var(--ease); }
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step-num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 18px; background: #fff; color: #000; }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-family: var(--disp); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.step-body p { color: var(--muted); font-size: 14.5px; margin-top: 7px; line-height: 1.7; }
.step-body p + p { margin-top: 9px; }
.step-body code, .inline-code { font-family: var(--mono); font-size: 0.9em; background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--fg); }
.step-body ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.step-body ul li { margin-top: 3px; }
.step-body a.tlink { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* callout */
.callout { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); border-radius: var(--r-md); padding: 18px 20px; margin-top: 22px; }
.callout .co-ico { flex: none; font-size: 20px; line-height: 1.4; }
.callout h4 { font-family: var(--disp); font-size: 15px; font-weight: 600; }
.callout p { color: var(--muted); font-size: 13.5px; margin-top: 4px; line-height: 1.65; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 17px 20px; font-family: var(--disp); font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 14px; line-height: 1.7; padding: 0 20px 18px; }
.faq-item p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* support cta */
.instr-cta { text-align: center; margin-top: clamp(44px, 7vw, 64px); padding: clamp(30px, 5vw, 44px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.instr-cta h2 { margin-bottom: 8px; }
.instr-cta p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; line-height: 1.7; }
.instr-cta .contact-links { justify-content: center; margin-top: 0; }

@media (max-width: 560px) {
  .step { padding: 18px; gap: 14px; }
  .step-num { width: 36px; height: 36px; font-size: 16px; }
}

/* tabbed layout: sidebar + panels */
.instr-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; margin-top: clamp(34px, 6vw, 56px); }
.instr-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 6px; }
.iside-tab { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; font-family: var(--disp); font-size: 14.5px; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 15px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.iside-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.iside-tab.active { color: #000; background: #fff; border-color: #fff; font-weight: 600; }
.iside-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.iside-num { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.1); color: var(--fg); }
.iside-tab.active .iside-num { background: rgba(0,0,0,0.14); color: #000; }

.instr-main { min-width: 0; }
.instr-panel { display: none; }
.instr-panel.active { display: block; animation: fadein 0.3s var(--ease); }
.instr-panel.instr-section { margin-top: 0; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .instr-layout { grid-template-columns: 1fr; gap: 22px; }
  .instr-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .iside-tab { width: auto; padding: 9px 14px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.04); }
  .iside-tab .iside-num { display: none; }
}

/* loader-launch blocks */
.instr-block { margin-top: 26px; }
.instr-block:first-of-type { margin-top: 6px; }
.block-title { font-family: var(--disp); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 11px; }
.block-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.instr-block > p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-top: 11px; }
.instr-block > p + p { margin-top: 9px; }
.instr-block strong { color: var(--fg); font-weight: 600; }
.instr-block ol, .instr-block ul { margin: 11px 0 0; padding-left: 22px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.instr-block li { margin-top: 5px; }
.instr-block li::marker { color: var(--faint); }

/* screenshot placeholder (drop a real image in /media and swap for <img>) */
.shot { margin-top: 14px; display: flex; align-items: center; gap: 11px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 13px 16px; color: var(--faint); font-family: var(--mono); font-size: 12.5px; background: rgba(255,255,255,0.02); }
.shot::before { content: "▣"; font-size: 16px; opacity: 0.7; }
.shot img { max-width: 100%; border-radius: var(--r-sm); display: block; }

/* real screenshot (image + caption) */
.shot-img { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--panel); max-width: 360px; }
.shot-img img { display: block; width: 100%; height: auto; }
.shot-img figcaption { font-family: var(--mono); font-size: 12px; color: var(--faint); padding: 9px 13px; border-top: 1px solid var(--line); }

/* hotkey badges */
.hotkeys { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.hk { display: inline-flex; align-items: center; gap: 9px; font-family: var(--disp); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: 999px; padding: 7px 9px 7px 15px; }
.hk kbd { font-family: var(--mono); background: #fff; color: #000; border-radius: 6px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
