/* ========================================================================
   Igrovik.site — дизайн-система. Тёмная «игровая» эстетика, CSS-арт.
   ======================================================================== */
:root {
  --bg: #0b0a16;
  --bg-2: #12102a;
  --surface: #171533;
  --surface-2: #1e1b40;
  --border: #2b2857;
  --text: #eceaff;
  --muted: #9c98c9;
  --primary: #7b3fe4;
  --primary-2: #a76bff;
  --accent: #00e5ff;
  --pink: #ff2e97;
  --success: #2af598;
  --danger: #ff5c7c;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px -6px rgba(123,63,228,.5);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(123,63,228,.25), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(0,229,255,.14), transparent 55%),
    radial-gradient(600px 600px at 50% 110%, rgba(255,46,151,.12), transparent 60%);
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grad-text { background: linear-gradient(100deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- pills / tags ---- */
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(123,63,228,.15); border: 1px solid var(--border); color: var(--primary-2); margin-bottom: 18px;
}
.pill-live { color: var(--success); background: rgba(42,245,152,.12); }
.pill-live::first-letter { color: var(--success); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(100deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 0 46px -4px rgba(167,107,255,.7); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); }
.btn-light { background: #fff; color: #1a1730; }
.btn-light:hover { background: #f0eeff; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--primary-2); font-weight: 600; cursor: pointer; padding: 0; font-size: .9rem; }
.link-btn:disabled { color: var(--muted); cursor: default; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(11,10,22,.72); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; letter-spacing: -.03em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-2), var(--accent)); box-shadow: var(--shadow-glow); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 6px 6px auto auto; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.brand-dot { color: var(--primary-2); }
.site-nav { display: flex; gap: 6px; margin-left: 12px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.site-nav a.active { color: var(--text); background: rgba(123,63,228,.16); }
.nav-beta { color: var(--success) !important; }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---- hero ---- */
.hero { position: relative; padding: 92px 0 104px; overflow: hidden; background-size: cover; background-position: center; background-color: var(--bg-2); }
.hero-glow { position: absolute; top: -30%; left: 55%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(123,63,228,.35), transparent 62%); filter: blur(20px); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; }
.hero-copy { max-width: 640px; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; background: linear-gradient(120deg, #fff, var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* framed real photo */
.hero-photo { position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background-size: cover; background-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, transparent 45%, rgba(123,63,228,.4)); }
.hero-photo .live-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: rgba(11,10,22,.62); border: 1px solid rgba(42,245,152,.45); color: var(--success); padding: 7px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700; backdrop-filter: blur(6px); }
.hero-photo .live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* orbit CSS art */
.hero-art { display: flex; justify-content: center; }
.orbit { position: relative; width: 340px; height: 340px; }
.orbit.small { width: 180px; height: 180px; }
.planet { position: absolute; inset: 50% auto auto 50%; width: 120px; height: 120px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle at 32% 30%, var(--primary-2), var(--primary) 45%, #22123f 100%); box-shadow: 0 0 60px -6px rgba(167,107,255,.8), inset -12px -12px 30px rgba(0,0,0,.5); }
.orbit.small .planet { width: 70px; height: 70px; }
.ring { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%) rotateX(74deg); border: 2px solid rgba(0,229,255,.35); border-radius: 50%; }
.ring-1 { width: 240px; height: 240px; animation: spin 16s linear infinite; }
.ring-2 { width: 320px; height: 320px; border-color: rgba(255,46,151,.28); animation: spin 26s linear infinite reverse; }
.orbit.small .ring-1 { width: 150px; height: 150px; }
.sat { position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 50%; left: 50%; margin: -7px; }
.sat-1 { background: var(--accent); box-shadow: 0 0 16px var(--accent); animation: orbit1 16s linear infinite; }
.sat-2 { background: var(--pink); box-shadow: 0 0 16px var(--pink); animation: orbit2 26s linear infinite; }
.sat-3 { background: #fff; box-shadow: 0 0 12px #fff; animation: orbit1 10s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%,-50%) rotateX(74deg) rotate(360deg); } }
@keyframes orbit1 { from { transform: rotate(0) translateX(120px) rotate(0); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: rotate(0) translateX(160px) rotate(0); } to { transform: rotate(-360deg) translateX(160px) rotate(360deg); } }

/* ---- sections ---- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section-link { color: var(--primary-2); font-weight: 700; }
.page-hero { padding: 54px 0 20px; }

/* ---- game cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c1) 60%, var(--border)); }
.game-card-art { position: relative; height: 160px; background: linear-gradient(135deg, var(--c1), var(--c2)); background-size: cover; background-position: center; }
.game-card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,22,0) 42%, rgba(11,10,22,.82) 100%), linear-gradient(120deg, color-mix(in srgb, var(--c1) 40%, transparent), transparent 62%); }
.game-card-icon { position: absolute; top: 10px; left: 10px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(11,10,22,.5); border: 1px solid rgba(255,255,255,.18); border-radius: 11px; backdrop-filter: blur(4px); }
.g-icon { width: 24px; height: 24px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.badge-beta { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.5); color: var(--success); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 2; border: 1px solid rgba(42,245,152,.4); }
.game-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card-top { display: flex; justify-content: space-between; align-items: center; }
.genre-tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-2); background: rgba(123,63,228,.14); padding: 3px 9px; border-radius: 6px; }
.rating { color: #ffd35c; font-weight: 700; font-size: .9rem; }
.game-card-body h3 { margin: 4px 0 2px; font-size: 1.18rem; }
.game-card-body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.players { font-size: .8rem; }

/* ---- beta banner ---- */
.beta-banner { position: relative; margin: 20px 0; padding: 10px 0; }
.beta-inner { background: linear-gradient(120deg, #241056, #3a1c71 55%, #0f2a4a); border: 1px solid var(--border); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.beta-copy h2 { margin-bottom: 12px; }
.beta-copy p { color: #cfc8ff; max-width: 40em; }
.beta-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); background-size: cover; background-position: center; }
.beta-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, transparent 45%, rgba(15,10,40,.55)); }

/* empire scene CSS art */
.empire-scene { position: relative; height: 220px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #1b1140 0%, #4a2a7a 55%, #7a4a9a 100%); }
.empire-scene.mini { height: 150px; }
.es-sky { position: absolute; inset: 0; background: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 40%, #fff, transparent), radial-gradient(1px 1px at 40% 50%, #fff, transparent); opacity: .8; }
.es-sun { position: absolute; top: 26%; left: 50%; width: 90px; height: 90px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffd88a, #ff9a4a 60%, transparent 72%); filter: blur(2px); opacity: .9; }
.es-castle { position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%); width: 130px; height: 90px;
  background:
    linear-gradient(#2a1840,#2a1840) 0 0/22px 60px no-repeat,
    linear-gradient(#2a1840,#2a1840) 54px -14px/22px 74px no-repeat,
    linear-gradient(#2a1840,#2a1840) 108px 0/22px 60px no-repeat,
    linear-gradient(#3a2456,#241640) 0 40px/130px 50px no-repeat;
  filter: drop-shadow(0 0 20px rgba(0,0,0,.4)); }
.es-castle::before { content:""; position:absolute; bottom:10px; left:60px; width:12px; height:26px; background:#ffd88a; border-radius:6px 6px 0 0; box-shadow:0 0 12px #ffd88a; }
.es-castle.big { transform: translateX(-50%) scale(1.4); bottom: 26%; }
.es-hill { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: radial-gradient(120% 100% at 50% 100%, #1a2f4a, #10203a); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.stars { position: absolute; inset: 0; }

/* ---- articles ---- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.articles-grid-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-cover { height: 150px; background: linear-gradient(120deg, var(--c1), var(--c2)); background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 12px; }
.article-cover::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,10,22,.05) 35%, rgba(11,10,22,.78)); }
.article-tag { position: relative; z-index: 1; background: rgba(0,0,0,.4); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.article-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card-body h3 { font-size: 1.12rem; }
.article-card-body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }

/* article detail */
.article-header { position: relative; padding: 48px 0 32px; margin-bottom: 6px; background: linear-gradient(135deg, var(--c1, #3a1c71), var(--c2, #0b0a16)); background-size: cover; background-position: center; overflow: hidden; }
.article-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,22,.5) 0%, rgba(11,10,22,.9) 100%); }
.article-header .container { position: relative; z-index: 1; }
.article-tags { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.article-meta { margin-top: 10px; }
.article-body { padding: 32px 0 10px; }

/* ---- news ---- */
.news-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; }
.news-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .15s; }
.news-item:hover { border-color: var(--primary); transform: translateY(-2px); }
.news-source { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; }
.news-title { font-weight: 600; font-size: .95rem; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .15s; }
.news-row:hover { border-color: var(--primary); transform: translateY(-2px); }
.news-thumb { background-size: cover; background-position: center; min-height: 100px; background-color: var(--surface-2); }
.news-thumb-empty { background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.news-row-body { padding: 14px 16px 14px 0; }
.news-row-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.news-row-meta { font-size: .78rem; color: var(--accent); font-weight: 600; }
.news-disclaimer { margin-top: 20px; }
.news-clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* news detail page */
.news-article-hero { height: 360px; background-size: cover; background-position: center; position: relative; }
.news-article-hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,22,.2) 35%, var(--bg) 100%); }
.news-article-body { padding-top: 26px; padding-bottom: 10px; }
.news-article-tags { display: flex; gap: 8px; align-items: center; margin: 14px 0 12px; flex-wrap: wrap; }
.news-src-chip { font-size: .78rem; font-weight: 600; color: var(--accent); background: rgba(0,229,255,.1); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.news-article-text { margin: 22px 0 26px; font-size: 1.1rem; }
.source-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; flex-wrap: wrap; }
.source-callout > div { flex: 1; min-width: 240px; }
.source-callout p { margin: 6px 0 0; }
.empty-state { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---- prose ---- */
.prose { font-size: 1.05rem; color: #d9d6f5; }
.prose h3 { margin-top: 1.6em; color: #fff; }
.prose a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 28px; color: #d9d6f5; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--primary-2), var(--accent)); }

/* ---- game detail ---- */
.game-hero { padding: 40px 0 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 35%, var(--bg)) , var(--bg) 70%); border-bottom: 1px solid var(--border); }
.game-hero-inner { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
.game-hero-art { position: relative; height: 220px; border-radius: 20px; background: linear-gradient(135deg, var(--c1), var(--c2)); background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: flex-start; box-shadow: var(--shadow); overflow: hidden; }
.game-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 38%, rgba(11,10,22,.6)); }
.game-hero-art .game-card-icon { position: relative; margin: 14px; z-index: 1; }
.back-link { color: var(--muted); font-weight: 600; display: inline-block; margin-bottom: 10px; }
.back-link:hover { color: var(--text); }
.game-meta { display: flex; align-items: center; gap: 12px; margin: 14px 0 20px; }

/* ---- beta page ---- */
.beta-hero { position: relative; padding: 80px 0 70px; text-align: center; overflow: hidden; }
.beta-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.beta-hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,10,22,.5), rgba(11,10,22,.92)); }
.beta-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.beta-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.slot-meter { max-width: 520px; margin: 26px auto; }
.slot-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; border: 1px solid var(--border); }
.slot-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--accent)); border-radius: 999px; transition: width 1s ease; }
.slot-info { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.slot-left { color: var(--success); font-weight: 700; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.fc-icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.join-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }

/* ---- forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 13px 15px; border-radius: 12px; font-size: 1rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123,63,228,.25); }
.field-hint { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.form-note { min-height: 1.2em; margin: 4px 0 0; font-size: .9rem; font-weight: 600; }
.form-note.ok { color: var(--success); }
.form-note.err { color: var(--danger); }
.form-note.info { color: var(--accent); }

/* ---- auth ---- */
.auth-page { padding: 40px 0 70px; }
.auth-inner { display: grid; grid-template-columns: 1fr .8fr; gap: 30px; align-items: start; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 6px; }
.step-dot { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); flex: 1; }
.step-dot span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--border); font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.step-dot.active { color: var(--text); }
.step-dot.active span { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; }
.step-dot.done span { background: var(--success); border-color: transparent; color: #06251a; }
.resend-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.resend-timer { font-size: .82rem; color: var(--muted); }
.auth-alt { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.auth-alt a { color: var(--primary-2); font-weight: 600; }
.auth-aside { padding: 30px; }
.auth-aside-art { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-aside h3 { font-size: 1.2rem; }

/* ---- account ---- */
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.account-avatar { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 14px; margin-bottom: 24px; }
.account-stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.account-stat strong { font-size: 1.05rem; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- legal ---- */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding-top: 40px; padding-bottom: 70px; }
.legal-nav { position: sticky; top: 90px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav h4 { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.legal-nav a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: .92rem; }
.legal-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.legal-nav a.active { background: rgba(123,63,228,.16); color: var(--text); font-weight: 600; }
.legal-doc { max-width: 760px; }
.legal-doc h1 { margin-bottom: 6px; }

/* ---- cta / error ---- */
.cta-final { text-align: center; padding: 70px 0; margin-top: 20px; }
.cta-final .lead { margin: 0 auto 26px; }
.error-page { text-align: center; padding: 100px 0; }
.error-code { font-size: 6rem; font-weight: 900; background: linear-gradient(120deg, var(--primary-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 50px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; }
.footer-col a:hover { color: var(--text); }
.footer-brand .muted { font-size: .9rem; margin-top: 12px; max-width: 30em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.footer-bottom .muted { font-size: .84rem; margin: 0; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-inner, .beta-inner, .auth-inner, .game-hero-inner, .legal-wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .beta-visual, .auth-aside { display: none; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-nav { position: fixed; inset: 68px 0 auto; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px; transform: translateY(-120%); transition: transform .25s ease; margin: 0; }
  .site-nav.open { transform: translateY(0); }
  .header-cta { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 84px 1fr; }
  .header-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }
