:root {
  /* accents, from the reference boards: violet, mustard, lime, coral, black slab */
  --violet: #6f5bf6;
  --yellow: #f7c64b;
  --lime: #c8da78;
  --coral: #e9584c;
  --red: #cd432d; /* the app icon */
  --sky: #9ccbea;
  --orange: #f28a4a;
  --slab: #1d1d1d;
  /* neutrals */
  --bg: #eeece5;
  --bg2: #e4e1d7;
  --card: #ffffff;
  --ink: #141414;
  --ink2: #4a4943;
  --muted: #8c8a82;
  --line: #e0ddd3;
  --line2: #cbc7bb;
  --primary: var(--violet);
  --primary-l: #e8e4ff;
  --act: #141414;
  --act-on: #ffffff;
  --nav: #ffffff;
  --nav-ink: #77756e;
  --nav-on: #141414;
  --nav-on-ink: #ffffff;
  --good: #3f9b57;
  --good-d: #2c7a41;
  --good-bg: #e3edb8;
  --bad: var(--coral);
  --bad-d: #c23b32;
  --bad-bg: #f8d9d3;
  --gold: var(--yellow);
  --gold-d: #c9930f;
  --flame: var(--orange);
  --blue: var(--violet);
  --der: var(--violet);
  --der-t: #5a45e6;
  --der-bg: #e8e4ff;
  --die: var(--coral);
  --die-t: #cf4135;
  --die-bg: #f9dfda;
  --das: var(--lime);
  --das-t: #5f8a1c;
  --das-bg: #edf3d1;
  --r: 20px;
  --font: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --slab: #d8d7d1; --bg: #1e1e1e; --bg2: #383838; --card: #2b2b2b; --ink: #f3f1ea; --ink2: #c4c2ba; --muted: #8e8c86;
    --line: #363636; --line2: #474747; --primary: var(--yellow); --primary-l: #3a3423; --act: var(--yellow); --act-on: #141414;
    --nav: #0f0f0f; --nav-ink: #8e8c86; --nav-on: var(--yellow); --nav-on-ink: #141414;
    --good-bg: #2f3a1e; --good-d: #a6d98a; --bad-bg: #45272a; --bad-d: #f2847a; --gold-d: #f7c64b; --der-t: #a597ff; --der-bg: #2e2a4a; --die-t: #f2847a; --die-bg: #45282a;
    --das-t: #c8da78; --das-bg: #33381f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --slab: #d8d7d1; --bg: #1e1e1e; --bg2: #383838; --card: #2b2b2b; --ink: #f3f1ea; --ink2: #c4c2ba; --muted: #8e8c86;
  --line: #363636; --line2: #474747; --primary: var(--yellow); --primary-l: #3a3423; --act: var(--yellow); --act-on: #141414;
  --nav: #0f0f0f; --nav-ink: #8e8c86; --nav-on: var(--yellow); --nav-on-ink: #141414;
  --good-bg: #2f3a1e; --good-d: #a6d98a; --bad-bg: #45272a; --bad-d: #f2847a; --gold-d: #f7c64b; --der-t: #a597ff; --der-bg: #2e2a4a; --die-t: #f2847a; --die-bg: #45282a;
  --das-t: #c8da78; --das-bg: #33381f; color-scheme: dark;
}
/* Text that sits on a colored surface (var(--c)): white on dark colors, near-black on light ones. */
* { --on: #fff; }
@supports (color: oklch(from red l c h)) {
  * { --on: oklch(from var(--c, var(--primary)) clamp(0.16, (0.7 - l) * 100, 1) 0 0); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 700; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
body.in-lesson, body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

#app { max-width: 620px; margin: 0 auto; min-height: 100dvh; position: relative; }
#view { padding-bottom: calc(96px + var(--safe-b)); }

/* ---------- gender colors ---------- */
.g-der { color: var(--der-t); }
.g-die { color: var(--die-t); }
.g-das { color: var(--das-t); }
.pl { color: var(--muted); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 99px; padding: 13px 20px; font-weight: 700; font-size: 16px; transition: transform .06s, box-shadow .06s, filter .15s; user-select: none;
}
.btn.big { width: 100%; padding: 15px 18px; font-size: 16px; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.primary { background: var(--act); color: var(--act-on); }
.btn.secondary { background: transparent; color: var(--ink); border: 2px solid var(--line2); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.white { background: #fff; color: #141414; }
.btn.danger { color: var(--bad); }
.btn:active:not(:disabled) { transform: scale(.97); box-shadow: 0 0 0 transparent; }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--line); cursor: default; }
.btn .badge { white-space: nowrap; background: var(--act-on); color: var(--act); border-radius: 99px; padding: 1px 8px; font-size: 12px; text-transform: none; }
.link { color: var(--muted); font-size: 14px; font-weight: 700; padding: 10px; display: block; margin: 8px auto 0; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 22px; }
.icon-btn:active { background: var(--bg2); }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 50%; bottom: max(12px, var(--safe-b)); transform: translateX(-50%); z-index: 20; width: min(560px, calc(100% - 24px));
  display: flex; justify-content: space-between; align-items: center; gap: 2px; padding: 6px; border-radius: 99px;
  background: var(--nav); box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.tabs button {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; min-width: 50px; padding: 0 12px;
  border-radius: 99px; color: var(--nav-ink); font-size: 15px; font-weight: 700; transition: background .2s, color .2s;
}
.tabs .ti { font-size: 24px; line-height: 1; display: flex; }
.tabs button > span:last-child { display: none; }
.tabs button.on { background: var(--nav-on); color: var(--nav-on-ink); padding: 0 18px 0 14px; }
.tabs button.on > span:last-child { display: inline; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--bg);
}
.tb-chip { justify-self: start; background: var(--c); color: var(--on); border-radius: 99px; padding: 5px 12px; font-weight: 800; }
.tb-stat { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; font-size: 17px; color: var(--muted); }
.tb-stat svg { font-size: 24px; }
.tb-stat.flame svg { color: var(--line2); }
.tb-stat.flame.lit { color: var(--flame); }
.tb-stat.flame.lit svg { color: var(--flame); }
.tb-stat.words { color: var(--primary); }
.tb-stat.goal { position: relative; color: var(--gold-d); }
.ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray .6s; }
.ring-in { position: absolute; left: 0; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px; color: var(--gold); }

/* ---------- learn path ---------- */
.review-banner {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 16px 16px 0; padding: 14px 16px; text-align: left;
  border-radius: var(--r); border: 2px solid var(--line); background: var(--card);
}
.review-banner > svg { font-size: 30px; color: var(--primary); }
.review-banner div { flex: 1; display: flex; flex-direction: column; }
.review-banner span { color: var(--muted); font-size: 13px; }
.go-pill { background: var(--act); color: var(--act-on) !important; padding: 8px 14px; border-radius: 99px; font-weight: 700; font-size: 13px !important; }

.path { padding: 8px 16px 0; }
.sec { margin-top: 18px; }
.sec-head { background: var(--c); color: var(--on); border-radius: 28px; padding: 18px 20px 20px; position: relative; overflow: hidden; }
.sec-head::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, currentColor 8%, transparent); }
.sec-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sec-level { background: color-mix(in srgb, currentColor 16%, transparent); padding: 3px 12px; border-radius: 99px; font-weight: 800; }
.sec-count { font-size: 13px; opacity: .9; }
.sec-head h2 { font-size: 28px; line-height: 1.1; }
.sec-head p { opacity: .9; font-size: 15px; }
.sec-prog { height: 10px; background: color-mix(in srgb, currentColor 18%, transparent); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.sec-prog i { display: block; height: 100%; background: currentColor; border-radius: 99px; }
.sec.locked .sec-head { background: var(--card); color: var(--ink); }
.sec.locked .sec-level { background: var(--c); color: var(--on); }
.sec.locked .btn.white { background: var(--act); color: var(--act-on); }
.sec-locked { margin-top: 14px; position: relative; z-index: 1; }
.sec-locked .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sec-locked .chips span { background: color-mix(in srgb, currentColor 10%, transparent); padding: 4px 10px; border-radius: 99px; font-size: 13px; }
.sec-locked .btn { width: 100%; }
.lock-msg { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; opacity: .9; }

.unit { margin-top: 24px; }
.unit-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  border-radius: 24px; background: var(--c); color: var(--on);
}
.unit-banner small { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .5px; }
.unit-banner h3 { font-size: 20px; line-height: 1.2; }
.unit-sub { font-size: 13px; opacity: .85; }
.guide-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 16px; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); font-size: 11px; font-weight: 700; }
.guide-btn svg { font-size: 22px; }
.guide-btn:active { background: color-mix(in srgb, currentColor 14%, transparent); }

/* the lesson wheel: js sets --s (scale), --dx (shift along the arc) and --o (label opacity) per frame */
/* the wheel settles on a lesson in js (app.js wheelRest), not with CSS scroll-snap: snapping under a full-screen overlay made iOS misplace taps */
.wheel { position: relative; padding: 42px 0 30px; }
.wn { position: relative; height: 100px; --s: .34; --dx: 0px; --o: 0; --cx: 36%; }
.wn.has-pop { z-index: 6; }
.wn-tile {
  position: absolute; left: var(--cx); top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; border-radius: 36px;
  display: grid; place-items: center; font-size: 54px; background: var(--line); color: var(--muted);
  transform: translateX(var(--dx)) scale(var(--s)); will-change: transform; transition: background-color .2s, color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.wn.current .wn-tile, .wn.open .wn-tile { background: var(--c); color: var(--on); }
.wn.open .wn-tile { opacity: .85; }
.wn.done .wn-tile { background: var(--gold); color: #141414; }
.wn.cur .wn-tile { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 22%, transparent); }
.wn.focus .wn-tile { animation: wn-in .32s cubic-bezier(.3, 1.6, .5, 1); }
.wn.focus .wn-tile:active { filter: brightness(.92); }
@keyframes wn-in { 40% { transform: translateX(var(--dx)) scale(calc(var(--s) * 1.06)); } }
.wn.trophy-n .wn-tile { background: var(--bg2); color: var(--line2); border: 4px dashed var(--line2); }
.wn.trophy-n.won .wn-tile { background: var(--gold); color: #141414; border: 0; }
.wn-label {
  position: absolute; left: calc(var(--cx) + 80px); right: 0; top: 50%; display: flex; flex-direction: column; gap: 2px;
  transform: translate(calc(var(--dx) + (1 - var(--o)) * 16px), -50%); opacity: var(--o); pointer-events: none;
}
.wn-label b { font-size: 19px; line-height: 1.2; color: var(--ink); }
.wn-label span { font-size: 14px; color: var(--muted); font-weight: 700; }
.wn.cur .wn-label span { color: var(--c); }
.wn .pop { top: calc(50% + 78px); left: 50%; translate: -50% 0; }
.wn .pop::before { left: calc(var(--cx) + 50% - 50vw); display: none; }

.pop {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: calc(-50% - var(--x)) 0; z-index: 5; width: min(300px, calc(100vw - 32px)); padding: 18px; border-radius: 24px;
  background: var(--c); color: var(--on); box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: popin .18s ease-out;
}
.pop::before { content: ''; position: absolute; top: -8px; left: calc(50% + var(--x)); transform: translateX(-50%) rotate(45deg); width: 16px; height: 16px; background: var(--c); }
.pop b { font-size: 18px; }
.pop p { opacity: .9; font-size: 14px; margin: 4px 0 14px; line-height: 1.35; }
.pop.locked { background: var(--bg2); color: var(--ink2); border: 2px solid var(--line); }
.pop.locked::before { background: var(--bg2); border-left: 2px solid var(--line); border-top: 2px solid var(--line); }
.pop-lock { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.path-end { text-align: center; color: var(--ink2); margin: 40px 0 20px; font-size: 16px; }
.path-end span { color: var(--muted); font-size: 13px; }

/* ---------- lesson player ---------- */
.lesson {
  position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column;
  max-width: 620px; margin: 0 auto; animation: slideup .25s ease-out;
}
@keyframes slideup { from { transform: translateY(30px); opacity: 0; } }
.l-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 8px; position: relative; }
.bar { flex: 1; height: 16px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--good); border-radius: 99px; transition: width .4s ease; position: relative; }
.bar i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.35); }
.bar.timer i { background: var(--gold); transition: width .1s linear; }
.combo { position: absolute; right: 16px; top: calc(44px + var(--safe-t)); color: var(--flame); font-weight: 900; font-size: 14px; display: flex; gap: 4px; align-items: center; }
.combo.pop, .gg-combo.pop { animation: comboPop .9s ease-out; }
@keyframes comboPop { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(1); } }
.cnt, .g-score { font-weight: 900; color: var(--muted); min-width: 44px; text-align: right; }
.l-body { flex: 1; overflow-y: auto; padding: 8px 16px 20px; -webkit-overflow-scrolling: touch; }
.ex { max-width: 560px; margin: 0 auto; }
.ex-title { font-size: 24px; margin: 10px 0 18px; }
.l-foot { border-top: 2px solid var(--line); padding: 14px 16px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; transition: background .2s; }
.l-foot .fb { display: none; align-items: flex-start; gap: 12px; }
.l-foot.ok, .l-foot.bad { border-top-color: transparent; }
.l-foot.ok { background: var(--good-bg); }
.l-foot.bad { background: var(--bad-bg); }
.l-foot.ok .fb, .l-foot.bad .fb { display: flex; animation: popin .2s; }
.fb-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; flex: none; }
.ok .fb-icon { background: var(--good); }
.bad .fb-icon { background: var(--bad); }
.fb-text { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.fb-text b { font-size: 20px; }
.ok .fb-text { color: var(--good-d); }
.bad .fb-text { color: var(--bad-d); }
.fb-text .sol { font-size: 17px; color: var(--ink); }
.fb-text .muted { color: var(--ink2); }
.l-foot.ok .go { background: var(--good); }
.l-foot.bad .go { background: var(--bad); }

.prompt { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.prompt-de { font-size: 26px; font-weight: 900; }
.prompt-en { font-size: 22px; font-weight: 800; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r); position: relative; }
.speak-btn {
  width: 52px; height: 52px; border-radius: 50%; background: var(--act); color: var(--act-on); display: grid; place-items: center; font-size: 28px; transition: transform .06s;
}
.speak-btn.big { width: 100px; height: 100px; font-size: 46px; }
.speak-btn.slow { width: 52px; height: 52px; font-size: 26px; background: var(--bg2); color: var(--ink); }
.speak-btn:active { transform: scale(.97); box-shadow: none; }
.speak-btn.playing { animation: wob .5s infinite alternate; }
@keyframes wob { to { filter: brightness(1.15); } }
.listen-row { display: flex; gap: 14px; justify-content: center; align-items: center; margin: 10px 0 28px; }

.opts { display: grid; gap: 10px; }
.ex.checked .opts, .ex.checked .art-btns, .ex.checked .bank, .ex.checked .answer-line, .ex.checked .uml, .ex.checked .mic-btn { pointer-events: none; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px; text-align: left; font-size: 17px;
  border: 2px solid var(--line); border-radius: var(--r); background: var(--card);
}
.opt .key { width: 28px; height: 28px; flex: none; border: 2px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.opt.sel { border-color: var(--primary); background: var(--primary-l); color: var(--primary); }
.opt.sel .key { border-color: var(--primary); color: var(--primary); }
.opt:active { transform: scale(.97); }
.opts.chips { display: flex; flex-wrap: wrap; justify-content: center; }
.opts.chips .opt { padding: 10px 16px; }
.opts.chips .key { display: none; }

.new-chip { display: inline-block; background: var(--primary-l); color: var(--primary); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 900; margin: 10px 0 14px; }
.intro-card { border: 2px solid var(--line); border-radius: 22px; padding: 22px 20px; text-align: center; border-top-width: 10px; }
.bar-der { border-top-color: var(--der) !important; }
.bar-die { border-top-color: var(--die) !important; }
.bar-das { border-top-color: var(--das) !important; }
.intro-top { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.intro-de { font-size: 34px; font-weight: 900; line-height: 1.15; }
.intro-meta { color: var(--muted); margin-top: 6px; font-size: 15px; }
.intro-en { font-size: 22px; color: var(--ink2); margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.rule-note { margin-top: 16px; background: var(--bg2); border-radius: 12px; padding: 10px 12px; font-size: 14px; text-align: left; color: var(--ink2); line-height: 1.4; }

.art-word { font-size: 38px; font-weight: 900; text-align: center; margin-top: 30px; }
.art-en { text-align: center; color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.art-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.art-btn { padding: 20px 0; border-radius: 24px; font-size: 24px; font-weight: 800; background: var(--c); color: var(--on); transition: transform .06s, box-shadow .06s, opacity .2s; }
.art-btn.a-der { --c: var(--der); }
.art-btn.a-die { --c: var(--die); }
.art-btn.a-das { --c: var(--das); }
.art-btn:active { transform: scale(.97); box-shadow: none; }
.art-btn.sel { outline: 4px solid var(--ink); outline-offset: 3px; }
.art-btns.big .art-btn { padding: 24px 0; font-size: 28px; }
.art-btn.wrongpick { opacity: .35; }
.art-btn.right { outline: 4px solid var(--gold); outline-offset: 3px; }

.type-box { margin-bottom: 10px; }
.type-in { width: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 20px; font-weight: 700; outline: none; }
.type-in:focus { border-color: var(--primary); }
.type-in.area { resize: none; font-size: 18px; }
.uml { display: flex; gap: 8px; margin-top: 10px; }
.uml button { width: 46px; height: 42px; border: 2px solid var(--line); border-radius: 10px; font-size: 19px; }
.uml button:active { transform: scale(.97); box-shadow: none; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match .col { display: flex; flex-direction: column; gap: 10px; }
.tile {
  padding: 12px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--card);
  font-size: 16px; line-height: 1.2; transition: transform .06s, opacity .25s, background .15s;
}
.tile:active { transform: scale(.97); box-shadow: none; }
.mt { min-height: 58px; }
.mt.sel { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--card)); color: var(--blue); }
.mt.matched { opacity: .3; border-color: var(--good); color: var(--good); box-shadow: none; }
.mt.wrong { border-color: var(--bad); background: var(--bad-bg); color: var(--bad-d); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.answer-line { min-height: 118px; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  background: repeating-linear-gradient(transparent 0 57px, var(--line) 57px 59px); margin-bottom: 26px; }
.bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bt.used { background: var(--line); color: transparent; box-shadow: none; border-color: var(--line); pointer-events: none; }
.ct { animation: popin .15s; }

.cloze-s { font-size: 24px; font-weight: 800; line-height: 1.6; margin: 14px 0 6px; }
.gap { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--primary); color: var(--primary); text-align: center; padding: 0 6px; }
.cloze-en { color: var(--muted); margin-bottom: 26px; }

.speak-en { margin: -12px 0 24px; }
.mic-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border-radius: 20px; border: 2px solid var(--line); font-size: 17px; color: var(--blue); }
.mic-btn svg { font-size: 30px; }
.mic-btn.rec { color: var(--bad); border-color: var(--bad); animation: wob .6s infinite alternate; }
.heard { min-height: 40px; text-align: center; margin-top: 14px; font-size: 18px; color: var(--ink2); }

.ex-end { text-align: center; padding-top: 30px; }
.end-hero { font-size: 96px; animation: popin .5s; }
.end-title { font-size: 32px; color: var(--ink); margin-top: 8px; }
.end-title.flame { color: var(--flame); }
.end-sub { color: var(--ink2); margin: 8px auto 0; max-width: 360px; }
.end-stats { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.stat-card { flex: 1; max-width: 150px; border-radius: 22px; background: var(--card); overflow: hidden; }
.stat-card span { display: block; background: var(--c); color: var(--on); font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 4px; }
.stat-card b { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 4px; font-size: 22px; color: var(--ink); }
.stat-card.gold { --c: var(--gold); }
.stat-card.green { --c: var(--good); }
.stat-card.blue { --c: var(--blue); }
.streak-hero { position: relative; width: 170px; height: 170px; margin: 20px auto 0; color: var(--flame); font-size: 170px; animation: popin .5s; }
.streak-hero svg { width: 170px; height: 170px; }
.streak-hero b { position: absolute; left: 0; right: 0; bottom: 18px; font-size: 44px; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.2); }

.sheet-wrap, .modal-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); width: 100%; max-width: 620px; border-radius: 30px 30px 0 0; padding: 26px 20px calc(20px + var(--safe-b)); text-align: center; display: flex; flex-direction: column; gap: 12px; animation: slideup .25s; }
.sheet-emoji { font-size: 60px; }
.sheet p { color: var(--ink2); }

/* ---------- modals ---------- */
.modal { position: relative; background: var(--bg); width: 100%; max-width: 620px; max-height: 88dvh; overflow-y: auto; border-radius: 30px 30px 0 0; padding: 20px 18px calc(24px + var(--safe-b)); animation: slideup .25s; }
.modal.small { max-width: 480px; }
.modal-wrap.out { opacity: 0; transition: opacity .2s; }
.modal-x { position: absolute; right: 10px; top: 10px; z-index: 2; }
.guide-head { background: var(--c); color: var(--on); margin: -20px -18px 16px; padding: 22px 18px 18px; }
.guide-head small { opacity: .85; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.guide-head h2 { font-size: 26px; }
.guide-tip { background: var(--bg2); border-radius: var(--r); padding: 16px; line-height: 1.55; font-weight: 600; color: var(--ink2); }
.guide-tip b { color: var(--ink); font-weight: 900; }
.guide h4 { margin: 22px 0 8px; font-size: 18px; }
.guide-list { display: flex; flex-direction: column; gap: 6px; }
.g-row { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; }
.g-row .sp { color: var(--blue); font-size: 20px; }
.g-row b { display: block; }
.g-row small { color: var(--muted); font-size: 14px; }
.guide-list.words { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .guide-list.words { grid-template-columns: 1fr; } }

.wc { text-align: center; padding: 20px 6px 0; border-top: 10px solid transparent; margin: -20px -18px 0; }
.wc-top { display: flex; justify-content: center; margin-bottom: 14px; }
.wc-de { font-size: 34px; font-weight: 900; }
.wc-meta { color: var(--muted); }
.wc-en { font-size: 22px; color: var(--ink2); margin-top: 10px; }
.wc .rule-note { margin: 16px 18px 0; }
.wc-ex { display: block; width: calc(100% - 36px); margin: 14px 18px 0; text-align: left; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; }
.wc-ex b { display: block; }
.wc-ex small { color: var(--muted); }
.wc-foot { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 13px; margin: 18px 0 4px; }

/* ---------- pages ---------- */
.page { padding: 16px; }
.page-title { font-size: 26px; margin: 4px 0 14px; }
.card { border: 2px solid var(--line); border-radius: 20px; padding: 16px; margin-top: 16px; }
.card h3 { font-size: 19px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.hero-card { --c: var(--violet); border-radius: 28px; padding: 20px; background: var(--c); color: var(--on); display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.hero-num b { font-size: 46px; line-height: 1; display: block; }
.hero-num span { opacity: .9; }
.cov { display: flex; flex-direction: column; align-items: center; width: 120px; text-align: center; }
.cov p { font-size: 11px; opacity: .9; margin-top: 6px; line-height: 1.25; }
.cov-ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(currentColor calc(var(--p) * 1%), color-mix(in srgb, currentColor 22%, transparent) 0); }
.cov-ring span { width: 58px; height: 58px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.milestone { grid-column: 1 / -1; font-size: 13px; }
.ms-bar { height: 10px; background: color-mix(in srgb, currentColor 18%, transparent); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.ms-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.action-row .btn { font-size: 13px; padding: 14px 8px; }
.filters { display: flex; flex-direction: column; gap: 10px; position: sticky; top: calc(58px + var(--safe-t)); background: var(--bg); z-index: 5; padding: 8px 0; }
.search { width: 100%; padding: 13px 18px; border-radius: 99px; border: 2px solid transparent; background: var(--card); font-weight: 500; outline: none; }
.search:focus { border-color: var(--primary); }
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1; min-width: max-content; padding: 8px 14px; border-radius: 99px; border: 2px solid transparent; background: var(--card); font-weight: 700; color: var(--ink2); display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.seg button small { font-size: 11px; color: var(--muted); font-weight: 700; }
.seg button.on { background: var(--c, var(--act)); border-color: transparent; color: var(--on); }
.seg button.on:not([style]) { color: var(--act-on); }
.seg button.on small { color: inherit; opacity: .75; }
.seg.small button { padding: 7px 10px; font-size: 13px; }
.wl-unit { margin: 18px 0 8px; font-size: 16px; display: flex; justify-content: space-between; color: var(--ink2); }
.wl-unit span { color: var(--muted); font-size: 13px; }
.wl-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; align-items: center; text-align: left; padding: 11px 10px; border-bottom: 2px solid var(--line); }
.wl-row:active { background: var(--bg2); }
.wl-de { font-weight: 900; }
.wl-en { color: var(--ink2); font-size: 14px; font-weight: 600; }
.wl-row .sp { color: var(--blue); font-size: 20px; padding: 4px; }
.dots { display: flex; gap: 2px; }
.dots i { width: 6px; height: 14px; border-radius: 3px; background: var(--line); }
.dots.s1 i:nth-child(-n+1), .dots.s2 i:nth-child(-n+2) { background: var(--flame); }
.dots.s3 i:nth-child(-n+3) { background: var(--gold); }
.dots.s4 i:nth-child(-n+4), .dots.s5 i { background: var(--good); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
@media (max-width: 420px) { .wl-row { grid-template-columns: 1fr auto auto; } .wl-en { grid-column: 1; grid-row: 2; } .wl-row .dots { grid-row: 1 / 3; } .wl-row .sp { grid-row: 1 / 3; } }

/* flashcards */
.card-stage { perspective: 1200px; padding-top: 10px; }
.flashcard { width: 100%; height: min(56vh, 380px); display: block; }
.fc-inner { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3,1.3,.5,1); transform-style: preserve-3d; }
.flashcard.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid var(--line); border-radius: 26px; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; border-top-width: 12px; }
.flashcard.bar-der .fc-face { border-top-color: var(--der); }
.flashcard.bar-die .fc-face { border-top-color: var(--die); }
.flashcard.bar-das .fc-face { border-top-color: var(--das); }
.flashcard { border: 0 !important; }
.fc-face.back { transform: rotateY(180deg); }
.fc-de { font-size: 36px; font-weight: 900; text-align: center; }
.fc-en { font-size: 24px; color: var(--ink2); text-align: center; }
.fc-meta, .fc-hint { color: var(--muted); }
.fc-tap { position: absolute; bottom: 16px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grade { border-radius: 20px; padding: 10px 2px; color: #fff; font-weight: 700; display: flex; flex-direction: column; align-items: center; }
.grade span { font-size: 12px; opacity: .9; }
.grade.bad { background: var(--bad); }
.grade.warn { background: var(--flame); }
.grade.ok { background: var(--good); }
.grade.easy { background: var(--blue); }
.grade:active { transform: scale(.97); box-shadow: none; }

/* ---------- der die das ---------- */
.g-hero { text-align: center; padding: 10px 6px 0; }
.g-badges { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.g-badges span { background: var(--c); color: var(--on); padding: 8px 16px; border-radius: 99px; font-size: 20px; font-weight: 800; }
.g-badges .g-der { --c: var(--der); transform: rotate(-6deg); }
.g-badges .g-die { --c: var(--die); transform: translateY(-4px); }
.g-badges .g-das { --c: var(--das); transform: rotate(6deg); }
.g-hero h1 { font-size: 26px; }
.g-hero p { color: var(--ink2); margin: 6px auto 0; max-width: 420px; font-weight: 600; }
.g-stats { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.g-stats div { flex: 1; max-width: 120px; border: 2px solid var(--line); border-radius: 14px; padding: 8px; }
.g-stats b { display: block; font-size: 22px; }
.g-stats span { color: var(--muted); font-size: 12px; }
.g-pool { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.g-pool > span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.g-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.g-mode { --ic: var(--c); border-radius: 26px; padding: 18px 16px; text-align: left; background: var(--c); color: var(--on); display: flex; flex-direction: column; gap: 4px; }
.g-mode.train { --c: var(--violet); }
.g-mode.blitz { --c: var(--yellow); }
.g-mode:active { transform: scale(.97); box-shadow: none; }
.gm-i { font-size: 32px; }
.g-mode b { font-size: 20px; }
.g-mode small { opacity: .9; font-size: 13px; line-height: 1.3; }
.g-h { margin: 26px 0 10px; font-size: 19px; display: flex; justify-content: space-between; align-items: baseline; }
.g-h .muted { font-size: 13px; }
.g-tip { background: var(--bg2); border-radius: 14px; padding: 12px 14px; color: var(--ink2); font-weight: 600; margin-bottom: 10px; line-height: 1.45; }
.g-tip b { color: var(--ink); }
.rules { display: flex; flex-direction: column; gap: 8px; }
.rule { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--line); border-radius: 16px; text-align: left; }
.rule:active { transform: scale(.97); box-shadow: none; }
.rule-tag { min-width: 58px; text-align: center; padding: 6px 4px; border-radius: 99px; background: var(--c); color: var(--on); font-size: 13px; font-weight: 800; }
.rule-tag.g-der { --c: var(--der); }
.rule-tag.g-die { --c: var(--die); }
.rule-tag.g-das { --c: var(--das); }
.rule-tag.g-mix { --c: var(--slab); }
.rule-body { flex: 1; display: flex; flex-direction: column; }
.rule-body small { color: var(--muted); font-size: 13px; }
.rule-n { text-align: right; font-weight: 900; color: var(--good-d); display: flex; flex-direction: column; }
.rule-n small { color: var(--muted); font-size: 11px; font-weight: 700; }

.gg { text-align: center; padding-top: 20px; position: relative; }
.gg-combo { position: absolute; right: 0; top: 0; color: var(--flame); font-weight: 900; font-size: 20px; }
.gg-card { border: 2px solid var(--line); border-radius: 26px; padding: 40px 16px 34px; margin-top: 20px; border-top-width: 12px; transition: background .2s, border-color .2s; }
.gg-art { font-size: 26px; font-weight: 900; color: var(--muted); height: 34px; }
.gg-word { font-size: 42px; font-weight: 900; line-height: 1.15; word-break: break-word; }
.gg-en { color: var(--muted); margin-top: 8px; }
.gg-card.show.g-der { border-top-color: var(--der); background: var(--der-bg); }
.gg-card.show.g-die { border-top-color: var(--die); background: var(--die-bg); }
.gg-card.show.g-das { border-top-color: var(--das); background: var(--das-bg); }
.gg-card.show.g-der .gg-art { color: var(--der-t); }
.gg-card.show.g-die .gg-art { color: var(--die-t); }
.gg-card.show.g-das .gg-art { color: var(--das-t); }
.gg-rule { min-height: 60px; margin-top: 16px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--ink2); opacity: 0; transition: opacity .2s; text-align: left; }
.gg-rule.show { opacity: 1; background: var(--bg2); }
.gg-rule.exc { background: var(--bad-bg); }
.gg-foot { gap: 10px; }

/* ---------- profile ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sg { border: 2px solid var(--line); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sg svg { font-size: 26px; }
.sg b { font-size: 22px; }
.sg span { color: var(--muted); font-size: 12px; text-align: center; }
.sg.flame svg { color: var(--flame); } .sg.gold svg { color: var(--gold); } .sg.purple svg { color: var(--violet); }
.sg.green svg { color: var(--good); } .sg.blue svg { font-size: 26px; } .sg.pink svg { color: var(--coral); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wk-bar { width: 100%; max-width: 34px; height: 100px; background: var(--bg2); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.wk-bar i { width: 100%; background: color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 10px; }
.wk-bar i.hit { background: var(--gold); }
.wk b { font-size: 13px; }
.wk span { color: var(--muted); font-size: 12px; }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ach-i { border: 2px solid var(--line); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; opacity: .45; filter: grayscale(1); }
.ach-i.got { opacity: 1; filter: none; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.ach-i span { font-size: 30px; }
.ach-i b { font-size: 13px; }
.ach-i small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.cp { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.cp-l { width: 38px; text-align: center; background: var(--c); color: var(--on); border-radius: 99px; padding: 2px 0; font-size: 13px; }
.cp-bar { flex: 1; height: 12px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: 99px; }
.cp-n { width: 40px; text-align: right; color: var(--muted); font-size: 13px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0; border-bottom: 2px solid var(--line); text-align: left; flex-wrap: wrap; }
.set > span:first-child { flex: 1; min-width: 120px; }
.set small { color: var(--muted); font-weight: 600; }
.set .seg { flex: 1 1 100%; }
.set input[type=range] { flex: 1; accent-color: var(--primary); }
.set select { flex: 1; padding: 8px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg2); max-width: 220px; }
.sw { width: 50px; height: 30px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw.on { background: var(--act); }
.sw.on i { transform: translateX(20px); }
.set-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.set-btns .btn { font-size: 13px; }
.credits { text-align: center; color: var(--muted); font-size: 13px; margin: 26px 0 10px; line-height: 1.6; }

/* ---------- onboarding ---------- */
.onboard { position: fixed; inset: 0; z-index: 90; background: var(--bg); overflow-y: auto; transition: opacity .3s; }
.onboard.out { opacity: 0; }
.ob { max-width: 480px; margin: 0 auto; padding: calc(40px + var(--safe-t)) 20px calc(30px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; animation: slideup .35s; }
.ob-logo { width: 96px; height: 96px; border-radius: 30px; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: 56px; margin: 0 auto; }
.ob h1 { text-align: center; font-size: 40px; color: var(--ink); }
.ob h2 { font-size: 26px; text-align: center; }
.ob-lead { text-align: center; font-size: 18px; color: var(--ink2); }
.ob-points { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.ob-points li { background: var(--bg2); border-radius: 16px; padding: 12px 14px; font-weight: 600; color: var(--ink2); line-height: 1.4; }
.ob-points b { color: var(--ink); }
.ob-opts { display: flex; flex-direction: column; gap: 10px; }
.ob-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border: 2px solid var(--line); border-radius: 16px; text-align: left; }
.ob-opt:active { transform: scale(.97); box-shadow: none; border-color: var(--primary); }
.ob-i { font-size: 30px; width: 40px; text-align: center; color: var(--gold); }
.ob-opt b { display: block; font-size: 17px; }
.ob-opt small { color: var(--muted); }
.ob-opt > span:nth-child(2) { flex: 1; }
.ob-xp { color: var(--gold-d); font-weight: 900; }

/* ---------- toast + confetti ---------- */
.toast { position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translate(-50%, -120%); z-index: 120; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; transition: transform .35s cubic-bezier(.3,1.4,.5,1); max-width: 90vw; display: flex; gap: 6px; align-items: center; }
.toast svg { color: var(--flame); font-size: 20px; }
.toast.in { transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }

@media (min-width: 700px) {
  .lesson { border-left: 2px solid var(--line); border-right: 2px solid var(--line); }
  .modal-wrap { align-items: center; }
  .modal { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- account ---------- */
.modal-wrap.top { z-index: 95; }
.acct { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.acct h2 { font-size: 24px; padding-right: 36px; }
.acct form { display: flex; flex-direction: column; gap: 10px; }
.acct input { width: 100%; padding: 14px 16px; border: 2px solid transparent; border-radius: var(--r); background: var(--card); font-size: 17px; font-weight: 600; outline: none; }
.acct input:focus { border-color: var(--primary); }
.acct-err { color: var(--bad); font-weight: 800; min-height: 1.3em; }
.acct-err:empty { min-height: 0; }
.acct-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.acct-links button { color: var(--primary); font-weight: 800; padding: 6px; }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 21px; font-weight: 800; letter-spacing: 1px; text-align: center; padding: 18px 10px; border: 2px dashed var(--primary); border-radius: var(--r); background: var(--primary-l); color: var(--primary); user-select: all; -webkit-user-select: all; }
.acct-card p { line-height: 1.45; }
.acct-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.acct-btns .btn { flex: 1; }
.acct-card.in { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-who > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.acct-who b { font-size: 18px; }
.acct-av { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--primary); color: var(--on); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.sync-line { color: var(--muted); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; text-align: left; padding: 0; }
.sync-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--good); }
.sync-dot.busy { background: var(--gold); animation: wob .6s infinite alternate; }
.sync-dot.off { background: var(--bad); }
.save-banner { padding: 0; gap: 0; }
.save-banner .sb-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 4px 14px 16px; text-align: left; }
.save-banner .sb-main > svg { font-size: 30px; color: var(--primary); flex: none; }
.save-banner .sb-x { margin-right: 6px; color: var(--muted); }
.ob-signin { align-self: center; color: var(--primary); }
.toast svg { vertical-align: -4px; }
.acct-card { margin: 0 0 16px; }

/* ---------- illustrations (js/art.js) ---------- */
.art { display: block; width: 100%; height: 100%; overflow: visible; --ik: color-mix(in srgb, var(--ic, var(--violet)) 58%, #000); }
.art .w, .art .w2, .art .wo { fill: #fff; }
.art .wo { stroke: var(--ic, #7c5cff); stroke-width: 3; }
.art .s { fill: rgba(0,0,0,.13); }
.art .g { fill: rgba(0,0,0,.18); }
.art .c { fill: var(--ic, #7c5cff); }
.art .c2 { fill: color-mix(in srgb, var(--ic, #7c5cff) 55%, #fff); }
.art .k { fill: var(--ik); }
.art .y { fill: #ffd43b; } .art .yd { fill: #f0a800; }
.art .r { fill: #ff4d63; } .art .p { fill: #ffb8cb; } .art .pd { fill: #ff8fab; }
.art .wg { fill: rgba(255,255,255,.3); } .art .wf2 { fill: rgba(255,255,255,.75); }
.art [class^="ws"], .art [class^="wx"], .art [class^="wt"], .art [class^="wf"]:not(.wf2), .art [class^="wr"], .art .wp, .art .wm,
.art [class^="c"][class$="x"], .art .cx5, .art .cq, .art .ct, .art [class^="ks"], .art .kx, .art [class^="ys"], .art .rs {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.art [class^="ws"], .art [class^="wx"], .art [class^="wt"], .art [class^="wr"], .art .wp, .art .wm { stroke: #fff; }
.art .ws { stroke-width: 5; } .art .ws3, .art .wt { stroke-width: 3; } .art .ws4, .art .wr4 { stroke-width: 4; } .art .ws5, .art .wr5 { stroke-width: 5; } .art .ws6, .art .wr { stroke-width: 6; }
.art .wx { stroke-width: 7; } .art .wx8 { stroke-width: 8; } .art .wt4 { stroke-width: 3.6; } .art .wp { stroke-width: 7; } .art .wm { stroke-width: 11; stroke-linecap: butt; }
.art .wf, .art .wf4 { stroke: rgba(255,255,255,.75); stroke-width: 4; }
.art .cx, .art .cx5, .art .cq, .art .ct { stroke: var(--ic, #7c5cff); }
.art .cx { stroke-width: 4.5; } .art .cx5 { stroke-width: 5.5; } .art .cq { stroke-width: 6.5; } .art .ct { stroke-width: 2.6; }
.art .ks, .art .ks3, .art .kx { stroke: var(--ik); } .art .ks { stroke-width: 2.5; } .art .ks3 { stroke-width: 3; } .art .kx { stroke-width: 6; }
.art .ys, .art .ys2, .art .ys3, .art .ysr { stroke: #ffd43b; } .art .ys, .art .ysr { stroke-width: 5; } .art .ys2 { stroke-width: 2; } .art .ys3 { stroke-width: 3; }
.art .rs { stroke: #ff4d63; stroke-width: 5; }
.art-tile { --ic: var(--violet); display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 7px; border-radius: 14px; background: var(--ic); vertical-align: middle; }
.art-tile.sm { width: 30px; height: 30px; padding: 4px; border-radius: 9px; }
.sec, .unit-banner, .guide-head { --ic: var(--c); }
.sec-locked .chips span { display: inline-flex; align-items: center; gap: 5px; }
.sec-locked .chips .art { width: 17px; height: 17px; }
.unit-banner { justify-content: flex-start; }
.unit-art { width: 50px; height: 50px; flex: none; }
.unit-text { flex: 1; min-width: 0; }
.guide-head { display: flex; align-items: center; gap: 14px; }
.guide-art { width: 58px; height: 58px; flex: none; }
.wl-unit { align-items: center; gap: 10px; }
.wl-unit b { flex: 1; }
.end-hero { font-size: 0; }
.end-hero .art-tile { width: 116px; height: 116px; padding: 17px; border-radius: 32px; }
.sheet-art { width: 84px; height: 84px; margin: 0 auto; }
.ach-i .art-tile { width: 46px; height: 46px; margin-bottom: 4px; }
.art-tile.ob-i { width: 48px; height: 48px; padding: 7px; }
.gm-i { width: 46px; height: 46px; font-size: 0; }
.gl { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; }
.gl svg { width: 100%; height: 100%; }
.gl.tip { color: var(--gold); } .gl.warn { color: var(--bad); } .gl.love { color: var(--coral); }
.new-chip svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; }

/* ---------- menu (account + settings) ---------- */
.tb-menu { justify-self: end; margin-right: -8px; color: var(--ink2); font-size: 26px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: flex-end; background: rgba(10,10,10,.5); animation: fade .2s; }
.drawer-wrap.out { opacity: 0; transition: opacity .2s; }
.drawer { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--bg); box-shadow: -8px 0 30px rgba(0,0,0,.18); animation: slidein .26s cubic-bezier(.2,.9,.3,1); }
.drawer-wrap.out .drawer { transform: translateX(30%); transition: transform .2s; }
@keyframes slidein { from { transform: translateX(100%); } }
.dr-head { display: flex; align-items: center; gap: 4px; padding: calc(10px + var(--safe-t)) 8px 10px 18px; }
.dr-head .icon-btn:first-child { margin-left: -10px; }
.dr-head h2 { flex: 1; font-size: 22px; }
.dr-body { flex: 1; overflow-y: auto; padding: 6px 18px calc(28px + var(--safe-b)); }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 0; border-bottom: 2px solid var(--line); text-align: left; }
.menu-row > svg:last-child { color: var(--muted); font-size: 20px; }
.mr-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--act); color: var(--act-on); font-size: 22px; }
.mr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-text b { font-size: 17px; }
.mr-text small { color: var(--muted); font-size: 13px; font-weight: 700; }
.dr-sec { margin: 24px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.dr-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.acct-intro { text-align: center; padding-top: 18px; }
.acct-intro .art-tile { width: 76px; height: 76px; padding: 11px; border-radius: 22px; margin-bottom: 12px; }
.acct-intro h3 { font-size: 21px; margin-bottom: 6px; }
.acct-intro p, .dr-body > p.muted { line-height: 1.45; }
.acct-who.big { padding: 18px 0 14px; }
.acct-who.big .acct-av { width: 56px; height: 56px; font-size: 24px; }
.acct-who.big b { font-size: 20px; }
.dr-body .set-btns { margin-top: 10px; }

/* ---------- stories ---------- */
.s-hero h1 { font-size: 28px; }
.s-hero p { color: var(--ink2); font-weight: 600; line-height: 1.45; margin-top: 6px; }
.s-level { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 18px; }
.s-level span { background: var(--c); color: var(--on); border-radius: 99px; padding: 3px 11px; font-size: 14px; }
.s-level em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--act-on); background: var(--act); border-radius: 99px; padding: 3px 10px; margin-left: auto; }
.story { border-radius: 26px; padding: 16px; margin-bottom: 12px; background: var(--card); }
.story-top { display: flex; gap: 12px; align-items: flex-start; }
.story-top .art-tile { width: 58px; height: 58px; padding: 8px; border-radius: 16px; }
.story-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.story-text b { font-size: 18px; }
.story-text small { color: var(--muted); font-weight: 800; font-size: 13px; }
.story-text p { color: var(--ink2); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.story-best { font-weight: 800; font-size: 14px; color: var(--ink); border: 2px solid var(--c); border-radius: 99px; padding: 3px 9px; flex: none; }
.story-best.gold { color: #141414; border-color: var(--gold); background: var(--gold); }
.story-btns { display: flex; gap: 8px; margin-top: 12px; }
.story-btns .btn { flex: 1; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.story-btns svg { font-size: 18px; }
.diktat .bar i, .reader .bar i { background: var(--c); }
.dk-count { font-weight: 900; color: var(--muted); font-size: 14px; min-width: 40px; text-align: right; }
.dk-audio { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dk-audio .dk-hint { margin-left: auto; }
.dk-hintline { font-family: ui-monospace, Menlo, monospace; font-size: 15px; color: var(--muted); letter-spacing: 1px; margin: -6px 0 12px; line-height: 1.6; word-spacing: 4px; }
.dk-in { min-height: 96px; }
.dk-in:disabled { opacity: .7; }
.dk-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dk-key { min-width: 40px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); font-weight: 900; font-size: 17px; background: var(--card); }
.dk-key:active { transform: scale(.97); box-shadow: none; }
.dk-result { margin-top: 14px; }
.dk-words { font-size: 20px; font-weight: 800; line-height: 1.9; }
.dw { display: inline-flex; flex-direction: column; align-items: center; vertical-align: bottom; line-height: 1.2; padding: 0 1px; }
.dw s { font-size: 13px; font-weight: 700; color: var(--muted); }
.dw.right { color: var(--good-d, #1a9a5a); }
.dw.almost { color: var(--gold-d); }
.dw.wrong, .dw.missing { color: var(--bad); }
.dw.missing { text-decoration: underline wavy; text-underline-offset: 5px; }
.dk-extra { color: var(--muted); font-size: 14px; margin-top: 6px; }
.dk-en { color: var(--ink2); margin-top: 10px; font-weight: 600; }
.rd-title { flex: 1; font-size: 17px; text-align: center; }
.rd-en.on { color: var(--primary); background: var(--primary-l); }
.rd-cover { text-align: center; padding: 10px 0 18px; }
.rd-cover .art-tile { width: 96px; height: 96px; padding: 14px; border-radius: 28px; }
.rd-cover h2 { font-size: 26px; margin-top: 12px; }
.rd-cover p { color: var(--muted); font-weight: 800; }
.rd-text { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: 0 auto; }
.rd-line { text-align: left; padding: 10px 12px; border-radius: 14px; display: flex; flex-direction: column; gap: 3px; transition: background .2s; }
.rd-de { font-size: 19px; font-weight: 700; line-height: 1.45; }
.rd-tr { display: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.reader.show-en .rd-tr { display: block; }
.rd-line.now { background: color-mix(in srgb, var(--c) 30%, transparent); }
.rd-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rd-play svg { font-size: 20px; }

/* ---------- surfaces (flat cards on cream / charcoal) ---------- */
.card, .review-banner, .opt, .tile, .rule, .ob-opt, .fc-face, .intro-card, .gg-card, .mic-btn, .uml button, .dk-key, .g-stats div, .wc-ex, .g-row, .prompt-en {
  background: var(--card); border-color: transparent;
}
.card { border-radius: 26px; }
.modal .wc-ex, .modal .g-row, .sheet .opt { background: var(--card); }
.modal, .sheet, .drawer { background: var(--bg); }
.icon-btn:active { background: color-mix(in srgb, currentColor 12%, transparent); }
.tb-menu { border: 2px solid var(--line2); width: 42px; height: 42px; margin-right: 0; font-size: 22px; }
.sg { background: var(--card); border-color: transparent; border-radius: 22px; }
.l-foot.ok .go, .l-foot.bad .go { color: #fff; }

/* ---------- password eye, Google, delete ---------- */
.pw { position: relative; }
.pw input { padding-right: 54px; }
.pw-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.g-btn { display: flex; justify-content: center; min-height: 44px; color-scheme: normal; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.btn.danger-fill { background: var(--bad); color: #fff; }
.dr-btns .btn.danger { align-self: center; }

/* ---------- word pictures (js/pics.js): real-world colors ---------- */
.art .gn { fill: #62b56b; } .art .gd { fill: #3f8b4c; } .art .or { fill: #f28a4a; } .art .bn { fill: #a0673f; } .art .bd { fill: #6e4327; }
.art .bu { fill: #6cb6ec; } .art .bw { fill: #2b7fd0; } .art .gy { fill: #c4c2ba; } .art .wn { fill: #9b2948; }
.art .gns, .art .bns { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art .gns { stroke: #4f9e5a; } .art .bns { stroke: #8a5532; }
.art .sk { fill: #f5c9a3; } .art .sks { fill: none; stroke: #d39465; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- topics (Cards tab) ---------- */
.tg-h { margin: 26px 2px 10px; font-size: 20px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .tgrid { grid-template-columns: repeat(3, 1fr); } }
.topic { --ic: var(--c); background: var(--c); color: var(--on); border-radius: 24px; padding: 14px 14px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 156px; transition: transform .08s; }
.topic:active { transform: scale(.97); }
.tp-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 8px; }
.tp-art { width: 50px; height: 50px; display: block; flex: none; }
.tp-go { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #141414; display: grid; place-items: center; font-size: 15px; flex: none; }
.topic b { font-size: 16px; line-height: 1.2; font-weight: 900; }
.topic small { font-size: 12px; font-weight: 700; opacity: .75; margin-bottom: 10px; }
.tp-prog { width: 100%; height: 6px; border-radius: 99px; background: color-mix(in srgb, currentColor 20%, transparent); overflow: hidden; margin-top: auto; }
.topic .tp-prog { margin-top: auto; }
.topic small { margin-bottom: 10px; }
.tp-prog i { display: block; height: 100%; background: currentColor; border-radius: 99px; }
.tp-n { font-size: 12px; font-weight: 700; opacity: .8; margin-top: 5px; }

.tp-head { --ic: var(--c); background: var(--c); color: var(--on); border-radius: 28px; padding: 12px 18px 18px; margin-bottom: 16px; }
.tp-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 -6px 8px; }
.tp-back { color: inherit; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); }
.tp-levels { font-size: 13px; font-weight: 800; opacity: .75; }
.tp-title { display: flex; gap: 14px; align-items: center; }
.tp-art.big { width: 74px; height: 74px; }
.tp-title h1 { font-size: 26px; line-height: 1.1; }
.tp-title p { opacity: .8; font-weight: 700; margin-top: 2px; }
.tp-head .tp-prog { height: 8px; margin-top: 16px; }
.tp-btns { display: flex; gap: 8px; margin-top: 14px; }
.tp-btns .btn { flex: 1; padding: 12px 10px; font-size: 15px; }
.btn.white.ghostly { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.btn.white.ghostly:disabled { opacity: .5; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; border-color: transparent; }

.pic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
@media (min-width: 520px) { .pic-grid { grid-template-columns: repeat(4, 1fr); } }
.pic-card { position: relative; background: var(--card); border-radius: 22px; padding: 8px 8px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; transition: transform .08s; }
.pic-card:active { transform: scale(.96); }
.pic-wrap { position: relative; width: 100%; margin-bottom: 6px; }
.pic-card .wpic { width: 100%; height: auto; aspect-ratio: 1; padding: 15%; border-radius: 16px; display: grid; }
.pic-card b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.pic-card small { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.pic-card .sp { position: absolute; bottom: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: #141414; display: grid; place-items: center; font-size: 14px; }
.pic-card.known::after { content: ''; position: absolute; top: 15px; left: 15px; width: 11px; height: 11px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 2.5px #fff; }

.wpic.swatch { background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.wpic.num { --c: var(--ic); color: var(--on); display: grid; place-items: center; }
.wpic.num b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.intro-pic { width: 100px; height: 100px; padding: 15px; border-radius: 28px; display: grid; }
.intro-top { align-items: center; }
.fc-pic { width: 100px; height: 100px; padding: 15px; border-radius: 28px; margin-bottom: 6px; }
.wc-top { gap: 14px; align-items: center; }
.wc-pic { width: 100px; height: 100px; padding: 15px; border-radius: 28px; }
.intro-pic.num b, .fc-pic.num b, .wc-pic.num b { font-size: 40px; }

/* ---------- body map (Body topic) ---------- */
.bm { --fig: #fff; background: var(--c); color: var(--on); border-radius: 28px; padding: 12px; margin-bottom: 16px; }
.bm-top .seg button { padding: 7px 4px; }
.bm-stage { margin: 6px -4px 2px; }
.bm-stage svg { display: block; width: 100%; height: auto; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.bm-p, .bm-ghost, .bm-deco { fill: var(--fig); }
.bm-p, .bm-l, .bm-hit, .bm-pin, .bm-name { cursor: pointer; }
.bm-p { transition: fill .2s; }
.bm-p.sub { stroke: rgba(0,0,0,.13); stroke-width: 1.5; }
.bm-l { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.bm-l.limb { stroke: var(--fig); stroke-width: 20; }
.bm-l.finger { stroke: var(--fig); stroke-width: 4.5; }
.bm-ghost { opacity: .45; pointer-events: none; }
.bm-ghost-l { fill: none; stroke: var(--fig); stroke-width: 20; stroke-linecap: round; opacity: .45; pointer-events: none; }
.bm-deco { pointer-events: none; }
.bm-deco-face { fill: #2a2a2a; stroke: #2a2a2a; pointer-events: none; }
.bm-deco-face path { fill: none; stroke-width: 2; stroke-linecap: round; }
.bm-deco-spine { fill: none; stroke: rgba(0,0,0,.15); stroke-width: 2; pointer-events: none; }
.bm-p.hair { fill: #a0673f; }
.bm-p.iris { fill: #3b2f2a; }
.bm-l.line { stroke: rgba(0,0,0,.22); stroke-width: 4; }
.bm-l.lid { stroke: #3b2f2a; stroke-width: 4.5; }
.bm-l.scar { stroke: #c98282; stroke-width: 3.2; }
.bm-p.pimple { fill: #e98585; }
.bm-p.mouth { fill: #5a2633; }
.bm-p.teeth { fill: #fff; }
.bm-p.tongue { fill: #f08a9c; }
.bm-l.lip { stroke: #e46b7c; stroke-width: 6; }
.bm-l.nerve { stroke: #f7c64b; stroke-width: 3; }
.bm-p.brain { fill: #f6aec6; }
.bm-deco-brain { fill: none; stroke: #d97ca0; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.bm-p.lung { fill: #f4b4bf; }
.bm-p.heart { fill: #e9584c; }
.bm-p.stomach { fill: #f2a65a; }
.bm-l.bone { stroke: #fffdf5; stroke-width: 7; }
.bm-p.bone-end { fill: #fffdf5; stroke: #cfcab8; stroke-width: 1; }
.bm-l.blood { stroke: #c0392b; stroke-width: 3.5; }
.bm-p.blood-drop { fill: #c0392b; }
/* picked, right and wrong */
.bm .bm-p.on { fill: var(--yellow); }
.bm .bm-l.on { stroke: var(--yellow); }
.bm .bm-p.ok { fill: #62b56b; }
.bm .bm-l.ok { stroke: #62b56b; }
.bm .bm-p.bad { fill: var(--coral); }
.bm .bm-l.bad { stroke: var(--coral); }
.bm-hit { fill: transparent; }
.bm-pin { fill: #141414; stroke: #fff; stroke-width: 2; pointer-events: none; transition: r .2s; }
.bm-pin.on, .bm-pin.ok { r: 6.5; fill: #141414; stroke: var(--yellow); stroke-width: 3; }
.bm-pin.ok { stroke: #62b56b; }
.bm-pin.bad { stroke: var(--coral); stroke-width: 3; }
.quizzing .bm-pin { opacity: .35; }
.quizzing .bm-pin.ok, .quizzing .bm-pin.bad { opacity: 1; }
.bm-lead { fill: none; stroke: rgba(20,20,20,.5); stroke-width: 1; pointer-events: none; }
.bm-name { font: 800 10.5px var(--font); fill: #141414; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.bm-name .g-der { fill: #4a36d6; } .bm-name .g-die { fill: #c2372c; } .bm-name .g-das { fill: #4d7a12; }
.bm-bar { display: flex; flex-direction: column; gap: 10px; }
.bm-info { background: var(--card); color: var(--ink); border-radius: 18px; min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; }
.bm-info .muted { font-weight: 700; }
.bm-word { flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; text-align: left; position: relative; padding-right: 44px; }
.bm-word b { font-size: 21px; font-weight: 900; }
.bm-word small { color: var(--muted); font-weight: 700; font-size: 14px; }
.bm-word.ask { flex-direction: column; align-items: flex-start; gap: 0; }
.bm-word .sp { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%; background: var(--act); color: var(--act-on); display: grid; place-items: center; font-size: 18px; }
.bm-score { font-weight: 900; color: var(--muted); font-size: 14px; white-space: nowrap; }
.bm-done { flex: 1; font-weight: 700; }
.bm-done b { font-size: 18px; margin-right: 6px; }
.bm-acts { display: flex; gap: 8px; }
.bm-acts .btn { flex: 1; }
.bm-names-btn { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.bm-names-btn.on { background: var(--act); color: var(--act-on); }
.bm .seg button.on { background: var(--act); color: var(--act-on); }
/* health face */
.bm-title { font-size: 18px; padding: 4px 6px 0; }
.bm-p.sickface { fill: #f4f7ea; }
.bm-p.fever { fill: rgba(233, 88, 76, .32); }
.bm-l.pain { stroke: #e9584c; stroke-width: 4; }
.bm-p.sore-eye { fill: #fbd9d9; stroke: rgba(0,0,0,.13); stroke-width: 1.5; }
.bm-p.droopy { fill: #f4f7ea; stroke: #3b2f2a; stroke-width: 3.5; stroke-linejoin: round; }
.bm-p.tear, .bm-p.snot { fill: #6cb6ec; }
.bm-p.red-nose { fill: #f6a9a9; }
.bm-p.plaster { fill: #f3c99c; }
.bm .pad { fill: #e2a874; }
.bm-p.puff { fill: #fff; stroke: rgba(0,0,0,.15); stroke-width: 1.5; }
.bm-l.thermo { stroke: #fff; stroke-width: 8; }
.bm-l.thermo-red { stroke: #e9584c; stroke-width: 3; }
.bm-p.thermo-bulb { fill: #e9584c; }
.bm-p.pill-a { fill: #e9584c; } .bm-p.pill-b { fill: #fff; }
.bm-p.scarf { fill: #e9584c; }
.bm-p.bubble { fill: #fff; }
.bm-bubble-text { font: 900 15px var(--font); fill: #141414; pointer-events: none; }
.bm .bm-deco.hair { fill: #a0673f; }
/* kitchen map */
.bm-p.wall { fill: rgba(255,255,255,.2); }
.bm .bm-deco.floor { fill: rgba(0,0,0,.1); }
.bm .bm-deco.win { fill: #cfe8f7; }
.bm-deco-line { fill: none; stroke: rgba(0,0,0,.18); stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }
.bm-p.appliance { fill: #fff; stroke: rgba(0,0,0,.12); stroke-width: 1.5; }
.bm .bm-deco.board, .bm .bm-deco.top { fill: #b8b2a6; }
.bm .bm-deco.cab { fill: #f1ece3; }
.bm .bm-deco.door { fill: #f8f4ee; stroke: rgba(0,0,0,.1); stroke-width: 1.5; }
.bm .bm-deco.knob { fill: #b8b2a6; }
.bm-deco-rail { fill: none; stroke: #8a8a8a; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.bm-deco-steam { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.bm-deco-oven { fill: #3a3a3a; pointer-events: none; }
.bm-deco-stripe { fill: none; stroke: #fff; stroke-width: 2; pointer-events: none; }
.bm .bm-deco.dw { fill: #e4e1d7; } .bm .bm-deco.led { fill: #62b56b; }
.bm-p.k-bowl { fill: #6cb6ec; }
.bm-l.k-panh { stroke: #3a3a3a; stroke-width: 5; }
.bm-p.k-pan { fill: #3a3a3a; } .bm-p.k-panin { fill: #555; }
.bm-p.k-glass { fill: #cfe8f7; stroke: rgba(0,0,0,.15); stroke-width: 1.2; }
.bm-p.k-cup { fill: #f7c64b; } .bm-l.k-cuph { stroke: #f7c64b; stroke-width: 3; }
.bm-p.k-bottle { fill: #62b56b; }
.bm-p.k-can { fill: #6f5bf6; }
.bm-p.k-dish { fill: #fff; stroke: rgba(0,0,0,.18); stroke-width: 1; }
.bm-l.k-ut { stroke: #b9b9b9; stroke-width: 4; }
.bm-l.k-tine { stroke: #b9b9b9; stroke-width: 2.4; }
.bm-p.k-metal { fill: #d4d4d4; stroke: rgba(0,0,0,.12); stroke-width: 1; }
.bm-p.k-handle { fill: #3a3a3a; }
.bm-p.k-plate { fill: #fff; stroke: rgba(0,0,0,.15); stroke-width: 1.5; } .bm-p.k-platein { fill: #f1f1f1; }
.bm-p.k-pot { fill: #4a4a4a; } .bm-l.k-poth { stroke: #4a4a4a; stroke-width: 4; }
.bm-p.k-sink { fill: #9a9a9a; }
.bm-l.k-faucet { stroke: #9a9a9a; stroke-width: 5; }
.bm-p.k-bubble { fill: #fff; stroke: #6cb6ec; stroke-width: 1.5; }
.bm-p.k-towel { fill: #6cb6ec; }
/* farm map */
.bm-p.f-sky { fill: #cfe8f7; } .bm .f-cloud { fill: #fff; }
.bm-p.f-sun { fill: #f7c64b; } .bm-deco-rays { fill: none; stroke: #f7c64b; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.bm-p.f-grass { fill: #9ccf6a; } .bm .f-hill { fill: #86c058; }
.bm-p.f-bird { fill: #2b7fd0; } .bm-p.f-beak { fill: #f28a4a; }
.bm-deco-eye { fill: #141414; pointer-events: none; }
.bm-p.f-barn { fill: #d64545; } .bm-p.f-roof { fill: #a83232; } .bm .f-door { fill: #f4e6d0; }
.bm-deco-x { fill: none; stroke: #d64545; stroke-width: 3; pointer-events: none; }
.bm-deco-fence { fill: none; stroke: #f4e6d0; stroke-width: 3.5; stroke-linecap: round; pointer-events: none; }
.bm-p.f-trunk { fill: #8a5532; } .bm-p.f-leaf { fill: #4f9e5a; } .bm-p.f-leaf2 { fill: #3f8b4c; } .bm .f-apple { fill: #e9584c; }
.bm-p.f-horse { fill: #a0673f; } .bm-p.f-mane { fill: #5a3620; }
.bm-l.f-horse-l { stroke: #a0673f; stroke-width: 6; } .bm-l.f-mane-l { stroke: #5a3620; stroke-width: 4; }
.bm-p.f-cat { fill: #f28a4a; } .bm-l.f-cat-l { stroke: #f28a4a; stroke-width: 3.5; }
.bm-p.f-cow { fill: #fff; stroke: rgba(0,0,0,.15); stroke-width: 1.2; } .bm-p.f-spot { fill: #2a2a2a; } .bm-p.f-muzzle { fill: #f4a6c1; }
.bm-l.f-cow-l { stroke: #fff; stroke-width: 7; } .bm-l.f-horn { stroke: #f7c64b; stroke-width: 3; }
.bm-p.f-pig { fill: #f4a6c1; } .bm-p.f-snout { fill: #e98aa9; } .bm-l.f-pig-l { stroke: #f4a6c1; stroke-width: 6; }
.bm-p.f-trough { fill: #8a5532; } .bm-p.f-feed { fill: #f7c64b; }
.bm-p.f-pond { fill: #6cb6ec; } .bm-deco-splash { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }
.bm-p.f-fish { fill: #f28a4a; } .bm-p.f-duck { fill: #f7c64b; }
.bm-p.f-dog { fill: #c98b4f; } .bm-p.f-ear { fill: #8a5532; } .bm-p.f-snoutd { fill: #ecd2a8; } .bm-l.f-dog-l { stroke: #c98b4f; stroke-width: 5; }
.bm-p.f-mouse { fill: #b8b6ae; } .bm-l.f-mouse-l { stroke: #b8b6ae; stroke-width: 2; }
/* town map */
.bm-p.t-sky { fill: #cfe8f7; } .bm .t-hill { fill: #b9d99a; }
.bm-p.t-castle { fill: #ece4d4; } .bm-p.t-castle-roof { fill: #6f5bf6; }
.bm .t-dark { fill: #3a3a3a; } .bm .t-white { fill: #fff; } .bm .t-win { fill: #cfe8f7; } .bm .t-glass { fill: #bfdcef; } .bm .t-door { fill: #8a5532; }
.bm-p.t-church { fill: #f1e3c8; } .bm-p.t-spire { fill: #3f8b4c; }
.bm-deco-cross, .bm-deco-hands, .bm-deco-env, .bm-deco-cart, .bm-deco-stripes, .bm-deco-lane { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bm-deco-cross { stroke: #f7c64b; stroke-width: 2.5; }
.bm-deco-hands { stroke: #141414; stroke-width: 1.6; }
.bm-p.t-hall { fill: #f2c7a5; } .bm-p.t-roof { fill: #a83232; } .bm-p.t-flag { fill: #e9584c; }
.bm-p.t-hotel { fill: #8fb8de; }
.bm-sign { font: 900 8px var(--font); fill: #fff; pointer-events: none; letter-spacing: .5px; }
.bm-sign.dark { fill: #2a7a3b; font-size: 10px; }
.bm-p.t-station { fill: #d9a26b; } .bm-p.t-station-roof { fill: #6e4327; }
.bm-p.t-bakery { fill: #f7e3b5; } .bm-p.t-bread { fill: #c98b4f; }
.bm-p.t-white-b { fill: #fff; stroke: rgba(0,0,0,.1); stroke-width: 1; } .bm-p.t-cross { fill: #3f9b57; }
.bm-p.t-post { fill: #f7c64b; } .bm-deco-env { stroke: #c9930f; stroke-width: 1.5; }
.bm-p.t-market { fill: #e9584c; } .bm-deco-cart { stroke: #fff; stroke-width: 2; }
.bm-p.t-bank { fill: #d8d4ca; } .bm-p.t-bank-top { fill: #b8b2a6; } .bm-p.t-coin { fill: #f7c64b; } .bm .t-col { fill: #fff; }
.bm .t-plate { fill: #fff; stroke: #c9c7bf; stroke-width: 1.5; } .bm-p.t-awning { fill: #e9584c; } .bm-deco-stripes { stroke: #fff; stroke-width: 3; }
.bm .t-walk { fill: #d8d4ca; }
.bm-l.t-pole { stroke: #8a8a8a; stroke-width: 3; } .bm-p.t-stop { fill: #f7c64b; } .bm-p.t-light { fill: #2a2a2a; }
.bm .t-red { fill: #e9584c; } .bm .t-yellow { fill: #f7c64b; } .bm .t-green { fill: #62b56b; }
.bm-p.t-road { fill: #4a4a4a; } .bm-deco-lane { stroke: #fff; stroke-width: 2; } .bm .t-zebra { fill: #fff; }
.bm-p.t-bus { fill: #3b82f6; }
.bm-l.t-wheel { stroke: #f7c64b; stroke-width: 2.5; } .bm-l.t-frame { stroke: #f7c64b; stroke-width: 2.5; }
.bm-p.t-person { fill: #f28a4a; } .bm-l.t-person-l { stroke: #f28a4a; stroke-width: 3.2; }
.bm-p.t-car { fill: #e9584c; }
.bm-p.t-park { fill: #9ccf6a; }
.bm-deco-trees { fill: #8a5532; pointer-events: none; } .bm .t-tree { fill: #3f8b4c; } .bm .t-bench { fill: #8a5532; }
.bm-p.t-kiosk { fill: #6f5bf6; }
.bm-l.t-slide { stroke: #f28a4a; stroke-width: 5; } .bm-l.t-ladder, .bm-l.t-swing { stroke: #6f5bf6; stroke-width: 2.5; }
.bm-l.t-rope { stroke: #4a4a4a; stroke-width: 1; } .bm-p.t-seat { fill: #e9584c; }
/* clothes map */
.bm .skin { fill: #f5c9a3; } .bm-deco-limb { fill: none; stroke: #f5c9a3; stroke-width: 20; stroke-linecap: round; pointer-events: none; }
.bm .c-hair { fill: #6e4327; }
.bm-p.c-pack { fill: #f28a4a; } .bm-l.c-strap { stroke: #c4682c; stroke-width: 6; }
.bm-p.c-jeans { fill: #3b5ba5; }
.bm-p.c-shoe { fill: #3a3a3a; }
.bm-p.c-shirt { fill: #fff; } .bm-deco-buttons { fill: none; stroke: #9a9a9a; stroke-width: 3.5; stroke-linecap: round; pointer-events: none; }
.bm-p.c-jacket { fill: #4f9e5a; } .bm-l.c-sleeve { stroke: #4f9e5a; stroke-width: 23; }
.bm-p.c-hat { fill: #6e4327; } .bm .c-band { fill: #3a3a3a; }
.bm-l.c-glasses { stroke: #2a2a2a; stroke-width: 2.6; }
.bm-p.c-boot { fill: #8a5532; }
.bm-p.c-skirt { fill: #6f5bf6; }
.bm-p.c-pulli { fill: #e9584c; } .bm-l.c-pulli-sleeve { stroke: #e9584c; stroke-width: 23; }
.bm-deco-rib, .bm-deco-neck { fill: none; stroke: #c23b32; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.bm-p.c-tag { fill: #fff; stroke: rgba(0,0,0,.15); stroke-width: 1; } .bm-sign.tag { font-size: 9px; fill: #141414; }
.bm-p.c-bag { fill: #f7c64b; } .bm-l.c-handle { stroke: #c9930f; stroke-width: 3; } .bm .c-clasp { fill: #c9930f; }
.bm-l.c-chain { stroke: #f7c64b; stroke-width: 2; } .bm-p.c-gem { fill: #f7c64b; }
.bm-p.c-dress { fill: #f4a6c1; } .bm-l.c-strap2 { stroke: #f4a6c1; stroke-width: 4; }
.bm-deco-dots { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; pointer-events: none; }
.bm-p.c-straw { fill: #f2d38a; } .bm .c-ribbon { fill: #e9584c; }
.bm-l.c-sandal { stroke: #a0673f; stroke-width: 3.5; } .bm-l.c-bracelet { stroke: #f7c64b; stroke-width: 4; }
/* home maps */
.bm .h-sky { fill: #cfe8f7; } .bm .h-chimney { fill: #8a3a32; } .bm-p.h-roof { fill: #c0453c; }
.bm-p.h-glass { fill: #cfe8f7; stroke: #fff; stroke-width: 2; } .bm-deco-frame { fill: none; stroke: #fff; stroke-width: 2.5; pointer-events: none; }
.bm-p.h-bed-room { fill: #f6d9e3; } .bm-p.h-hall { fill: #efe6d6; } .bm-p.h-bath { fill: #d9eef7; }
.bm-p.h-living-room { fill: #f6e7c9; } .bm-p.h-kitchen-room { fill: #e3f0d6; }
.bm-deco-room { pointer-events: none; }
.bm-deco-room .win { fill: #cfe8f7; } .bm-deco-room .bedf { fill: #a0673f; } .bm-deco-room .pillow { fill: #fff; } .bm-deco-room .blanket { fill: #6f5bf6; }
.bm-deco-room .tub { fill: #fff; stroke: rgba(0,0,0,.12); } .bm-deco-room .tap { fill: none; stroke: #9a9a9a; stroke-width: 2.5; }
.bm-deco-room .sofa { fill: #e9584c; } .bm-deco-room .stove { fill: #fff; stroke: rgba(0,0,0,.15); } .bm-deco-room .fridge { fill: #fff; stroke: rgba(0,0,0,.15); }
.bm-deco-room .box { fill: #c98b4f; } .bm-deco-room .washer { fill: #fff; stroke: rgba(0,0,0,.15); } .bm-deco-room .washer-door { fill: #6cb6ec; }
.bm-p.h-heater { fill: #c4c2ba; } .bm-deco-ridges { fill: none; stroke: #9a9890; stroke-width: 1.5; pointer-events: none; }
.bm-p.h-stairs { fill: #a0673f; }
.bm-p.h-lampshade { fill: #f28a4a; } .bm-p.h-glow { fill: rgba(247, 198, 75, .55); }
.bm-p.h-door { fill: #8a5532; }
.bm-deco-walls { fill: none; stroke: #fff; stroke-width: 3; pointer-events: none; }
.bm-p.h-balcony { fill: #fff; } .bm-l.h-rail { stroke: #fff; stroke-width: 2.5; }
.bm-p.h-garden { fill: #9ccf6a; } .bm-p.h-tree { fill: #4f9e5a; } .bm-p.h-trunk { fill: #8a5532; } .bm-p.h-flower { fill: #e9584c; } .bm-p.h-flower2 { fill: #f7c64b; }
.bm .h-soil { fill: #8a5532; } .bm-p.h-cellar { fill: #d8d4ca; }
.bm-p.h-wall { fill: #f4e6d0; } .bm-p.h-floor { fill: #c98b4f; } .bm-deco-planks { fill: none; stroke: #a8703a; stroke-width: 1.5; pointer-events: none; }
.bm-p.h-frame { fill: #fff; }
.bm-p.h-key { fill: #f7c64b; } .bm-l.h-keybit { stroke: #f7c64b; stroke-width: 2.4; }
.bm-p.h-picframe { fill: #a0673f; } .bm-p.h-pic { fill: #cfe8f7; } .bm .h-mount { fill: #62b56b; } .bm .h-sun { fill: #f7c64b; }
.bm-p.h-mirrorframe { fill: #f7c64b; } .bm-p.h-mirror { fill: #dff0fa; } .bm-deco-shine { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.bm-p.h-shelf { fill: #a0673f; } .bm .h-board { fill: #6e4327; }
.bm .h-book-r { fill: #e9584c; } .bm .h-book-y { fill: #f7c64b; } .bm .h-book-b { fill: #6cb6ec; } .bm .h-book-g { fill: #62b56b; }
.bm .h-plant { fill: #f28a4a; } .bm .h-leaves { fill: #3f9b57; }
.bm-l.h-pole { stroke: #6a6a6a; stroke-width: 3; } .bm-p.h-lampbase { fill: #6a6a6a; } .bm-p.h-shade { fill: #f7c64b; }
.bm-p.h-socket { fill: #fff; stroke: rgba(0,0,0,.18); stroke-width: 1; } .bm-deco-holes { fill: none; stroke: #6a6a6a; stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.bm-p.h-sofa { fill: #6f5bf6; } .bm-p.h-sofa2 { fill: #5a47d8; } .bm-deco-legs { fill: none; stroke: #3a3a3a; stroke-width: 4; pointer-events: none; }
.bm-p.h-cushion { fill: #f7c64b; } .bm-p.h-cushion2 { fill: #e9584c; }
.bm-p.h-blanket { fill: #62b56b; } .bm-deco-stripe2 { fill: none; stroke: #fff; stroke-width: 2.5; pointer-events: none; }
.bm-p.h-rug { fill: #e9584c; } .bm-p.h-rug2 { fill: #f28a4a; }
.bm-p.h-table { fill: #6e4327; } .bm-l.h-tableleg { stroke: #6e4327; stroke-width: 4; } .bm .h-cup { fill: #fff; }
.bm-p.h-chair { fill: #f28a4a; } .bm-l.h-chairleg { stroke: #c4682c; stroke-width: 4; }
.bm-p.h-vac { fill: #e9584c; } .bm-l.h-hose { stroke: #3a3a3a; stroke-width: 3.5; } .bm-l.h-handle { stroke: #3a3a3a; stroke-width: 4; }
/* transport maps */
.bm .r-ground { fill: #cfe3b0; }
.bm-p.r-road { fill: #4a4a4a; } .bm-p.r-cross { fill: #5c5c5c; } .bm-deco-edge { fill: none; stroke: #f7c64b; stroke-width: 2; pointer-events: none; }
.bm-p.r-sign { fill: #2b5fb8; } .bm-sign.big { font-size: 15px; }
.bm-p.r-car-r, .bm .r-car-r { fill: #e9584c; } .bm-p.r-car-b, .bm .r-car-b { fill: #3b82f6; } .bm-p.r-car-w { fill: #fff; } .bm-p.r-car-g, .bm .r-car-g { fill: #62b56b; }
.bm-p.r-car-y, .bm .r-car-y { fill: #f7c64b; } .bm-p.r-car-o { fill: #f28a4a; } .bm .r-glass { fill: #cfe8f7; }
.bm-p.r-lot { fill: #c4c2ba; } .bm-deco-bays { fill: none; stroke: #fff; stroke-width: 2; pointer-events: none; } .bm-p.r-psign { fill: #2b5fb8; }
.bm-p.r-canopy { fill: #e9584c; } .bm-p.r-pump { fill: #3a3a3a; } .bm-deco-drop { fill: #e9584c; pointer-events: none; }
.bm-deco-rails { fill: none; stroke: #9a9a9a; stroke-width: 2; pointer-events: none; }
.bm-p.r-bus { fill: #3b82f6; } .bm-deco-busroof { fill: none; stroke: #cfe8f7; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.bm-p.r-shelter { fill: #cfe8f7; stroke: #9a9a9a; stroke-width: 1; }
.bm-p.r-bang { fill: #f7c64b; }
.bm-p.r-head { fill: #6e4327; }
.bm-p.r-tram { fill: #f7c64b; } .bm .r-tramstripe { fill: #3b82f6; }
.bm-p.r-dirt { fill: #d9b88a; } .bm .r-barrier { fill: #e9584c; } .bm-deco-barstripe { fill: none; stroke: #fff; stroke-width: 2.5; pointer-events: none; } .bm .r-cone { fill: #f28a4a; }
.bm-p.r-digger { fill: #f7c64b; } .bm-l.r-arm { stroke: #f7c64b; stroke-width: 5; }
.bm .r-park { fill: #9ccf6a; } .bm-deco-path { fill: none; stroke: #e8dcc0; stroke-width: 10; pointer-events: none; }
.bm-p.r-wheel { fill: #3a3a3a; } .bm-l.r-frame { stroke: #6f5bf6; stroke-width: 2.5; } .bm-p.r-rider { fill: #f28a4a; }
.bm-p.r-terminal { fill: #fff; stroke: rgba(0,0,0,.12); stroke-width: 1; } .bm-p.r-tower { fill: #fff; stroke: rgba(0,0,0,.12); stroke-width: 1; } .bm-p.r-cab { fill: #6f5bf6; } .bm .r-towerglass { fill: #cfe8f7; }
.bm-p.r-plane { fill: #fff; stroke: rgba(0,0,0,.12); stroke-width: 1; } .bm-deco-portholes { fill: none; stroke: #6cb6ec; stroke-width: 3.5; stroke-linecap: round; pointer-events: none; }
.bm .r-canopy2 { fill: #8a8a8a; } .bm-deco-pillar { fill: none; stroke: #8a8a8a; stroke-width: 5; pointer-events: none; }
.bm-p.r-gleis { fill: #2b5fb8; }
.bm-p.r-board { fill: #1d1d1d; } .bm-deco-boardtext { fill: none; stroke: #f7c64b; stroke-width: 2.5; pointer-events: none; }
.bm-deco-clock { fill: none; stroke: #141414; stroke-width: 2; stroke-linecap: round; pointer-events: none; } .bm-deco-second { fill: none; stroke: #e9584c; stroke-width: 1.4; pointer-events: none; }
.bm-p.r-train { fill: #e9584c; } .bm .r-trainwin, .bm-p.r-trainwin { fill: #cfe8f7; } .bm .r-door { fill: #c23b32; }
.bm-deco-sleepers { fill: none; stroke: #8a5532; stroke-width: 4; pointer-events: none; } .bm-deco-track { fill: none; stroke: #6a6a6a; stroke-width: 2; pointer-events: none; }
.bm .r-platform { fill: #d8d4ca; }
.bm-l.r-person-l { stroke: #f28a4a; stroke-width: 3.5; }
.bm-p.r-case { fill: #6f5bf6; } .bm-l.r-handle { stroke: #3a3a3a; stroke-width: 3; }
.bm-p.r-machine { fill: #e9584c; } .bm .r-screen { fill: #cfe8f7; } .bm-p.r-ticket { fill: #fff; }
/* weather maps */
.bm-p.w-spring { fill: #dcefd2; } .bm-p.w-summer { fill: #fde7a8; } .bm-p.w-autumn { fill: #f3d6b4; } .bm-p.w-winter { fill: #e3eef8; }
.bm .w-g1 { fill: #9ccf6a; } .bm .w-g2 { fill: #8cc45a; } .bm .w-g3 { fill: #c99a5b; } .bm .w-g4 { fill: #fff; }
.bm .w-trunk { fill: #8a5532; } .bm .w-crown1 { fill: #7cc576; } .bm .w-crown2 { fill: #4f9e5a; } .bm .w-crown3 { fill: #f28a4a; }
.bm .w-blossom { fill: #f4a6c1; } .bm .w-flower { fill: #e9584c; } .bm .w-flowermid { fill: #f7c64b; } .bm .w-leaf { fill: #e9584c; }
.bm-p.w-cloud { fill: #fff; } .bm-p.w-graycloud { fill: #9aa3ad; }
.bm-p.w-sun { fill: #f7c64b; } .bm-l.w-rays { stroke: #f7c64b; stroke-width: 3.5; }
.bm-p.w-thermo { fill: #fff; stroke: rgba(0,0,0,.18); stroke-width: 1; } .bm-p.w-hot { fill: #e9584c; } .bm-p.w-cold { fill: #3b82f6; }
.bm-l.w-rain { stroke: #3b82f6; stroke-width: 2.5; } .bm-l.w-wind { stroke: #fff; stroke-width: 3.5; }
.bm-p.w-snow { fill: #fff; } .bm-l.w-flake { stroke: #6cb6ec; stroke-width: 2; } .bm-deco-branches { fill: none; stroke: #8a5532; stroke-width: 4; stroke-linecap: round; pointer-events: none; }
.bm .w-snowman { fill: #fff; stroke: rgba(0,0,0,.12); stroke-width: 1; } .bm .w-carrot { fill: #f28a4a; }
.bm-p.w-sky { fill: #cfe8f7; } .bm-p.w-mountain { fill: #9fb4c8; } .bm-p.w-cap { fill: #fff; } .bm-l.w-flake2 { stroke: #fff; stroke-width: 2; }
.bm-p.w-meadow { fill: #b4dd70; } .bm .w-meadow2 { fill: #86b864; }
.bm-l.w-trunk2 { stroke: #8a5532; stroke-width: 7; } .bm-p.w-bentcrown { fill: #4f9e5a; }
.bm-deco-house { pointer-events: none; } .bm-deco-house .wall { fill: #f4e6d0; } .bm-deco-house .roof { fill: #c0453c; } .bm-deco-house .door { fill: #8a5532; }
.bm-p.w-display { fill: #1d1d1d; } .bm-sign.deg { font-size: 9.5px; fill: #f7c64b; }
.bm-p.w-puddle { fill: #6cb6ec; } .bm-p.w-umbrella { fill: #e9584c; } .bm-l.w-stick { stroke: #3a3a3a; stroke-width: 2.5; }

/* ---------- article tab: der / die / das ---------- */
.g-arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.g-art-tab { --c: var(--line); display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 4px; border-radius: 18px; background: var(--card); font-size: 22px; font-weight: 900; line-height: 1.1; transition: transform .08s; }
.g-art-tab small { font-size: 11px; font-weight: 700; color: var(--muted); }
.g-art-tab.g-der { color: var(--der-t); } .g-art-tab.g-die { color: var(--die-t); } .g-art-tab.g-das { color: var(--das-t); }
.g-art-tab.on.g-der { --c: var(--der); } .g-art-tab.on.g-die { --c: var(--die); } .g-art-tab.on.g-das { --c: var(--das); }
.g-art-tab.on { background: var(--c); color: var(--on); }
.g-art-tab.on small { color: inherit; opacity: .8; }
.g-art-tab:active { transform: scale(.96); }
.g-art-panel { background: var(--c); color: var(--on); border-radius: 26px; padding: 16px; }
.gap-head { display: flex; align-items: center; gap: 14px; }
.gap-big { font-size: 40px; font-weight: 900; line-height: 1; }
.gap-head b { display: block; font-size: 18px; }
.gap-head small { font-size: 13px; font-weight: 700; opacity: .8; }
.gap-sum { margin: 12px 0 14px; font-weight: 600; line-height: 1.45; }
.g-art-panel > .btn { width: 100%; }
.gap-rules { margin-top: 14px; }
.gap-rules .rule { color: var(--ink); }
.gap-h { margin: 18px 0 8px; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.gap-h span { font-size: 12px; font-weight: 700; opacity: .75; }
.gap-words { display: flex; flex-wrap: wrap; gap: 6px; }
.gap-word { background: rgba(255,255,255,.92); color: #141414; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 700; }
.gap-word b { opacity: .55; font-weight: 800; }
.gap-word:active { transform: scale(.95); }
.gap-sum b { white-space: nowrap; }

/* ---------- friends (Profile) ---------- */
.friends-card h3 { align-items: center; }
.fr-note { line-height: 1.45; margin-bottom: 12px; }
.fr-note b { color: var(--ink); }
.link.inline { display: inline; padding: 0; margin: 0; font-size: inherit; color: var(--primary); text-decoration: underline; }
.fr-handle { display: flex; gap: 8px; }
.fr-handle input { flex: 1; padding: 12px 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--bg); font-weight: 600; outline: none; }
.fr-av { --c: var(--violet); width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--c); color: var(--on); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.fr-av.big { width: 60px; height: 60px; font-size: 26px; }
.fr-req { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.fr-req:last-child { border-bottom: 0; }
.fr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.fr-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-who small { color: var(--muted); font-size: 13px; font-weight: 600; }
.fr-who small svg { color: var(--flame); vertical-align: -2px; }
.fr-h { margin: 14px 0 8px; font-size: 15px; }
.fr-board { display: flex; flex-direction: column; gap: 6px; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--bg); width: 100%; }
.fr-row.you { background: color-mix(in srgb, var(--primary) 16%, var(--bg)); }
.fr-rank { width: 20px; font-weight: 900; color: var(--muted); text-align: center; }
.fr-xp { font-weight: 900; font-size: 18px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.fr-xp small { font-size: 11px; color: var(--muted); }
.fr-empty { color: var(--muted); font-weight: 600; line-height: 1.45; }
.fr-out { margin-top: 10px; }
.fr-find .search { background: var(--card); }
.fr-results { min-height: 80px; }
.fr-card { padding-top: 8px; }
.fr-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fr-top h2 { font-size: 24px; }
.fr-lessons { margin-top: 10px; }
.fr-card .stat-grid .sg { background: var(--card); }
.fr-remove { display: block; margin: 12px auto 0; }

/* ---------- buddy: menu showcase + wardrobe ---------- */
.buddy { display: block; overflow: visible; }
.buddy-hero { position: relative; width: 100%; margin: 12px 0 6px; padding: 14px 14px 12px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, #8b7bff 0%, var(--violet) 48%, #4b39c8 100%); color: #fff; }
.buddy-hero::after { content: ''; position: absolute; left: 50%; bottom: 46px; translate: -50% 0; width: 70%; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); }
.bh-name { position: relative; z-index: 1; font-size: 26px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; text-shadow: 0 3px 0 rgba(0,0,0,.25); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-buddy { position: relative; z-index: 1; width: 150px; height: auto; margin-top: 4px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.buddy-hero:active .bh-buddy { transform: scale(.97); }
.bh-bar { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.bh-edit { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; }
.coin-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.28); color: #fff; border-radius: 99px; padding: 5px 12px 5px 7px; font-weight: 900; font-size: 15px; }
.coin-pill svg { font-size: 20px; }
.coin-pill.big { font-size: 18px; position: absolute; top: 12px; right: 12px; }
.wb-stage { position: relative; margin: 10px 0 8px; border-radius: 26px; padding: 18px 0 10px; display: flex; justify-content: center; background: radial-gradient(circle at 50% 62%, #8b7bff 0%, var(--violet) 52%, #4b39c8 100%); }
.wb-buddy { width: 160px; height: auto; }
.wb-note { text-align: center; margin-bottom: 12px; }
.wb-note b { color: var(--ink); }
.wb-slots button { padding: 7px 6px; }
.wb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.wb-item { position: relative; background: var(--card); border: 2px solid transparent; border-radius: 20px; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.wb-item.on { border-color: var(--primary); }
.wb-item.locked { opacity: .55; }
.wb-mini { width: 74%; height: auto; background: #9ccbea; border-radius: 14px; padding: 4px; }
.wb-item b { font-size: 12.5px; margin-top: 4px; line-height: 1.15; text-align: center; }
.wb-item small { font-size: 11px; color: var(--muted); font-weight: 600; }
.wb-price { margin-top: 4px; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; gap: 3px; color: var(--ink2); }
.wb-item.on .wb-price { color: var(--primary); }
.wb-buy { align-items: center; text-align: center; }
.wb-buy-preview { width: 150px; margin: 0 auto; padding: 14px 10px 6px; border-radius: 26px; background: radial-gradient(circle at 50% 62%, #8b7bff 0%, var(--violet) 52%, #4b39c8 100%); }
.wb-buy-preview .buddy { width: 100%; }
.wb-buy .btn { width: 100%; }
.fr-av .buddy { width: 100%; height: 100%; }
.fr-av:has(.buddy) { background: #9ccbea; overflow: hidden; }
.fr-showcase { margin: 4px -18px 14px; padding: 18px 0 8px; display: flex; justify-content: center; background: radial-gradient(circle at 50% 62%, #8b7bff 0%, var(--violet) 52%, #4b39c8 100%); }
.fr-buddy { width: 130px; height: auto; }
.end-coins { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: color-mix(in srgb, var(--yellow) 22%, var(--card)); color: var(--ink2); font-weight: 700; }
.end-coins svg { font-size: 20px; } .end-coins b { color: var(--ink); }
.buddy-hero::after { bottom: 52px; }
.set-note { line-height: 1.45; margin: 4px 0 12px; } .acct-who.big { padding-top: 8px; } .menu-row small .sync-line { display: inline; }
.bh-level { position: relative; z-index: 1; background: var(--c); color: var(--on); border-radius: 99px; padding: 4px 12px; font-size: 13px; font-weight: 900; letter-spacing: .3px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.bh-level + .bh-name { margin-top: 6px; line-height: 1.05; }
.buddy-hero::after { bottom: 66px; }
.buddy-hero::after { bottom: 50px; height: 22px; }

/* buddy: Marlon's mascot image with clothes stacked on top (same 480×652 canvas) */
.buddy { position: relative; display: block; flex: none; }
.buddy-in { position: relative; display: block; width: 100%; aspect-ratio: 480 / 652; }
.buddy-in img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-select: none; user-select: none; }
.buddy-head { aspect-ratio: 1; overflow: hidden; }
.buddy-head .buddy-in { width: 120%; margin: -27.5% 0 0 -10%; }

/* ---------- color themes won from packs (data-skin; data-theme is set to the skin's own light or dark) ---------- */
.buddy-hero, .wb-stage, .wb-buy-preview, .fr-showcase { background: var(--hero, radial-gradient(circle at 50% 62%, #8b7bff 0%, var(--violet) 52%, #4b39c8 100%)); }
:root[data-skin] { --primary: var(--sk); --act: var(--sk); --nav-on: var(--sk); --primary-l: color-mix(in srgb, var(--sk) 18%, var(--card));
  --bg2: color-mix(in srgb, var(--bg) 86%, var(--sk)); --line: color-mix(in srgb, var(--bg) 82%, var(--sk)); --line2: color-mix(in srgb, var(--bg) 66%, var(--sk));
  --hero: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--sk) 70%, #fff) 0%, var(--sk) 52%, color-mix(in srgb, var(--sk) 82%, #000) 100%); }
:root[data-skin="minze"] { --sk: #2f9e6e; --bg: #e3f2ea; --card: #fbfffd; --nav: #fbfffd; --ink: #16291f; --ink2: #47604f; --muted: #7d978a; --act-on: #fff; --nav-on-ink: #fff; }
:root[data-skin="pfirsich"] { --sk: #ec8448; --bg: #fbe8d9; --card: #fffaf5; --nav: #fffaf5; --ink: #33231a; --ink2: #6b5243; --muted: #a8897a; --act-on: #fff; --nav-on-ink: #fff; }
:root[data-skin="rosa"] { --sk: #f06e93; --bg: #fce8ee; --card: #fff7f9; --nav: #fff7f9; --ink: #3a2a30; --ink2: #6d5560; --muted: #ad909b; --act-on: #fff; --nav-on-ink: #fff; }
:root[data-skin="lavendel"] { --sk: #7d66f0; --bg: #ece8fb; --card: #fbfaff; --nav: #fbfaff; --ink: #221c3a; --ink2: #554d70; --muted: #918aab; --act-on: #fff; --nav-on-ink: #fff; }
:root[data-skin="gold"] { --sk: #c98f0a; --bg: #f6ebcb; --card: #fffaf0; --nav: #fffaf0; --ink: #2e2410; --ink2: #66563a; --muted: #a39271; --act-on: #fff; --nav-on-ink: #fff;
  --hero: radial-gradient(circle at 50% 40%, #ffe9a3 0%, #f2bf3a 45%, #b07a08 100%); }
:root[data-skin="ozean"] { --sk: #4fc3e8; --bg: #0f2233; --card: #17304a; --nav: #0a1825; --ink: #e8f3fb; --ink2: #b5cde0; --muted: #7f9bb3; --act-on: #0f2233; --nav-on-ink: #0f2233; }
:root[data-skin="wald"] { --sk: #8fd18a; --bg: #13221a; --card: #1c3324; --nav: #0c1711; --ink: #eaf4ec; --ink2: #b9d2bf; --muted: #7f9c88; --act-on: #13221a; --nav-on-ink: #13221a; }
:root[data-skin="galaxie"] { --sk: #c58cff; --bg: #16102c; --card: #221a42; --nav: #0e0a1e; --ink: #f1ecff; --ink2: #cbbfee; --muted: #8f84b3; --act-on: #16102c; --nav-on-ink: #16102c;
  --hero: radial-gradient(circle at 30% 30%, #ff9ad5 0%, #8a5cff 40%, #241656 100%); }

/* ---------- rarity ---------- */
.rar { display: inline-block; border-radius: 99px; padding: 2px 8px; font-size: 10.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; background: var(--rc); color: #fff; }
.wb-item.prize { border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.wb-item.prize.on { border-color: var(--primary); }
.wb-item .rar { position: absolute; top: 4px; left: 4px; z-index: 1; font-size: 9px; padding: 1px 6px; }
.wb-item.notyet { opacity: .5; }
.wb-item.notyet .wb-mini { filter: grayscale(1) brightness(.85); }
.skin-mini { width: 74%; aspect-ratio: 480 / 652; border-radius: 14px; padding: 8% 10%; display: flex; flex-direction: column; gap: 7%; background: var(--sb); }
.skin-mini i { display: block; border-radius: 6px; background: var(--sc); flex: 1; }
.skin-mini i:first-child { background: var(--sa); flex: 1.4; }
.skin-mini i:last-child { flex: .5; width: 60%; align-self: center; border-radius: 99px; background: var(--sa); }

/* ---------- pack shop ---------- */
.shop-intro { text-align: center; margin: 4px 0 14px; line-height: 1.45; }
.pack { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; background: var(--card); border-radius: 24px; padding: 14px; margin-bottom: 10px; }
.pack-box { --c: var(--pc); width: 92px; aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; background: var(--pc); box-shadow: inset 0 -6px 0 rgba(0,0,0,.14); }
.pack-box svg { width: 64px; height: 64px; }
.pack h3 { font-size: 18px; } .pack h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.odds { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; background: var(--line); }
.odds i { display: block; height: 100%; background: var(--rc); }
.odds-text { font-size: 11.5px; color: var(--muted); font-weight: 700; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.odds-text b { color: var(--rc); }
.pack .btn { margin-top: 10px; width: 100%; }
.shop-note { font-size: 12.5px; text-align: center; margin: 10px 4px 0; line-height: 1.45; }
.shop-prizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.shop-prizes .wb-item { padding: 4px 2px 6px; }
.shop-prizes .wb-item b { font-size: 11px; }
.menu-row .mr-icon.packs { background: var(--yellow); color: #141414; }

/* ---------- opening a pack ---------- */
.po { text-align: center; padding-top: 8px; }
.po h2 { margin-bottom: 4px; }
.po-box { width: 150px; aspect-ratio: 1; margin: 26px auto 18px; border-radius: 30px; display: grid; place-items: center; background: var(--pc); box-shadow: inset 0 -10px 0 rgba(0,0,0,.14); cursor: pointer; animation: po-wobble 1.1s ease-in-out infinite; }
.po-box svg { width: 100px; height: 100px; }
.po-box.burst { animation: po-burst .45s ease-in forwards; }
@keyframes po-wobble { 0%, 100% { rotate: 0deg; } 20% { rotate: -6deg; } 40% { rotate: 6deg; } 60% { rotate: -3deg; } 80% { rotate: 3deg; } }
@keyframes po-burst { 60% { scale: 1.25; } 100% { scale: 0; opacity: 0; } }
.po-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 16px; perspective: 800px; }
.po-card { position: relative; aspect-ratio: 3 / 4.4; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.4,.5,1); cursor: pointer; }
.po-card.open { transform: rotateY(180deg); }
.po-card > div { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.po-back { background: var(--pc); box-shadow: inset 0 -5px 0 rgba(0,0,0,.14); font-size: 34px; font-weight: 900; color: rgba(255,255,255,.9); }
.po-front { transform: rotateY(180deg); background: var(--card); border: 3px solid var(--rc); box-shadow: 0 0 0 0 var(--rc); }
.po-card.open.epic .po-front, .po-card.open.legendary .po-front { animation: po-glow 1.4s ease-in-out infinite; }
@keyframes po-glow { 50% { box-shadow: 0 0 22px 2px var(--rc); } }
.po-front .buddy, .po-front .skin-mini { width: 70%; }
.po-front .skin-mini { width: 62%; }
.po-front b { font-size: 12px; line-height: 1.15; }
.po-front small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.po-front .rar { font-size: 9px; padding: 1px 6px; }
.po-front .po-dup { font-size: 10.5px; color: var(--gold-d); font-weight: 900; }
.seg.small.wrap { flex-wrap: wrap; } .seg.small.wrap button { flex: 1 0 auto; } .shop-go { margin-top: 14px; }
.pack-ready { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 6px; }
.pack-ready .pack-box { position: relative; flex: none; width: 96px; animation: po-wobble 1.6s ease-in-out infinite; }
.pack-ready .pack-box b { position: absolute; bottom: -6px; left: 50%; translate: -50% 0; background: var(--act); color: var(--act-on); border-radius: 99px; padding: 2px 10px; font-size: 12px; }

/* ---------- menu hero: course level in the corner, XP bar, then LV + name. Drawn like the mascot: flat, white, thin black lines ---------- */
.bh-cefr { position: absolute; z-index: 2; top: 17.5px; left: 20px; height: 19px; display: flex; align-items: center; color: #fff; font-size: 18px; font-weight: 900; line-height: 1; } /* same line as the level bar */
.bh-xp { position: relative; z-index: 1; width: 56%; margin-top: 6px; }
.bh-track { position: relative; display: block; width: 100%; height: 14px; border-radius: 99px; background: #fff; border: 2.5px solid #1f1f1f; overflow: hidden; }
.bh-track i { position: absolute; inset: 0 auto 0 0; min-width: 8px; background: #f7c64b; border-right: 2.5px solid #1f1f1f; border-radius: 0 99px 99px 0; }
.bh-id { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 10px; }
.bh-lv { flex: none; display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 10px 2px; border-radius: 99px; background: #fff; color: #1f1f1f; border: 2.5px solid #1f1f1f; font-size: 18px; font-weight: 900; line-height: 1.15; }
.bh-lv small { font-size: 11px; font-weight: 900; color: #6b6b6b; }
.buddy-hero .bh-name { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: .3px; color: #fff; text-shadow: none; }

/* ---------- visitor cards ---------- */
.vc-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wb-stage { overflow: hidden; }
.wb-stage > .buddy, .wb-stage > .coin-pill { position: relative; z-index: 1; }
.wb-stage > .coin-pill.big { position: absolute; }
.vc-light .bh-cefr, .vc-light .bh-name, .vc-light .bh-edit { color: #1f1f1f; }
.vc-light .coin-pill { background: rgba(255,255,255,.6); color: #1f1f1f; }
.card-mini { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid #1f1f1f; background: var(--violet); }
.card-mini svg { display: block; width: 100%; height: 100%; }
.card-mini.wb-mini { width: 84%; height: auto; padding: 0; margin-top: 10px; }
.card-std { background: radial-gradient(circle at 50% 62%, #8b7bff 0%, var(--violet) 52%, #4b39c8 100%); }
.po-front .card-mini { width: 84%; }
.fr-vc { margin: 6px 0 4px; cursor: default; }
.fr-sub { text-align: center; margin-bottom: 12px; font-size: 14px; }
.wb-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-radius: 22px; } .wb-slots button { border-radius: 99px; }
.wb-slots button { min-width: 0; padding: 7px 4px; }

/* ---------- the visitor card: landscape, buddy on the left, level bar and LV + name on the right ---------- */
.buddy-hero.vc { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; aspect-ratio: 1.62; padding: 16px 16px 0; margin: 12px 0 8px; text-align: left; }
.buddy-hero.vc::after { left: 21%; bottom: 8px; width: 34%; height: 16px; }
.vc .bh-cefr { top: 16px; left: 16px; } /* level with the bar on the right */
.vc-buddy { position: relative; z-index: 1; grid-column: 1; align-self: end; display: flex; justify-content: center; padding-top: 26px; }
.vc .bh-buddy { width: 100%; max-width: 120px; margin: 0; }
.vc-info { position: relative; z-index: 1; grid-column: 2; align-self: start; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vc .bh-xp { width: 100%; margin: 0; }
.vc .bh-id { margin: 0; flex-wrap: wrap; gap: 6px 8px; }
.vc .bh-name { font-size: 24px; max-width: 100%; }
.vc-foot { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.vc-foot .coin-pill { background: var(--card); color: var(--ink); }
.vc-edit { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; color: var(--ink2); padding: 6px 4px; }
.fr-vc { margin: 6px 0 10px; }
.buddy-hero.vc { grid-template-columns: 38% 1fr; }
.buddy-hero.vc::after { left: 19%; }
.vc .bh-cefr { top: 13.5px; }
.vc .bh-id { flex-wrap: nowrap; gap: 7px; }
.vc .bh-lv { font-size: 16px; padding: 1px 8px 2px; }
.vc .bh-name { font-size: 21px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* visitor card: level bar and LV + name across the top, buddy standing in the middle, no platform */
.buddy-hero.vc { display: flex; flex-direction: column; align-items: center; padding: 16px 16px 0; }
.buddy-hero.vc::after { display: none; }
.vc-info { order: 0; align-self: stretch; align-items: center; gap: 8px; }
.vc .bh-xp { width: 56%; }
.vc-buddy { order: 1; flex: 1; min-height: 0; align-self: center; align-items: flex-end; padding-top: 4px; }
.vc .bh-buddy { width: auto; height: 100%; max-width: none; aspect-ratio: 480 / 652; }
.vc .bh-buddy .buddy-in { height: 100%; width: auto; }
.bh-buddy, .vc .bh-buddy { filter: none; }
/* Delete account: small and quiet, it's there but we don't push it */
:root { --faint: #cfcbc0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --faint: #2b2b2b; } }
:root[data-theme="dark"] { --faint: #2b2b2b; }
.btn.del-acct { color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px 10px; }
.dr-body > .dr-btns:last-child { padding-bottom: 18px; }

/* ---------- das Rathaus: the town square ---------- */
.hall { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-t); }
.hall-head { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; }
.hall-head h2 { font-size: 20px; text-align: center; }
.hall-title { text-align: center; min-width: 0; }
.hall-title h2 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-count { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.hall-code { min-width: 44px; padding: 6px 10px; border-radius: 99px; background: var(--card); border: 2px solid var(--line2); font-weight: 900; letter-spacing: 1.5px; font-size: 14px; }
.hall-lobby { flex: 1; overflow-y: auto; padding: 4px 16px calc(24px + var(--safe-b)); max-width: 620px; width: 100%; margin: 0 auto; }
.hall-hero { border-radius: 24px; overflow: hidden; border: 2.5px solid #1f1f1f; aspect-ratio: 1000 / 520; }
.hall-hero .hall-bg { width: 100%; height: 250%; display: block; }
.hall-intro { text-align: center; margin: 14px 4px 16px; line-height: 1.45; color: var(--ink2); }
.hall-note { text-align: center; margin: 10px 0 14px; line-height: 1.45; }
.hall-door { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--card); text-align: left; margin-bottom: 14px; }
.hall-door > b { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: var(--on); font-size: 18px; font-weight: 900; }
.hall-door span { flex: 1; display: flex; flex-direction: column; }
.hall-door small { color: var(--muted); font-weight: 700; font-size: 13px; }
.hall-private { background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hall-private h4 { font-size: 17px; }
.hall-join { display: flex; gap: 8px; }
.hall-join input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 99px; border: 2px solid var(--line2); background: var(--bg); text-transform: uppercase; letter-spacing: 3px; font-weight: 900; font-size: 16px; text-align: center; }
.hall-stage { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.hall-world { position: relative; border-radius: 22px; overflow: hidden; border: 2.5px solid #1f1f1f; touch-action: manipulation; cursor: pointer; }
.hall-world .hall-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hall-people { position: absolute; inset: 0; }
.hp { position: absolute; width: 9%; transform: translate(-50%, -100%); transition-property: left, top; transition-timing-function: linear; display: flex; flex-direction: column; align-items: center; }
.hp-buddy { width: 100%; }
.hp.walking .hp-buddy { animation: hp-bob .32s ease-in-out infinite; }
@keyframes hp-bob { 50% { transform: translateY(-6%); } }
.hp-tag { white-space: nowrap; font-size: 10px; font-weight: 900; color: #1f1f1f; background: #fff; border: 1.5px solid #1f1f1f; border-radius: 99px; padding: 0 6px; margin-bottom: 2px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.hp-tag small { font-size: 8px; color: #6b6b6b; margin-right: 1px; }
.hp.me .hp-tag { background: #f7c64b; }
.hp-bubble { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; width: max-content; max-width: 150px; padding: 5px 9px; border-radius: 14px; background: #fff; color: #1f1f1f; border: 2px solid #1f1f1f; font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; animation: pop .2s ease-out; transition: opacity .4s; z-index: 2; }
.hp-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; translate: -50% 0; width: 10px; height: 10px; background: #fff; border-right: 2px solid #1f1f1f; border-bottom: 2px solid #1f1f1f; rotate: 45deg; }
.hp-bubble.out { opacity: 0; }
@keyframes pop { from { scale: .6; opacity: 0; } }
.hall-bar { padding: 10px 16px calc(12px + var(--safe-b)); max-width: 620px; width: 100%; margin: 0 auto; }
.hall-picker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 55%; overflow-y: auto; background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.18); padding: 14px 14px calc(14px + var(--safe-b)); }
.hp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 620px; margin: 0 auto; }
.hp-list button { background: var(--card); border-radius: 16px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.hp-list b { font-size: 14px; } .hp-list small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.hall-profile .buddy-hero { margin-top: 26px; }
.mr-icon.hall-ic { background: var(--sky); color: #141414; }
.hall-world { isolation: isolate; } .hall-picker { z-index: 5; }
.hp { width: 11%; } .hall-stage { align-items: center; }
.hall-picker { max-height: 45%; }
/* town hall: voice and safety */
.hall-bar { display: flex; align-items: center; gap: 10px; }
.hall-bar .btn.big { flex: 1; }
.hall-round { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--card); color: var(--muted); border: 2px solid var(--line2); }
.hall-round.on { background: var(--act); color: var(--act-on); border-color: transparent; }
.hall-round[data-h="mic"].on { background: #3f9b57; color: #fff; }
.hp-mic { display: inline-flex; font-style: normal; font-size: 9px; vertical-align: -1px; margin-right: 2px; }
.hp.talking .hp-tag { box-shadow: 0 0 0 2.5px #3f9b57; }
.hp.talking .hp-mic { color: #3f9b57; }
.hall-acts { display: flex; gap: 8px; }
.hall-acts .btn { flex: 1; }
.hall-report { display: flex; flex-direction: column; gap: 10px; }
.hall-reasons { display: flex; flex-direction: column; gap: 6px; }
.hall-reasons label, .hall-alsoblock { display: flex; align-items: center; gap: 10px; background: var(--card); padding: 11px 12px; border-radius: 14px; font-weight: 700; }
.hall-alsoblock { background: transparent; padding: 4px 2px; }
.hall-report textarea { border: 2px solid var(--line2); background: var(--card); border-radius: 14px; padding: 10px 12px; resize: none; }
/* level colors (A1 … C2); color themes may change them */
:root { --lv-a1: var(--red); --lv-a2: var(--yellow); --lv-b1: var(--lime); --lv-b2: var(--coral); --lv-c1: var(--slab); --lv-c2: var(--sky); }
:root[data-skin="rosa"] { --lv-a1: #ec6390; --lv-a2: #ec6390; --lv-b1: #ec6390; --lv-b2: #ec6390; --lv-c1: #ec6390; --lv-c2: #ec6390; }
/* Rosa: no yellow anywhere (only the coins stay gold) */
:root[data-skin="rosa"] { --yellow: #f7a8c4; --gold: #ec6390; --gold-d: #c94a75; }
:root[data-skin="rosa"] .wn.done .wn-tile, :root[data-skin="rosa"] .wn.trophy-n.won .wn-tile, :root[data-skin="rosa"] .story-best.gold { color: #fff; }
:root[data-skin="rosa"] .bh-track i { background: #ec6390; }
/* share the visitor card */
.vc-share { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--act); color: var(--act-on); font-weight: 800; font-size: 14px; }
.vc-share svg { font-size: 16px; }
.share-card { display: flex; flex-direction: column; gap: 12px; }
.share-card h2 { text-align: center; }
.share-prev { min-height: 120px; display: grid; place-items: center; }
.share-prev img { width: 100%; border-radius: 18px; display: block; }
.share-btns { display: flex; flex-direction: column; gap: 8px; }
.share-links { display: flex; gap: 8px; } .share-links .btn { flex: 1; padding: 11px 6px; font-size: 14px; }
.share-links a { text-decoration: none; }
/* Rosa: violet and orange turn pink too (der/die/das keep their own colors, they teach the article) */
:root[data-skin="rosa"] { --violet: #ec6390; --blue: #ec6390; --orange: #f5a3bf; --flame: #f5a3bf; --der: #6f5bf6; }
:root[data-skin="rosa"] .ms-bar i { background: #fff; }
:root[data-skin="rosa"] .dots.s4 i:nth-child(-n+4), :root[data-skin="rosa"] .dots.s5 i { background: #c94a75; }
/* share: brand logos */
.share-links { justify-content: center; gap: 14px; }
.soc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: #fff; flex: none; }
.soc svg { width: 26px; height: 26px; }
.soc:active { transform: scale(.94); }
/* a bigger buddy on the visitor card, still standing in the same spot */
.vc .bh-buddy { transform: scale(1.28); transform-origin: 50% 90%; }
/* wardrobe: Outfit · Card · Colors, then the outfit's parts */
.wb-groups button { padding: 9px 6px; }
.wb-slots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; grid-template-columns: none; border-radius: 0; }
.wb-slots::-webkit-scrollbar { display: none; }
.wb-slots button { flex: 1 0 auto; min-width: 0; padding: 7px 12px; border-radius: 99px; background: transparent; border: 2px solid var(--line2); color: var(--ink2); font-weight: 800; font-size: 13.5px; }
.wb-slots button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cant { display: inline-flex; align-items: center; gap: 6px; margin: 14px auto 0; } .ex .cant { display: flex; }
/* the standard visitor card takes the color of the level, text turns dark on light levels (A2, B1, C2) */
.buddy-hero.vc-std, .wb-stage.vc-std { background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--c) 72%, #fff) 0%, var(--c) 52%, color-mix(in srgb, var(--c) 82%, #000) 100%); }
.vc-std .bh-cefr, .vc-std .bh-name { color: var(--on); }

/* ---------- daily reward ---------- */
.mr-icon.daily-ic { position: relative; background: var(--coral); color: #fff; }
.mr-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #e9584c; border: 2px solid var(--bg); }
.daily { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.daily-gift { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 40px; animation: po-wobble 1.6s ease-in-out infinite; }
.dr-week { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0; }
.dr-day { position: relative; background: var(--card); border: 2px solid transparent; border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.dr-day small { color: var(--muted); font-weight: 800; font-size: 11px; }
.dr-day svg { font-size: 26px; }
.dr-day b { font-size: 15px; }
.dr-day.big { grid-column: span 2; }
.dr-pack svg { width: 34px; height: 34px; }
.dr-day.now { border-color: var(--act); background: color-mix(in srgb, var(--act) 14%, var(--card)); animation: pop .4s ease-out; }
.dr-day.got { opacity: .55; }
.dr-day.later { opacity: .9; }
.dr-check { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: 11px; }
.dr-timer { font-size: 30px; font-weight: 900; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.daily .btn { width: 100%; }

/* ---------- classroom ---------- */
.hc-board { position: absolute; left: 15%; top: 5.2%; width: 70%; height: 18%; z-index: 2; color: #f3f1ea; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 10px; text-align: center; font-family: var(--font); overflow: hidden; }
.hc-board .hc-title { font-size: clamp(14px, 4.5vw, 24px); font-weight: 900; }
.hc-board span, .hc-board small { font-size: 12px; opacity: .85; font-weight: 700; }
.hc-q { font-size: clamp(12px, 3.6vw, 18px); line-height: 1.2; }
.hc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; width: 100%; }
.hc-opts span { display: flex; align-items: center; gap: 5px; font-size: clamp(10px, 2.8vw, 13px); font-weight: 700; opacity: 1; text-align: left; border-radius: 6px; padding: 1px 4px; }
.hc-opts i { font-style: normal; font-weight: 900; color: #f7c64b; }
.hc-opts em { margin-left: auto; font-style: normal; font-weight: 900; }
.hc-opts .right { background: rgba(126, 211, 135, .35); } .hc-opts .wrong { opacity: .5; } .hc-opts .mine { background: rgba(255,255,255,.18); }
.hc-desks { position: absolute; inset: 0; pointer-events: none; }
.hc-desk { position: absolute; width: 12%; height: 3.6%; transform: translate(-50%, -105%); background: #c08a52; border: 2px solid #1f1f1f; border-radius: 6px; }
.hc-desk::before, .hc-desk::after { content: ''; position: absolute; bottom: -60%; width: 2px; height: 60%; background: #1f1f1f; }
.hc-desk::before { left: 12%; } .hc-desk::after { right: 12%; }
.hc-desk.teach { width: 24%; height: 4.4%; background: #a8754a; }
.hall-world.classroom .hp { width: 10%; }
.hp-tag.teacher { background: #2d3550; color: #fff; }
.hp-tag.teacher small { color: #c9cde0; }
.hall-teach { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 16px 0; max-width: 620px; width: 100%; margin: 0 auto; }
.ht-count { font-weight: 800; color: var(--muted); font-size: 14px; }
.hq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 620px; margin: 0 auto; }
.hq-opts button { background: var(--card); border-radius: 16px; padding: 14px 12px; display: flex; gap: 8px; align-items: center; text-align: left; font-weight: 800; }
.hq-opts i { font-style: normal; width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--act); color: var(--act-on); font-weight: 900; }
.hq-result, .hq-end { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 0; }
.hq-result b, .hq-end > b { font-size: 22px; } .hq-result.ok b { color: var(--good); } .hq-result.no b { color: var(--bad); }
.hq-end ol { margin: 0; padding: 0 0 0 18px; text-align: left; } .hq-end li { display: flex; gap: 12px; justify-content: space-between; min-width: 200px; padding: 2px 0; }
.hp-list.one { grid-template-columns: 1fr; }

/* ---------- teacher dashboard ---------- */
.dash .hall-lobby { display: flex; flex-direction: column; gap: 10px; }
.dash-class { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 20px; padding: 14px; text-align: left; }
.dash-class .dc-name { flex: 1; display: flex; flex-direction: column; } .dash-class small, .dash-class .dc-hw { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.dash-class .dc-hw { max-width: 40%; text-align: right; }
.dash-class code { font-weight: 900; letter-spacing: 1px; color: var(--ink); }
.dash-empty { text-align: center; padding: 20px 0; }
.dash-new { display: flex; gap: 8px; } .dash-new input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 99px; border: 2px solid var(--line2); background: var(--card); }
.dash-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border-radius: 20px; padding: 14px 16px; }
.dash-code > div { display: flex; flex-direction: column; } .dash-code small { color: var(--muted); font-weight: 800; font-size: 12px; } .dash-code b { font-size: 28px; letter-spacing: 3px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dash-stats div { background: var(--card); border-radius: 16px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; } .dash-stats b { font-size: 20px; } .dash-stats span { font-size: 10.5px; color: var(--muted); font-weight: 700; line-height: 1.2; }
.dash-hw { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: 20px; padding: 14px; }
.dash-hw label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink2); }
.dash-hw select, .dash-hw input { padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line2); background: var(--bg); font-weight: 700; }
.dash-hw-row { display: flex; gap: 8px; } .dash-hw-row .grow { flex: 1; }
.dash-students { display: flex; flex-direction: column; gap: 6px; }
.ds-row { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 10px 12px; }
.ds-row .fr-av { width: 42px; height: 42px; flex: none; }
.ds-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ds-main small { color: var(--muted); font-size: 12px; font-weight: 700; }
.hw-bar { display: block; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; } .hw-bar i { display: block; height: 100%; background: var(--act); border-radius: 99px; } .hw-bar.full i { background: var(--good); }
.dash-del { margin-top: 10px; }
.dash-quiz { gap: 12px; } .qz-title { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line2); background: var(--card); font-weight: 900; font-size: 17px; }
.qz-q { background: var(--card); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.qz-head { display: flex; justify-content: space-between; align-items: center; }
.qz-q > input, .qz-opt input[type=text], .qz-opt input:not([type]) { padding: 9px 12px; border-radius: 12px; border: 2px solid var(--line2); background: var(--bg); }
.qz-opt { display: flex; align-items: center; gap: 8px; } .qz-opt input:not([type=radio]) { flex: 1; min-width: 0; } .qz-opt input[type=radio] { width: 20px; height: 20px; accent-color: var(--good); }
.mr-icon.dash-ic { background: #2d3550; color: #fff; }

/* ---------- students: homework and class ---------- */
.hw-banner { width: calc(100% - 32px); margin: 12px 16px 0; display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--act); border-radius: 20px; padding: 12px 14px; text-align: left; }
.hw-banner.done { border-color: var(--good); }
.hw-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--act); color: var(--act-on); font-size: 20px; }
.hw-banner.done .hw-ic { background: var(--good); color: #fff; }
.hw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .hw-text > span:not(.hw-bar) { color: var(--muted); font-size: 12.5px; font-weight: 700; } .hw-text em { font-size: 12.5px; color: var(--ink2); }
.class-card .cl-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .cl-row > div { flex: 1; display: flex; flex-direction: column; } .cl-row small { color: var(--muted); font-weight: 700; font-size: 12px; }
.cl-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: #141414; }
.cl-join { display: flex; gap: 8px; margin-top: 8px; } .cl-join input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 99px; border: 2px solid var(--line2); background: var(--card); text-transform: uppercase; letter-spacing: 3px; font-weight: 900; text-align: center; }
.acct-role { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.acct-role label { position: relative; cursor: pointer; } .acct-role input { position: absolute; opacity: 0; }
.acct-role span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line2); background: var(--card); }
.acct-role small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.acct-role input:checked + span { border-color: var(--act); background: color-mix(in srgb, var(--act) 12%, var(--card)); }
.rar.teach { background: #2d3550; }
.wb-item.teach { --rc: #2d3550; }
/* town hall: typed chat */
.hc-log { max-height: 130px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 0 auto 10px; max-width: 620px; padding: 2px 2px 6px; border-bottom: 2px solid var(--line); }
.hc-log p { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; } .hc-log b { color: var(--ink2); margin-right: 4px; } .hc-log p.me b { color: var(--act); }
.hc-chat { display: flex; gap: 8px; max-width: 620px; margin: 0 auto 12px; }
.hc-chat input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 99px; border: 2px solid var(--line2); background: var(--card); }
.hp-sub { max-width: 620px; margin: 0 auto 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.hp-bubble { max-width: 170px; }

/* ---------- routes: German · For nurses · St. Galler Dütsch · New in Switzerland ---------- */
:root { --lv-pf: #2f9e8f; --lv-sg: #00a65a; --lv-ch: var(--orange); } /* St. Galler Dütsch in the canton's green */
:root[data-skin="rosa"] { --lv-pf: #ec6390; --lv-sg: #ec6390; --lv-ch: #ec6390; }
.routes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px 2px; }
.routes::-webkit-scrollbar { display: none; }
.routes button { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 18px; background: var(--card); border: 2px solid transparent; text-align: left; }
.routes button.on { border-color: var(--act); }
.routes .rt-i { width: 36px; height: 36px; border-radius: 12px; font-size: 20px; }
.routes b { display: block; font-size: 13.5px; white-space: nowrap; } .routes small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.route-note { margin: 10px 16px 0; padding: 10px 12px; border-radius: 14px; background: var(--card); color: var(--ink2); font-size: 13px; line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
.route-note svg { flex: none; color: var(--gold); margin-top: 2px; }
.link-in { display: inline; color: var(--act); font-weight: 800; text-decoration: underline; padding: 0; }
:root { --lv-em: #3b82f6; }
:root[data-skin="rosa"] { --lv-em: #ec6390; }
/* C1 / Mastery: a color the white cap shows up on, in light and dark mode */
:root { --lv-c1: #3d4b80; }
.onboard { overscroll-behavior: contain; }
.ob-opt.rec { border: 2px solid var(--act); }
.ob-rec { font-style: normal; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; background: var(--act); color: var(--act-on); border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.rt-change { flex: none; display: flex; align-items: center; padding: 6px 14px; border-radius: 18px; border: 2px dashed var(--line2); background: transparent; text-align: left; }
.path-pick { display: flex; flex-direction: column; gap: 12px; } .path-pick h2 { text-align: center; }
.path-pick .ob-opt.on { border: 2px solid var(--act); }
/* welcome screen: the mascot on its violet tile, like the app icon */
.ob-mascot { width: 116px; height: 116px; margin: 0 auto; border-radius: 30px; background: var(--red); display: grid; place-items: center; overflow: hidden; }
.ob-mascot .buddy { width: 74px; margin-top: 4px; }

/* ---------- onboarding: the result ---------- */
.ob-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: ob-rise .6s .5s both cubic-bezier(.2, .8, .2, 1); }
@keyframes ob-rise { from { opacity: 0; transform: translateY(18px); } }
.ob-result > small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; }
.ob-route { width: 100%; display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.ob-route > span { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 10px 12px; text-align: left; animation: ob-rise .5s calc(.8s + var(--d)) both cubic-bezier(.2, .8, .2, 1); }
.ob-route i { flex: 1; font-style: normal; display: flex; flex-direction: column; gap: 1px; }
.ob-route b { font-size: 16px; }
.ob-route small { color: var(--muted); font-weight: 700; font-size: 12px; }
.ob-route .rt-i { width: 38px; height: 38px; border-radius: 12px; font-size: 21px; flex: none; }
.ob-plan { color: var(--ink2); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.ob-plan svg { color: var(--gold); }
.ob-result .btn { width: 100%; margin-top: 6px; }
.pp-region { margin-bottom: 4px; }
/* onboarding: back to the previous question */
.ob-titlebar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; }
.ob-titlebar h2 { margin: 0; }
.ob-back { width: 44px; height: 44px; color: var(--ink2); background: var(--card); font-size: 22px; }
.ob-back:active { background: var(--bg2); }
/* path choice: two groups */
.ob-gbox { --gc: #f7c64b; border: 2px solid var(--gc); border-radius: 24px; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.ob-gbox.ch { --gc: #d64541; }
.ob-group { margin: 0 4px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: var(--gc); }
.ob-gbox .ob-opt { border-color: transparent; background: var(--card); }

/* ---------- choosing a path: logos row and the roadmap ---------- */
.ob-mark { display: inline-flex; flex: none; will-change: transform; }
.ob-ed { font-style: normal; font-size: 10.5px; font-weight: 900; letter-spacing: .3px; color: #fff; background: #00a65a; border-radius: 99px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.ob-logos { display: flex; justify-content: center; gap: 10px; padding: 4px 0 2px; }
.ob-logo-b { position: relative; border-radius: 18px; padding: 3px; opacity: .45; transition: opacity .3s ease, transform .3s cubic-bezier(.22, .9, .24, 1); }
.ob-logo-b .ob-i { width: 48px; height: 48px; }
.ob-logo-b.on { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 3px var(--pc); }
.ob-logo-b:not(.on):active { transform: scale(.94); }
.ob-sel { text-align: center; display: flex; flex-direction: column; gap: 3px; animation: rm-in .45s cubic-bezier(.22, .9, .24, 1) .12s both; }
.ob-sel b { font-size: 20px; } .ob-sel small { color: var(--muted); font-weight: 700; font-size: 14px; }
.rm { position: relative; list-style: none; margin: 6px 0 4px; padding: 0; }
.rm::before { content: ''; position: absolute; left: 13px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--rm); transform-origin: top; transform: scaleY(0); animation: rm-line calc(var(--n) * 150ms + 150ms) cubic-bezier(.45, 0, .2, 1) .25s forwards; }
.rm li { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; opacity: 0; transform: translateY(10px); animation: rm-in .5s cubic-bezier(.22, .9, .24, 1) forwards; animation-delay: calc(.25s + var(--i) * 150ms); }
.rm li > i { position: relative; z-index: 1; flex: none; width: 29px; height: 29px; border-radius: 50%; background: var(--bg); border: 3px solid var(--rm); display: grid; place-items: center; font-size: 14px; color: #fff; transform: scale(.4); animation: rm-dot .5s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(.25s + var(--i) * 150ms); }
.rm li.end > i { background: var(--rm); }
.rm li span { display: flex; flex-direction: column; gap: 1px; }
.rm li b { font-size: 15.5px; } .rm li small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.ob-continue { animation: rm-in .5s cubic-bezier(.22, .9, .24, 1) both; animation-delay: calc(.35s + var(--n, 4) * 150ms); }
@keyframes rm-line { to { transform: scaleY(1); } }
@keyframes rm-in { to { opacity: 1; transform: none; } }
@keyframes rm-dot { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .rm::before, .rm li, .rm li > i, .ob-sel, .ob-continue { animation-duration: .01s !important; animation-delay: 0s !important; } }
.ob-sel, .ob-continue { opacity: 0; transform: translateY(10px); animation-fill-mode: forwards !important; }
/* the St. Gallen flag fills its tile */
.art-tile.flag { overflow: hidden; padding: 0; background: #00a65a; }
.art-tile.flag svg { width: 100%; height: 100%; display: block; }

/* ---------- Mastery certificate ---------- */
.cert-row { display: flex; align-items: center; gap: 14px; }
.cert-seal { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #f7c64b; color: #1f1f1f; font-size: 26px; box-shadow: inset 0 0 0 4px #6f5bf6; }
.cert-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cert-text small { color: var(--muted); font-weight: 700; font-size: 13px; }
.cert-card .btn { margin-top: 14px; width: 100%; }
.cert-view { display: flex; flex-direction: column; gap: 12px; }
.cert-view h2 { text-align: center; }
.cert-prev { min-height: 120px; display: grid; place-items: center; }
.cert-prev img { width: 100%; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.cert-name { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 13px; color: var(--ink2); }
.cert-name input { padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line2); background: var(--card); font-weight: 800; }
.cert-btns { display: flex; flex-direction: column; gap: 8px; }
.ob-group { display: flex; align-items: center; gap: 8px; }
.ob-flag { width: 24px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.ob-flag.sq { width: 17px; height: 17px; }

/* ---------- choosing a path: the cards fold into a slim icon rail, the roadmap sits beside it ---------- */
.ob-pick { --ease: cubic-bezier(.22, .9, .24, 1); display: flex; align-items: flex-start; }
.ob-paths { flex: none; width: 100%; display: flex; flex-direction: column; gap: 16px; transition: width .5s var(--ease), gap .5s var(--ease); }
.ob-pick .ob-gbox { transition: padding .5s var(--ease), border-color .3s ease, gap .5s var(--ease); }
.ob-pick .ob-group { white-space: nowrap; overflow: hidden; max-height: 24px; transition: max-height .4s var(--ease), opacity .2s ease, margin .4s var(--ease); }
.ob-pick .ob-opts { transition: gap .5s var(--ease); }
.ob-pick .ob-opt { overflow: hidden; outline: none; transition: height .5s var(--ease), padding .5s var(--ease), background-color .3s ease, box-shadow .3s ease; }
.ob-pick .ob-opt > span:nth-child(2) { min-width: 200px; transition: opacity .2s ease; }
.ob-pick .ob-mark { transition: opacity .3s ease, transform .3s var(--ease); }
/* folded: no group outlines or flags, just the icons */
.ob-pick.picked .ob-paths { width: 68px; gap: 20px; }
.ob-pick.picked .ob-gbox { padding: 0; border-color: transparent; gap: 0; }
.ob-pick.picked .ob-group { max-height: 0; opacity: 0; margin: 0; }
.ob-pick.picked .ob-opts { gap: 8px; }
.ob-pick.picked .ob-opt { padding: 6px; border-radius: 20px; background-color: transparent; }
.ob-pick.picked .ob-opt > span:nth-child(2) { opacity: 0; }
.ob-pick.picked .ob-opt:not(.sel) .ob-mark { opacity: .4; }
.ob-pick.picked .ob-opt:not(.sel):active .ob-mark { transform: scale(.92); }
.ob-pick.picked .ob-opt.sel { background-color: var(--card); box-shadow: inset 0 0 0 2.5px var(--pc); }
/* the selected path */
.ob-map { flex: 1; min-width: 0; padding-left: var(--map-pad, 20px); }
.ob-pick:not(.picked) .ob-map { display: none; }
.ob-map-in { display: flex; flex-direction: column; animation: map-in .45s var(--ease) .15s both; }
@keyframes map-in { from { opacity: 0; transform: translateX(16px); } }
.ob-eyebrow { font-size: 11.5px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; color: var(--pc); }
.ob-sel2 { margin: 4px 0 0; font-size: 22px; line-height: 1.15; font-weight: 900; }
.ob-sel2 .ob-ed { display: inline-block; margin: 8px 0 0; vertical-align: 0; }
.ob-sel2-sub { margin: 6px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; line-height: 1.4; }
.ob-map .rm { margin: 18px 0 0; }
.ob-map .rm::before { display: none; }
.ob-map .rm li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 14px; bottom: -14px; width: 3px; background: var(--rm); transform-origin: top; transform: scaleY(0); animation: rm-line .3s ease forwards; animation-delay: calc(.4s + var(--i) * 150ms); }
.ob-map .rm li { align-items: flex-start; gap: 14px; padding: 0 0 18px; }
.ob-map .rm li:last-child { padding-bottom: 0; }
.ob-map .rm li > i { width: 24px; height: 24px; border-width: 3px; font-size: 12px; margin-top: 1px; }
.ob-map .rm li span { gap: 2px; }
.ob-map .rm li b { font-size: 15px; line-height: 1.25; }
.ob-map .rm li small { font-size: 13px; line-height: 1.35; }
.ob-foot { margin-top: 28px; }
.ob-foot .ob-continue { width: 100%; }
@media (prefers-reduced-motion: reduce) { .ob-map .rm li::after { animation-duration: .01s !important; animation-delay: 0s !important; } .ob-paths, .ob-pick .ob-gbox, .ob-pick .ob-group, .ob-pick .ob-opts, .ob-pick .ob-opt, .ob-pick .ob-opt > span:nth-child(2), .ob-map-in { transition: none; animation: none; } }
/* phones: compact 40px icons so the roadmap can line up with the title */
.ob-pick .ob-i { transition: width .5s var(--ease), height .5s var(--ease), padding .5s var(--ease), border-radius .5s var(--ease); }
.ob-pick.picked.compact .ob-paths { width: 40px; gap: 18px; }
.ob-pick.picked.compact .ob-gbox { border-width: 0; }
.ob-pick.picked.compact .ob-opts { gap: 12px; }
.ob-pick.picked.compact .ob-opt { padding: 0; border-width: 0; border-radius: 12px; background-color: transparent; }
.ob-pick.picked.compact .ob-i { width: 40px; height: 40px; padding: 6px; border-radius: 12px; }
.ob-pick.picked.compact .ob-opt.sel { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--pc); }
/* welcome screen: the buddy waves hello (arm layer swings around the shoulder at 74.7% 69.3% of the canvas) */
.buddy-wave .wave-arm { transform-origin: 74.7% 69.3%; animation: buddy-wave 3.6s ease-in-out infinite; }
.buddy-wave .buddy-in { animation: buddy-bob 3.6s ease-in-out infinite; }
@keyframes buddy-wave {
  0%, 14% { transform: rotate(0deg); }
  26% { transform: rotate(-106deg); }
  34% { transform: rotate(-124deg); }
  42% { transform: rotate(-94deg); }
  50% { transform: rotate(-124deg); }
  58% { transform: rotate(-94deg); }
  66% { transform: rotate(-110deg); }
  80%, 100% { transform: rotate(0deg); }
}
@keyframes buddy-bob {
  0%, 14%, 80%, 100% { transform: translateY(0); }
  26% { transform: translateY(-3%); }
  46% { transform: translateY(-1.5%); }
  66% { transform: translateY(-3%); }
}
@media (prefers-reduced-motion: reduce) { .buddy-wave .wave-arm, .buddy-wave .buddy-in { animation: none; } }

/* ---------- der · den · dem: the case trainer (js/cases.js) ---------- */
:root { --c-nom: #3b82f6; --c-akk: #e9584c; --c-dat: #12a37f; --c-gen: #a855f7; }
.g-page { margin: 4px 0 14px; }
.g-page button { font-size: 15px; padding: 10px 14px; }
.c-nom { --cc: var(--c-nom); } .c-akk { --cc: var(--c-akk); } .c-dat { --cc: var(--c-dat); } .c-gen { --cc: var(--c-gen); }
.g-badges .c-b, .c-b { background: var(--cc); color: #fff; transform: none; padding: 8px 14px; border-radius: 99px; font-size: 20px; font-weight: 800; }
.c-chip { display: inline-block; background: var(--cc); color: #fff; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; vertical-align: 1px; }
.t-nom { color: var(--c-nom); } .t-akk { color: var(--c-akk); } .t-dat { color: var(--c-dat); } .t-gen { color: var(--c-gen); }
.c-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-topic { text-align: left; padding: 14px; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; gap: 3px; }
.c-topic b { font-size: 16px; } .c-topic small { color: var(--muted); font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.c-topic.main { grid-column: 1 / -1; background: var(--act); color: var(--act-on); }
.c-topic.main small { color: inherit; opacity: .8; }
.c-topic:active { transform: scale(.98); }
.c-card { background: var(--card); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; line-height: 1.45; }
.c-card p { margin: 0; }
.c-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.c-job { border: 2px solid var(--cc); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.c-job b { font-size: 16px; } .c-job small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.c-example { border-radius: 16px; padding: 12px; background: var(--bg); text-align: center; }
.c-example p { font-size: 18px; margin-bottom: 4px; } .c-example small { color: var(--muted); font-weight: 700; }
.c-table-wrap { overflow-x: auto; }
.c-table { width: 100%; border-collapse: collapse; text-align: center; font-weight: 700; }
.c-table th, .c-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.c-table thead th { font-size: 14px; } .c-table thead small { color: var(--muted); font-weight: 700; }
.c-table tbody th { text-align: left; }
.c-table td { font-size: 17px; } .c-table td.chg { color: var(--c-akk); }
.c-table tr:has(.c-dat) td.chg { color: var(--c-dat); } .c-table tr:has(.c-gen) td.chg { color: var(--c-gen); }
.c-table.small td { font-size: 15px; }
.c-note { background: var(--bg); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.c-steps .c-step { display: flex; gap: 12px; align-items: flex-start; }
.c-step > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--act); color: var(--act-on); display: grid; place-items: center; font-weight: 800; }
.c-step small { display: inline-block; margin-top: 6px; line-height: 1.9; color: var(--ink2); font-weight: 700; }
/* the drill */
.cg { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.cg-topic { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.cg-sent { font-size: 25px; font-weight: 800; line-height: 1.4; }
.cg-gap { display: inline-block; min-width: 70px; text-align: center; padding: 0 8px; border-bottom: 3px solid var(--line2); }
.cg-gap.ok, .cg-gap.bad { border-bottom-color: transparent; background: var(--cc); color: #fff; border-radius: 10px; }
.cg-gap.bad { box-shadow: 0 0 0 3px var(--gold); }
.cg-en { color: var(--muted); font-weight: 700; }
.cg-ask { font-size: 17px; } .cg-sub { color: var(--muted); font-weight: 700; font-size: 14px; display: block; margin-top: 4px; }
.cg-why { display: none; border-radius: 16px; padding: 12px 14px; background: var(--card); border-left: 6px solid var(--cc); font-weight: 600; line-height: 1.45; }
.cg-why.show { display: block; }
.cg-btns { display: grid; gap: 10px; width: 100%; }
.cg-btns.cases { grid-template-columns: 1fr 1fr; }
.cg-btns.arts { grid-template-columns: repeat(3, 1fr); }
.cg-btn { padding: 14px 6px; border-radius: 18px; background: var(--card); font-size: 20px; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid transparent; }
.cg-btns.cases .cg-btn { background: var(--cc); color: #fff; font-size: 17px; }
.cg-btns.cases .cg-btn small { font-size: 13px; opacity: .85; font-weight: 700; }
.cg-btn:active { transform: scale(.97); }
.cg-btn.right { outline: 4px solid var(--gold); outline-offset: 3px; }
.cg-btn.wrongpick { opacity: .35; }
.cg-btn:disabled { cursor: default; }
.guide-cases { margin: 4px 0 6px; }
/* schools & organizations: one plan for everyone */
.org-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: 20px; padding: 14px; margin: 14px 0; }
.org-i { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--violet); display: grid; place-items: center; padding: 8px; color: #fff; }
.org-i svg { width: 100%; height: 100%; }
.org-card b { font-size: 16px; }
.org-card p { margin: 4px 0 10px; color: var(--ink2); font-size: 14px; line-height: 1.4; }
.org-card .btn { display: inline-flex; text-decoration: none; font-size: 14px; }
/* v1: the path ends after A2 for now */
.next-levels { display: flex; gap: 12px; align-items: center; margin: 18px 6px 4px; padding: 14px 16px; border-radius: 20px; background: var(--card); }
.next-levels .nl-i { flex: none; width: 40px; height: 40px; } .next-levels .nl-i svg { width: 100%; height: 100%; }
.next-levels > div { display: flex; flex-direction: column; gap: 2px; }
.next-levels b { display: block; font-size: 16px; }
.next-levels span { color: var(--muted); font-weight: 700; font-size: 13.5px; line-height: 1.35; }
/* the Foundations check at the end of A2 */
.final-check { display: flex; gap: 12px; align-items: center; margin: 18px 6px 0; padding: 14px; border-radius: 22px; background: var(--card); border: 2px solid var(--lv-a2); }
.final-check.passed { border-color: var(--gold); }
.final-check .fc-i { flex: none; width: 46px; height: 46px; } .final-check .fc-i svg { width: 100%; height: 100%; }
.final-check > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.final-check small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 11.5px; }
.final-check b { font-size: 16px; } .final-check span { color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.35; }
.final-check .btn { flex: none; }
.case-q { font-size: 23px; font-weight: 800; line-height: 1.45; margin: 6px 0 4px; }
.ob-privacy { display: block; text-align: center; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* Settings → Theme: every color theme as a little preview */
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0 14px; border-bottom: 2px solid var(--line); }
.theme-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 18px; background: var(--card); border: 2px solid transparent; color: var(--ink2); }
.theme-pick button.on { border-color: var(--act); }
.theme-pick b { font-size: 13px; margin-top: 6px; }
.theme-pick small { font-size: 11px; color: var(--muted); font-weight: 700; }
.tp-mini { width: 58%; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- HochMund's own look (29 Nov 2026): no Duolingo-style banners or answer bands ---------- */
/* unit card: a quiet card with the unit's art on a color tile and a thin progress line */
.unit-banner {
  background: var(--card); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--c) 24%, var(--line));
  border-radius: 22px; padding: 12px 12px 12px 12px; gap: 14px; align-items: center;
}
.unit-art { width: 58px; height: 58px; flex: none; border-radius: 18px; background: var(--c); color: var(--on); display: grid; place-items: center; padding: 9px; box-sizing: border-box; }
.unit-art .art { width: 100%; height: 100%; }
.unit-text { display: flex; flex-direction: column; gap: 1px; }
.unit-banner small { color: color-mix(in srgb, var(--c) 70%, var(--ink)); opacity: 1; font-weight: 800; letter-spacing: .6px; font-size: 11px; }
.unit-banner h3 { font-size: 19px; color: var(--ink); }
.unit-sub { color: var(--muted); opacity: 1; font-size: 12.5px; font-weight: 700; }
.unit-prog { height: 5px; border-radius: 99px; background: var(--line); margin-top: 7px; overflow: hidden; }
.unit-prog i { display: block; height: 100%; background: var(--c); border-radius: 99px; transition: width .5s ease; }
.unit-banner.done .unit-prog i { background: var(--gold); }
.guide-btn {
  flex-direction: row; gap: 6px; align-self: flex-start; padding: 7px 12px; border-radius: 99px;
  border: 1.5px solid var(--line2); color: var(--ink2); font-size: 12.5px; font-weight: 800; background: transparent;
}
.guide-btn svg { font-size: 16px; color: var(--c); }
.guide-btn:active { background: var(--line); }

/* lesson progress: a slim bar in the app's own color */
.bar { height: 10px; }
.bar i { background: var(--act); }
.bar i::after { display: none; }

/* answer feedback: a floating card that rises above the button; the footer itself stays calm */
.l-foot.ok, .l-foot.bad { background: transparent; border-top-color: var(--line); }
.l-foot .fb {
  background: var(--card); border: 1.5px solid var(--tone); border-radius: 20px; padding: 12px 14px;
  align-items: center; gap: 12px; box-shadow: 0 10px 28px color-mix(in srgb, var(--tone) 18%, transparent);
}
.l-foot.ok { --tone: var(--good); --tone-d: var(--good-d); }
.l-foot.bad { --tone: var(--bad); --tone-d: var(--bad-d); }
.l-foot.ok .fb, .l-foot.bad .fb { animation: fb-rise .38s cubic-bezier(.2, 1.35, .4, 1); }
@keyframes fb-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.fb-icon { width: 36px; height: 36px; font-size: 19px; background: transparent !important; color: var(--tone); border: 2px solid var(--tone); }
.l-foot.ok .fb-icon, .l-foot.bad .fb-icon { animation: fb-mark .45s .08s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes fb-mark { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.fb-text b { font-size: 18px; color: var(--tone-d); }
.fb-text small { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.ok .fb-text, .bad .fb-text { color: var(--ink2); }
.l-foot.ok .go, .l-foot.bad .go { background: var(--act); color: var(--act-on); }

/* ---------- welcome: Hallo-Knall (30 Nov 2026) ---------- */
:root { --hm-red: #cd432d; --hm-ink: #1d1d1d; }
.ob.ob-hello { max-width: none; padding: 0; gap: 0; animation: none; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--hm-red); overflow: hidden; position: relative; }
.ob-hello { --bw: clamp(112px, 31vw, 170px); }
.hm-hero { position: relative; z-index: 1; flex: 1000 0 auto; min-height: calc(clamp(270px, 41vh, 470px) + var(--safe-t)); min-height: calc(clamp(270px, 41dvh, 470px) + var(--safe-t)); max-height: calc(620px + var(--safe-t)); padding-top: var(--safe-t); box-sizing: border-box; }
.hm-stage { position: absolute; inset: var(--safe-t) 0 0 0; }
.hm-cloud { position: absolute; inset: 8px 0 18px; margin: 0 auto; max-width: 720px; }
.hm-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hm-buddy { position: absolute; left: 50%; top: 50%; width: var(--bw); aspect-ratio: 671 / 698; transform: translate(-50%, -50%); padding: 0; background: none; border: 0; z-index: 2; -webkit-tap-highlight-color: transparent; }
.hm-buddy-in, .hm-buddy-breath { position: absolute; inset: 0; transform-origin: 50% 100%; }
.hm-body { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.hm-eye { position: absolute; width: 12.2%; height: 22%; top: 53.2%; transform: translate(-50%, -50%) translate(var(--lx, 0px), var(--ly, 0px)); transition: transform .16s cubic-bezier(.16, 1, .3, 1); }
.hm-eye.l { left: 33.5%; } .hm-eye.r { left: 67.5%; }
.hm-eye > * { position: absolute; inset: 0; }
.e-open { background: var(--hm-ink); border-radius: 50%; transform-origin: 50% 60%; }
.e-squint, .e-happy { width: 160%; height: auto; left: -30%; top: 15%; opacity: 0; overflow: visible; fill: none; stroke: var(--hm-ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.hm-buddy.f-shout .e-open, .hm-buddy.f-happy .e-open { opacity: 0; }
.hm-buddy.f-shout .e-squint, .hm-buddy.f-happy .e-happy { opacity: 1; }
.hm-mouth { position: absolute; left: 50%; top: 77%; width: 18%; height: 13%; opacity: 0; transform: translate(-50%, -50%) scaleY(0); background: var(--hm-ink); border-radius: 50% 50% 46% 46%; overflow: hidden; transition: transform .12s cubic-bezier(.3, 1.8, .5, 1); }
.hm-mouth i { position: absolute; left: 20%; right: 20%; bottom: -30%; height: 65%; border-radius: 50%; background: #e9584c; }
.hm-buddy.f-shout .hm-mouth { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
.hm-ray { position: absolute; width: 4px; height: 15px; border-radius: 2px; background: var(--hm-ink); }
.hm-tick { position: absolute; width: 3px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px var(--hm-ink); }
.hm-dood { position: absolute; width: 18px; height: 18px; }
.hm-dood svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* greeting chips: little speech bubbles */
.hm-chip { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r)); z-index: 1; }
.hm-chip-in, .hm-st-in { display: block; }
.hm-chip-face { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; border: 2px solid var(--hm-ink); font: 900 16px/1 var(--font); color: #141414; white-space: nowrap; position: relative; background: var(--f); backface-visibility: hidden; }
.hm-chip-face::after { content: ''; position: absolute; left: 22%; bottom: -6px; width: 9px; height: 9px; background: var(--f); border: solid var(--hm-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-chip.big .hm-chip-face { height: 40px; font-size: 19px; padding: 0 16px; }
.hm-chip-face.en { font-style: italic; font-weight: 800; }
.c-yellow { --f: #f7c64b; } .c-lime { --f: #c8da78; } .c-sky { --f: #9ccbea; } .c-orange { --f: #f28a4a; } .c-cream { --f: #faf7f2; }
.c-dark { --f: #1d1d1d; } .c-dark .hm-chip-face { color: #faf7f2; border-color: #faf7f2; } .c-dark .hm-chip-face::after { border-color: #faf7f2; }

/* stickers with their article */
.hm-st { position: absolute; left: var(--x); top: var(--y); width: 58px; transform: translate(-50%, -50%) rotate(var(--r)); padding: 0; background: none; border: 0; z-index: 1; -webkit-tap-highlight-color: transparent; }
.hm-st-face { display: block; position: relative; }
.hm-st img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.hm-tag { position: absolute; left: 50%; top: calc(100% - 8px); transform: translateX(-50%) rotate(calc(var(--r) * -.5)); display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 2px; border-radius: 99px; background: #faf7f2; border: 1.5px solid var(--hm-ink); font: 900 12px/1 var(--font); color: #141414; white-space: nowrap; }
.hm-tag i { font-style: normal; padding: 3px 6px; border-radius: 99px; display: inline-block; }
.a-der { background: #6f5bf6; color: #fff; } .a-die { background: #e9584c; color: #fff; } .a-das { background: #c8da78; color: #141414; }
.hm-hidden { display: none !important; }
.hm-ipad { display: none; }

/* the cream sheet with the bubble's tail */
.hm-bottom { position: relative; z-index: 2; flex: 1 0 auto; display: flex; flex-direction: column; }
.hm-ripple { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rp { position: absolute; inset: 0; display: block; opacity: 0; } .rp.y { background: #f7c64b; } .rp.s { background: #9ccbea; } .rp.l { background: #c8da78; }
.hm-sheet { position: relative; flex: 1; background: var(--bg); display: flex; flex-direction: column; border-radius: 30px 30px 0 0; }
.hm-tail { position: absolute; top: -1px; left: 50%; width: 46px; height: 23px; transform: translateX(-50%); }
.hm-col { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 30px 20px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; }
.hm-word { margin: 0; text-align: center; font: 900 48px/1 var(--font); letter-spacing: -1px; color: var(--ink); }
.hm-word b { display: inline-block; font-weight: 900; } .hm-word .m { color: var(--hm-red); }
.hm-lead { margin: 0; text-align: center; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--ink2); }
.hm-lead .w { display: inline-block; }
.hm-pill { position: relative; padding: 0 7px; color: #141414; isolation: isolate; }
.hm-pill i { position: absolute; inset: -1px 0; background: #f7c64b; border-radius: 9px; transform-origin: 0 50%; z-index: -1; }
.hm-pill > span { display: inline-block; position: relative; }
.hm-proof { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-proof li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; padding: 10px 12px; font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.hm-proof .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--hm-ink); display: grid; place-items: center; color: #141414; font-size: 16px; }
.hm-proof .dot svg { width: 1em; height: 1em; }
.hm-ctas { margin-top: 6px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 6px; }
.ob-hello .ob-go { height: 56px; font-size: 18px; font-weight: 900; }
.ob-hello .ob-signin { align-self: center; color: var(--ink); font-weight: 800; }
.ob-hello .ob-privacy { align-self: center; font-size: 13px; color: var(--muted); padding: 4px 6px; }

/* states */
.ob-hello.is-pre .hm-cloud, .ob-hello.is-pre .hm-bottom { visibility: hidden; }
.ob-hello.is-intro .hm-ctas > *, .ob-hello.is-intro .hm-cloud { pointer-events: none; }
.ob-hello.is-idle .hm-chip-in, .ob-hello.is-idle .hm-st-in { animation: hm-float calc(var(--fd, 4s) * 2) calc(var(--fdl, 0s) * -0.5) infinite ease-in-out; }
.ob-hello.is-idle .hm-buddy-breath { animation: hm-breath 2.6s infinite alternate cubic-bezier(.45, 0, .55, 1); }
@keyframes hm-float { 0%, 100% { transform: none; } 25% { transform: translateY(-3px) rotate(-1.5deg); } 75% { transform: translateY(3px) rotate(1.5deg); } }
@keyframes hm-breath { to { transform: scale(1.015, .985); } }

/* sizes */
@media (max-height: 700px) {
  .hm-hero { min-height: calc(250px + var(--safe-t)); }
  .hm-col { padding-top: 22px; gap: 10px; }
  .hm-word { font-size: 42px; } .hm-lead { font-size: 17px; }
  .hm-proof li { padding: 8px 10px; font-size: 13px; } .hm-proof .dot { width: 26px; height: 26px; font-size: 14px; }
  .hm-chip.sm-hide, .hm-st.sm-hide { display: none; }
}
@media (min-width: 700px) {
  .ob-hello { --bw: clamp(150px, 19vw, 200px); }
  .hm-hero { min-height: calc(clamp(360px, 45vh, 540px) + var(--safe-t)); min-height: calc(clamp(360px, 45dvh, 540px) + var(--safe-t)); max-height: none; }
  .hm-chip-face { height: 40px; font-size: 19px; padding: 0 16px; } .hm-chip.big .hm-chip-face { height: 46px; font-size: 22px; }
  .hm-st { width: 76px; } .hm-tag { height: 26px; font-size: 14px; }
  .hm-word { font-size: 64px; } .hm-lead { font-size: 22px; } .hm-col { padding-top: 40px; gap: 18px; }
  .hm-proof li { font-size: 15px; padding: 12px 14px; }
  .hm-chip.hm-ipad, .hm-st.hm-ipad { display: block; }
  .hm-st[style*="--x:13%"] { left: 9%; } .hm-st[style*="--x:87%"] { left: 91%; }
}
@media (orientation: landscape) and (max-height: 500px) { .hm-hero { min-height: calc(280px + var(--safe-t)); flex-grow: 0; } }

/* the boot cover: the native splash, continued until the intro takes over */
#hm-boot { display: none; }
html.hm-first #hm-boot { display: block; position: fixed; inset: 0; z-index: 200; background: #cd432d; pointer-events: none; }
#hm-boot img { position: absolute; left: 50%; top: 50%; width: calc(.201 * max(100vw, 100vh)); transform: translate(-50%, -50%); }

a.menu-row { color: inherit; text-decoration: none; }
