/* StudyCN - сайт для абитуриентов. Токены и приемы - из дизайн-системы бренда:
   красный и один желтый акцент на кремовой бумаге, Unbounded в заголовках, Golos Text в тексте,
   карточки с рамкой 2px и радиусом 28, пилюли, статусы точкой и словом. Без градиентов и теней */

@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url("/static/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url("/static/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url("/static/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url("/static/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif SC"; font-weight: 900; font-display: swap;
  src: url("/static/fonts/noto-serif-sc-hanzi.woff2") format("woff2"); }

:root {
  --red: #B3131B; --red-deep: #A30F18; --yellow: #F5C518; --cream: #FBF4E8; --rose: #F7DCD6;
  --paper: #F6F0E6; --card: #FFFFFF; --ink: #1C1714; --ink-2: #4A423C; --muted: #6B6058;
  --line: #E7DCCB; --line-dash: #EADFCF; --line-strong: #D8CBB6; --maroon: #7A1A0F;
  --ok-bg: #DDEFD8; --ok-ink: #1E5E2F; --ok-dot: #2E8B47;
  --warn-bg: #FCEBC2; --warn-ink: #7A4F00; --warn-dot: #D99A00;
  --r-card: 28px; --r-item: 18px; --r-pill: 999px;
  --head: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hanzi: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; }
main { padding: 8px 0 120px; min-height: 70vh; }
.boot { min-height: 100vh; display: grid; place-items: center; }

/* ── шапка и навигация ───────────────────────────────────────────────── */
.top { display: flex; align-items: center; gap: 12px; height: 64px; }
.top .logo { margin-left: -13px; flex: none; }
.top .logo img { height: 64px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; padding: 9px 16px; border-radius: var(--r-pill);
  border: 2px solid transparent; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a.on { background: var(--card); border-color: var(--line); color: var(--ink); }
.top .spacer { flex: 1; }
.score { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--card);
  border: 3px solid var(--yellow); border-radius: var(--r-pill); padding: 5px 14px; font-weight: 700; font-size: 14px;
  white-space: nowrap; }
.score b { font-family: var(--head); font-weight: 700; font-size: 13px; }
.top .enter { display: none; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 2px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; font-size: 11.5px;
  font-weight: 600; color: var(--muted); border-radius: 14px; }
.tabs a.on { color: var(--red); }

@media (min-width: 800px) {
  .wrap { padding: 0 24px; }
  .nav { display: flex; }
  .tabs { display: none; }
  .top { height: 84px; }
  .top .logo img { height: 76px; }
  .top .enter { display: inline-flex; }
  main { padding-bottom: 80px; }
}

/* ── текст ───────────────────────────────────────────────────────────── */
.h1 { font: 800 clamp(26px, 6.4vw, 44px)/1.12 var(--head); letter-spacing: -0.01em; }
.h2 { font: 700 clamp(20px, 4.6vw, 28px)/1.2 var(--head); letter-spacing: -0.01em; }
.h3 { font: 700 17px/1.3 var(--head); }
.accent { color: var(--red); }
.lead { font-size: 17px; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.cn { font-family: var(--body), "PingFang SC", "Microsoft YaHei", sans-serif; }
.link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; }
.link:hover { color: var(--red-deep); }
.ext { display: inline-flex; align-items: center; gap: 6px; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack.tight { gap: 8px; }
.stack.loose { gap: 28px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.page-head { padding: 20px 0 20px; display: grid; gap: 10px; }

/* ── кнопки, пилюли, статусы ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--red);
  background: var(--red); color: var(--cream); font-weight: 700; padding: 12px 22px; border-radius: var(--r-pill);
  text-decoration: none; line-height: 1.2; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.done { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-bg); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.cta { display: inline-flex; align-items: center; gap: 14px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 17px; padding: 8px 8px 8px 26px; border-radius: var(--r-pill); border: 0;
  text-decoration: none; line-height: 1.2; transition: transform .1s; }
.cta .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--yellow);
  display: grid; place-items: center; flex: none; transition: transform .2s; }
.cta:hover .dot { transform: translateX(3px); }
.cta:active { transform: translateY(1px); }

.pill { display: inline-flex; align-items: center; gap: 8px; border: 3px solid var(--yellow); border-radius: var(--r-pill);
  padding: 5px 16px; font-weight: 700; font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; line-height: 1.3; background: var(--cream); color: var(--ink-2); }
.badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.ok::before { background: var(--ok-dot); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.warn::before { background: var(--warn-dot); }
.badge.red { background: var(--rose); color: var(--maroon); }
.badge.red::before { background: var(--red); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12.5px;
  font-weight: 600; border: 2px solid var(--line); color: var(--ink-2); background: var(--card); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
/* на телефоне ряд листается пальцем - край затухает, чтобы было видно, что дальше есть ещё; на широком экране переносится */
@media (max-width: 799px) { .chips.scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
@media (min-width: 800px) { .chips.scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }
.chip { flex: none; border: 2px solid var(--line); background: var(--card); border-radius: var(--r-pill); padding: 8px 16px;
  font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: border-color .15s; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.on { background: var(--red); border-color: var(--red); color: var(--cream); }

/* ── карточки ────────────────────────────────────────────────────────── */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card > .dash, .dash { border: 0; border-top: 2px dashed var(--line-dash); margin: 16px 0; }
.card .title { font: 700 18px/1.25 var(--head); color: var(--red); letter-spacing: -0.01em; }
.card a.title { text-decoration: none; }
.card a.title:hover { text-decoration: underline; text-underline-offset: 4px; }
.note { border-radius: var(--r-item); padding: 14px 18px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 500; }
.note.plain { background: var(--cream); color: var(--ink-2); border: 2px solid var(--line); }
.note.fit { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 14px; font-size: 14px; }
.note.fit.bad { background: var(--rose); color: var(--maroon); }
.fit-ok { color: var(--ok-ink); font-weight: 600; }
.grid { display: grid; gap: 14px; }
@media (min-width: 800px) {
  .card { padding: 26px 32px; }
  .grid.c2 { grid-template-columns: 1fr 1fr; }
  .grid.c3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── красный блок и иероглиф ─────────────────────────────────────────── */
.redbox { position: relative; overflow: hidden; background: var(--red); color: var(--cream); border-radius: var(--r-card);
  padding: 28px 22px; isolation: isolate; }
.redbox .hanzi { position: absolute; z-index: -1; right: -0.08em; bottom: -0.3em; font: 900 clamp(220px, 46vw, 420px)/1 var(--hanzi);
  color: var(--red-deep); pointer-events: none; user-select: none; }
.redbox .h1, .redbox .h2 { color: var(--cream); }
.redbox .accent { color: var(--yellow); }
.redbox .pill { color: var(--cream); }
.redbox .lead { color: var(--cream); }
.redbox .link { color: var(--cream); }
.hero { padding: 36px 22px 40px; display: grid; gap: 18px; justify-items: start; }
.hero .h1 { font-size: clamp(30px, 8vw, 60px); max-width: 13em; }
.hero .lead { max-width: 30em; font-size: 18px; }
@media (min-width: 800px) {
  .redbox { padding: 40px 48px; }
  .hero { padding: 64px 56px 72px; gap: 22px; }
}
.num { font: 800 15px/1 var(--head); color: var(--red); }

/* ── анкета ──────────────────────────────────────────────────────────── */
.bar { height: 10px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: var(--r-pill); transition: width .35s ease; }
.quiz { padding-top: 12px; display: grid; gap: 22px; }
.quiz .q { font: 700 clamp(22px, 5.4vw, 32px)/1.2 var(--head); letter-spacing: -0.01em; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: var(--card);
  border: 2px solid var(--line); border-radius: var(--r-item); padding: 16px 18px; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--line-strong); }
.choice.on { border-color: var(--red); background: var(--rose); }
.choice b { display: block; font-weight: 600; font-size: 17px; }
.choice span { display: block; color: var(--muted); font-size: 14px; }
.choice .go { margin-left: auto; color: var(--line-strong); flex: none; }
.choice.on .go { color: var(--red); }
.fade { animation: fade .28s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── вуз в списке ────────────────────────────────────────────────────── */
.uni { display: grid; gap: 12px; }
.uni .meta { color: var(--muted); font-size: 14px; }
.ways { display: grid; gap: 8px; }
.way { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.way .name { font-weight: 600; }
.reasons { display: grid; gap: 6px; }
.reasons li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.reasons li svg { color: var(--ok-dot); flex: none; margin-top: 3px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 8px; }

/* ── поиск ───────────────────────────────────────────────────────────── */
.filters { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.input, .select { width: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px;
  outline: none; transition: border-color .15s; min-height: 50px; }
.input:focus, .select:focus { border-color: var(--red); }
.input::placeholder { color: var(--muted); opacity: .8; }
.select { appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236B6058' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.selects { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.selects .wide { grid-column: 1 / -1; }
@media (min-width: 800px) { .selects { grid-template-columns: 1.2fr 1fr 1fr 1.6fr; } .selects .wide { grid-column: auto; } }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin-top: 1px; }

/* ── путь, уровень, печати ───────────────────────────────────────────── */
.path { display: flex; align-items: flex-start; }
.station { flex: none; width: 58px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.station .o { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font: 900 24px/1 var(--hanzi); background: var(--card); border: 2px dashed var(--line-strong); color: var(--line-strong);
  padding-bottom: 2px; }
.station.done .o { background: var(--red); border: 2px solid var(--red); color: var(--cream); }
.station.now .o { background: var(--yellow); border: 2px solid var(--yellow); color: var(--ink); }
.station .t { font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.station.done .t, .station.now .t { color: var(--ink); }
.station .p { font-size: 9px; line-height: 1.2; color: var(--muted); font-family: "Noto Sans SC", "PingFang SC", sans-serif; }
.station.done .p { color: var(--red); }
.redbox .station .p { color: var(--rose); }
.reward.off { opacity: .6; }
.learn { margin: 0; padding-left: 18px; }
.path .seg { flex: 1; min-width: 6px; border-top: 2px dashed var(--line-strong); margin-top: 25px; }
.path .seg.done { border-top: 2px solid var(--red); }
.redbox .station .o { background: transparent; border-color: var(--rose); color: var(--rose); opacity: .7; }
.redbox .station.done .o { background: var(--cream); border: 2px solid var(--cream); color: var(--red); opacity: 1; }
.redbox .station.now .o { background: var(--yellow); border: 2px solid var(--yellow); color: var(--ink); opacity: 1; }
.redbox .station .t { color: var(--cream); }
.redbox .path .seg { border-color: var(--rose); opacity: .6; }
.redbox .path .seg.done { border-top: 2px solid var(--cream); opacity: 1; }
@media (min-width: 800px) {
  .station { width: 92px; }
  .station .o { width: 64px; height: 64px; font-size: 30px; }
  .station .t { font-size: 13.5px; }
  .station .p { font-size: 11.5px; }
  .path .seg { margin-top: 32px; }
}
.level { display: grid; gap: 8px; }
.level .name { font: 700 18px/1.2 var(--head); }
.seals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
@media (min-width: 800px) { .seals { grid-template-columns: repeat(9, 1fr); } }
.seal { display: grid; justify-items: center; gap: 8px; text-align: center; }
.seal .o { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 2px dashed var(--line-strong); color: var(--line-strong); }
.seal.got .o { border: 3px solid var(--red); color: var(--red); transform: rotate(-8deg); }
.seal.got .o::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed var(--red); }
.seal b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.seal:not(.got) b { color: var(--muted); }

/* ── план ────────────────────────────────────────────────────────────── */
.next { display: grid; gap: 14px; justify-items: start; }
.next .where { font-weight: 600; opacity: .92; }
.next .what { font: 700 clamp(24px, 5.6vw, 30px)/1.2 var(--head); color: var(--yellow); letter-spacing: -0.01em; }
.tasks { display: grid; }
.task { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 2px dashed var(--line-dash);
  background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%; }
.tasks .task:first-child { border-top: 0; }
.task .box { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid;
  place-items: center; color: transparent; transition: background .15s, border-color .15s; margin-top: 1px; }
.task:hover .box { border-color: var(--red); }
.task.done .box { background: var(--red); border-color: var(--red); color: var(--cream); }
.task b { font-weight: 600; display: block; }
.task.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task span { display: block; color: var(--muted); font-size: 14px; }
.task .tag.need { display: inline-flex; margin-left: 6px; vertical-align: 2px; font-size: 12px; padding: 0 8px; color: var(--ink-2); }
.task .tag.need.red { border-color: var(--red); color: var(--maroon); background: var(--rose); }
.task .tag.need.warn { border-color: var(--line-strong); color: var(--ink); }
.task.done .tag.need { display: none; }
.docrow { position: relative; border-top: 2px dashed var(--line-dash); }
.tasks .docrow:first-child { border-top: 0; }
.docrow .task { border-top: 0; }
.docrow.can .task { padding-right: 110px; }
.docrow .order { position: absolute; right: 0; top: 12px; opacity: 0; transition: opacity .15s; }
.docrow:hover .order, .docrow:focus-within .order { opacity: 1; }
@media (hover: none) { .docrow .order { opacity: 1; } }
.docorder { padding: 0 0 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.step { display: grid; gap: 6px; background: none; border: 0; padding: 0; text-align: left; }
.step i { display: block; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.step i u { display: block; height: 100%; background: var(--red); border-radius: var(--r-pill); transition: width .35s ease; }
.step span { font-size: 13px; font-weight: 600; color: var(--muted); }
.step.on span { color: var(--ink); }
.step.full span { color: var(--ok-ink); }
.app-head { display: grid; gap: 10px; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { color: var(--red); background: var(--cream); }
.empty { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 36px 20px; }
.empty .o { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; place-items: center;
  font: 900 40px/1 var(--hanzi); color: var(--line-strong); padding-bottom: 4px; }

/* ── всплывающие сообщения ───────────────────────────────────────────── */
.toasts { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); display: grid;
  justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 800px) { .toasts { bottom: 28px; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--cream);
  border-radius: var(--r-pill); padding: 10px 20px 10px 12px; font-weight: 600; max-width: 100%;
  animation: rise .3s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast .o { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid;
  place-items: center; flex: none; }
.toast.err .o { background: var(--red); color: var(--cream); }
.toast.plain { padding-left: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

footer { border-top: 2px dashed var(--line-dash); margin-top: 24px; padding: 24px 0 110px; color: var(--muted); font-size: 14px; }
footer .row { gap: 8px 20px; }
@media (min-width: 800px) { footer { padding-bottom: 40px; } }
.svc { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.svc .tag { margin-right: 4px; }
.costs { display: grid; }
.cost { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.cost span { color: var(--ink-2); } .cost b { white-space: nowrap; text-align: right; }
.cost i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--line); margin-left: 4px; white-space: nowrap; }
.cost.free span { text-decoration: line-through; } .cost.free b { color: var(--ok-ink, #1E7A46); white-space: normal; }
.cost.sum { border-bottom: 0; padding-bottom: 2px; } .cost.sum span, .cost.sum b { color: var(--ink); font-weight: 700; }
.cost.total b { color: var(--red); font-size: 18px; }
.msg { padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.code { font: 700 clamp(20px, 6.4vw, 30px)/1.2 var(--head); letter-spacing: .06em; padding: 16px; text-align: center;
  border: 2px dashed var(--red, #B3131B); border-radius: 20px; user-select: all; overflow-wrap: anywhere; }
.prose { display: grid; gap: 14px; color: var(--ink-2); }
.prose h2 { font: 700 18px/1.3 var(--head); color: var(--ink); margin-top: 10px; }
.prose ul { display: grid; gap: 6px; }
.prose li { padding-left: 18px; position: relative; }
.prose li::before { content: "-"; position: absolute; left: 2px; color: var(--red); font-weight: 700; }

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