/* Шрифт Caveat (SIL OFL) — локально, чтобы не зависеть от Google Fonts */
@font-face { font-family: Caveat; font-weight: 500; src: url(../assets/fonts/caveat-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; font-weight: 500; src: url(../assets/fonts/caveat-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Caveat; font-weight: 700; src: url(../assets/fonts/caveat-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; font-weight: 700; src: url(../assets/fonts/caveat-latin-700-normal.woff2) format('woff2'); }
/* Минималистичный белый. Персонажи и стиль придут после выбора команды. */
:root {
  --bg: #fbfbf8; --ink: #1e2235; --muted: #4f5663; --line: #e3e6e4;
  --accent: #1f3fbf; --accent-soft: #e9edfb; --ok: #2f9e5b; --ok-soft: #eef9f1;
  --bad: #d9480f; --bad-soft: #fdf1ea; --half: #d9a400; --half-soft: #fff8e1; --card: #ffffff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
button { font: inherit; color: inherit; }
.top, .bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; max-width: 720px; margin: 0 auto; }
.top { position: relative; z-index: 2; }
.brand { font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.beta { font-family: Caveat, cursive; font-size: 16px; color: var(--muted); border: 2px solid var(--muted); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 0 8px; margin-left: 6px; vertical-align: middle; display: inline-block; transform: rotate(-4deg); }
.stats { font-weight: 700; display: flex; gap: 12px; font-family: Caveat, cursive; font-size: 24px; }
.stats span { display: inline-flex; align-items: center; gap: 4px; }
.stats svg { display: block; }
main { max-width: 720px; margin: 0 auto; padding: 8px 18px 40px; }
h1, h2, .brand, .pill-title, .picker-head, .lesson-title, .result-title { font-family: Caveat, 'Marker Felt', cursive; font-weight: 700; }
h1 { font-size: 38px; margin: 12px 0 4px; line-height: 1.05; }
h2 { font-size: 30px; margin: 14px 0; line-height: 1.15; }
.brand { font-size: 23px; white-space: nowrap; }
h2.chapter { font-size: 18px; color: var(--muted); margin: 28px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; margin-top: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* главный: карта параграфа */
.topic-pill { display: flex; justify-content: space-between; align-items: center; width: 100%; background: var(--card); color: var(--ink); border: 3px solid var(--accent); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; padding: 14px 16px; text-align: left; cursor: pointer; transform: rotate(-.6deg); }
.topic-pill:active { transform: rotate(-.6deg) scale(.99); }
.pill-para { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pill-title { font-size: 26px; line-height: 1.05; margin-top: 2px; }
.pill-para { font-family: Caveat, cursive; font-size: 16px; text-transform: none; letter-spacing: 0; }
.pill-icon { font-size: 22px; color: var(--accent); }
.picker { margin-top: 10px; }
.picker-frame { background: var(--card); border: 3px solid #1e2235; border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px; padding: 10px 12px 6px; margin-bottom: 14px; }
.picker-frame:nth-child(odd) { transform: rotate(.4deg); } .picker-frame:nth-child(even) { transform: rotate(-.4deg); }
.picker-head { display: flex; justify-content: space-between; align-items: center; margin: 0 6px 8px; font-family: Caveat, cursive; font-size: 28px; }
.picker-ch { font-family: Caveat, cursive; font-size: 24px; color: var(--ink); margin: 2px 0 10px; border-bottom: 2px dashed #9aa0b0; padding-bottom: 2px; }
.picker-ch span { color: var(--accent); font-weight: 700; }
.picker-item { display: flex; gap: 10px; align-items: center; width: 100%; background: var(--bg); border: 2.5px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 8px 12px; margin-bottom: 8px; text-align: left; cursor: pointer; }
.picker-item:nth-child(odd) { transform: rotate(-.4deg); } .picker-item:nth-child(even) { transform: rotate(.5deg); }
.picker-item.active { border-color: var(--accent); background: var(--accent-soft); border-width: 3px; }
.picker-item.done { border-color: var(--ok); }
.picker-char { flex: none; line-height: 0; }
.picker-body { flex: 1; min-width: 0; }
.picker-para { font-family: Caveat, cursive; font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1; }
.picker-title { font-family: Caveat, cursive; font-size: 21px; font-weight: 700; line-height: 1.1; margin: 0 0 4px; }
.ticks { display: flex; gap: 4px; align-items: center; }
.tick { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 3px 5px 2px 6px; display: inline-block; transform: rotate(-4deg); }
.tick.on { background: var(--ok); border-color: var(--ok); }
.home-row { display: flex; gap: 10px; align-items: stretch; margin: 12px 0 4px; }
.daily { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 2.5px solid #1e2235; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 8px 12px; transform: rotate(-.5deg); }
.daily-title { font-family: Caveat, cursive; font-size: 26px; font-weight: 700; line-height: 1; }
.daily .btn { font-family: Caveat, cursive; font-size: 22px; padding: 6px 16px; border: 2.5px solid var(--accent); border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px; transform: rotate(1.5deg); }
.daily.off .btn { background: #e8e8e3; border-color: #b9bcb8; color: #8a8f8c; }
.hearts-home { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 2px; flex: none; background: var(--card); border: 2.5px solid #1e2235; border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px; padding: 0 10px; min-width: 60px; transform: rotate(.8deg); }
.hearts-home svg { display: block; width: 20px; height: 18px; }
#hearts-home { display: flex; flex-direction: row; gap: 2px; }
.map { padding: 16px 0 24px; position: relative; }
.node-row { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 0; min-height: 124px; }
.node-row.l { align-items: flex-start; padding-left: 14%; }
.node.intro .ring path { fill: #fff; }
.node-row.r { align-items: flex-end; padding-right: 14%; }
.node { position: relative; width: 88px; height: 88px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.node .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.node .node-icon { position: relative; line-height: 0; }
.node:active { transform: scale(.95) rotate(-3deg); }
.node.locked { cursor: default; }
.node.current .ring { animation: wiggle 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg) scale(1.02); } 50% { transform: rotate(3deg) scale(1.06); } }
.mascot { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
.node.boss { width: 104px; height: 104px; }
.trail { position: absolute; left: 0; right: 0; top: -70px; height: 80px; pointer-events: none; }
.trail svg { width: 100%; height: 100%; }
.node-row { z-index: 0; }
.node-cap { margin-top: 8px; font-size: 14px; font-weight: 600; text-align: center; font-family: Caveat, 'Marker Felt', cursive; font-size: 20px; font-weight: 700; }
.node-row.l .node-cap { text-align: left; } .node-row.r .node-cap { text-align: right; }
.mascot { position: absolute; top: 14px; font-size: 56px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0,0,0,.08)); }
.node-row.l .mascot, .node-row.c .mascot { right: 10%; }
.node-row.r .mascot { left: 10%; }
.boss-row { margin-top: 12px; }
.map-foot { text-align: center; margin-top: 20px; }
.topic { margin: 14px 0; }
.topic-head { font-weight: 600; margin-bottom: 8px; }
.para { color: var(--accent); }
.cards { display: grid; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-align: left; cursor: pointer; width: 100%; }
.card:active { transform: scale(0.99); }
.card.done { border-color: var(--ok); }
.lesson-title { font-weight: 600; }
.exam { margin: 14px 0 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.exam-head { font-weight: 700; margin-bottom: 10px; }
.levels { display: grid; gap: 8px; }
.level { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; background: var(--card); border: 2.5px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 8px 14px; cursor: pointer; }
.level:nth-child(even) { transform: rotate(.4deg); } .level:nth-child(odd) { transform: rotate(-.4deg); }
.level b { font-family: Caveat, cursive; font-size: 24px; }
.level b { grid-column: 1; }
.level span { grid-column: 1; font-size: 13px; color: var(--muted); }
.level em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: Caveat, cursive; font-size: 20px; color: var(--accent); font-weight: 700; }
.level:disabled { opacity: .55; cursor: default; border-color: #b9bcb8; }

/* задание — все по docs/STYLE.md: рамки ручкой, чернила, штриховка */
.taskbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.x { background: none; border: 0; font-family: Caveat, cursive; font-size: 30px; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0 6px; line-height: 1; }
.progress { flex: 1; height: 14px; border: 2.5px solid var(--ink); border-radius: 255px 8px 225px 8px / 8px 225px 8px 255px; background: var(--card); overflow: hidden; transform: rotate(-.3deg); }
#progress-bar { height: 100%; width: 0; background: repeating-linear-gradient(-35deg, var(--accent) 0 2.5px, transparent 2.5px 5px); transition: width .3s; }
.hearts { display: flex; gap: 2px; }
.character { display: flex; gap: 10px; align-items: center; background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px; padding: 8px 12px; transform: rotate(.4deg); }
.char-say { font-size: 15px; color: var(--ink); }
.char-say b { font-family: Caveat, cursive; font-size: 22px; margin-right: 4px; }
.options { display: grid; gap: 10px; }
.options.tf { grid-template-columns: 1fr 1fr; }
.opt, .pair, .chip, .slot, .statement, .cloze, .year, .feedback, .flip, .btn { border: 2.5px solid var(--ink); background: var(--card); color: var(--ink); }
.opt { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 12px 16px; text-align: left; cursor: pointer; }
.opt:nth-child(even) { border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px; transform: rotate(.3deg); }
.opt:nth-child(odd) { transform: rotate(-.3deg); }
.tf .opt { text-align: center; font-family: Caveat, cursive; font-size: 26px; font-weight: 700; }
.opt.correct, .pair.matched, .slot.correct, .blank.correct, .year.correct { border-color: var(--ok); background: repeating-linear-gradient(-35deg, #d9efe0 0 3px, var(--card) 3px 7px); }
.opt.wrong, .slot.wrong, .year.wrong { border-color: var(--bad); background: repeating-linear-gradient(-35deg, #f8d9c9 0 3px, var(--card) 3px 7px); }
.opt:disabled, .chip:disabled { cursor: default; }
.statement { font-size: 19px; border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px; padding: 14px 16px; }

/* пары */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.pair { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 10px 12px; text-align: left; font-size: 15px; cursor: pointer; min-height: 56px; height: 100%; }
.pair:nth-child(4n+2), .pair:nth-child(4n+3) { border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px; }
.pair.sel { border-color: var(--accent); border-width: 3px; background: var(--accent-soft); }
.pair.matched { opacity: .55; }
.pair.shake { animation: shake .3s; border-color: var(--bad); }
.pair.reveal { border-style: dashed; opacity: .7; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* порядок */
.slots { display: grid; gap: 8px; margin-bottom: 14px; }
.slot { border-style: dashed; border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px; padding: 10px 14px; color: var(--muted); min-height: 46px; background: transparent; }
.slot.filled { border-style: solid; color: var(--ink); background: var(--card); }

/* вставка */
.cloze { font-size: 19px; line-height: 1.7; border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px; padding: 14px 16px; }
.blank { display: inline-block; min-width: 64px; border-bottom: 2.5px solid var(--accent); padding: 0 6px; color: var(--accent); font-weight: 600; cursor: pointer; font-family: Caveat, cursive; font-size: 22px; line-height: 1; }
.blank.correct { color: var(--ok); border-color: var(--ok); background: none; }
.blank.wrong { color: var(--bad); border-color: var(--bad); text-decoration: line-through; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 6px 14px; cursor: pointer; font-family: Caveat, cursive; font-size: 22px; font-weight: 700; }
.chip:nth-child(even) { transform: rotate(1deg); } .chip:nth-child(odd) { transform: rotate(-1deg); }
.chip:disabled { opacity: .3; }

/* ввод года */
.year { width: 100%; font: 700 36px/1.2 Caveat, cursive; text-align: center; padding: 10px; border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px; }
.year:focus { outline: none; border-color: var(--accent); }

/* обратная связь */
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; transform: rotate(-.4deg); }
.feedback.ok { border-color: var(--ok); }
.feedback.bad { border-color: var(--bad); }
.feedback.half { border-color: var(--half); }
.feedback p { margin: 0 0 8px; }
.feedback b { font-family: Caveat, cursive; font-size: 24px; }
.feedback.ok b { color: var(--ok); } .feedback.bad b { color: var(--bad); } .feedback.half b { color: var(--half); }
.assoc { color: var(--ink); border-left: 3px solid var(--accent); padding: 4px 12px; font-size: 15px; }
.more { font-size: 15px; color: var(--muted); border-top: 2px dashed #9aa0b0; padding-top: 10px; }

/* кнопки */
.btn { font-family: Caveat, cursive; font-size: 24px; font-weight: 700; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 6px 18px; cursor: pointer; line-height: 1.1; }
.btn.primary { color: var(--accent); border-color: var(--accent); border-width: 3px; }
.btn.small { font-size: 20px; padding: 4px 12px; }
.btn:active { transform: scale(.97) rotate(-1deg); }
.btn:disabled { color: #8a8f8c; border-color: #b9bcb8; cursor: default; }
.xpgain { font-family: Caveat, cursive; color: var(--accent); font-weight: 700; font-size: 32px; text-align: center; margin: 0; }
#screen-result { text-align: center; }
#screen-result h1 { font-size: 36px; }
.exam-head, .boss-door-cap b { font-family: Caveat, cursive; font-size: 22px; }

/* карточки */
.flip { border-radius: 18px 255px 18px 225px / 225px 18px 255px 18px; min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 20px; cursor: pointer; transform: rotate(-.5deg); }
.flip.back { border-color: var(--accent); transform: rotate(.5deg); }
.flip .date { font-family: Caveat, cursive; font-size: 56px; font-weight: 700; color: var(--accent); line-height: 1; }
.bottom { font-size: 13px; justify-content: center; }

/* персонажи */
.char-pic { line-height: 0; flex: none; }
.char-pic.big { display: flex; justify-content: center; margin: 8px 0; }
.char-say b { color: var(--ink); }
.mascot svg { filter: drop-shadow(0 3px 0 rgba(0,0,0,.08)); }

/* стартовая */
#screen-welcome { text-align: center; padding-top: 8px; }
.welcome-chars { display: flex; justify-content: center; gap: 4px; margin: 4px 0 8px; }
.welcome-title { font-size: 46px; margin: 8px 0; }
.welcome-title span { color: var(--accent); }
.welcome-sub { color: var(--muted); font-size: 17px; margin: 0 0 16px; }
.welcome-bubbles { display: grid; gap: 8px; margin: 0 0 20px; text-align: left; }
.bubble { background: var(--card); border: 2.5px solid #1e2235; border-radius: 16px; padding: 8px 14px; font-size: 15px; }
.bubble b { font-family: Caveat, cursive; font-size: 22px; }
.bubble b { margin-right: 6px; }
.b-opti b { color: #1F3FBF; } .b-nik b { color: #D9480F; } .b-dushka b { color: #3FA66A; }
.btn.big { font-family: Caveat, cursive; font-size: 30px; padding: 10px 44px; background: var(--card); color: var(--accent); border: 3px solid var(--accent); border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; margin-bottom: 16px; transform: rotate(1deg); }
.btn.big:active { transform: rotate(1deg) scale(.97); }
.bubble { border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; }
.bubble:nth-child(2) { transform: rotate(.6deg); } .bubble:nth-child(3) { transform: rotate(-.5deg); }

/* дудл-декор */
.decor-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#screen-welcome { position: relative; margin-top: -8px; }
#screen-welcome > *:not(.decor-layer) { position: relative; z-index: 1; }
.decor-pos { position: absolute; pointer-events: none; line-height: 0; }
.decor { stroke: #a9b0c4; }
.map .decor-pos { z-index: 0; }
.map { overflow: hidden; isolation: isolate; }
.node-row { z-index: 1; }
.trail { z-index: 0; }
/* тетрадная линейка на фоне */
body { background-image: repeating-linear-gradient(0deg, transparent 0 27px, #e9ecf5 27px 28px); background-attachment: fixed; }

/* дверь к боссу на карте */
.boss-door { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; background: var(--card); border: 3px solid #1e2235; border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; padding: 10px 16px; text-align: left; cursor: pointer; transform: rotate(.5deg); }
.boss-door .house { width: 88px; height: 66px; flex: none; }
.boss-door.locked { border-color: #b9bcb8; color: var(--muted); cursor: default; }
.boss-door.locked .house { stroke: #b9bcb8; opacity: .7; }
.boss-door.won { border-color: var(--ok); }
.boss-door-cap { display: flex; flex-direction: column; gap: 2px; }
/* экран босса */
#screen-boss { text-align: center; }
.boss-head { margin: 8px 0 16px; }
.boss-house { display: flex; justify-content: center; }
.boss-house .house { width: 200px; height: 150px; }
#screen-boss .levels { text-align: left; }
#screen-boss .level.done { border-color: var(--ok); background: var(--ok-soft); }
#screen-boss .hearts-home { display: inline-flex; margin: 6px auto; }
.badge { color: var(--ok); font-family: Caveat, cursive; font-size: 24px; font-weight: 700; }

.picker-item.boss { background: #fff4e5; border-color: #1e2235; border-width: 3px; }
.picker-item.boss .picker-char .house { width: 54px; height: 44px; }
.picker-item.boss.locked { background: #f0f0ec; color: var(--muted); }
.picker-item.boss.locked .house { stroke: #b9bcb8; }
.picker-item.boss.done { background: var(--ok-soft); border-color: var(--ok); }
.picker-item.boss .picker-para { color: #d9480f; }

.picker-foot { font-family: Caveat, cursive; font-size: 22px; line-height: 1.2; text-align: center; color: var(--ink); margin: 6px 12px 20px; transform: rotate(-1deg); }

.daily.off { opacity: .6; }
.stats span, .hearts-home { cursor: pointer; }
.info { width: 22px; height: 22px; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; border: 2px solid var(--ink); background: none; font: 700 16px/1 Caveat, cursive; cursor: pointer; vertical-align: middle; padding: 0; }
.hint { position: fixed; inset: 0; background: rgba(30,34,53,.35); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.hint-box { background: var(--card); border: 3px solid #1e2235; border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px; padding: 18px 20px; max-width: 360px; transform: rotate(-1deg); }
.hint-box b { font-family: Caveat, cursive; font-size: 28px; }
.hint-box p { margin: 6px 0 8px; }

.node .crown { position: absolute; top: -22px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.ticks .crown { width: 30px; height: 19px; margin-left: 4px; }

.map-info { align-self: center; flex: none; width: 26px; height: 26px; font-size: 18px; }
.node-cap { min-height: 10px; font-size: 18px; }
.node-row { min-height: 110px; }

.book-side { position: absolute; top: 30px; right: 2%; background: none; border: 2.5px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transform: rotate(3deg); background: var(--card); }
.book-side span { font-family: Caveat, cursive; font-size: 16px; font-weight: 700; }
.node-row.c .mascot { right: auto; left: 4%; }
.lead-tag { font-family: Caveat, cursive; font-size: 20px; color: var(--accent); margin: 4px 0 -8px; transform: rotate(-2deg); display: inline-block; }

.hint-tag { font-family: Caveat, cursive; font-size: 20px; color: var(--muted); margin: 4px 0 -8px; display: inline-block; transform: rotate(-2deg); }
.hint-tag.strong { color: var(--accent); }

/* нижняя панель */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: var(--card); border-top: 3px solid var(--ink); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.tab { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--muted); cursor: pointer; padding: 2px 10px; font-family: Caveat, cursive; font-size: 17px; font-weight: 700; }
.tab.active { color: var(--accent); transform: rotate(-2deg); }
main { padding-bottom: 96px; }
.bottom { padding-bottom: 80px; }
.taskbar .progress { margin-left: 4px; }

.donate-pic { display: flex; justify-content: center; line-height: 0; margin-bottom: 4px; }
#pizza { cursor: pointer; }
.hint-box a.btn { text-decoration: none; display: inline-block; }

/* предмет */
.brand-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
#subject-btn { cursor: pointer; background: none; white-space: nowrap; font-size: 15px; padding: 0 6px; }
.top { gap: 8px; }
.stats { font-size: 21px; gap: 8px; flex: none; }
.subjects { display: grid; gap: 8px; margin: 8px 0; text-align: left; }
.subject { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border: 2.5px solid #b9bcb8; border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; padding: 6px 12px; color: var(--muted); }
.subject.on { border-color: var(--ink); color: var(--ink); }
.subject.active { border-color: var(--accent); background: var(--accent-soft); }
.subject b { font-family: Caveat, cursive; font-size: 24px; }
