/* Official site styles. The page CSP forbids inline style attributes, so everything lives here. */
:root {
  --ink: #070c1a;
  --night: #0b1328;
  --panel: rgba(15, 24, 52, 0.82);
  --panel-solid: #121c3a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --gold: #ffcb52;
  --gold-deep: #ff9d2e;
  --gold-ink: #4a2300;
  --sky: #62c9ff;
  --leaf: #7fe28a;
  --rose: #ff7f8f;
  --text: #eef2ff;
  --muted: #9eabd0;
  --radius: 14px;
  --header: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.75 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe08a; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; }
button { font: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* Keyboard focus ring; mouse clicks do not show it. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header); transition: background .25s, box-shadow .25s; }
.header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 9, 22, .75), rgba(5, 9, 22, 0)); pointer-events: none; transition: opacity .25s; }
.header.solid { background: rgba(8, 13, 30, .94); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); }
.header.solid::after { opacity: 0; }
.header .wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { position: relative; color: #d6def7; padding: 8px 16px; font-weight: 600; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.nav a:hover { color: #fff; }
.nav a.active { color: var(--gold); }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.nav a.btn { margin-left: 12px; padding: 8px 20px; font-size: 15px; color: var(--gold-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.nav a.btn:hover { color: var(--gold-ink); }
.nav .btn.active::after { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(8, 13, 30, .6); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.header.open .nav-toggle span { background: transparent; }
.header.open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.header.open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; padding: 14px 34px; border-radius: 12px; font-weight: 800; letter-spacing: .08em; color: var(--gold-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
  background: linear-gradient(180deg, #ffe58a 0%, #ffc03d 55%, #ffa01f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #b25d00, 0 10px 22px rgba(0, 0, 0, .35); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { color: var(--gold-ink); filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 0 #b25d00, 0 4px 10px rgba(0, 0, 0, .35); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.btn.lg { padding: 17px 46px; font-size: 19px; border-radius: 14px; }
.btn.ghost { color: #fff; text-shadow: none; background: rgba(8, 13, 30, .52); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 8px 20px rgba(0, 0, 0, .3); backdrop-filter: blur(6px); }
.btn.ghost:hover { color: #fff; background: rgba(8, 13, 30, .72); }
.btn.ghost:active { transform: translateY(1px); }
.btn.full { width: 100%; }
.btn.sm { padding: 8px 18px; font-size: 14px; border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 0 #b25d00; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; background: var(--night); }
.hero .slides { position: absolute; inset: 0; }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.02); }
.hero .slide.on { opacity: 1; animation: drift 16s ease-out forwards; }
@keyframes drift { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 62% 72% at 22% 54%, rgba(5, 9, 22, .66), rgba(5, 9, 22, 0) 72%), linear-gradient(180deg, rgba(5, 9, 22, .5) 0%, rgba(5, 9, 22, 0) 20%), linear-gradient(0deg, var(--ink) 0%, rgba(7, 12, 26, 0) 24%); }
.hero .slide { filter: saturate(1.1) brightness(1.04); }
.hero .wrap { position: relative; z-index: 2; padding: calc(var(--header) + 60px) 0 150px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3em; font-size: 14px; color: var(--gold); text-shadow: 0 2px 8px rgba(0, 0, 0, .6); margin-bottom: 16px; }
.hero .eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero-logo { display: block; width: clamp(88px, 9vw, 132px); height: auto; margin: 0 0 4px -4px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); animation: bob 4.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(-2.5deg); } }
/* Sticker-style title: gold letters, brown outline and a hard lip underneath, like the emblem. */
.hero h1 { display: flex; flex-wrap: wrap; align-items: center; font-size: clamp(38px, 6vw, 80px); font-weight: 900; letter-spacing: .06em; line-height: 1.15; color: #ffd45a; -webkit-text-stroke: .12em #5a2808; paint-order: stroke fill; text-shadow: 0 .07em 0 #5a2808, 0 .22em .5em rgba(0, 0, 0, .45); }
.hero h1 .dot { flex: none; width: .5em; height: .5em; margin: 0 .24em; fill: #fff3b0; stroke: #5a2808; stroke-width: 2.6; paint-order: stroke fill; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.18) rotate(18deg); } }
.hero p.lead { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 22px 0 36px; font-size: clamp(16px, 1.9vw, 21px); font-weight: 600; letter-spacing: .14em; color: #fff3d6; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero p.lead::before { content: ""; flex: none; width: 38px; height: 3px; border-radius: 3px; background: var(--gold); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; background: rgba(8, 13, 30, .6); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.on { color: var(--leaf); border-color: rgba(127, 226, 138, .45); }
.pill.on::before { background: var(--leaf); box-shadow: 0 0 10px var(--leaf); }
.hero .dots { position: absolute; z-index: 3; right: max(20px, calc((100% - 1180px) / 2)); bottom: 118px; display: flex; gap: 8px; }
.hero .dots button { transition: width .3s; position: relative; overflow: hidden; width: 34px; height: 5px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, .32); }
.hero .dots button:hover { background: rgba(255, 255, 255, .55); }
/* The fill doubles as the slide timer (home.js advances on animationend); hovering the hero pauses it. */
.hero .dots button::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); }
.hero .dots button.on { width: 54px; }
.hero .dots button.on::after { animation: slide-timer 7s linear forwards; }
.hero.paused .dots button.on::after { animation-play-state: paused; }
@keyframes slide-timer { to { width: 100%; } }
.ticker { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(5, 9, 22, .95), rgba(5, 9, 22, .6)); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.ticker .wrap { padding: 0; display: flex; align-items: center; gap: 18px; height: 64px; }
.ticker .label { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.ticker .items { flex: 1; min-width: 0; position: relative; height: 100%; }
.ticker a.item { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; color: var(--text); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.ticker a.item.on { opacity: 1; transform: none; pointer-events: auto; }
.ticker a.item span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ticker .more { white-space: nowrap; font-size: 14px; }

/* ---------- Sections ---------- */
.block { padding: 88px 0; position: relative; }
.block.dark { background: var(--night); border-block: 1px solid var(--line); }
.title { text-align: center; margin-bottom: 44px; }
.title .en { display: block; font-size: 13px; letter-spacing: .5em; color: var(--gold); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.title h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: .1em; }
.title h2::after { content: ""; display: block; width: 74px; height: 4px; margin: 16px auto 0; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.title p { color: var(--muted); margin: 12px 0 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }

/* News list */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); padding: 7px 18px; border-radius: 99px; cursor: pointer; font-weight: 600; }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.on { color: var(--gold-ink); border-color: transparent; background: linear-gradient(180deg, #ffe58a, #ffb736); }
.news-list { display: grid; gap: 10px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.news-item[open] { border-color: rgba(255, 203, 82, .45); }
.news-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item summary:hover .t { color: var(--gold); }
.news-item .tag { flex: none; font-size: 13px; font-weight: 700; padding: 1px 12px; border-radius: 6px; color: var(--sky); background: rgba(98, 201, 255, .12); border: 1px solid rgba(98, 201, 255, .3); }
.news-item .tag.pin { color: var(--rose); background: rgba(255, 127, 143, .12); border-color: rgba(255, 127, 143, .35); }
.news-item .t { flex: 1; min-width: 0; font-weight: 700; }
.news-item time { flex: none; color: var(--muted); font-size: 14px; }
.news-item .chev { color: var(--muted); transition: transform .2s; }
.news-item[open] .chev { transform: rotate(180deg); }
.news-item .body { padding: 4px 24px 22px; border-top: 1px dashed var(--line); }
.news-item.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 3px rgba(255, 203, 82, .6); } }
.empty { text-align: center; color: var(--muted); padding: 48px 0; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Loading placeholder */
.skel { display: grid; gap: 10px; }
.skel i { display: block; height: 58px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(110deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel i:nth-child(2) { opacity: .7; }
.skel i:nth-child(3) { opacity: .45; }

/* Quick links */
.quick { display: grid; gap: 12px; }
.quick a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.quick a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); transform: scaleY(.3); transition: transform .2s; }
.quick a:hover { transform: translateX(4px); border-color: rgba(255, 203, 82, .45); color: var(--text); }
.quick a:hover::before { transform: scaleY(1); }
.quick .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: rgba(255, 203, 82, .12); border: 1px solid rgba(255, 203, 82, .28); font-size: 22px; flex: none; }
.quick b { display: block; font-size: 17px; }
.quick small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.quick .go { margin-left: auto; color: var(--muted); }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); border-color: rgba(255, 203, 82, .4); }
.feature .pic { position: relative; aspect-ratio: 500 / 162; overflow: hidden; }
.feature .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover .pic img { transform: scale(1.08); }
.feature .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel-solid), transparent 55%); }
.feature .txt { padding: 6px 22px 24px; }
.feature .tag { position: absolute; z-index: 2; top: 0; right: 0; width: 68px; height: 68px; background: linear-gradient(135deg, #ffe58a, #ffa826); clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none; }
.feature .tag i { position: absolute; left: 45px; top: 23px; transform: translate(-50%, -50%) rotate(45deg); font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; color: var(--gold-ink); }
.feature .links { display: flex; gap: 18px; margin-top: 12px; font-weight: 700; }
.feature h3 { font-size: 20px; letter-spacing: .06em; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.feature h3 .i { color: var(--gold); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Class showcase */
.heroes { display: flex; gap: 10px; height: 380px; }
.heroes .card { position: relative; flex: 1; min-width: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: flex .5s cubic-bezier(.2, .8, .2, 1); background-size: cover; background-position: center; }
.heroes .card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 9, 22, .8), rgba(5, 9, 22, 0) 45%); }
.heroes .card.on { flex: 4.2; border-color: rgba(255, 203, 82, .55); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.heroes .card:not(.on) { filter: saturate(.55) brightness(.75); }
.heroes .vname { position: absolute; z-index: 1; left: 50%; bottom: 16px; transform: translateX(-50%); writing-mode: vertical-rl; letter-spacing: .3em; font-size: 20px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); white-space: nowrap; transition: opacity .25s; }
.heroes .card.on .vname { opacity: 0; pointer-events: none; }
/* One sticker label under each character; the card shows the whole picture width, so the x positions hold. */
.heroes .names b { position: absolute; z-index: 1; bottom: 14px; transform: translateX(-50%); opacity: 0; padding: 2px 4px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 900; letter-spacing: .08em; white-space: nowrap; color: #ffd45a; -webkit-text-stroke: .16em #5a2808; paint-order: stroke fill; text-shadow: 0 .08em 0 #5a2808, 0 .2em .4em rgba(0, 0, 0, .45); transition: opacity .35s .15s; }
.heroes .card.on .names b { opacity: 1; }
.heroes .names.n2 b:nth-child(1) { left: 25%; }
.heroes .names.n2 b:nth-child(2) { left: 75%; }
.heroes .names.n3 b:nth-child(1) { left: 15%; }
.heroes .names.n3 b:nth-child(2) { left: 50%; }
.heroes .names.n3 b:nth-child(3) { left: 85%; }

/* Roadmap preview */
.mini-todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.more-row { text-align: center; margin-top: 28px; }

/* CTA band */
.cta { position: relative; padding: 110px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.1); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(6, 10, 24, .55), rgba(6, 10, 24, .88)); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: .12em; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); margin-bottom: 44px; }
.cta p { color: #d6def7; margin: 14px 0 32px; font-size: 18px; }
.cta .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.banner { position: relative; padding: calc(var(--header) + 54px) 0 54px; overflow: hidden; border-bottom: 1px solid var(--line); }
.banner .bg { position: absolute; inset: -20px; background-size: cover; background-position: center 35%; filter: blur(3px) saturate(1.1); transform: scale(1.06); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 10, 24, .9), rgba(6, 10, 24, .45)), linear-gradient(0deg, var(--ink), transparent 40%); }
.banner .wrap { position: relative; z-index: 2; }
.banner .crumb { color: var(--gold); font-weight: 700; letter-spacing: .25em; font-size: 13px; margin-bottom: 8px; }
.banner h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 900; letter-spacing: .1em; text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.banner p { color: #cdd6f3; margin: 10px 0 0; max-width: 640px; }
.page { padding: 48px 0 96px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.panel h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h3 .i { color: var(--gold); }

/* Rich text (news, guide) */
.rich { color: #d5ddf7; line-height: 1.85; overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich h2 { font-size: 24px; margin: 28px 0 10px; color: #fff; padding-left: 14px; border-left: 4px solid var(--gold); }
.rich h3 { font-size: 19px; margin: 22px 0 8px; color: #fff; }
.rich h4 { font-size: 16px; margin: 18px 0 6px; color: #fff; }
.rich p { margin: 0 0 12px; }
.rich ul, .rich ol { padding-left: 1.4em; margin: 0 0 12px; }
.rich li { margin: 4px 0; }
.rich blockquote { margin: 14px 0; padding: 10px 18px; border-left: 4px solid var(--sky); background: rgba(98, 201, 255, .07); border-radius: 0 10px 10px 0; color: #c5d3f5; }
.rich img { margin: 14px 0; border-radius: 10px; border: 1px solid var(--line); max-height: 560px; width: auto; }
.rich hr { border: 0; height: 1px; background: var(--line-strong); margin: 22px 0; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich code { background: rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 5px; }

/* Guide */
.guide-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 20px); padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.toc b { display: block; color: var(--gold); letter-spacing: .2em; font-size: 13px; margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); padding: 6px 0 6px 12px; border-left: 2px solid var(--line); font-size: 15px; }
.toc a:hover { color: #fff; border-color: var(--gold); }
.toc a.on { color: var(--gold); border-color: var(--gold); font-weight: 700; }
.faq h2 { font-size: 26px; margin: 48px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 20px; font-weight: 700; list-style: none; display: flex; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--gold-ink); background: linear-gradient(180deg, #ffe58a, #ffb736); }
.faq summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 20px 18px 58px; color: #ced7f3; white-space: pre-wrap; }

/* Roadmap */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.stat { padding: 20px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -20px; top: -20px; width: 90px; height: 90px; border-radius: 50%; background: var(--c, var(--gold)); opacity: .12; }
.stat b { display: block; font-size: 38px; line-height: 1.1; font-weight: 900; color: var(--c, var(--gold)); }
.stat span { color: var(--muted); }
.todo-group { margin-bottom: 38px; }
.todo-group h2 { font-size: 22px; letter-spacing: .1em; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.todo-group h2 small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.todo { padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.todo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--gold)); }
.todo.feature { --c: var(--gold); }
.todo.improvement { --c: var(--sky); }
.todo.fix { --c: var(--leaf); }
.todo .top { display: flex; align-items: center; gap: 10px; }
.badge { font-size: 12px; font-weight: 800; letter-spacing: .1em; padding: 2px 10px; border-radius: 6px; color: var(--c, var(--gold)); background: rgba(255, 255, 255, .07); border: 1px solid currentColor; }
.todo h3 { font-size: 17px; }
.todo p { margin: 0; color: var(--muted); font-size: 14.5px; }
.bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--c, var(--gold)), #fff7); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.todo.done .bar i { background: var(--leaf); }
.todo .foot { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.todo .foot b { color: var(--text); margin-left: auto; font-size: 15px; }
.todo .foot span { display: inline-flex; align-items: center; gap: 5px; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.field > label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input[type=text], .field input[type=password], .field input[type=email], .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(5, 9, 22, .6); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 203, 82, .2); }
.field input::placeholder, .field textarea::placeholder { color: #66749e; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 11px; margin-bottom: 20px; font-size: 15px; }
.msg .i { margin-top: 3px; }
.msg.err { background: rgba(255, 127, 143, .1); border: 1px solid rgba(255, 127, 143, .45); color: #ffc1c9; }
.msg.ok { background: rgba(127, 226, 138, .1); border: 1px solid rgba(127, 226, 138, .45); color: #bff3c5; }
.msg.info { background: rgba(255, 203, 82, .09); border: 1px solid rgba(255, 203, 82, .4); color: #ffe3a1; }

/* Registration */
.reg { position: relative; min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header) + 30px) 20px 60px; overflow: hidden; }
.reg .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(14px) brightness(.55) saturate(1.2); transform: scale(1.08); }
.reg-card { position: relative; z-index: 1; width: min(980px, 100%); display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); background: rgba(10, 17, 38, .9); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); backdrop-filter: blur(12px); }
.reg-art { position: relative; min-height: 520px; background-size: cover; background-position: center; }
.reg-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 10, 24, .92), rgba(6, 10, 24, 0) 55%); }
.reg-art .txt { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 28px; }
.reg-art h2 { font-size: 28px; font-weight: 900; letter-spacing: .1em; }
.reg-art ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: #d2daf5; font-size: 15px; }
.reg-art li { display: flex; gap: 10px; align-items: center; }
.reg-art li .i { color: var(--gold); }
.reg-form { padding: 36px 38px 38px; }
.reg-form h1 { font-size: 26px; font-weight: 900; letter-spacing: .1em; margin-bottom: 26px; }
.reg-form .sub { color: var(--muted); margin: 6px 0 24px; }

/* Slider captcha */
.cap { margin: 0 0 22px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(5, 9, 22, .55); padding: 14px 14px 16px; user-select: none; -webkit-user-select: none; }
.cap-head { display: flex; align-items: center; gap: 8px; color: #cdd6f3; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.cap-head .i { color: var(--gold); }
.cap-head button { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #cdd6f3; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cap-head button:hover { color: var(--gold); border-color: var(--gold); }
.cap-head button.spin .i { animation: spin .6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.cap-stage { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: #0a1022 linear-gradient(110deg, #0a1022 30%, #18244a 50%, #0a1022 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.cap-stage.ready { animation: none; background: #0a1022; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cap-stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cap-stage .piece { position: absolute; left: 0; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .65)); transition: left .28s cubic-bezier(.2, .8, .2, 1); }
.cap-stage.drag .piece { transition: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .7)); }
.cap-stage .flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; display: grid; place-items: center; }
.cap-stage .flash span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 99px; font-weight: 800; font-size: 15px; letter-spacing: .06em; transform: translateY(8px); transition: transform .25s; }
.cap.done .cap-stage .flash { opacity: 1; background: rgba(35, 120, 70, .35); }
.cap.done .cap-stage .flash span { background: rgba(127, 226, 138, .95); color: #0a3a1c; transform: none; }
.cap.bad .cap-stage .flash { opacity: 1; background: rgba(160, 40, 55, .32); }
.cap.bad .cap-stage .flash span { background: rgba(255, 127, 143, .95); color: #4a0710; transform: none; }
.cap.bad .cap-stage { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cap-track { position: relative; height: 46px; margin-top: 12px; border-radius: 23px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-strong); }
.cap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; border-radius: 23px; background: linear-gradient(90deg, rgba(255, 203, 82, .1), rgba(255, 203, 82, .45)); transition: width .28s cubic-bezier(.2, .8, .2, 1); }
.cap.drag .cap-fill, .cap.drag .cap-knob { transition: none; }
.cap-hint { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 40px; color: var(--muted); font-size: 14px; letter-spacing: .06em; pointer-events: none; }
.cap-knob { position: absolute; left: 0; top: -1px; width: 48px; height: 46px; border-radius: 24px; cursor: grab; display: grid; place-items: center; color: var(--gold-ink); background: linear-gradient(180deg, #ffe58a, #ffb736); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 0 #b25d00, 0 6px 14px rgba(0, 0, 0, .4); touch-action: none; transition: left .28s cubic-bezier(.2, .8, .2, 1); }
.cap-knob:active { cursor: grabbing; }
.cap-knob .i { width: 22px; height: 22px; stroke-width: 2.4; }
.cap.done .cap-track { border-color: rgba(127, 226, 138, .6); }
.cap.done .cap-fill { background: linear-gradient(90deg, rgba(127, 226, 138, .15), rgba(127, 226, 138, .5)); }
.cap.done .cap-knob { background: linear-gradient(180deg, #a8f2b0, #4fc765); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 3px 0 #1f7a35, 0 6px 14px rgba(0, 0, 0, .4); cursor: default; color: #0a3a1c; }
.cap.done .cap-hint { color: var(--leaf); }
.cap.bad .cap-track { border-color: rgba(255, 127, 143, .6); }
.cap.bad .cap-hint { color: var(--rose); }

.fine { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.fine .i { color: var(--gold); }

/* Slider captcha dialog */
body.modal-open { overflow: hidden; }
.cap-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 16, .74); backdrop-filter: blur(5px); animation: fade-in .18s ease-out; }
.cap-modal.out { opacity: 0; transition: opacity .18s; }
@keyframes fade-in { from { opacity: 0; } }
.cap-dialog { width: min(404px, 100%); padding: 18px 20px 22px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #17224a, #0f1836); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: pop-in .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.cap-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cap-dialog-head b { display: block; font-size: 18px; letter-spacing: .08em; }
.cap-dialog-head small { color: var(--muted); }
.cap-close { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: #cdd6f3; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cap-close:hover { color: #fff; border-color: var(--rose); background: rgba(255, 127, 143, .18); }
.cap-dialog .cap { margin: 0; padding: 0; border: 0; background: none; }
.cap-dialog .cap-head { display: none; }
.cap-refresh { position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(6, 10, 24, .6); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cap-refresh:hover { color: var(--gold); border-color: var(--gold); }
.cap-refresh.spin .i { animation: spin .6s linear; }

/* Feedback */
.drop { border: 2px dashed var(--line-strong); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; background: rgba(5, 9, 22, .35); }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(255, 203, 82, .06); color: var(--text); }
.drop .i { width: 34px; height: 34px; color: var(--gold); margin-bottom: 6px; }
.drop b { display: block; color: var(--text); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.file { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: rgba(5, 9, 22, .6); }
.file .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background-size: cover; background-position: center; color: var(--gold); }
.file .thumb .i { width: 30px; height: 30px; }
.file .nm { padding: 6px 8px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file button { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(5, 9, 22, .85); color: #fff; display: grid; place-items: center; padding: 0; }
.file button:hover { background: var(--rose); }
.progress { margin: 0 0 18px; }
.progress .bar { height: 12px; }
.progress small { display: block; margin-top: 6px; color: var(--muted); }
.codebox { text-align: center; padding: 20px; border-radius: 14px; background: rgba(255, 203, 82, .09); border: 1px dashed rgba(255, 203, 82, .55); margin: 16px 0; }
.codebox b { display: block; font-size: 30px; letter-spacing: .18em; color: var(--gold); font-family: ui-monospace, Menlo, Consolas, monospace; }
.status-card { margin-top: 18px; padding: 18px; border-radius: 12px; background: rgba(5, 9, 22, .5); border: 1px solid var(--line); }
.status-card .st { display: inline-block; padding: 3px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; margin-bottom: 8px; background: rgba(255, 255, 255, .1); }
.status-card .st.s0 { color: #ffd27a; background: rgba(255, 203, 82, .14); }
.status-card .st.s1 { color: var(--sky); background: rgba(98, 201, 255, .14); }
.status-card .st.s2 { color: #ffb4a0; background: rgba(255, 140, 110, .14); }
.status-card .st.s3 { color: var(--leaf); background: rgba(127, 226, 138, .14); }
.status-card .reply { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(255, 255, 255, .05); border-radius: 0 10px 10px 0; white-space: pre-wrap; }
.side-list { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 14.5px; }
.side-list li { margin: 6px 0; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(5, 9, 22, .6); color: var(--text); font: inherit; text-transform: uppercase; letter-spacing: .1em; }

/* Download */
.dl-card { max-width: 760px; margin: 0 auto; }
.dl-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dl-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 14px; }
.dl-list { display: grid; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 12px; background: rgba(5, 9, 22, .5); border: 1px solid var(--line); }
.dl-item .n { flex: 1; font-weight: 700; font-size: 17px; }
.dl-item .n small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.soon { text-align: center; padding: 56px 20px; }
.soon .i { width: 52px; height: 52px; color: var(--gold); margin-bottom: 12px; }
.soon b { display: block; font-size: 22px; margin-bottom: 6px; }
.soon span { color: var(--muted); }

/* 404 */
.lost { position: relative; min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header) + 30px) 0 60px; overflow: hidden; text-align: center; }
.lost .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(8px) brightness(.5) saturate(1.1); transform: scale(1.06); }
.lost .wrap { position: relative; z-index: 1; }
.lost .code { display: block; font-size: clamp(90px, 18vw, 170px); font-weight: 900; line-height: 1; letter-spacing: .06em; color: #ffd45a; -webkit-text-stroke: .08em #5a2808; paint-order: stroke fill; text-shadow: 0 .05em 0 #5a2808, 0 .12em 24px rgba(0, 0, 0, .5); }
.lost h1 { margin-top: 18px; font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: .1em; }
.lost p { color: #cdd6f3; margin: 10px 0 34px; }
.lost .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Back to top */
.to-top { position: fixed; z-index: 40; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(8, 13, 30, .82); color: var(--gold); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); backdrop-filter: blur(8px); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .15s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); }
.to-top .i { width: 22px; height: 22px; transform: rotate(180deg); }

/* Footer */
.footer { background: #050916; border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 14.5px; }
.footer .wrap { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.footer .brand { font-size: 18px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--gold); }
.footer .copy { width: 100%; text-align: center; padding-top: 22px; border-top: 1px solid var(--line); }
.footer .copy p { margin: 4px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cols, .form-wrap, .guide-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .reg-card { grid-template-columns: 1fr; }
  .reg-art { min-height: 200px; }
  .reg-art ul { display: none; }
  .heroes { height: 300px; }
}
@media (max-width: 760px) {
  :root { --header: 60px; }
  .nav-toggle { display: block; }
  .header.open { background: rgba(8, 13, 30, .97); }
  .header.open::after { opacity: 0; }
  .nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: rgba(8, 13, 30, .97); border-bottom: 1px solid var(--line); }
  .header.open .nav { display: flex; }
  .features { grid-template-columns: 1fr; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); text-shadow: none; }
  .nav a.active::after { display: none; }
  .nav a.btn { margin: 14px 0 0; padding: 13px; border-bottom: 0; }
  .hero .wrap { padding-bottom: 170px; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 9, 22, .55) 0%, rgba(5, 9, 22, .5) 55%, rgba(5, 9, 22, .15) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(7, 12, 26, 0) 24%); }
  .hero .dots { bottom: 82px; right: 20px; }
  .ticker .label span, .ticker .more { display: none; }
  .block { padding: 60px 0; }
  .stats { grid-template-columns: 1fr; }
  .heroes { flex-direction: column; height: auto; }
  .heroes .card { height: 78px; flex: none; transition: height .4s; }
  .heroes .card.on { height: 230px; flex: none; }
  .heroes .vname { writing-mode: horizontal-tb; left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); letter-spacing: .1em; }
  .heroes .names b { font-size: 20px; }
  .row2 { grid-template-columns: 1fr; }
  .reg-form { padding: 26px 22px; }
  .news-item time { display: none; }
  .news-item .body { padding: 4px 18px 18px; }
  .dl-item { flex-wrap: wrap; }
  .todo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .slide.on, .hero-logo, .hero h1 .dot, .skel i { animation: none; }
  .hero .dots button.on::after { animation: none; width: 100%; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
