/* ========== Шрифты (локально, без Google) ========== */
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(/fonts/unbounded-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url(/fonts/unbounded-cyrillic-900-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 900; font-display: swap; src: url(/fonts/unbounded-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ========== Токены ========== */
:root {
  --bg: #060a06; --bg2: #0b130b; --card: rgba(16, 28, 16, .62); --card-solid: #0f1a0f;
  --line: rgba(57, 255, 106, .14); --line2: rgba(57, 255, 106, .32);
  --text: #e4f4e4; --muted: #8ea68e; --neon: #39ff6a; --neon2: #b6ff3b; --earth: #c9a26b; --earth2: #8b5a2b;
  --danger: #ff4d6d; --on-neon: #041204;
  --glow: 0 0 18px rgba(57, 255, 106, .45), 0 0 46px rgba(57, 255, 106, .18);
  --radius: 14px; --max: 1180px;
  --font-h: 'Unbounded', system-ui, sans-serif; --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3efe3; --bg2: #e9e3d1; --card: rgba(255, 255, 255, .78); --card-solid: #fffdf6;
  --line: rgba(21, 128, 61, .18); --line2: rgba(21, 128, 61, .4);
  --text: #18261a; --muted: #55664f; --neon: #138a3e; --neon2: #4d8c00; --earth: #8b5a2b; --earth2: #6b4422;
  --on-neon: #fff; --glow: 0 6px 24px rgba(19, 138, 62, .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(57, 255, 106, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(201, 162, 107, .07), transparent 60%);
  background-attachment: fixed;
  transition: background-color .4s, color .4s;
}
main { flex: 1; }
a { color: var(--neon); text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 900; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.08rem; }
p { margin: 0 0 1em; }
.px { image-rendering: pixelated; display: block; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--neon); color: var(--on-neon); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
.center { text-align: center; margin-top: 32px; }
.muted { color: var(--muted); }

/* ========== Прелоадер: «генерация мира» + логотип ========== */
#preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--bg);
  background-image: linear-gradient(rgba(57,255,106,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(57,255,106,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: opacity .6s, visibility .6s;
}
.no-preload #preloader, #preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.no-preload #preloader { transition: none; }
.pl-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pl-logo .px { animation: plPulse 1.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(57,255,106,.7)); }
.pl-logo span { font: 900 clamp(1.4rem, 5vw, 2.2rem) var(--font-h); letter-spacing: .12em; color: var(--neon); text-shadow: var(--glow); }
.pl-bar { width: min(320px, 70vw); height: 14px; border: 2px solid var(--line2); padding: 2px; background: rgba(0,0,0,.3); }
.pl-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--neon) 0 10px, var(--neon2) 10px 20px); box-shadow: var(--glow); transition: width .35s steps(6); }
.pl-text { font: 600 .9rem var(--font); color: var(--muted); min-height: 1.4em; letter-spacing: .04em; }
@keyframes plPulse { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(-3deg); filter: drop-shadow(0 0 28px rgba(57,255,106,.95)); } }

/* ========== Шапка ========== */
.hdr {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 12px max(16px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 900 1.05rem var(--font-h); color: var(--text); letter-spacing: .06em; }
.brand .px { filter: drop-shadow(0 0 8px rgba(57,255,106,.6)); transition: transform .3s; }
.brand:hover .px { transform: rotate(-12deg) scale(1.1); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; position: relative; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--line); }
.nav a.active { color: var(--neon); }
.nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--neon); box-shadow: var(--glow); border-radius: 2px; }
.nav a.admin-only { color: var(--earth); }
.nav a.admin-only::before { content: '🔒 '; font-size: .8em; }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.is-online .dot { background: var(--neon); box-shadow: 0 0 0 0 rgba(57,255,106,.7); animation: ping 1.8s infinite; }
.is-offline .dot { background: var(--danger); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(57,255,106,.6); } 70% { box-shadow: 0 0 0 9px rgba(57,255,106,0); } 100% { box-shadow: 0 0 0 0 rgba(57,255,106,0); } }
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang a { padding: 5px 8px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.lang a.on { background: var(--neon); color: var(--on-neon); }
.tbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s, transform .15s; }
.tbtn:hover { border-color: var(--line2); color: var(--neon); }
.tbtn:active { transform: scale(.92); }
.tbtn .ic + .ic { display: none; }
[data-theme="light"] [data-act="theme"] .ic:first-child { display: none; }
[data-theme="light"] [data-act="theme"] .ic + .ic { display: block; }
.sound-on [data-act="sound"] .ic:first-child { display: none; }
.sound-on [data-act="sound"] .ic + .ic { display: block; color: var(--neon); }
.lite [data-act="motion"] { color: var(--muted); opacity: .6; }
.burger { display: none; }

/* ========== Кнопки ========== */
.btn {
  --b: var(--neon); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px; font: 700 .95rem var(--font-h); letter-spacing: .02em; cursor: pointer;
  border: 2px solid var(--b); transition: transform .18s, box-shadow .25s, background .25s, color .25s; position: relative; overflow: hidden;
  text-align: center;
}
.btn-main { background: var(--neon); color: var(--on-neon); box-shadow: var(--glow); }
.btn-main::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.btn-main:hover::before { transform: translateX(120%); transition: transform .7s; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(57,255,106,.7), 0 0 70px rgba(57,255,106,.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); transform: translateY(-2px); }
.btn.disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.5); }
.btn.disabled:hover { transform: none; }
.btn.sm { padding: 8px 14px; font-size: .8rem; border-radius: 10px; }
.btn:active { transform: translateY(0) scale(.97); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--neon); background: none; border: 0; padding: 0; cursor: pointer; font: 600 .95rem var(--font); }
.link .ic { transition: transform .2s; }
.link:hover .ic { transform: translateX(3px); }

/* ========== Hero ========== */
.hero { position: relative; min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 60px 16px 100px; overflow: hidden; isolation: isolate; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid {
  position: absolute; inset: auto -50% -10% -50%; height: 55%; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 54px 54px; transform: perspective(500px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  animation: gridMove 4s linear infinite;
}
@keyframes gridMove { to { background-position: 0 54px; } }
.hero-in { text-align: center; max-width: 900px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line2); border-radius: 99px; background: var(--card); backdrop-filter: blur(8px); font-weight: 600; font-size: .88rem; margin-bottom: 28px; }
.hero-title { font-size: clamp(2rem, 10.5vw, 7.4rem); white-space: nowrap; letter-spacing: .02em; margin: 0 0 20px; color: var(--neon); text-shadow: 0 0 20px rgba(57,255,106,.55), 0 0 60px rgba(57,255,106,.25); position: relative; display: inline-block; }
[data-theme="light"] .hero-title { text-shadow: 3px 3px 0 var(--earth); }
.hero-title span { display: inline-block; animation: letterIn .8s cubic-bezier(.2, 1.4, .4, 1) backwards; animation-delay: calc(var(--i) * 60ms + .15s); }
.hero-title span:hover { animation: jump .5s; color: var(--neon2); }
@keyframes letterIn { from { opacity: 0; transform: translateY(60px) rotate(12deg) scale(.6); filter: blur(8px); } }
@keyframes jump { 40% { transform: translateY(-18px) rotate(-6deg); } }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: #ff2fd0; animation: glitchA 6s infinite steps(1); }
.glitch::after { color: #2ff3ff; animation: glitchB 6s infinite steps(1); }
@keyframes glitchA { 0%, 92%, 100% { opacity: 0; } 93% { opacity: .8; transform: translate(-4px, 2px); clip-path: inset(10% 0 60% 0); } 95% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(50% 0 20% 0); } }
@keyframes glitchB { 0%, 92%, 100% { opacity: 0; } 94% { opacity: .8; transform: translate(4px, -2px); clip-path: inset(30% 0 40% 0); } 96% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(70% 0 5% 0); } }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ip-btn .ip-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.players { margin-top: 26px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.players img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; border: 1px solid var(--line2); transition: transform .2s; }
.players img:hover { transform: scale(1.3) translateY(-4px); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 24px; height: 38px; border: 2px solid var(--line2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--neon); border-radius: 2px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Пасхалка: стартовая площадка */
.launchpad { position: absolute; right: max(24px, 6vw); bottom: 70px; background: none; border: 0; cursor: pointer; padding: 8px; animation: idle 2.6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 77, 109, .5)); }
.launchpad::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 52px; height: 6px; margin-left: -26px; background: var(--earth2); border-radius: 3px; box-shadow: 0 0 12px rgba(201,162,107,.5); }
.launchpad:hover { animation: shake .3s infinite; }
.launchpad.gone { visibility: hidden; }
@keyframes idle { 50% { transform: translateY(-4px); } }
@keyframes shake { 25% { transform: translate(-1px, 1px) rotate(-2deg); } 75% { transform: translate(1px, -1px) rotate(2deg); } }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 900; }
.egg-sprite { position: fixed; z-index: 901; pointer-events: none; left: 0; top: 0; will-change: transform; }
.shake-screen { animation: screenShake .5s; }
@keyframes screenShake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 4px); } }

/* ========== Секции ========== */
.sec { max-width: var(--max); margin: 0 auto; padding: 90px 16px 20px; }
.sec.page { padding-top: 60px; min-height: 60vh; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.sec-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.h-glow { color: var(--text); }
.h-glow::after { content: ''; display: block; width: 64px; height: 4px; margin: 18px auto 0; background: linear-gradient(90deg, var(--neon), var(--earth)); box-shadow: var(--glow); border-radius: 2px; }
.post .h-glow::after { margin-left: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature, .news-card, .member, .tier, .step, .cta-band, .acc, .map-empty, .admin-banner {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px);
}
.feature { padding: 28px; position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.feature::before, .news-card::before, .member::before, .tier::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(57,255,106,.13), transparent 45%);
}
.feature:hover::before, .news-card:hover::before, .member:hover::before, .tier:hover::before { opacity: 1; }
.feature:hover, .news-card:hover, .member:hover { border-color: var(--line2); box-shadow: 0 10px 40px -12px rgba(57,255,106,.3); }
.f-ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: rgba(57,255,106,.07); border: 1px solid var(--line); margin-bottom: 18px; transition: transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.feature:hover .f-ic { transform: rotate(-8deg) scale(1.12); }
.feature p { color: var(--muted); margin: 0; }
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s, box-shadow .3s; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.step { padding: 28px; position: relative; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; font: 900 1.3rem var(--font-h); color: var(--on-neon); background: var(--neon); border-radius: 12px; box-shadow: var(--glow); }
.step p { color: var(--muted); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 52px; right: -18px; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--neon) 0 4px, transparent 4px 8px); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; padding: 26px; color: var(--text); position: relative; overflow: hidden; }
.news-card time, .post time { font: 600 .8rem var(--font); color: var(--earth); letter-spacing: .08em; }
.news-card h3 { margin: 10px 0; font-size: 1.15rem; }
.news-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.more { display: inline-flex; gap: 6px; align-items: center; color: var(--neon); font-weight: 600; }
.news-card:hover .more .ic { transform: translateX(4px); }
.more .ic { transition: transform .2s; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(57,255,106,.14), rgba(201,162,107,.12)), var(--card); border-color: var(--line2); }
.cta-band h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.cta-band p { color: var(--muted); margin: 0; max-width: 560px; }

/* Аккордеон правил/FAQ */
.accordion { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.acc { overflow: hidden; transition: border-color .3s; }
.acc[open] { border-color: var(--line2); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc-n { font: 900 .9rem var(--font-h); color: var(--neon); min-width: 30px; }
.acc-t { flex: 1; font-size: 1.02rem; }
.acc-x { width: 14px; height: 14px; position: relative; flex: none; }
.acc-x::before, .acc-x::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--neon); transition: transform .3s; }
.acc-x::after { transform: rotate(90deg); }
.acc[open] .acc-x::after { transform: rotate(0); }
.acc-b { padding: 0 22px 20px 68px; color: var(--muted); animation: accIn .35s ease-out; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }
.punish { display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 77, 109, .1); border: 1px solid rgba(255, 77, 109, .3); color: var(--text); font-size: .9rem; }

/* Команда */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.member { padding: 26px 20px; text-align: center; position: relative; overflow: hidden; }
.m-av { height: 140px; display: grid; place-items: end center; margin-bottom: 14px; background: radial-gradient(circle at 50% 80%, rgba(57,255,106,.18), transparent 60%); }
.m-av img { image-rendering: pixelated; transition: transform .4s cubic-bezier(.2, 1.6, .4, 1); }
.member:hover .m-av img { transform: translateY(-8px) rotate(-4deg); }
.m-role { display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(201,162,107,.14); color: var(--earth); font-size: .82rem; font-weight: 600; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Пост */
.post { max-width: 780px; }
.post h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-top: 10px; }
.back { margin-bottom: 26px; }
.prose { font-size: 1.05rem; color: var(--text); }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Карта */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); box-shadow: var(--glow); height: 70vh; min-height: 420px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-empty { padding: 60px 24px; text-align: center; display: grid; justify-items: center; gap: 18px; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Донат */
.admin-banner { padding: 14px 20px; margin: 0 auto 28px; max-width: 760px; text-align: center; border-color: rgba(201,162,107,.5); color: var(--earth); font-weight: 600; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.tier { --tc: var(--neon); padding: 32px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; border-top: 3px solid var(--tc); }
.tier.hot { box-shadow: 0 0 0 1px var(--tc), 0 20px 60px -20px var(--tc); }
.tier.hot::after { content: 'TOP'; position: absolute; top: 16px; right: -30px; transform: rotate(45deg); background: var(--tc); color: #041204; font: 900 .7rem var(--font-h); padding: 4px 36px; }
.tier-ic { margin-bottom: 14px; animation: idle 3s ease-in-out infinite; }
.tier h3 { color: var(--tc); font-size: 1.3rem; letter-spacing: .06em; }
.price { font: 900 2.2rem var(--font-h); margin-bottom: 18px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; color: var(--muted); }
.tier li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tier .btn { width: 100%; }

/* 404 */
.nf { text-align: center; }
.nf-404 { font: 900 clamp(5rem, 22vw, 12rem) var(--font-h); color: var(--neon); text-shadow: var(--glow); position: relative; display: inline-block; line-height: 1; margin-bottom: 20px; }
.nf p { color: var(--muted); }
.empty { text-align: center; color: var(--muted); }

/* ========== Подвал ========== */
.ftr { border-top: 1px solid var(--line); margin-top: 100px; padding: 36px 16px; background: color-mix(in srgb, var(--bg2) 70%, transparent); }
.ftr-in { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.ftr-brand { display: flex; align-items: center; gap: 10px; }
.ftr-brand span { color: var(--muted); font-size: .9rem; }
.ftr-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ftr-links a { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; }
.ftr-links a:hover { color: var(--neon); }
.ip-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px dashed var(--line2); border-radius: 10px; background: none; color: var(--text); font: 600 .9rem ui-monospace, monospace; cursor: pointer; }
.ip-chip:hover { border-color: var(--neon); color: var(--neon); }
.ftr-note { width: 100%; font-size: .78rem; color: var(--muted); margin: 6px 0 0; opacity: .75; }

/* ========== Тосты / ачивки ========== */
#toasts { position: fixed; right: 16px; top: 76px; z-index: 950; display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 10px; background: var(--card-solid); border: 1px solid var(--line2); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-weight: 600; animation: toastIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.toast.bad { border-color: var(--danger); }
.ach { display: flex; gap: 14px; align-items: center; min-width: 280px; padding: 12px 18px 12px 12px; background: #1d1d1d; border: 3px solid #555; border-radius: 4px; color: #fff; box-shadow: inset -3px -3px 0 #111, inset 3px 3px 0 #3a3a3a, 0 10px 30px rgba(0,0,0,.5); animation: achIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.ach .px { width: 40px; height: auto; }
.ach b { display: block; color: #ffe14d; font: 700 .85rem var(--font-h); margin-bottom: 2px; }
.ach span { font-size: .9rem; }
.toast.out, .ach.out { animation: toastOut .35s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.9); } }
@keyframes achIn { from { opacity: 0; transform: translateY(-60px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ========== Появление при скролле ========== */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* SPA-переходы */
main.leaving { opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
main.entering { animation: pageIn .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(-10px); } }

/* ========== Упрощённый режим (кнопка / prefers-reduced-motion) ========== */
.lite *, .lite *::before, .lite *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
.lite .reveal { opacity: 1 !important; transform: none !important; }
.lite .glitch::before, .lite .glitch::after, .lite .hero-grid { display: none; }
.lite .tilt { transform: none !important; }

/* ========== Адаптив ========== */
@media (max-width: 1060px) {
  .burger { display: grid; }
  .nav { position: fixed; top: 61px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav a.active::after { display: none; }
}
@media (max-width: 640px) {
  .hdr { gap: 8px; }
  .brand span { display: none; }
  .tools { gap: 4px; }
  .status-pill { padding: 5px 9px; font-size: .75rem; }
  .tbtn { width: 32px; height: 32px; }
  .lang a { padding: 4px 6px; font-size: .7rem; }
  [data-act="motion"] { display: none; }
  .hero { padding-bottom: 120px; }
  .hero-cta .btn { width: 100%; }
  .launchpad { right: 16px; bottom: 74px; }
  .step:not(:last-child)::after { display: none; }
  .acc-b { padding-left: 22px; }
  .cta-band { padding: 26px; }
  .cta-band .btn { width: 100%; }
  .sec { padding-top: 64px; }
}
@media (max-width: 380px) { .status-pill b { display: none; } }

/* ========== Вайтлист ========== */
.wl-sec { padding-top: 0; margin-top: -60px; position: relative; z-index: 2; }
.wl { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(57,255,106,.12), rgba(201,162,107,.08)), var(--card); border: 1px solid var(--line2);
  backdrop-filter: blur(14px); box-shadow: 0 30px 80px -40px rgba(57,255,106,.5); }
.wl h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.wl-text p { color: var(--muted); margin: 0; }
.wl-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.wl-input { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; border: 2px solid var(--line2); background: color-mix(in srgb, var(--bg) 70%, transparent); transition: border-color .2s, box-shadow .2s; }
.wl-input:focus-within { border-color: var(--neon); box-shadow: var(--glow); }
.wl-head { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; transition: transform .3s; }
.wl-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 600 1.05rem ui-monospace, monospace; padding: 8px 0; }
/* вход через Discord */
.vf .wl-text .btn { margin-top: 16px; }
.vf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vf-steps li { display: flex; gap: 14px; align-items: flex-start; }
.vf-steps .step-n { flex: none; width: 36px; height: 36px; margin: 0; font-size: 1rem; border-radius: 10px; }
.vf-steps b { display: block; margin-bottom: 2px; }
.vf-steps span:not(.step-n) { color: var(--muted); font-size: .95rem; }
.wl-msg { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-weight: 600; font-size: .92rem; }
.wl-msg.ok { color: var(--neon); }
.wl-msg.bad { color: var(--danger); }
.wl-form.busy button { opacity: .7; pointer-events: none; }
.wl-form.busy button::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ========== Страны ========== */
.nations { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.nation { --tc: var(--neon); padding: 28px; position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--tc); backdrop-filter: blur(10px); }
.nation::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px circle at 100% 0, color-mix(in srgb, var(--tc) 18%, transparent), transparent 55%); pointer-events: none; }
.nation h3 { color: var(--tc); font-size: 1.3rem; }
.n-flag { display: flex; gap: 3px; margin-bottom: 16px; }
.n-flag i { width: 22px; height: 30px; background: var(--tc); opacity: .9; animation: flag 2.4s ease-in-out infinite; transform-origin: top; }
.n-flag i:nth-child(2) { opacity: .6; animation-delay: .15s; } .n-flag i:nth-child(3) { opacity: .35; animation-delay: .3s; }
@keyframes flag { 50% { transform: skewY(8deg) scaleY(.92); } }
.n-desc { color: var(--muted); }
.n-laws { font-size: .93rem; border-top: 1px dashed var(--line2); padding-top: 14px; }
.n-laws ul { margin: 0; padding-left: 18px; } .n-laws li { margin: 4px 0; }

/* ========== Карта: статусы ========== */
.map-state { font: 900 1.25rem var(--font-h); color: var(--text); }
.map-empty.is-fix { border-color: rgba(255, 159, 28, .45); }
.map-empty.is-fix .map-state { color: #ff9f1c; }
.map-empty.is-dev .map-state { color: var(--neon); }
.map-empty .px { animation: idle 2.6s ease-in-out infinite; }

/* ========== Загрузки ========== */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.dl-card { padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dl-ic { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 18px; background: rgba(57,255,106,.07); border: 1px solid var(--line); }
.dl-list { display: grid; gap: 10px; width: 100%; }
.dl-file { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); color: var(--text); transition: border-color .2s, transform .2s, background .2s; }
.dl-file:hover { border-color: var(--neon); transform: translateX(4px); }
.dl-file.rec { background: var(--neon); color: var(--on-neon); border-color: var(--neon); box-shadow: var(--glow); }
.dl-file.rec small { color: inherit; opacity: .75; }
.dl-file span { display: grid; } .dl-file small { color: var(--muted); }
.dl-meta { list-style: none; padding: 0; margin: 0; color: var(--muted); display: grid; gap: 4px; }
.dl-meta b { color: var(--text); }
.dl-man { font-size: .85rem; }
.nav a[href="/download"] { color: var(--neon); border: 1px solid var(--line2); }

/* ========== Пасхалка: ПВО ========== */
.aa-lock { position: fixed; z-index: 902; pointer-events: none; width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 2px solid #ff4d6d; border-radius: 50%; box-shadow: 0 0 14px #ff4d6d; animation: lock .6s ease-out infinite; }
.aa-lock::before, .aa-lock::after { content: ''; position: absolute; background: #ff4d6d; }
.aa-lock::before { left: 50%; top: -10px; bottom: -10px; width: 2px; margin-left: -1px; }
.aa-lock::after { top: 50%; left: -10px; right: -10px; height: 2px; margin-top: -1px; }
@keyframes lock { from { transform: scale(1.6); opacity: .3; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 760px) {
  .wl { grid-template-columns: 1fr; padding: 24px; }
  .wl-form { grid-template-columns: 1fr; }
  .wl-sec { margin-top: -40px; }
}
.hero { grid-template-columns: minmax(0, 1fr); }
.hero-in { width: 100%; min-width: 0; }
.ip-btn { max-width: 100%; }
.ip-btn .ip-text { overflow-wrap: anywhere; }
@media (max-width: 640px) { .ip-btn .ip-text { font-size: .8rem; } }
.nav a, .brand span { white-space: nowrap; }
@media (max-width: 1240px) {
  .burger { display: grid; }
  .nav { position: fixed; top: 61px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav a.active::after { display: none; }
}
.n-flagpx { margin-bottom: 16px; display: inline-block; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 6px 20px -6px var(--tc); animation: flagWave 3s ease-in-out infinite; transform-origin: left center; }
@keyframes flagWave { 50% { transform: perspective(300px) rotateY(-14deg) skewY(2deg); } }
