/* ABGlearn site. Dark, anime, a little degen. No build step. */

:root {
  --bg: #0a0612;
  --bg-2: #130b22;
  --panel: #170e29;
  --panel-2: #1f1436;
  --ink: #f7f0ff;
  --muted: #b6a9cc;
  --line: rgba(255, 255, 255, .12);
  --hot: #ff3d9a;
  --hot-soft: #ff9ccd;
  --hot-ink: #1f0311;
  --lime: #c8ff3d;
  --lime-ink: #142000;
  --gold: #f5dc8a;
  --paper: #fbf7ee;
  --paper-ink: #1e1a24;
  --paper-muted: #857f90;
  --paper-line: #e4dccb;
  --pinyin: #2456c8;
  --stamp: #ff4b3e;
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --ui: "Chakra Petch", -apple-system, "Helvetica Neue", sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", -apple-system, sans-serif;
  --zh-serif: "Noto Serif SC", "Songti SC", serif;
  --wrap: 1180px;
  --gutter: 24px;
}

html[data-route="abb"] {
  --hot: #35e0ff;
  --hot-soft: #a6f1ff;
  --hot-ink: #021419;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 88% -4%, color-mix(in srgb, var(--hot) 26%, transparent), transparent 70%),
    radial-gradient(700px 520px at -6% 38%, rgba(200, 255, 61, .07), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%,
    var(--bg);
  background-attachment: scroll, scroll, fixed, fixed, scroll;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The grid lines are loud at full strength, so a veil sits over them. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
i { font-style: normal; }
[lang="zh-Hans"] { font-family: var(--zh); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }

html[data-route="abg"] .only-abb,
html[data-route="abb"] .only-abg { display: none !important; }

/* ---------- ticker ---------- */

.ticker {
  background: var(--lime);
  color: var(--lime-ink);
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 34px;
  height: 34px;
}
.ticker-track { display: inline-flex; animation: ticker 60s linear infinite; }
.ticker-track span { padding: 0 18px; display: inline-flex; gap: 8px; align-items: baseline; }
.ticker-track b { font-family: var(--zh); font-weight: 900; font-size: 15px; }
.ticker-track em { font-style: normal; opacity: .72; text-transform: none; }
.ticker-track u { text-decoration: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: .01em; }
.logo-seal {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-family: var(--zh); font-weight: 900; font-size: 20px;
  background: var(--hot); color: var(--hot-ink); border-radius: 9px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-4deg);
}
.logo-swap { color: var(--hot); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.route { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); }
.route-btn {
  border: 0; background: none; cursor: pointer;
  padding: 6px 13px; border-radius: 999px;
  font-family: var(--display); font-size: 12px; letter-spacing: .06em; color: var(--muted);
}
.route-btn[aria-pressed="true"] { background: var(--hot); color: var(--hot-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .12s;
}
.btn-lg { padding: 15px 24px; font-size: 17px; }
.btn-hot { background: var(--hot); color: var(--hot-ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-hot:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-hot:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--hot); }

/* ---------- ruby words (shared) ---------- */

.w { display: inline-flex; flex-direction: column; align-items: center; }
.py { font-family: var(--ui); font-weight: 600; line-height: 1.2; }
.hz { line-height: 1.15; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--gutter) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  grid-template-areas: "copy art" "vn vn";
  column-gap: 32px;
  align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-hanzi {
  position: absolute; left: -3%; top: -6%;
  font-family: var(--zh-serif); font-weight: 900; font-size: clamp(260px, 38vw, 520px); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .055);
  white-space: nowrap; user-select: none;
}
.hero-copy { grid-area: copy; position: relative; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: rgba(255, 255, 255, .04);
}
.kicker i { color: var(--hot); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 61, .2); }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h1 span { display: block; white-space: nowrap; }
.h1-b { color: var(--hot); position: relative; width: fit-content; text-shadow: 5px 5px 0 rgba(255, 255, 255, .12); }
@keyframes bob { 50% { transform: translateY(-.22em); } }

.hero-zh {
  margin: 22px 0 0; display: flex; align-items: flex-end; gap: 4px;
  font-weight: 900; font-size: clamp(26px, 3.2vw, 42px);
}
.hero-zh .py { font-size: .36em; color: var(--hot-soft); }
.hero-gloss { margin: 0 0 .25em 14px; font: 600 14px/1.35 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.lede { margin: 24px 0 0; max-width: 33em; font-size: 19px; color: var(--muted); }
.lede [data-brand] { color: var(--ink); font-weight: 700; }

/* A redaction bar that lifts shortly after the page loads. */
.redact { color: var(--ink); background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 55% / 0% 1.25em; animation: declassify .7s 1.6s cubic-bezier(.7, 0, .2, 1) backwards; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@keyframes declassify { from { background-size: 100% 1.25em; } }
.blk { display: inline-block; height: .78em; margin-right: .22em; background: currentColor; opacity: .85; color: inherit; border-radius: 3px; user-select: none; -webkit-text-fill-color: transparent; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.chips b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--lime); margin-right: 6px; letter-spacing: 0; }

.hero-art { grid-area: art; position: relative; display: grid; place-items: end center; min-height: 520px; }
.burst {
  position: absolute; left: 50%; top: 50%; width: min(118%, 600px); aspect-ratio: 1;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--hot) 0 1.6px, transparent 2.2px) 0 0 / 14px 14px,
    repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--hot) 34%, transparent) 0 4deg, transparent 4deg 11deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
  opacity: .8;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -52%) rotate(360deg); } }

.tutor {
  position: relative; width: min(100%, 440px);
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(10px 0 0 var(--hot)) drop-shadow(0 22px 30px rgba(0, 0, 0, .5));
}
html[data-route="abg"] .tutor-abb, html[data-route="abb"] .tutor-abg { display: none; }
html[data-route="abb"] .tutor { filter: drop-shadow(0 0 24px color-mix(in srgb, var(--hot) 50%, transparent)); }

.sticker {
  position: absolute; z-index: 2;
  font-family: var(--display); font-size: 14px; line-height: 1.25; letter-spacing: .04em;
  padding: 9px 13px; border-radius: 10px; border: 2px solid #0a0612;
  box-shadow: 4px 4px 0 #0a0612;
}
.s-ssr { top: 6%; left: 0; background: var(--gold); color: #3a2a05; transform: rotate(-9deg); }
.s-nfa { bottom: 22%; right: -6px; background: var(--lime); color: var(--lime-ink); transform: rotate(5deg); font-family: var(--ui); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.stamp {
  position: absolute; z-index: 2; left: 0; bottom: 31%;
  display: grid; justify-items: center; gap: 6px;
  padding: 9px 14px 8px; border: 3px solid var(--stamp); border-radius: 8px;
  font-family: var(--zh-serif); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: .14em; color: var(--stamp);
  background: rgba(10, 6, 18, .35);
  transform: rotate(-13deg);
}
.stamp small { font: 700 10px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.cam { position: absolute; inset: 0 -4px 8px -4px; pointer-events: none; }
.cam i { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .5); }
.cam i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cam i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cam i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cam i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cam b { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 3px 8px; border-radius: 5px; background: rgba(10, 6, 18, .78); font: 700 11px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.vert {
  position: absolute; right: 2px; top: 4%;
  writing-mode: vertical-rl; font-family: var(--zh); font-weight: 900; font-size: 40px; letter-spacing: .12em;
  color: transparent; -webkit-text-stroke: 1.5px var(--hot-soft); opacity: .9;
}

/* visual novel box */
.vn {
  grid-area: vn; position: relative; z-index: 3;
  margin-top: 34px;
  width: 100%; min-height: 112px;
  display: block; text-align: left; cursor: pointer;
  padding: 30px 64px 24px 28px;
  background: rgba(15, 9, 28, .9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 2px solid var(--hot);
  border-radius: 16px;
  box-shadow: 0 0 0 5px rgba(10, 6, 18, .9), 8px 8px 0 5px color-mix(in srgb, var(--hot) 45%, transparent);
  font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.45;
}
.vn-name {
  position: absolute; left: 22px; top: -17px;
  background: var(--hot); color: var(--hot-ink);
  font-family: var(--display); font-size: 14px; letter-spacing: .05em; line-height: 1;
  padding: 9px 16px; border-radius: 8px; transform: skewX(-8deg);
}
.vn-text { display: block; min-height: 2.9em; }
.vn-text::after { content: "▌"; color: var(--hot); margin-left: 2px; animation: caret 1s steps(2) infinite; }
.vn.done .vn-text::after { content: ""; }
@keyframes caret { 50% { opacity: 0; } }
.vn-next { position: absolute; right: 24px; bottom: 18px; color: var(--hot); font-size: 16px; opacity: 0; }
.vn.done .vn-next { opacity: 1; animation: bob 1.1s ease-in-out infinite; }

/* ---------- sections ---------- */

.section { max-width: var(--wrap); margin: 0 auto; padding: 88px var(--gutter); }
.sec-head { margin-bottom: 40px; max-width: 940px; }
.sec-sub { max-width: 760px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hot); }
.eyebrow i { color: var(--muted); margin: 0 4px; }
h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -.01em; }
.sec-sub { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
h3 { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.25; }

/* ---------- the wire ---------- */

.eyebrow [lang="zh-Hans"] { font-weight: 900; letter-spacing: .1em; margin-left: 4px; }
.wire-stats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wire-stats li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); font-size: 15px; color: var(--muted); }
.wire-stats b { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--lime); }
.wire-stats li:last-child b { color: var(--stamp); }
.wire-stats a, .cable-meta a { color: var(--ink); text-underline-offset: 3px; }
.wire-stats a:hover, .cable-meta a:hover { color: var(--hot); }

.wire-bar {
  display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center;
  padding: 10px 18px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: #1d1630; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.wire-live { color: var(--stamp); animation: caret 1.4s steps(2) infinite; }
.cables {
  list-style: none; margin: 0; padding: 0;
  border: 2px solid var(--ink); border-radius: 0 0 16px 16px; overflow: hidden;
  background: var(--panel); box-shadow: 10px 10px 0 var(--hot);
}
.cable { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 170px; gap: 8px 28px; align-items: center; padding: 20px 24px; }
.cable + .cable { border-top: 1px dashed var(--line); }
.cable:hover { background: rgba(255, 255, 255, .03); }
.cable-word { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cable-n { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hot); }
.cable-word .hz { font-family: var(--zh-serif); font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; }
.cable-word .py { font-size: 14px; color: var(--hot-soft); }
.cable-gloss { margin: 0; font-weight: 700; font-size: 19px; }
.cable-take { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.cable-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 13px; color: var(--muted); }
.who { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.who-net { background: var(--lime); color: var(--lime-ink); }
.who-gov { background: var(--stamp); color: #2a0500; }
.who-press { background: var(--gold); color: #3a2a05; }
.wire-note { margin: 30px 0 0; max-width: 760px; font-size: 14px; color: var(--muted); }

/* ---------- demo ---------- */

.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 22px; }
.seg { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.seg-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 8px; }
.seg button { border: 0; background: none; cursor: pointer; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.lvl { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.lvl select {
  appearance: none; -webkit-appearance: none;
  font: 600 14px var(--ui); color: var(--bg); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230a0612' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px;
  border: 0; border-radius: 9px; padding: 8px 32px 8px 12px; cursor: pointer;
}
.known { margin: 0 0 0 auto; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.known .up { color: var(--lime); margin-left: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.stage { position: relative; }
.win {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 10px 10px 0 var(--hot);
}
.win-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #1d1630; color: #cfc4e2; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.url { flex: 1; min-width: 0; max-width: 420px; margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 13px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menubar-zi { font-family: var(--zh); font-weight: 900; font-size: 15px; color: #fff; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--hot); color: var(--hot-ink); }

.page { padding: 30px clamp(20px, 5vw, 56px) 78px; font-family: var(--zh-serif); }
.masthead { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 3px double var(--paper-ink); display: flex; align-items: baseline; gap: 12px; font-size: 15px; color: var(--paper-muted); }
.masthead b { font-weight: 900; font-size: 24px; color: #b3261e; letter-spacing: .08em; }
.masthead span { font-family: var(--ui); font-weight: 700; letter-spacing: .22em; font-size: 12px; }
.headline { margin: 0; font-family: var(--zh-serif); font-weight: 900; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.5; }
.byline { margin: 6px 0 18px; font-family: var(--ui); font-size: 13px; color: var(--paper-muted); }
.byline i { margin: 0 4px; }
.body { margin: 0; font-weight: 500; font-size: clamp(21px, 2.5vw, 27px); line-height: 1.5; }

.page .nb { display: inline-block; white-space: nowrap; }
.page .w {
  vertical-align: bottom;
  border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit;
  border-radius: 5px;
}
.page .w .hz { padding: 0 1px; border-radius: 4px; transition: background .12s; }
.page .w .py {
  font-size: 12.5px; height: 18px; line-height: 18px; padding: 0 3px; margin-bottom: 1px;
  color: var(--pinyin); border-radius: 4px; white-space: nowrap;
  opacity: 0; transition: opacity .25s, background .12s, color .12s;
}
.headline .w .py { font-size: 14px; height: 20px; line-height: 20px; }
.page .w.show .py { opacity: 1; }
.page .w.active .hz, .page .w:focus-visible .hz { background: color-mix(in srgb, var(--hot) 26%, transparent); }
.page .w.active .py { opacity: 1; background: rgba(24, 28, 36, .9); color: #fff; padding: 0 6px; }
.page .w:focus-visible { outline-offset: 1px; outline-color: var(--pinyin); }
.page .p { display: inline-block; vertical-align: bottom; line-height: 1.15; }

.spoiler { margin-top: 26px; font-family: var(--ui); font-size: 15px; color: var(--paper-muted); }
.spoiler summary { cursor: pointer; font-weight: 700; width: fit-content; }
.spoiler p { margin: 8px 0 0; max-width: 60ch; color: #4a4553; }

.badge {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(22, 25, 33, .88); color: #fff; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .16);
}
.badge img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; background: #2a1742; }

/* the hover card: the app's own dark glass */
.card {
  position: absolute; z-index: 20; width: 330px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; max-height: 420px;
  padding: 16px 18px 14px;
  background: rgba(22, 25, 33, .88);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  color: #fff; font-family: var(--zh); font-size: 14px; line-height: 1.5;
  animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.card.docked { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto !important; width: auto; max-height: 62vh; }
.card-stamp { align-self: flex-start; margin-bottom: 8px; padding: 2px 8px; border: 1.5px solid var(--stamp); border-radius: 5px; color: var(--stamp); font: 700 10px var(--ui); letter-spacing: .18em; text-transform: uppercase; transform: rotate(-2deg); }
.card-stamp [lang] { font-family: var(--zh); font-weight: 900; font-size: 12px; letter-spacing: .1em; margin-right: 4px; }
.card-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.card-word { font-size: 30px; font-weight: 700; line-height: 1.2; }
.card-py { font-family: var(--ui); font-size: 16px; color: #c5cede; }
.card-hsk { margin-left: auto; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #dfe5f0; }
.card-gloss { margin: 4px 0 0; font-family: var(--ui); font-size: 16px; font-weight: 600; }
.card-scroll { overflow-y: auto; margin-top: 4px; padding-right: 2px; }
.card-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.card-note p { margin: 4px 0 0; font-family: var(--ui); color: #e8ecf3; }
.card-who { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hot-soft); }
.card-who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; background: #2a1742; }
.card-note ul { list-style: none; margin: 4px 0 0; padding: 0; color: #c5cede; font-size: 13px; }
.card-note li b { color: #fff; font-size: 16px; margin-right: 8px; }
.card-btn {
  margin-top: 12px; width: 100%; cursor: pointer;
  padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1); color: #fff; font: 600 14px var(--ui);
}
.card-btn:hover { background: var(--hot); color: var(--hot-ink); border-color: transparent; }

.demo-hint { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- features ---------- */

.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feat {
  position: relative; padding: 22px 22px 26px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px;
}
.feat-n { order: 1; margin-bottom: 4px; font-family: var(--display); font-size: 13px; color: var(--hot); letter-spacing: .1em; }
.feat h3, .feat p { order: 2; }
.feat-viz {
  height: 104px; margin-bottom: 20px; border-radius: 12px;
  background: var(--paper); color: var(--paper-ink);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--zh-serif); font-weight: 900; font-size: 40px;
  transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 var(--hot);
}
.feat:nth-child(even) .feat-viz { transform: rotate(1.5deg); }
.feat-viz .py { font-size: 13px; color: var(--pinyin); }
.viz-card { background: rgba(22, 25, 33, .96); color: #fff; flex-direction: column; gap: 0; align-items: flex-start; padding: 0 20px; font-family: var(--zh); }
.viz-card b { font-size: 30px; line-height: 1.2; }
.viz-card i { font: 600 13px var(--ui); color: #c5cede; }
.viz-card u { font: 700 14px var(--ui); text-decoration: none; color: var(--hot-soft); }
.viz-fade .f2 .py { opacity: .4; }
.viz-fade .f3 .py { opacity: 0; }
.viz-lock { background: var(--lime); color: var(--lime-ink); flex-direction: column; gap: 0; font-family: var(--display); font-size: 34px; line-height: 1.1; box-shadow: 5px 5px 0 var(--ink); }
.viz-lock small { font: 700 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.feat p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- tutors ---------- */

.select { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.char {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); text-align: left; cursor: pointer;
  padding: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--line); border-radius: 20px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.char:hover { transform: translateY(-3px); }
.char[aria-pressed="true"] { border-color: var(--hot); box-shadow: 8px 8px 0 color-mix(in srgb, var(--hot) 55%, transparent); }
.char-art {
  display: grid; place-items: end center; padding-top: 18px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .16) 0 1.3px, transparent 1.9px) 0 0 / 11px 11px,
    linear-gradient(180deg, #3a1d52, #1a0f2c);
}
.char-abb .char-art { background: radial-gradient(circle, rgba(255, 255, 255, .12) 0 1.3px, transparent 1.9px) 0 0 / 11px 11px, linear-gradient(180deg, #0f2c40, #081220); }
.char-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; }
.rarity { font-family: var(--display); font-size: 12px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.rarity i { color: var(--muted); margin: 0 4px; }
.char-name { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.char-name [lang] { font-family: var(--zh); font-weight: 900; font-size: 18px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.char-class { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff9ccd; }
.char-abb .char-class { color: #a6f1ff; }
.char-class i { color: var(--muted); margin: 0 3px; }
.char-bio { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.stats { display: grid; gap: 7px; margin-top: 12px; }
.stat { display: grid; grid-template-columns: 78px 1fr 38px; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stat em { font-style: normal; color: var(--muted); }
.stat b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: 99px; background: linear-gradient(90deg, #ff3d9a, #ffb7d6); }
.char-abb .bar i { background: linear-gradient(90deg, #35e0ff, #a6f1ff); }
.char-pick {
  margin-top: 14px; align-self: flex-start;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.char[aria-pressed="true"] .char-pick { background: var(--hot); color: var(--hot-ink); border-color: transparent; }
.art-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- arcs ---------- */

.arc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.arc { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.arc-tag { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.arc-now { border-color: var(--lime); }
.arc-now .arc-tag { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.arc-now .arc-tag::before { content: "●"; margin-right: 6px; animation: caret 1.2s steps(2) infinite; }
.arc-n { display: block; margin: 18px 0 4px; font-family: var(--display); font-size: 14px; letter-spacing: .08em; color: var(--hot); text-transform: uppercase; }
.arc h3 { font-size: 24px; }
.arc h3 [lang] { font-weight: 900; color: var(--muted); margin-left: 6px; }
.arc p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.arc-ult { grid-column: 1 / -1; border-color: var(--hot); background: linear-gradient(100deg, color-mix(in srgb, var(--hot) 22%, var(--panel)), var(--panel) 60%); }
.arc-ult .arc-tag { background: var(--hot); color: var(--hot-ink); border-color: transparent; }
.arc-ult p { max-width: 70ch; }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tier { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.tier-plus { border: 2px solid var(--hot); }
.tier-name { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tier-price { margin: 8px 0 0; font-family: var(--display); font-size: 54px; line-height: 1.05; color: var(--lime); }
.tier-plus .tier-price { color: var(--hot); }
.tier-price small { display: block; margin-top: 6px; font: 600 14px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: "▲"; position: absolute; left: 0; top: .2em; font-size: 12px; color: var(--lime); }
.tier-plus li::before { color: var(--hot); }

/* ---------- community ---------- */

.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 20px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform .15s, border-color .15s;
}
a.link:hover { transform: translateY(-3px); border-color: var(--hot); }
.link-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-name { font-family: var(--display); font-size: 20px; }
.link-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
a.link .link-tag { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.link p { margin: 0; color: var(--muted); font-size: 15px; }

.waitlist {
  margin-top: 22px; padding: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px 32px; align-items: center;
  border: 2px solid var(--hot); border-radius: 20px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--hot) 20%, var(--panel)), var(--panel) 70%);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--hot) 45%, transparent);
}
.waitlist h3 { font-family: var(--display); font-weight: 400; font-size: 28px; }
.waitlist p { margin: 6px 0 0; color: var(--muted); }
.wl-row { display: flex; gap: 12px; }
.wl-row input {
  flex: 1; min-width: 0;
  padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line);
  background: rgba(10, 6, 18, .7); color: var(--ink); font: 500 17px var(--ui);
}
.wl-row input::placeholder { color: #7d7191; }
.wl-row input:focus-visible { outline: none; border-color: var(--hot); }
.wl-msg { grid-column: 1 / -1; margin: 0 !important; min-height: 1.5em; font-weight: 600; color: var(--lime) !important; }
.wl-msg.err { color: #ffb86b !important; }

/* ---------- faq ---------- */

.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative; font-weight: 700; font-size: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 22px; color: var(--hot); }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 68ch; }

/* ---------- footer ---------- */

.foot { position: relative; overflow: hidden; margin-top: 40px; padding: 0 var(--gutter) 48px; border-top: 1px solid var(--line); }
.foot-big {
  margin: 0; text-align: center; white-space: nowrap;
  font-family: var(--zh-serif); font-weight: 900; font-size: clamp(80px, 21vw, 300px); line-height: 1.15;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--hot) 55%, transparent);
  user-select: none;
}
.foot-cols { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; font-size: 14px; color: var(--muted); }
.foot-cols p { margin: 0; }
.foot-cols b { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .select { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .route { margin-left: auto; }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "vn"; padding-top: 40px; padding-bottom: 56px; }
  .hero-art { min-height: 0; margin-top: 28px; }
  .tutor { width: min(78%, 340px); }
  h1 { font-size: clamp(36px, 11.4vw, 96px); }
  .lede { font-size: 17px; }
  .kicker { display: block; padding: 0; border: 0; background: none; font-size: 12px; }
  .kicker .dot { display: inline-block; margin-right: 8px; }
  .vn { padding: 28px 44px 20px 20px; }
  .section { padding: 64px var(--gutter); }
  .known { margin-left: 0; }
  .arc-grid, .price-grid, .foot-cols { grid-template-columns: 1fr; }
  .wire-stats { grid-template-columns: 1fr; }
  .cable { grid-template-columns: 1fr; padding: 18px 16px; }
  .cable-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .cables { box-shadow: 6px 6px 0 var(--hot); }
  .waitlist { grid-template-columns: 1fr; }
  .win { box-shadow: 6px 6px 0 var(--hot); }
  .badge { position: static; margin: 0 14px 14px auto; width: fit-content; }
  .page { padding-bottom: 28px; }
}

@media (max-width: 560px) {
  .feat-grid, .links { grid-template-columns: 1fr; }
  .char { grid-template-columns: 1fr; }
  .char-art img { width: 180px; }
  .wl-row { flex-direction: column; }
  .cta-row .btn { flex: 1 1 100%; }
  .s-nfa { right: 0; bottom: 14%; }
  .vert { font-size: 34px; }
  .url { display: none; }
  .menubar-zi { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
