
/* Layout: one-screen phone app — top bar with progress + tabs, a glowing "stage" card in the middle, thumb buttons at the bottom. Deliberate single dark look (night study). */
@property --h { syntax: '<number>'; inherits: true; initial-value: 260; }
:root {
  --ink: #0b0a14;        /* page */
  --ink-2: #15131f;      /* raised surfaces */
  --line: #2a2738;       /* hairlines */
  --text: #f3f1fa;
  --muted: #9b97b0;
  --good: #5be3a5;
  --bad: #ff7a8a;
  --gold: #ffd166;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--ink); color: var(--text); font-family: var(--body);
  font-size: 15px; overflow: hidden;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, input:focus-visible { outline: 2px solid hsl(var(--h) 90% 70%); outline-offset: 2px; }

.app { height: 100%; box-sizing: border-box; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-block: 12px 14px; }

/* top */
.top { display: flex; flex-direction: column; gap: 10px; }
.toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.brand span { color: hsl(var(--h) 90% 72%); transition: color .6s; }
.dirbtn { padding: 6px 11px; border-radius: 999px; border: 1px solid hsl(var(--h) 50% 40% / .6); background: hsl(var(--h) 50% 30% / .25); font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .03em; color: hsl(var(--h) 90% 80%); white-space: nowrap; }
.answer .big { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 7vw, 34px); line-height: 1.15; text-wrap: balance; color: var(--text); overflow-wrap: anywhere; }
.count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 700; }
.count b { color: var(--text); }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--good), var(--gold)); border-radius: 4px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.tabs button { padding: 9px 6px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted); transition: background .25s, color .25s; }
.tabs button[aria-selected="true"] { background: hsl(var(--h) 45% 22%); color: var(--text); }
.sync { font-size: 11px; color: var(--muted); }

/* stage */
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.stage {
  position: relative; flex: 1; min-height: 0; border-radius: 28px; overflow: hidden;
  background: hsl(var(--h) 35% 9%); border: 1px solid hsl(var(--h) 40% 20%);
  transition: --h 0.9s ease, background .9s, border-color .9s;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(48px); opacity: .85; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 14s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 60%; height: 50%; left: 5%; top: 8%; background: hsl(var(--h) 85% 45% / .55); }
.aurora i:nth-child(2) { width: 55%; height: 45%; right: 0; top: 40%; background: hsl(calc(var(--h) + 50) 85% 50% / .4); animation-duration: 18s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 45%; height: 40%; left: 25%; bottom: 0; background: hsl(calc(var(--h) - 40) 80% 45% / .4); animation-duration: 22s; animation-delay: -3s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(8%, -10%) scale(1.15); } }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(hsl(var(--h) 60% 80% / .07) 1px, transparent 1px); background-size: 18px 18px; }

.card { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 20px 18px; text-align: center; overflow-y: auto; }
.card { justify-content: flex-start; }
.card::before, .card::after { content: ''; margin: auto 0; }
.card.shown .scene { height: clamp(70px, 11vh, 100px); }
.card.shown .scene .it { font-size: clamp(40px, 11vw, 58px); }
.card.shown .scene .it.mid, .card.shown .scene .puff { font-size: clamp(26px, 7vw, 36px); }
.card.shown .word { font-size: min(1em, 40px); }
.word, .answer .big { max-width: 100%; }
.card.enter { animation: cardIn .55s cubic-bezier(.2,.9,.2,1) both; }
.card.out-r { animation: outR .28s ease-in both; }
.card.out-l { animation: outL .28s ease-in both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes outR { to { opacity: 0; transform: translateX(40px) rotate(3deg); } }
@keyframes outL { to { opacity: 0; transform: translateX(-40px) rotate(-3deg); } }

.emoji { font-size: clamp(64px, 20vw, 104px); line-height: 1; filter: drop-shadow(0 10px 30px hsl(var(--h) 90% 50% / .55)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.word { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; max-width: 100%; overflow-wrap: anywhere; }
.word .w { display: inline-block; white-space: nowrap; }
.word .c { display: inline-block; animation: rise .5s cubic-bezier(.2,.9,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(.45em) rotate(6deg); } to { opacity: 1; transform: none; } }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 30% 30% / .7); border: 1px solid hsl(var(--h) 40% 45% / .5); transition: background .3s, transform .3s; }
.dots i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 10px var(--gold); }
.dots i.pop { animation: pop .5s ease; }
@keyframes pop { 50% { transform: scale(1.7); } }
.hint { font-size: 12px; color: hsl(var(--h) 25% 70%); }

.answer { display: grid; gap: 10px; justify-items: center; width: 100%; max-width: 420px; }
.answer[hidden] { display: none !important; }
.answer .tr { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: hsl(var(--h) 90% 80%); background: hsl(var(--h) 60% 50% / .14); border: 1px solid hsl(var(--h) 60% 60% / .3); padding: 6px 12px; border-radius: 999px; }
.answer .ru { font-size: clamp(20px, 5.6vw, 26px); font-weight: 800; line-height: 1.25; text-wrap: balance; }
.answer .ex { font-size: 14px; line-height: 1.5; color: #d9d5ea; max-width: 34ch; }
.answer .ex mark { background: none; color: hsl(var(--h) 90% 78%); font-weight: 800; }
.answer > * { animation: rise .45s cubic-bezier(.2,.9,.2,1) both; }
.answer > *:nth-child(2) { animation-delay: .06s; } .answer > *:nth-child(3) { animation-delay: .12s; }
.verdict { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.verdict.good { color: var(--good); } .verdict.bad { color: var(--bad); } .verdict.gold { color: var(--gold); }

/* scenes: little animated emoji stories that act out the meaning */
.scene { position: relative; width: 100%; max-width: 380px; height: clamp(104px, 17vh, 150px); display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2.4vw, 16px); }
.scene .it { font-size: clamp(54px, 15vw, 86px); line-height: 1; display: inline-block; filter: drop-shadow(0 10px 24px hsl(var(--h) 90% 50% / .5)); }
.scene.many .it { font-size: clamp(44px, 12.5vw, 70px); }
.scene .it.mid { font-size: clamp(32px, 9vw, 50px); }
.scene .lbl { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6.4vw, 34px); color: hsl(var(--h) 90% 82%); padding: 6px 12px; border: 1px solid hsl(var(--h) 60% 60% / .4); background: hsl(var(--h) 60% 40% / .18); border-radius: 12px; filter: none; text-transform: uppercase; white-space: nowrap; }
.scene .op { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 7vw, 40px); color: hsl(var(--h) 90% 78%); display: inline-block; }
.scene .dim { opacity: .35; filter: grayscale(1); }
.scene .ov { position: relative; }
.scene .bd { position: absolute; right: -24%; top: -16%; font-size: .58em; animation: a-pop .6s .45s cubic-bezier(.2,1.6,.4,1) both; }
.scene.track { overflow: hidden; }
.scene.track .run { position: absolute; top: calc(50% - .5em); left: 100%; animation: run 3.4s linear infinite; }
.scene.track .run.chase { animation-duration: 4s; }
.scene.track .run.walk { animation-duration: 7s; }
.scene.track .run.dash { animation-duration: 1.5s; }
.scene.track .puff { font-size: clamp(28px, 8vw, 44px); top: calc(50% - .2em); }
.scene.track .fixed { position: absolute; left: calc(50% - .5em); top: calc(50% - .5em); opacity: .9; }
@keyframes run { from { left: 100%; } to { left: -35%; } }
.a-float { animation: a-float 3.6s ease-in-out infinite; }
@keyframes a-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.a-shake { animation: a-shake .45s ease-in-out infinite; }
@keyframes a-shake { 0%,100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-5px) rotate(-7deg); } 75% { transform: translateX(5px) rotate(7deg); } }
.a-bounce { animation: a-bounce .7s cubic-bezier(.3,0,.6,1) infinite alternate; }
@keyframes a-bounce { from { transform: translateY(0) scale(1.04,.94); } to { transform: translateY(-22px); } }
.a-slow { animation: a-slow 6s ease-in-out infinite; }
@keyframes a-slow { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(5deg); } }
.a-shrink { animation: a-shrink 2.2s ease-in-out infinite alternate; }
@keyframes a-shrink { from { transform: scale(1); } to { transform: scale(.32); } }
.a-grow { animation: a-grow 1.5s ease-in-out infinite alternate; }
@keyframes a-grow { from { transform: scale(.9); } to { transform: scale(1.32); } }
.a-spin { animation: a-spin 2.2s ease-in-out infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-fade { animation: a-fade 3s ease-in-out infinite; }
@keyframes a-fade { 0%,20% { opacity: 1; transform: none; } 55%,80% { opacity: 0; transform: translateY(-16px) scale(.5); } 100% { opacity: 1; transform: none; } }
.a-fall { animation: a-fall 2.8s ease-in infinite; transform-origin: 50% 100%; }
@keyframes a-fall { 0%,35% { transform: none; } 52% { transform: rotate(-100deg) translateY(4px); } 85% { transform: rotate(-90deg); } 100% { transform: none; } }
.a-fly { animation: a-fly 3s ease-in infinite; }
@keyframes a-fly { 0% { transform: translateY(20px); opacity: 0; } 15% { opacity: 1; transform: translateY(0); } 100% { transform: translate(30px,-120px) rotate(12deg); opacity: 0; } }
.a-chomp { animation: a-chomp .45s ease-in-out infinite alternate; }
@keyframes a-chomp { from { transform: scale(1); } to { transform: scale(1.14,.8) translateX(10px); } }
.a-kick { animation: a-kick 1.8s ease-out infinite; transform-origin: 50% 0; }
@keyframes a-kick { 0%,18% { transform: rotate(18deg); } 30% { transform: rotate(-30deg); } 50%,100% { transform: rotate(0); } }
.a-shoot { animation: a-shoot 1.8s ease-out infinite; }
@keyframes a-shoot { 0%,28% { transform: none; opacity: 1; } 85% { transform: translate(160px,-80px) rotate(540deg); opacity: 0; } 100% { opacity: 0; } }
.a-land { animation: a-land 3s ease-out infinite; }
@keyframes a-land { 0% { transform: translate(120px,-90px); opacity: 0; } 15% { opacity: 1; } 65%,100% { transform: none; opacity: 1; } }
.a-pulse { animation: a-pulse 1s ease-in-out infinite alternate; }
@keyframes a-pulse { to { transform: scale(1.15); } }
.a-flip { animation: a-flip 1.4s ease-in-out infinite; }
@keyframes a-flip { 0% { transform: translateY(0) rotateY(0); } 50% { transform: translateY(-40px) rotateY(540deg); } 100% { transform: translateY(0) rotateY(1080deg); } }
.a-pop { animation: a-pop .7s cubic-bezier(.2,1.6,.4,1) both, a-pulse 1.2s .8s ease-in-out infinite alternate; }
@keyframes a-pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.a-point, .a-nudge { animation: a-point .7s ease-in-out infinite alternate; }
@keyframes a-point { to { transform: translateX(12px); } }
.a-wobble { animation: a-wobble 1.3s ease-in-out infinite alternate; }
@keyframes a-wobble { from { transform: rotate(-14deg) skewX(-8deg); } to { transform: rotate(14deg) skewX(8deg); } }
.a-popfloat { animation: a-pop .6s .45s cubic-bezier(.2,1.6,.4,1) both, a-float 3.6s 1.1s ease-in-out infinite; }
.a-lungeL { animation: a-lungeL .8s ease-in-out infinite alternate; }
@keyframes a-lungeL { to { transform: translateX(18px) rotate(10deg); } }
.a-lungeR { animation: a-lungeR .8s ease-in-out infinite alternate; }
@keyframes a-lungeR { to { transform: translateX(-18px) rotate(-10deg); } }
.a-meetL { animation: a-meetL 1.8s ease-in-out infinite alternate; }
@keyframes a-meetL { from { transform: translateX(-26px); } to { transform: translateX(8px); } }
.a-meetR { animation: a-meetR 1.8s ease-in-out infinite alternate; }
@keyframes a-meetR { from { transform: translateX(26px); } to { transform: translateX(-8px); } }
.a-beat { animation: a-pulse .55s ease-in-out infinite alternate; }
.a-pull { animation: a-pull 2.4s ease-in-out infinite; }
@keyframes a-pull { 0% { transform: translateX(120px) scale(.8); opacity: 0; } 25% { opacity: 1; } 65%,100% { transform: translateX(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scene.track .run { position: static; }
  .scene.track { gap: 10px; }
  .scene.track .fixed { position: static; }
}

/* 3D diorama slot */
.scene3d { position: relative; flex: none; width: calc(100% + 40px); margin-inline: -20px; height: clamp(200px, 36vh, 340px); }
.card.shown .scene3d { height: clamp(140px, 22vh, 210px); }
.scene3d canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.scene3d canvas:active { cursor: grabbing; }
.spin-hint { position: absolute; right: 14px; bottom: 6px; font-size: 11px; font-weight: 700; color: hsl(var(--h) 30% 75% / .7); pointer-events: none; z-index: 1; }
.card.shown .spin-hint { display: none; }

/* controls */
.ctrls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { padding: 17px 12px; border-radius: 18px; font-weight: 800; font-size: 16px; transition: transform .12s, background .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.96); }
.btn.no { background: var(--ink-2); border: 1px solid var(--line); color: var(--bad); }
.btn.yes { background: var(--good); color: #062417; }
.btn.next { background: hsl(var(--h) 80% 70%); color: hsl(var(--h) 60% 10%); }
.btn.ghost { background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); }
.btn.full { grid-column: 1 / -1; }
.kbd { font-size: 11px; opacity: .6; font-weight: 700; }

/* autoplay */
.timer { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2; background: hsl(var(--h) 40% 20% / .6); }
.timer i { display: block; height: 100%; width: 0; background: hsl(var(--h) 90% 70%); }
.apctrls { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

/* words list */
.list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.search { width: 100%; padding: 13px 14px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 16px; }
.search::placeholder { color: var(--muted); }
.sec h3 { font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 2px 8px; font-weight: 700; }
.rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--ink-2); }
.row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .e { font-size: 22px; text-align: center; }
.row.openable { cursor: pointer; }
.row.openable:active { background: hsl(var(--h) 30% 16%); }
.tag3d { font-family: var(--display); font-size: 10px; font-weight: 800; color: #0b0a14; background: var(--gold); border-radius: 6px; padding: 3px 5px; vertical-align: middle; }
.row .t { min-width: 0; }
.row .t b { display: block; font-weight: 800; overflow-wrap: anywhere; }
.row .t span { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mini { display: flex; gap: 3px; }
.mini i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.mini i.on { background: var(--gold); }
.back { padding: 8px 12px; border-radius: 10px; background: hsl(var(--h) 45% 22%); font-weight: 700; font-size: 13px; }
.empty { color: var(--muted); padding: 14px 4px; font-size: 14px; }
.danger { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.danger button { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; }
.danger .really { border-color: var(--bad); color: var(--bad); }

/* done / toast / confetti */
.done { display: grid; gap: 12px; justify-items: center; text-align: center; }
.done h2 { font-family: var(--display); font-size: 26px; margin: 0; }
.done p { color: var(--muted); margin: 0; max-width: 30ch; }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 20; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-height: 760px) { .card { gap: 16px; } }

/* levels */
.cardbar { display: flex; justify-content: center; }
.chip { font-size: 12px; font-weight: 800; color: hsl(var(--h) 80% 82%); background: hsl(var(--h) 50% 30% / .3); border: 1px solid hsl(var(--h) 50% 50% / .35); padding: 6px 12px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knownbtn { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 6px; }
.continue { display: grid; gap: 4px; text-align: left; width: 100%; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 40) 70% 40%)); color: #fff; }
.continue small { font-size: 12px; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.continue b { font-family: var(--display); font-size: 18px; }
.continue span { font-size: 13px; opacity: .9; }
.lvgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lv { aspect-ratio: 1; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; overflow: hidden; font-variant-numeric: tabular-nums; }
.lv b { font-family: var(--display); font-size: 17px; }
.lv small { font-size: 10px; color: var(--muted); font-weight: 700; }
.lv .fb { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--good); }
.lv.done { background: hsl(45 70% 18%); border-color: var(--gold); }
.lv.done b, .lv.done small { color: var(--gold); }
.lv.cur { border-color: hsl(var(--h) 90% 70%); box-shadow: 0 0 0 1px hsl(var(--h) 90% 70%); }
.lv.ck { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; justify-content: space-between; padding: 14px 16px; border-style: dashed; border-color: hsl(45 70% 50% / .5); }
.lv.ck b { font-size: 15px; white-space: nowrap; }
.lv.ck small { white-space: nowrap; }
.lv.ck .fb { background: var(--gold); }
.lv.ck.done { border-style: solid; }
.lv.ck.locked { opacity: .5; }
.backlink { justify-self: start; font-weight: 800; color: hsl(var(--h) 90% 78%); padding: 4px 0; }
.lvdetail { display: grid; gap: 12px; }
.lvdetail h2 { font-family: var(--display); font-size: 22px; margin: 0; text-wrap: balance; }
.lvdetail p { margin: 0; color: var(--muted); }
.lvbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tick { color: var(--gold); font-weight: 800; font-size: 13px; }
.result { font-family: var(--display); font-size: 44px; color: var(--gold); }
.tick.bad { color: var(--bad); }
/* menu button */
.secbtn { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .02em; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); white-space: nowrap; }
.secbtn span { color: hsl(var(--h) 90% 72%); transition: color .6s; }
/* home + stats pages */
.view.page { overflow-y: auto; margin-inline: -4px; padding-inline: 4px; }
.pagebody { display: grid; gap: 18px; padding-bottom: 12px; }
.pagebody h2 { font-family: var(--display); font-size: 24px; margin: 0; }
.hhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.hhead .brand { font-size: 18px; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.htile { position: relative; overflow: hidden; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px 14px 16px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.htile:active { transform: scale(.98); }
.htile.on { border-color: hsl(var(--h) 70% 60% / .7); }
.htile .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--gold); background: hsl(45 70% 50% / .14); border: 1px solid hsl(45 70% 60% / .3); margin-bottom: 4px; }
.htile b { font-weight: 800; font-size: 15px; line-height: 1.2; }
.htile span:not(.ic) { color: var(--muted); font-size: 12.5px; }
.htile .fb { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--good); }
.tog { grid-template-columns: 1fr auto; width: 100%; text-align: left; }
.tog .sw { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.tog .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tog[aria-checked="true"] .sw { background: var(--good); }
.tog[aria-checked="true"] .sw::after { transform: translateX(18px); }
.stgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st { padding: 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 2px; }
.st b { font-family: var(--display); font-size: 26px; color: var(--gold); font-variant-numeric: tabular-nums; }
.st span { color: var(--muted); font-size: 13px; }
.bars7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; padding: 14px 12px 10px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.b7 { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; min-height: 0; }
.b7 em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.b7 i { align-self: end; width: 100%; max-width: 26px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: hsl(var(--h) 60% 55%); }
.b7.now i { background: var(--gold); }
.b7 span { font-size: 11px; color: var(--muted); font-weight: 700; }
.rm.star { color: var(--gold); font-size: 16px; }
.rm.star.on { background: hsl(45 70% 18%); border-color: var(--gold); }
/* typing answers */
.typebox { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.typebox.two { grid-template-columns: 1fr 1fr; }
.typebox.two .btn { grid-column: 1 / -1; }
.tin { min-width: 0; padding: 15px 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid hsl(var(--h) 40% 35%); color: var(--text); font: inherit; font-size: 17px; font-weight: 700; }
.tin::placeholder { color: var(--muted); font-weight: 500; }
.typebox .btn { padding-inline: 18px; }
.typed { font-size: 14px; color: var(--muted); }
.typed.bad { color: var(--bad); }
/* word in a sentence */
.ctx { font-weight: 800; font-size: clamp(22px, 6.2vw, 30px); line-height: 1.35; text-wrap: balance; max-width: 22ch; animation: rise .5s cubic-bezier(.2,.9,.2,1) both; }
.ctx .gap { color: hsl(var(--h) 90% 75%); letter-spacing: .06em; }
.ctxhint { color: hsl(var(--h) 30% 78%); font-size: 15px; font-weight: 700; }
.card.shown .ctx { font-size: clamp(18px, 5vw, 22px); }
/* exam: send to hard words */
.starbtn { grid-column: 1 / -1; padding: 13px 12px; border-radius: 16px; border: 1px dashed hsl(45 80% 60% / .6); color: var(--gold); font-weight: 800; font-size: 14px; }
.starbtn.on { background: hsl(45 70% 18%); border-style: solid; }
.rm { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-weight: 800; font-size: 13px; }

/* ===== v2: menus ===== */
.cardtop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cardtop .chip { flex: 1; min-width: 0; text-align: center; }
.phead { display: grid; gap: 6px; }
.phead p { margin: 0; color: var(--muted); font-size: 14px; }
.infobtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 18px; color: hsl(var(--h) 90% 78%); }
.menu { display: grid; gap: 10px; }
.mitem { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line); }
.mitem:active, .htile:active { transform: scale(.985); }
.mitem .ic, .htile .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--gold); background: hsl(45 70% 50% / .14); border: 1px solid hsl(45 70% 60% / .3); }
.mitem .t { min-width: 0; display: grid; gap: 3px; }
.mitem .t > b { font-weight: 800; font-size: 16px; }
.mitem .t > b em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 4px; }
.mitem .t > span { color: var(--muted); font-size: 13px; }
.mitem .go { color: var(--muted); font-size: 22px; }
.mitem.cefr .t { gap: 6px; }
.htile.off { opacity: .45; }
.pl { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; }
.pl b { font-variant-numeric: tabular-nums; color: var(--text); font-size: 12px; min-width: 52px; text-align: right; }
.plbar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.plbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--good), var(--gold)); }
.plrow { grid-template-columns: 1fr; }
.plrow .t { display: grid; gap: 6px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.seg button { padding: 10px 6px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--muted); }
.seg button[aria-checked="true"] { background: hsl(var(--h) 45% 26%); color: var(--text); }
.note { color: var(--muted); font-size: 13px; margin: 8px 2px 0; line-height: 1.45; }
.sec h3 + .note { margin-top: 0; margin-bottom: 8px; }
.code { width: 100%; box-sizing: border-box; min-height: 90px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); font: 12px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; resize: vertical; }
.danger .really { white-space: normal; text-align: left; }
.infob { padding: 14px 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.infob h3 { margin: 0 0 6px; font-family: var(--display); font-size: 14px; color: hsl(var(--h) 90% 78%); }
.infob p { margin: 0; line-height: 1.55; color: #d9d5ea; font-size: 14.5px; }
.infob.hello { background: linear-gradient(135deg, hsl(var(--h) 60% 30% / .5), hsl(calc(var(--h) + 40) 60% 25% / .4)); border-color: hsl(var(--h) 60% 50% / .4); }
.infob.hello b { color: var(--gold); }
.terr { grid-column: 1 / -1; color: var(--bad); font-size: 13px; font-weight: 700; }
.tin.shake { animation: a-shake .35s 2; border-color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); z-index: 40; padding: 12px 16px; border-radius: 14px; background: #fff; color: #111; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / .4); animation: cardIn .3s both; max-width: calc(100% - 32px); }
/* ===== v2.1: neon dashboard + flowing section glow ===== */
:root { transition: --h 1s ease; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 18s ease-in-out infinite alternate; }
.glow i:nth-child(1) { width: 85vw; height: 45vh; left: -25vw; top: -14vh; background: hsl(var(--h) 90% 45% / .32); }
.glow i:nth-child(2) { width: 70vw; height: 40vh; right: -30vw; top: 32vh; background: hsl(calc(var(--h) + 45) 90% 50% / .2); animation-duration: 23s; animation-delay: -7s; }
.glow i:nth-child(3) { width: 75vw; height: 38vh; left: 5vw; bottom: -18vh; background: hsl(calc(var(--h) - 40) 85% 45% / .2); animation-duration: 27s; animation-delay: -3s; }
.app { position: relative; z-index: 1; }
.hhead .streak { font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 999px; border: 1px solid hsl(28 100% 60% / .5); color: #ffb37a; background: rgb(17 16 25 / .6); }
.goal { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--c); background: rgb(11 10 20 / .55); }
.goal b { display: block; font-weight: 800; font-size: 16px; }
.goal span { color: var(--muted); font-size: 13px; }
.continue { background: rgb(11 10 20 / .55); border: 1px solid var(--c, hsl(var(--h) 95% 70%)); color: var(--text); }
.continue small { color: var(--c, hsl(var(--h) 95% 75%)); opacity: 1; }
.continue span { color: var(--muted); opacity: 1; }
.nrow { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; text-align: left; border-radius: 0 16px 16px 0; border-left: 3px solid var(--c); background: rgb(17 16 25 / .78); color: var(--text); transition: background .2s, transform .12s; }
.nrow:active { transform: scale(.985); background: rgb(30 28 42 / .9); }
.nrow > svg { color: var(--c); }
.nrow b { display: block; font-weight: 800; font-size: 16px; }
.nrow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.nrow em { font-style: normal; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.nrow i { font-style: normal; color: var(--muted); font-size: 22px; }
.mitem, .htile { background: rgb(17 16 25 / .78); border: 1px solid var(--line); border-left: 3px solid hsl(var(--h) 95% 65%); border-radius: 0 18px 18px 0; }
.mitem .ic, .htile .ic { color: hsl(var(--h) 95% 70%); background: hsl(var(--h) 80% 50% / .12); border-color: hsl(var(--h) 80% 60% / .35); }
.rows, .st, .bars7, .seg, .infob, .lv { background-color: rgb(17 16 25 / .78); }
.backlink { color: hsl(var(--h) 95% 75%); }
.bnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 20px; background: rgb(17 16 25 / .88); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bnav button { display: grid; justify-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 700; transition: color .25s, background .25s; }
.bnav button[aria-current="true"] { color: var(--c); background: rgb(255 255 255 / .05); }
/* ===== v2.2: smooth motion ===== */
:root { transition: --h 1.8s cubic-bezier(.45, 0, .2, 1); }
.glow i { transition: opacity 1.2s ease; }
/* page entrance: blocks rise in one after another */
@keyframes pin { from { opacity: 0; transform: translateY(16px); } }
@keyframes growX { from { transform: scaleX(0); } }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes ringIn { from { stroke-dashoffset: var(--from); } }
.pagebody.enter > *, .pagebody.enter .menu > *, .pagebody.enter .hgrid > *, .pagebody.enter .rows > .row:nth-child(-n+14), .pagebody.enter .stgrid > * { animation: pin .6s cubic-bezier(.2, .9, .2, 1) both; }
.pagebody.enter > *:nth-child(2) { animation-delay: .05s; } .pagebody.enter > *:nth-child(3) { animation-delay: .1s; }
.pagebody.enter > *:nth-child(4) { animation-delay: .15s; } .pagebody.enter > *:nth-child(5) { animation-delay: .2s; }
.pagebody.enter > *:nth-child(6) { animation-delay: .25s; } .pagebody.enter > *:nth-child(n+7) { animation-delay: .3s; }
.pagebody.enter .menu > *:nth-child(1), .pagebody.enter .hgrid > *:nth-child(1), .pagebody.enter .stgrid > *:nth-child(1) { animation-delay: .12s; }
.pagebody.enter .menu > *:nth-child(2), .pagebody.enter .hgrid > *:nth-child(2), .pagebody.enter .stgrid > *:nth-child(2) { animation-delay: .19s; }
.pagebody.enter .menu > *:nth-child(3), .pagebody.enter .hgrid > *:nth-child(3), .pagebody.enter .stgrid > *:nth-child(3) { animation-delay: .26s; }
.pagebody.enter .menu > *:nth-child(4), .pagebody.enter .stgrid > *:nth-child(4) { animation-delay: .33s; }
.pagebody.enter .menu > *:nth-child(5) { animation-delay: .4s; } .pagebody.enter .menu > *:nth-child(6) { animation-delay: .47s; }
.pagebody.enter .menu > *:nth-child(n+7) { animation-delay: .54s; }
.pagebody.enter .rows > .row:nth-child(2) { animation-delay: .04s; } .pagebody.enter .rows > .row:nth-child(3) { animation-delay: .08s; }
.pagebody.enter .rows > .row:nth-child(4) { animation-delay: .12s; } .pagebody.enter .rows > .row:nth-child(5) { animation-delay: .16s; }
.pagebody.enter .rows > .row:nth-child(n+6) { animation-delay: .2s; }
/* progress fills grow, the goal ring sweeps round */
.pagebody.enter .plbar i, .pagebody.enter .fb { transform-origin: left; animation: growX 1.1s .25s cubic-bezier(.2, .9, .2, 1) both; }
.pagebody.enter .b7 i { transform-origin: bottom; animation: growY 1s cubic-bezier(.2, .9, .2, 1) both; }
.pagebody.enter .b7:nth-child(1) i { animation-delay: .2s; } .pagebody.enter .b7:nth-child(2) i { animation-delay: .26s; }
.pagebody.enter .b7:nth-child(3) i { animation-delay: .32s; } .pagebody.enter .b7:nth-child(4) i { animation-delay: .38s; }
.pagebody.enter .b7:nth-child(5) i { animation-delay: .44s; } .pagebody.enter .b7:nth-child(6) i { animation-delay: .5s; }
.pagebody.enter .b7:nth-child(7) i { animation-delay: .56s; }
.pagebody.enter .ringv { animation: ringIn 1.3s .2s cubic-bezier(.2, .9, .2, 1) both; }
/* level tiles appear as a quick wave */
.pagebody.enter .lvgrid { animation: pin .6s .15s cubic-bezier(.2, .9, .2, 1) both; }
/* cards view fades in too */
#v-cards:not([hidden]) { animation: pin .45s cubic-bezier(.2, .9, .2, 1) both; }
/* bottom nav: a pill that slides to the current tab */
.bnav { position: relative; }
.bnav .ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px - 12px) / 4); border-radius: 14px; background: color-mix(in srgb, var(--navc, #a99cff) 14%, transparent); border: 1px solid color-mix(in srgb, var(--navc, #a99cff) 40%, transparent); transform: translateX(calc(var(--k, 0) * (100% + 4px))); transition: transform .5s cubic-bezier(.3, 1.25, .5, 1), background .6s, border-color .6s, opacity .3s; }
.bnav.off .ind { opacity: 0; }
.bnav button { position: relative; z-index: 1; transition: color .45s; }
.bnav button[aria-current="true"] { background: none; }
.bnav button[aria-current="true"] svg { animation: pop .45s ease; }
/* segmented controls: the highlight slides between options */
.seg { position: relative; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n) - 1) * 4px) / var(--n)); border-radius: 10px; background: hsl(var(--h) 45% 26%); border: 1px solid hsl(var(--h) 70% 55% / .5); transform: translateX(calc(var(--i) * (100% + 4px))); transition: transform .45s cubic-bezier(.3, 1.25, .5, 1); }
.seg button { position: relative; z-index: 1; transition: color .35s; }
.seg button[aria-checked="true"] { background: none; color: var(--text); }
/* switches and buttons ease instead of snapping */
.tog .sw, .tog .sw::after { transition: background .35s ease, transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.nrow, .mitem, .htile, .continue, .lv, .btn { transition: transform .15s ease, background .3s ease, border-color .3s ease; }
/* ===== v2.3: narrow-screen fixes ===== */
.lv.ck { flex-wrap: wrap; gap: 2px 10px; row-gap: 2px; }
.lv.ck b, .lv.ck small { white-space: normal; }
@media (max-width: 360px) { .lv.ck b { font-size: 13px; } }
.cardtop .chip { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; padding: 5px 12px; border-radius: 14px; font-size: 11.5px; }
/* ===== v2.4: sound, IPA, native language picker ===== */
.say { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: hsl(var(--h) 95% 82%); background: rgb(11 10 20 / .45); border: 1px solid hsl(var(--h) 80% 70% / .45); transition: transform .15s, background .25s; }
.say:active { transform: scale(.9); background: hsl(var(--h) 60% 40% / .5); }
.answer .ipa { font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; font-size: 16px; letter-spacing: .02em; color: hsl(var(--h) 60% 85%); }
.row .go { font-style: normal; color: var(--muted); font-size: 22px; }
.nhead { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 18px 8px 6px; color: hsl(var(--h) 95% 75%); }
.nhead h2 { color: var(--text); font-size: 24px; margin: 4px 0 0; }
.nhead p { margin: 0; color: var(--muted); }
.ngrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ntile { display: grid; gap: 3px; justify-items: start; text-align: left; padding: 14px; border-radius: 16px; background: rgb(17 16 25 / .78); border: 1px solid var(--line); min-height: 76px; }
.ntile b { font-size: 17px; font-weight: 800; }
.ntile span { font-size: 12px; color: var(--muted); }
.ntile em { font-style: normal; font-size: 11px; font-weight: 800; color: hsl(var(--h) 80% 75%); background: hsl(var(--h) 60% 40% / .18); border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.ntile.soon { opacity: .55; }
.ntile:not(.soon) { border-color: hsl(var(--h) 90% 70%); box-shadow: 0 0 0 1px hsl(var(--h) 90% 70% / .4); }
.ntile:not(.soon):active { transform: scale(.98); }
.pagebody.enter .ngrid > * { animation: pin .55s cubic-bezier(.2, .9, .2, 1) both; }
.pagebody.enter .ngrid > *:nth-child(2n) { animation-delay: .06s; } .pagebody.enter .ngrid > *:nth-child(n+3) { animation-delay: .12s; } .pagebody.enter .ngrid > *:nth-child(n+5) { animation-delay: .18s; } .pagebody.enter .ngrid > *:nth-child(n+7) { animation-delay: .24s; } .pagebody.enter .ngrid > *:nth-child(n+9) { animation-delay: .3s; }
/* ===== v2.5: bottom sheet + compact language screen ===== */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgb(5 4 10 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; height: min(78vh, 640px); display: flex; flex-direction: column; gap: 12px; padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; background: #15131f; border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgb(0 0 0 / .55); transform: translateY(105%); transition: transform .5s cubic-bezier(.2, 1, .3, 1); }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-top { display: grid; justify-items: center; gap: 10px; padding: 6px 0 2px; touch-action: none; cursor: grab; }
.grab { width: 44px; height: 5px; border-radius: 5px; background: #3a374a; }
.sheet h3 { margin: 0; font-family: var(--display); font-size: 17px; justify-self: start; }
.shlist { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: rgb(11 10 20 / .5); }
.shrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 13px 14px; text-align: left; border-top: 1px solid var(--line); transition: background .2s; }
.shrow:first-child { border-top: 0; }
.shrow b { display: block; font-weight: 800; font-size: 16px; }
.shrow small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.shrow em { font-style: normal; font-size: 11px; font-weight: 800; color: hsl(var(--h) 80% 75%); background: hsl(var(--h) 60% 40% / .18); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.shrow[aria-selected="true"] { background: hsl(var(--h) 50% 30% / .35); }
.shrow .ok { color: var(--good); font-weight: 800; font-size: 18px; }
.shrow:disabled { opacity: .55; }
.shrow:not(:disabled):active { background: hsl(var(--h) 50% 30% / .5); }
.pickfield { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; text-align: left; border: 1px solid hsl(var(--h) 90% 70%); background: rgb(17 16 25 / .8); color: var(--text); }
.pickfield b { display: block; font-size: 18px; font-weight: 800; }
.pickfield small { color: var(--muted); font-size: 12.5px; }
.pickfield i { font-style: normal; color: hsl(var(--h) 90% 75%); font-size: 18px; }
.note.center { text-align: center; }
/* ===== v2.6: soft interface type — rounded Nunito, lighter weights, off-white instead of stark white.
   The big word on the card keeps Unbounded: that's the hero, everything around it is calm. ===== */
:root { --soft: 'Nunito', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --text: #e6e3ef; --muted: #9a96ad; }
body { font-family: var(--soft); }
#v-page, .bnav, .sheet, .toast, .ctrls, .cardtop, .hint, .typed, .terr, .done p { font-family: var(--soft); }
.brand, .secbtn, .dirbtn, .sec h3, .done h2, .continue b, .lv b, .lvdetail h2, .result, .pagebody h2, .htile .ic, .mitem .ic,
.st b, .infob h3, .sheet h3, .verdict, .answer .tr, .tag3d { font-family: var(--soft); }
/* weights: 800 → 700 for titles, 700 → 600 for labels */
.brand { font-weight: 800; font-size: 18px; letter-spacing: 0; }
.pagebody h2, .lvdetail h2, .nhead h2 { font-weight: 700; font-size: 26px; letter-spacing: -.005em; color: #eeebf6; }
.done h2 { font-weight: 700; font-size: 26px; }
.sec h3 { font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.nrow b, .mitem .t > b, .htile b, .goal b, .shrow b, .pickfield b, .row .t b, .infob h3 { font-weight: 700; }
.nrow small, .mitem .t > span, .htile span:not(.ic), .goal span, .row .t span, .note, .phead p, .shrow small { font-weight: 500; }
.continue b { font-weight: 700; font-size: 19px; }
.continue small { font-weight: 700; letter-spacing: .05em; }
.lv b { font-weight: 800; font-size: 18px; }
.lv small, .pl, .pl b, .b7 em, .b7 span, .tick { font-weight: 600; }
.st b { font-weight: 800; font-size: 28px; }
.result { font-weight: 800; font-size: 48px; }
.htile .ic, .mitem .ic { font-weight: 800; }
.seg button, .bnav button { font-weight: 600; }
.seg button[aria-checked="true"] { font-weight: 700; }
.btn { font-weight: 700; letter-spacing: .01em; }
.knownbtn, .starbtn, .danger button, .backlink { font-weight: 600; }
.secbtn, .dirbtn { font-weight: 700; }
.chip { font-weight: 700; }
.hint { font-weight: 500; font-size: 13px; }
.verdict { font-weight: 800; letter-spacing: .06em; }
.answer .tr { font-weight: 700; letter-spacing: .02em; font-size: 14px; }
.answer .ru { font-weight: 700; }
.infob p { color: #d2cee0; font-weight: 500; }
.nrow em, .streak b { font-weight: 800; }