/* DRACHEN v2 — premium dark pixel identity. Fonts self-hosted (OFL): Press Start 2P, Silkscreen, Pixelify Sans. */
@font-face { font-family: "PS2P"; src: url(/fonts/pressstart2p.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Silk"; src: url(/fonts/silkscreen.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silk"; src: url(/fonts/silkscreen-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify"; src: url(/fonts/pixelify.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #06050d; --bg2: #0b0918; --surf: #110e24; --surf2: #171332; --line: #2b2552;
  --text: #f1eeff; --muted: #b3acd9; --dim: #7d76a6;
  --cyan: #3ef2ff; --mag: #ff3fd2; --gold: #ffcf4a; --vio: #9b6bff; --lime: #8dff6a; --red: #ff5c7a;
  --glow-c: 0 0 18px rgba(62, 242, 255, .45); --glow-m: 0 0 18px rgba(255, 63, 210, .45); --glow-g: 0 0 22px rgba(255, 207, 74, .5);
  --px: 4px; --maxw: 1180px;
  --f-head: "PS2P", "Silk", monospace; --f-ui: "Silk", "PS2P", monospace; --f-body: "Pixelify", "Silk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: var(--f-body); font-size: 17px; line-height: 1.55; background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--mag); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pix { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- background ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 85% 10%, rgba(155, 107, 255, .16), transparent 60%),
              radial-gradient(50vmax 35vmax at 0% 60%, rgba(62, 242, 255, .10), transparent 60%),
              radial-gradient(45vmax 30vmax at 100% 95%, rgba(255, 63, 210, .10), transparent 60%); }
.scan { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.55) 2px 3px); }
main, header, footer { position: relative; z-index: 2; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  animation: loaderOut .4s ease 2.6s forwards; }
#loader.done { animation: loaderOut .35s ease forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.ld { display: grid; justify-items: center; gap: 18px; }
.ld img { width: 84px; height: 84px; animation: bob 1.2s steps(4) infinite; }
.ld-bar { display: flex; gap: 5px; }
.ld-bar i { width: 12px; height: 12px; background: var(--line); animation: ldb 1s steps(1) infinite; }
.ld-bar i:nth-child(2) { animation-delay: .12s } .ld-bar i:nth-child(3) { animation-delay: .24s } .ld-bar i:nth-child(4) { animation-delay: .36s }
.ld-bar i:nth-child(5) { animation-delay: .48s } .ld-bar i:nth-child(6) { animation-delay: .6s }
@keyframes ldb { 0%, 40% { background: var(--cyan); box-shadow: var(--glow-c); } 50%, 100% { background: var(--line); box-shadow: none; } }
.ld-t { font-family: var(--f-ui); font-size: 12px; letter-spacing: .3em; color: var(--muted); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(6,5,13,.92), rgba(6,5,13,.7)); border-bottom: 1px solid rgba(62,242,255,.14); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand .wm-small { width: 128px; height: auto; }
.brand-k { width: 30px; height: 30px; display: none; }
.nav a.nl { font-family: var(--f-ui); font-size: 13px; letter-spacing: .08em; color: var(--muted); text-decoration: none; padding: 8px 6px; text-transform: uppercase; position: relative; }
.nav a.nl:hover, .nav a.nl[aria-current="page"] { color: var(--text); }
.nav a.nl[aria-current="page"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 3px; background: var(--cyan); box-shadow: var(--glow-c); }
@media (max-width: 400px) { .brand .wm-small { display: none; } .brand-k { display: block; } .nav a.nl { padding: 8px 4px; font-size: 12px; } }

/* ---------- buttons ---------- */
.btn { --c1: var(--cyan); --c2: var(--mag); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 0; cursor: pointer; text-decoration: none; text-transform: uppercase;
  font-family: var(--f-head); font-size: 12px; letter-spacing: .06em; line-height: 1.4; color: #07060f;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px rgba(255,255,255,.08) inset, 0 0 24px rgba(62,242,255,.35), 0 0 34px rgba(255,63,210,.25);
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
  transition: transform .15s steps(2), filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.12) saturate(1.1); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: not-allowed; filter: grayscale(.8) brightness(.6); transform: none; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 14px; }
.btn-ghost { color: var(--text); border: 2px solid transparent; background: linear-gradient(#100d22, #100d22) padding-box, linear-gradient(135deg, #3a3270, #2b2552) border-box; box-shadow: none; }
.btn-ghost:hover { background: linear-gradient(#141030, #141030) padding-box, linear-gradient(135deg, var(--cyan), var(--mag)) border-box; }
.btn-gold { --c1: #ffe27a; --c2: #ff9d2e; }
.btn-x::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url(/img/x.svg) center/contain no-repeat; mask: url(/img/x.svg) center/contain no-repeat; }
.nav .btn { min-height: 40px; padding: 8px 14px; font-size: 11px; }
@media (max-width: 400px) { .nav .btn { padding: 8px 10px; font-size: 10px; } }
.lnk { background: none; border: 0; padding: 4px 0; color: var(--cyan); cursor: pointer; font-family: var(--f-ui); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.eyebrow { font-family: var(--f-ui); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); text-shadow: var(--glow-c); }
.h2 { font-family: var(--f-head); font-size: clamp(18px, 4.6vw, 30px); line-height: 1.35; margin: 12px 0 14px; letter-spacing: .02em; text-wrap: balance; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.center { text-align: center; } .center .lede { margin: 0 auto; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; padding: 40px 0 70px; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; z-index: -1; background: url(/art/hero-sky.png) center top / cover no-repeat; image-rendering: pixelated; opacity: .55; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,5,13,.1) 0%, rgba(6,5,13,.35) 55%, var(--bg) 100%); }
.hero-in { text-align: center; position: relative; }
.hero .eyebrow { display: inline-block; margin-bottom: 26px; }
.wm-big { width: min(860px, 100%); height: auto; display: block; margin: 0 auto; overflow: visible; filter: drop-shadow(0 0 14px rgba(62,242,255,.45)) drop-shadow(0 0 30px rgba(255,63,210,.25)); }
.wm .wm-shadow { fill: #3b136b; } .wm .wm-hi { fill: rgba(255,255,255,.55); }
.tag1 { font-family: var(--f-head); font-size: clamp(13px, 3.2vw, 20px); line-height: 1.6; margin: 34px auto 10px; max-width: 760px; color: var(--text); text-wrap: balance; }
.tag2 { font-family: var(--f-ui); font-size: clamp(15px, 3.6vw, 20px); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: var(--glow-g); margin: 0 0 34px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.kite { position: absolute; z-index: -1; width: 120px; height: 120px; pointer-events: none; animation: bob 4.8s ease-in-out infinite; }
.kite.k1 { left: 3%; top: 12%; width: 128px; height: 128px; }
.kite.k2 { right: 4%; top: 6%; width: 150px; height: 150px; animation-delay: -1.6s; }
.kite.k3 { right: 12%; bottom: 8%; width: 104px; height: 104px; animation-delay: -3s; }
@media (max-width: 720px) { .kite.k1 { left: -18px; top: 4%; width: 84px; height: 84px; } .kite.k2 { right: -16px; top: 0; width: 96px; height: 96px; } .kite.k3 { right: 4%; bottom: 2%; width: 72px; height: 72px; } }
@keyframes bob { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(6px, -16px) rotate(3deg); } }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--f-ui); font-size: 11px; letter-spacing: .3em; color: var(--dim); }
.scroll-hint::after { content: ""; display: block; width: 8px; height: 8px; margin: 8px auto 0; background: var(--cyan); box-shadow: var(--glow-c); animation: drop 1.4s steps(4) infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* wordmark assemble */
.wm-big .wm-face rect { animation: blk .7s cubic-bezier(.2,.9,.3,1.2) both; }
.wm-big .wm-shadow, .wm-big .wm-hi { animation: fadeIn .6s ease .7s both; }
.wm-big .d0 { animation-delay: .05s } .wm-big .d1 { animation-delay: .1s } .wm-big .d2 { animation-delay: .15s } .wm-big .d3 { animation-delay: .2s } .wm-big .d4 { animation-delay: .25s }
.wm-big .d5 { animation-delay: .3s } .wm-big .d6 { animation-delay: .35s } .wm-big .d7 { animation-delay: .4s } .wm-big .d8 { animation-delay: .45s } .wm-big .d9 { animation-delay: .5s }
@keyframes blk { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.wm-big .wm-face { animation: shimmer 6s ease-in-out 1.4s infinite; }
@keyframes shimmer { 0%, 86%, 100% { opacity: 1; } 90% { opacity: .78; } 93% { opacity: 1; } 95% { opacity: .85; } }

/* ---------- info blocks ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.fact { position: relative; padding: 22px 16px 20px; min-height: 148px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(23,19,50,.92), rgba(11,9,24,.92)); border: 2px solid var(--line);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  transition: border-color .2s, transform .2s; }
.fact:hover { border-color: var(--cyan); transform: translateY(-3px); }
.fact .k { font-family: var(--f-ui); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-family: var(--f-head); font-size: clamp(14px, 2.2vw, 20px); line-height: 1.5; margin-top: 16px; }
.fact .dot { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; background: var(--cyan); box-shadow: var(--glow-c); }
.fact:nth-child(2) .dot { background: var(--mag); box-shadow: var(--glow-m); } .fact:nth-child(3) .dot { background: var(--vio); box-shadow: 0 0 14px rgba(155,107,255,.6); }
.fact.gtd { border-color: rgba(255,207,74,.7); background: radial-gradient(120% 90% at 50% 0%, rgba(255,207,74,.22), rgba(17,14,36,.95) 60%); box-shadow: inset 0 0 40px rgba(255,207,74,.12); text-align: center; justify-content: center; }
.fact.gtd .k { color: var(--gold); font-family: var(--f-head); font-size: 14px; letter-spacing: .3em; }
.fact.gtd .v { font-size: clamp(30px, 6vw, 44px); margin-top: 12px; color: var(--gold); text-shadow: 0 0 12px rgba(255,207,74,.75), 0 0 34px rgba(255,157,46,.45), 3px 3px 0 #6b2a00; }
.fact.gtd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); transform: translateX(-120%); animation: sweep 4.5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

@media (max-width: 480px) { .fact { padding: 18px 12px 16px; min-height: 128px; } .fact .v { font-size: 12px; overflow-wrap: normal; } .fact .k { font-size: 12px; letter-spacing: .14em; } .fact.gtd .v { font-size: 30px; } }
/* ---------- leaderboard ---------- */
.lb-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.lb-rule { display: inline-flex; gap: 10px; align-items: center; font-family: var(--f-ui); font-size: 13px; color: var(--gold); letter-spacing: .08em; padding: 8px 12px; border: 1px dashed rgba(255,207,74,.5); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin: 10px 0 28px; }
.pod { position: relative; text-align: center; padding: 18px 10px 16px; background: linear-gradient(180deg, rgba(23,19,50,.95), rgba(11,9,24,.95)); border: 2px solid var(--line);
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% 100%, 0 100%); }
.pod.p1 { border-color: var(--gold); padding-top: 26px; box-shadow: inset 0 0 50px rgba(255,207,74,.16); }
.pod.p2 { border-color: #cfd8ff; } .pod.p3 { border-color: #ff9d5c; }
.pod .crown { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 26px; height: 14px; }
.pod .av { width: 72px; height: 72px; margin: 6px auto 10px; border: 3px solid currentColor; background: var(--bg2); }
.pod.p1 .av { width: 92px; height: 92px; color: var(--gold); box-shadow: var(--glow-g); }
.pod.p2 .av { color: #cfd8ff; } .pod.p3 .av { color: #ff9d5c; }
.pod .rk { font-family: var(--f-head); font-size: 22px; } .pod.p1 .rk { color: var(--gold); text-shadow: var(--glow-g); font-size: 28px; }
.pod .un { font-family: var(--f-ui); font-size: 14px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pt { font-family: var(--f-ui); font-size: 12px; color: var(--muted); margin-top: 4px; }
.pod .base { height: 10px; margin: 14px -10px -16px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 12px); }
.pod.p1 .base { height: 26px; background: repeating-linear-gradient(90deg, rgba(255,207,74,.55) 0 8px, transparent 8px 12px); }
.pod.p2 .base { height: 16px; }
@media (max-width: 560px) { .podium { gap: 8px; } .pod { padding: 14px 6px 14px; } .pod .av { width: 52px; height: 52px; } .pod.p1 .av { width: 66px; height: 66px; } .pod .un { font-size: 12px; } .pod .rk { font-size: 16px; } .pod.p1 .rk { font-size: 20px; } .pod .pt { font-size: 11px; } }
.lb-tools { display: flex; gap: 10px; margin-bottom: 14px; }
.lb-tools input { flex: 1; min-width: 0; }
.lb-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lb-row { display: grid; grid-template-columns: 54px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; background: rgba(17,14,36,.82); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s; animation: rowIn .45s ease both; }
.lb-row:hover { transform: translateX(4px); border-color: var(--cyan); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lb-row .rk { font-family: var(--f-head); font-size: 13px; color: var(--cyan); }
.lb-row .av { width: 40px; height: 40px; border: 2px solid var(--line); background: var(--bg2); }
.lb-row .un { font-family: var(--f-ui); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .inv { font-size: 13px; color: var(--muted); }
.lb-row .pt { font-family: var(--f-head); font-size: 12px; color: var(--gold); text-align: right; white-space: nowrap; }
@media (max-width: 420px) { .lb-row { grid-template-columns: 40px 34px 1fr auto; gap: 8px; padding: 9px 10px; } .lb-row .av { width: 34px; height: 34px; } .lb-row .rk { font-size: 11px; } .lb-row .pt { font-size: 10px; } .lb-row .un { font-size: 13px; } }
.lb-more { display: flex; justify-content: center; margin-top: 18px; }
.lb-empty { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line); }
.skel { height: 60px; background: linear-gradient(90deg, rgba(23,19,50,.6), rgba(43,37,82,.6), rgba(23,19,50,.6)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- security ---------- */
.safe { position: relative; padding: 34px 22px; border: 2px solid rgba(141,255,106,.45); background: linear-gradient(160deg, rgba(141,255,106,.07), rgba(11,9,24,.92) 55%);
  clip-path: polygon(0 10px, 10px 10px, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 10px), 0 calc(100% - 10px)); }
.safe .h2 { color: var(--lime); text-shadow: 0 0 16px rgba(141,255,106,.45); }
.safe ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 760px) { .safe ul { grid-template-columns: 1fr; } }
.safe li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: rgba(6,5,13,.55); border: 1px solid var(--line); font-size: 17px; }
.safe li .ic { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.shield { display: block; width: 44px; height: 48px; margin-bottom: 8px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 40px; background: rgba(6,5,13,.75); }
.foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-family: var(--f-ui); font-size: 13px; color: var(--muted); }
.foot a { color: var(--text); text-decoration: none; } .foot a:hover { color: var(--cyan); }
.foot .wm-small { width: 110px; height: auto; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s } .js .rv.d2 { transition-delay: .16s } .js .rv.d3 { transition-delay: .24s }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--f-ui); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.inp { width: 100%; min-height: 48px; padding: 12px 14px; background: rgba(6,5,13,.8); border: 2px solid var(--line); color: var(--text); font-family: var(--f-body); font-size: 16px; border-radius: 0; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--cyan); box-shadow: var(--glow-c); }
.inp[readonly] { color: var(--gold); font-family: var(--f-head); font-size: 14px; letter-spacing: .08em; }
.field.err .inp { border-color: var(--red); }
.msg { font-size: 14px; color: var(--red); min-height: 0; }
.hint { font-size: 14px; color: var(--dim); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- apply modal ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(3,2,8,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.sheet { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  background: linear-gradient(170deg, #13102a, #0a0817 60%); border: 2px solid rgba(62,242,255,.45); box-shadow: 0 0 60px rgba(62,242,255,.18), 0 0 120px rgba(255,63,210,.12);
  animation: sheetIn .35s cubic-bezier(.2,.9,.3,1.1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .modal { padding: 0; place-items: stretch; } .sheet { width: 100%; max-height: none; height: 100%; border-width: 0; } }
.sh-top { position: sticky; top: 0; z-index: 3; padding: 16px 18px 14px; background: rgba(12,10,26,.97); border-bottom: 1px solid var(--line); }
.sh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-title { font-family: var(--f-head); font-size: 14px; letter-spacing: .06em; margin: 0; }
.x-close { width: 40px; height: 40px; border: 2px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text); font-family: var(--f-head); font-size: 14px; }
.x-close:hover { border-color: var(--mag); color: var(--mag); }
.prog { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 14px; }
.prog i { height: 8px; background: var(--line); transition: background .3s, box-shadow .3s; }
.prog i.on { background: var(--cyan); box-shadow: var(--glow-c); } .prog i.cur { background: var(--mag); box-shadow: var(--glow-m); }
.prog-l { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--f-ui); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.sh-body { padding: 22px 18px 26px; }
.step { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step-n { font-family: var(--f-ui); font-size: 13px; color: var(--mag); letter-spacing: .2em; }
.step h3 { font-family: var(--f-head); font-size: clamp(15px, 3.6vw, 20px); line-height: 1.45; margin: 10px 0 12px; }
.step p { color: var(--muted); margin: 0 0 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.acts .grow { flex: 1; }
.note { display: flex; gap: 10px; padding: 12px 14px; margin: 16px 0; border-left: 3px solid var(--gold); background: rgba(255,207,74,.07); font-size: 15px; color: var(--text); }
.fmt { font-family: var(--f-head); font-size: clamp(11px, 3vw, 14px); line-height: 1.8; padding: 14px; background: rgba(6,5,13,.85); border: 2px dashed rgba(62,242,255,.5); color: var(--cyan); overflow-wrap: anywhere; }
.rules { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.rules li::before { content: "■ "; color: var(--mag); }
.post { white-space: pre-wrap; font-family: var(--f-body); font-size: 16px; line-height: 1.6; padding: 16px; background: rgba(6,5,13,.85); border: 2px solid var(--line); overflow-wrap: anywhere; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: 13px; color: var(--lime); }
.ch-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ch-q { font-family: var(--f-head); font-size: 15px; color: var(--gold); padding: 12px 14px; border: 2px solid rgba(255,207,74,.5); background: rgba(255,207,74,.06); white-space: nowrap; }
.ch-row .inp { width: 110px; flex: 0 0 110px; }
.formerr { color: var(--red); font-size: 15px; margin: 10px 0 0; }
.formerr:empty { display: none; }
.lookup { margin-top: 20px; padding: 16px; border: 1px dashed var(--line); }
.lookup[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); z-index: 120; opacity: 0; pointer-events: none; transition: .25s;
  font-family: var(--f-ui); font-size: 14px; padding: 12px 18px; background: #0f0c22; border: 2px solid var(--lime); color: var(--lime); box-shadow: 0 0 20px rgba(141,255,106,.3); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- success card ---------- */
.card-wrap { position: relative; margin: 6px auto 0; filter: drop-shadow(0 0 22px rgba(62,242,255,.35)) drop-shadow(0 0 40px rgba(255,63,210,.2)); animation: cardIn .8s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes cardIn { from { opacity: 0; transform: perspective(900px) rotateX(18deg) translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.card-wrap canvas { width: 100%; height: auto; display: block; }
.ok-h { font-family: var(--f-head); font-size: clamp(15px, 4vw, 20px); color: var(--lime); text-shadow: 0 0 14px rgba(141,255,106,.5); margin: 0 0 6px; text-align: center; }
.ok-sub { text-align: center; color: var(--muted); margin: 0 0 18px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
@media (max-width: 600px) { .share-grid { grid-template-columns: 1fr; } }
.share-grid .btn { width: 100%; font-size: 11px; }
.reflink { display: flex; gap: 8px; margin-top: 16px; }
.reflink .inp { font-family: var(--f-body); font-size: 15px; color: var(--cyan); letter-spacing: 0; }

/* ---------- about ---------- */
.ab-hero { padding: 64px 0 20px; }
.ab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 760px) { .ab-grid { grid-template-columns: 1fr; } }
.ab-card { padding: 24px 20px; background: linear-gradient(160deg, rgba(23,19,50,.92), rgba(11,9,24,.92)); border: 2px solid var(--line); }
.ab-card h3 { font-family: var(--f-head); font-size: 14px; letter-spacing: .08em; margin: 0 0 14px; color: var(--cyan); }
.ab-card:nth-child(2) h3 { color: var(--mag); } .ab-card:nth-child(3) h3 { color: var(--gold); } .ab-card:nth-child(4) h3 { color: var(--lime); }
.ab-card p { margin: 0; color: var(--text); font-size: 17px; }
.gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 30px; }
@media (max-width: 760px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal img { width: 100%; aspect-ratio: 1; border: 2px solid var(--line); transition: transform .25s, border-color .25s; }
.gal img:hover { transform: translateY(-4px) scale(1.03); border-color: var(--cyan); }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 26px; border: 2px solid var(--line); }
@media (max-width: 760px) { .spec { grid-template-columns: repeat(2, 1fr); } }
.spec div { padding: 16px; border: 1px solid var(--line); }
.spec dt { font-family: var(--f-ui); font-size: 12px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.spec dd { margin: 8px 0 0; font-family: var(--f-head); font-size: 13px; line-height: 1.5; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  #loader { display: none; }
}
.mt { margin-top: 14px; } .mt-xl { margin-top: 36px; }
.hl { color: var(--cyan); }
