:root {
  --bg: #0a0e17; --bg2: #0d1320; --panel: #121a2a; --panel2: #172134; --line: rgba(150, 180, 230, 0.12); --line2: rgba(150, 180, 230, 0.22);
  --text: #e9f0fc; --muted: #93a2bc; --dim: #66748d; --accent: #ff6b3d; --accent2: #ffa63d; --green: #35d07f; --red: #ff5a5a; --blue: #57b2ff; --yellow: #ffc53d;
  --font: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 14px; --max: 1240px; --gut: 24px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255, 107, 61, 0.35); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: 0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(10, 14, 23, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: 0.02em; flex: none; }
.brand img { border-radius: 8px; }
.brand b, .foot-brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav a { position: relative; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; transition: color .15s, background .15s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav a.nav-dl { color: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; margin-left: 4px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: none; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
body.menu .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu .burger span:nth-child(2) { opacity: 0; }
body.menu .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-weight: 600; font-size: 14px; }
.me-btn:hover { border-color: var(--line2); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); display: none; z-index: 40; }
.me.open .menu-pop { display: block; animation: pop .14s ease-out; }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: none; border: 0; text-align: left; color: var(--text); font-size: 14px; }
.menu-pop a:hover, .menu-pop button:hover { background: rgba(255, 255, 255, 0.06); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ basics */
main { flex: 1; outline: none; }
.boot { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.page { animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 26px; }
.sec-head p { color: var(--muted); margin-top: 6px; }
.sec-head a { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 720px; font-size: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(150, 180, 230, 0.32); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), #ff8a3d); border-color: transparent; color: #fff; box-shadow: 0 8px 26px rgba(255, 107, 61, 0.28); }
.btn.primary:hover { box-shadow: 0 10px 32px rgba(255, 107, 61, 0.42); background: linear-gradient(135deg, #ff7a4d, #ff9a4d); }
.btn.green { background: var(--green); border-color: transparent; color: #05210f; }
.btn.danger { color: #ffb0b0; border-color: rgba(255, 90, 90, 0.35); background: rgba(255, 90, 90, 0.08); }
.btn.danger:hover { background: rgba(255, 90, 90, 0.16); }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.ghost { background: none; border-color: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn svg, .ic { width: 18px; height: 18px; flex: none; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.07); color: var(--muted); white-space: nowrap; }
.pill.green { background: rgba(53, 208, 127, 0.14); color: var(--green); }
.pill.orange { background: rgba(255, 107, 61, 0.14); color: var(--accent); }
.pill.blue { background: rgba(87, 178, 255, 0.14); color: var(--blue); }
.pill.red { background: rgba(255, 90, 90, 0.14); color: var(--red); }
.pill.yellow { background: rgba(255, 197, 61, 0.14); color: var(--yellow); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 12px; font-weight: 600; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel h3 { font-size: 18px; margin-bottom: 14px; }
.panel + .panel { margin-top: 18px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: rgba(87, 178, 255, 0.08); border: 1px solid rgba(87, 178, 255, 0.25); color: #cfe6ff; }
.notice.warn { background: rgba(255, 197, 61, 0.08); border-color: rgba(255, 197, 61, 0.28); color: #ffe9b8; }
.notice.bad { background: rgba(255, 90, 90, 0.08); border-color: rgba(255, 90, 90, 0.3); color: #ffd0d0; }
.notice.good { background: rgba(53, 208, 127, 0.08); border-color: rgba(53, 208, 127, 0.3); color: #c9f5dc; }
.site-notice { background: linear-gradient(90deg, rgba(255, 107, 61, 0.16), rgba(255, 166, 61, 0.1)); border-bottom: 1px solid rgba(255, 107, 61, 0.25); }
.site-notice .wrap { padding-top: 10px; padding-bottom: 10px; font-size: 14px; }

/* ------------------------------------------------------------ forms */
label.f { display: block; margin-bottom: 16px; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.02em; }
label.f > small { display: block; color: var(--dim); font-size: 12px; margin-top: 6px; }
.in, select.in, textarea.in { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea.in { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 61, 0.18); }
.in::placeholder { color: var(--dim); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.err { color: #ffb0b0; font-size: 14px; min-height: 0; }
.err:not(:empty) { margin: 4px 0 12px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 13px; background: rgba(255, 255, 255, 0.14); transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.auth { max-width: 440px; margin: 48px auto 72px; }
.auth .panel { padding: 30px; }
.auth h1 { font-size: 28px; margin-bottom: 6px; }
.auth p.muted { margin-bottom: 22px; }
.auth .btn.primary { width: 100%; }
.auth .alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.auth .alt a { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(1000px 500px at 85% -10%, rgba(255, 107, 61, 0.24), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(87, 178, 255, 0.14), transparent 60%), var(--bg); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(150, 180, 230, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 180, 230, 0.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 76px 0 84px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 20px 0 30px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero .meta { margin-top: 18px; color: var(--dim); font-size: 13px; }
.hero-art { position: relative; aspect-ratio: 16 / 11; }
.hero-art .card3 { position: absolute; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); background: var(--panel); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.hero-art .card3 img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .c1 { inset: 0 18% 22% 0; z-index: 3; }
.hero-art .c2 { inset: 30% 0 0 34%; z-index: 2; transform: rotate(2deg); }
.hero-art .c3 { inset: 6% 4% 44% 52%; z-index: 1; transform: rotate(-3deg); opacity: .85; }
.hero-art:hover .c1 { transform: translate(-6px, -6px); }
.hero-art:hover .c2 { transform: rotate(3deg) translate(6px, 6px); }

/* ------------------------------------------------------------ game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.card .thumb { aspect-ratio: 16 / 9; background: var(--panel2) center / cover no-repeat; position: relative; }
.card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 26, 42, 0.9), transparent 55%); }
.card .ico { position: absolute; left: 14px; bottom: -22px; width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--panel); z-index: 2; background: var(--panel2); object-fit: cover; }
.card .body { padding: 30px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 18px; }
.card .tl { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot2 { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; justify-content: space-between; color: var(--dim); font-size: 13px; }
.price { font-weight: 700; color: var(--green); font-size: 14px; }
.price.paid { color: var(--text); }
.feature-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.feature-big { position: relative; min-height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); display: flex; align-items: flex-end; background: var(--panel) center / cover no-repeat; }
.feature-big::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 11, 19, 0.96) 10%, rgba(8, 11, 19, 0.35) 60%, transparent); }
.feature-big .fb-in { position: relative; padding: 28px; max-width: 620px; }
.feature-big h3 { font-size: 32px; margin: 6px 0 8px; }
.feature-big p { color: #c6d1e4; }
.feature-big .row { margin-top: 18px; }
.feature-side { display: grid; gap: 20px; grid-auto-rows: 1fr; }
.mini { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.mini:hover { border-color: var(--line2); background: var(--panel2); }
.mini img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.mini h4 { font-size: 16px; }
.mini p { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 22px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); }
.feat .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 107, 61, 0.12); color: var(--accent); margin-bottom: 14px; }
.feat .fi svg { width: 22px; height: 22px; }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; }
.cta-band { position: relative; overflow: hidden; border-radius: 20px; padding: 44px; border: 1px solid rgba(255, 107, 61, 0.3); background: radial-gradient(600px 300px at 100% 0, rgba(255, 107, 61, 0.25), transparent 70%), var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 30px; }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------------ store */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 24px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.filters .search { flex: 1 1 260px; position: relative; }
.filters .search svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--dim); }
.filters .search .in { padding-left: 42px; }
.filters select.in { width: auto; min-width: 150px; }
.result-count { color: var(--dim); font-size: 13px; margin-bottom: 14px; }

/* ------------------------------------------------------------ game page */
.g-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); overflow: hidden; }
.g-hero .bg { position: absolute; inset: 0; background: var(--panel) center / cover no-repeat; transform: scale(1.03); }
.g-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(10, 14, 23, 0.7) 45%, rgba(10, 14, 23, 0.15)); }
.g-hero .wrap { position: relative; z-index: 1; padding-bottom: 34px; display: flex; gap: 24px; align-items: flex-end; }
.g-hero .gi { width: 112px; height: 112px; border-radius: 22px; border: 3px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); object-fit: cover; flex: none; background: var(--panel); }
.g-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.g-hero .tl { color: #cbd5e6; font-size: 17px; margin-top: 8px; max-width: 760px; }
.g-hero .by { margin-top: 10px; color: var(--muted); font-size: 14px; }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 30px 0 64px; }
.g-buy { position: sticky; top: 84px; align-self: start; }
.g-buy .price-big { font-size: 26px; font-weight: 700; color: var(--green); }
.g-buy .btn { width: 100%; margin-top: 10px; }
.facts { margin-top: 18px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt, .facts span:first-child { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }
.prose { color: #cfd8e8; font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; transition: transform .15s, border-color .15s; }
.gallery button:hover { transform: scale(1.02); border-color: var(--line2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.req { display: grid; grid-template-columns: 140px 1fr; gap: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.req div { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.req div:nth-child(odd) { color: var(--muted); background: rgba(255, 255, 255, 0.02); }
.req div:nth-last-child(-n+2) { border-bottom: 0; }
.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.board td:first-child { width: 36px; color: var(--dim); font-weight: 700; }
.board td:last-child { text-align: right; font-weight: 600; }
.board tr:last-child td { border-bottom: 0; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 11, 0.92); display: grid; place-items: center; padding: 30px; animation: fadein .15s; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox .lb-x, .lightbox .lb-p, .lightbox .lb-n { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(18, 26, 42, 0.8); color: #fff; display: grid; place-items: center; }
.lightbox .lb-x { top: 18px; right: 18px; }
.lightbox .lb-p { left: 18px; top: 50%; }
.lightbox .lb-n { right: 18px; top: 50%; }

/* ------------------------------------------------------------ modal + toast */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(4, 6, 11, 0.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fadein .15s; }
.modal { width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); max-height: 92vh; overflow: auto; }
.modal h3 { font-size: 21px; margin-bottom: 8px; }
.modal p { color: var(--muted); }
.modal .row.end { justify-content: flex-end; margin-top: 22px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 13px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); font-size: 14px; animation: pop .18s ease-out; }
.toast.good { border-color: rgba(53, 208, 127, 0.45); }
.toast.bad { border-color: rgba(255, 90, 90, 0.5); }

/* ------------------------------------------------------------ download */
.dl-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.dl-card { padding: 28px; border-radius: 20px; background: radial-gradient(500px 260px at 100% 0, rgba(255, 107, 61, 0.2), transparent 70%), var(--panel); border: 1px solid var(--line2); }
.dl-card .ver { font-size: 44px; font-weight: 700; letter-spacing: -0.01em; }
.dl-card .btn.big { width: 100%; margin-top: 18px; }
.sha { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12px; color: var(--dim); word-break: break-all; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { list-style: none; position: relative; padding: 16px 16px 16px 62px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 107, 61, 0.14); color: var(--accent); font-weight: 700; }
.steps li b { display: block; margin-bottom: 2px; }
.steps li span { color: var(--muted); font-size: 14px; }
ol.steps { padding: 0; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ------------------------------------------------------------ account + profile */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 26px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.av { border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; object-fit: cover; overflow: hidden; }
.prof-hero { position: relative; height: 240px; border-radius: 0 0 20px 20px; background: linear-gradient(135deg, #1b2740, #2b1b2a) center / cover no-repeat; border: 1px solid var(--line); border-top: 0; }
.prof-head { position: relative; display: flex; gap: 22px; align-items: flex-end; margin: -56px 0 22px; padding: 0 24px; }
.prof-head .av { width: 120px; height: 120px; border: 5px solid var(--bg); font-size: 44px; }
.prof-head h1 { font-size: 30px; }
.prof-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.prof-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; padding-bottom: 64px; }
.bio { white-space: pre-wrap; color: #cfd8e8; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .ttl { font-weight: 600; }
.li .sub { color: var(--muted); font-size: 13px; }
.li img.gi { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.18); }
.img-edit { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); margin-bottom: 14px; }
.img-edit .prev { width: 72px; height: 72px; border-radius: 12px; background: var(--panel2) center / cover no-repeat; flex: none; }
.img-edit .prev.wide { width: 150px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 4px; z-index: 10; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
.suggest button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 0; background: none; text-align: left; }
.suggest button:hover { background: rgba(255, 255, 255, 0.06); }

/* ------------------------------------------------------------ developer portal */
.dev-hero { padding: 64px 0 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow > div { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; }
.flow b { display: block; margin: 8px 0 4px; }
.flow span { color: var(--muted); font-size: 13px; }
.flow i { font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: rgba(255, 255, 255, 0.03); }
.tablewrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding-bottom: 64px; }
.editor aside { position: sticky; top: 84px; align-self: start; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; display: grid; place-items: center; }
.drop { display: block; padding: 20px; border-radius: 12px; border: 1.5px dashed var(--line2); text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255, 107, 61, 0.05); }
.drop input { display: none; }
.bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; transition: width .2s; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-i { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 5px; font-size: 13.5px; }
.tl-i::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--line2); }
.tl-i:first-child::before { background: var(--accent); border-color: var(--accent); }
.tl-i .when { color: var(--dim); font-size: 12px; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 20px 0 64px; }
.docs nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.docs nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.docs nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.docs h2 { font-size: 24px; margin: 34px 0 12px; scroll-margin-top: 90px; }
.docs h2:first-child { margin-top: 0; }
.docs code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; }
.docs pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 13px; }

/* ------------------------------------------------------------ 404 */
.nf { text-align: center; padding: 110px 20px; }
.nf h1 { font-size: 96px; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); margin: 10px 0 26px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 44px var(--gut) 30px; display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 600; }
.foot-brand img { border-radius: 7px; }
.foot-brand p { flex-basis: 100%; color: var(--dim); font-size: 14px; font-weight: 400; margin-top: 6px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.foot-cols a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot-cols a:hover { color: var(--text); }
.foot-base { max-width: var(--max); margin: 0 auto; padding: 16px var(--gut) 26px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ admin */
.adm { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding: 26px 0 64px; }
.adm-nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.adm-nav .lbl { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 10px 12px 6px; }
.adm-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.adm-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.adm-nav a.on { color: var(--text); background: rgba(255, 107, 61, 0.12); }
.adm-nav a em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.adm h1 { font-size: 28px; margin-bottom: 4px; }
.adm .sub { color: var(--muted); margin-bottom: 22px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; }
.kv > :nth-child(odd) { color: var(--muted); }
.files { max-height: 320px; overflow: auto; font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.files div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.files .exe { color: var(--accent); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .top-in { gap: 18px; }
  .flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: flex; }
  .nav { position: fixed; top: 64px; left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gut) 18px; background: rgba(10, 14, 23, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  body.menu .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav a.on::after { display: none; }
  .nav a.on { background: rgba(255, 107, 61, 0.1); }
  .hero-in, .dl-hero, .dev-hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-in { padding: 48px 0 56px; }
  .hero-art { max-width: 560px; }
  .feature-row, .g-layout, .editor, .prof-grid, .two, .docs, .adm { grid-template-columns: 1fr; }
  .g-buy, .editor aside, .docs nav, .adm-nav { position: static; }
  .docs nav, .adm-nav { flex-direction: row; flex-wrap: wrap; }
  .adm-nav .lbl { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 14.5px; }
  .top-in { height: 58px; gap: 10px; }
  .nav { top: 58px; }
  .brand { font-size: 17px; }
  .brand img { width: 26px; height: 26px; }
  .me-btn .nm { display: none; }
  .me-btn { padding: 4px; }
  .section { padding: 40px 0; }
  .features, .grid2, .flow { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .feature-big { min-height: 320px; }
  .feature-big h3 { font-size: 25px; }
  .cta-band { padding: 26px; }
  .cta-band h2 { font-size: 23px; }
  .g-hero { min-height: 340px; }
  .g-hero .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .g-hero .gi { width: 80px; height: 80px; border-radius: 16px; }
  .filters select.in { flex: 1 1 140px; min-width: 0; }
  .prof-head { flex-direction: column; align-items: flex-start; padding: 0 8px; margin-top: -48px; }
  .prof-head .av { width: 96px; height: 96px; }
  .prof-hero { height: 170px; border-radius: 0 0 14px 14px; }
  .req { grid-template-columns: 110px 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv > :nth-child(odd) { margin-top: 8px; }
  .panel { padding: 18px; }
  .modal { padding: 22px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .top-right .btn { height: 38px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* notices (forgot password) */
.note { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line, #232c3d); line-height: 1.5; }
.note.good { background: rgba(53, 208, 127, 0.1); border-color: rgba(53, 208, 127, 0.35); }

/* GIF search, two-step sign-in */
.modal:has(.gif-grid) { max-width: 640px; }
.gif-top { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.gif-top .seg { display: flex; gap: 4px; }
.gif-top .seg button { background: rgba(255,255,255,.06); border: 1px solid var(--line2); color: var(--muted); border-radius: 8px; padding: 7px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.gif-top .seg button.on { background: var(--accent, #ff6b3d); color: #fff; border-color: transparent; }
.gif-grid { columns: 3 150px; column-gap: 8px; max-height: 50vh; overflow: auto; min-height: 120px; }
.gif-grid .gif { display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.05); cursor: pointer; break-inside: avoid; }
.gif-grid .gif img { display: block; width: 100%; height: auto; }
.gif-grid .gif:hover { outline: 2px solid var(--accent, #ff6b3d); }
.row.center { justify-content: center; }
.qrbox { display: flex; gap: 18px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.qrbox img { background: #fff; border-radius: 10px; padding: 6px; }
.qrbox code { font-size: 15px; letter-spacing: 1px; word-break: break-all; flex: 1; min-width: 160px; }
pre.codes { background: rgba(255,255,255,.05); border: 1px solid var(--line2); border-radius: 10px; padding: 14px; font-size: 16px; line-height: 1.7; columns: 2; margin: 14px 0; }
