@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(/static/fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(/static/fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/fredoka-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fredoka"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/static/fonts/fredoka-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #fff7ec;
  --card: #ffffff;
  --ink: #3b2618;
  --muted: #8c735f;
  --line: #f0e2cf;
  --edge: #3b2618;          
  --orange: #ff8a1f;
  --orange-ink: #c9600a;    
  --orange-soft: #ffe9d4;
  --teal: #14a098;
  --teal-dark: #0e766f;
  --teal-soft: #d6f2ee;
  --green: #3daa5c;
  --green-dark: #2a7d42;
  --green-soft: #e0f4e3;
  --red: #ef5a5a;
  --red-dark: #c03d3d;
  --red-soft: #fde3e0;
  --gold: #f4b63f;
  --purple: #8a5cc8;
  --berry: #d9577e;
  --creek: #cdeee9;
  --creek-light: #e9f9f6;
  --pad-off: #e3ead8;
  --pad-off-edge: #c3d0b6;
  --turbo: #8a5cc8;
  --turbo-ink: #6b3fb3;
  --turbo-soft: #efe6fb;
  --turbo-creek: #e1d3f7;
  --turbo-creek-light: #f3ecfc;
  --turbo-leaf: #b393e6;
  --turbo-vein: #8a64cc;
  --turbo-off: #e8def6;
  --turbo-off-edge: #cdbbea;
  --gturbo: #e3a21a;
  --gturbo-ink: #9a6400;
  --gturbo-soft: #fdf0cf;
  --gturbo-creek: #f9e2a6;
  --gturbo-creek-light: #fff3d3;
  --gturbo-leaf: #f2c14e;
  --gturbo-vein: #c38d18;
  --gturbo-off: #f6ead0;
  --gturbo-off-edge: #e2cd9c;
  --shadow: 0 6px 18px rgba(59, 38, 24, .07);
  --radius: 20px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-capy: #ffa552;
    --brand-lee: #3fd1c4;
    --bg: #1c1511;
    --card: #271e18;
    --ink: #f7ecdf;
    --muted: #b8a391;
    --line: #3b2d23;
    --edge: #0d0805;
    --orange-ink: #ffa552;
    --orange-soft: #43281a;
    --teal-dark: #5fd3c9;
    --teal-soft: #123a37;
    --green-dark: #7fd896;   
    --green-soft: #173823;
    --red-dark: #ff9a8f;
    --red-soft: #45201d;
    --creek: #173f3b;
    --creek-light: #1f524d;
    --pad-off: #34402f;
    --pad-off-edge: #48573f;
    --turbo-ink: #c9adf5;
    --turbo-soft: #2b2040;
    --turbo-creek: #33264d;
    --turbo-creek-light: #45345f;
    --turbo-leaf: #9a74d6;
    --turbo-vein: #6e4bb0;
    --turbo-off: #383049;
    --turbo-off-edge: #4f4270;
    --gturbo-ink: #f4c25a;
    --gturbo-soft: #3a2c12;
    --gturbo-creek: #4a3a17;
    --gturbo-creek-light: #5e4a20;
    --gturbo-leaf: #d9a73a;
    --gturbo-vein: #a87a1c;
    --gturbo-off: #403520;
    --gturbo-off-edge: #5a4a2a;
    --shadow: 0 6px 18px rgba(0, 0, 0, .35);
    --icon-halo: var(--ink);  
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; touch-action: manipulation; }
.app { max-width: 720px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2.5px solid var(--edge); border-radius: 999px; padding: 12px 22px;
  font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2;
  background: var(--orange); color: #fff; cursor: pointer;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform .06s, box-shadow .06s, filter .1s;
  user-select: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: default; filter: none; }
.btn.block { width: 100%; }
.btn.teal { background: var(--teal); }
.btn.red { background: var(--red); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn:is(.teal, .red, .ghost):disabled { background: var(--line); color: var(--muted); border-color: var(--line); }
.btn.small { padding: 7px 14px; font-size: 15px; border-width: 2px; box-shadow: 0 3px 0 var(--edge); }
.iconbtn { background: none; border: 0; font-size: 26px; cursor: pointer; padding: 6px; color: var(--muted); line-height: 1; }

.top {
  position: sticky; top: var(--probe-h, 0px); z-index: 5; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 0 10px; border-bottom: 2px solid var(--line); margin-bottom: 16px;
}
.brand { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--orange-ink); }
.top__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top__left .subjbtn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-soft); overflow: hidden; }
.chips { display: flex; gap: 8px; align-items: center; font-weight: 900; flex-wrap: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; }
.ic-fach { flex: none; vertical-align: -0.3em; } 
.chip.streak { color: var(--orange); }
button.chip { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.streakhead { gap: 2px; }
.streakbig { font-size: 52px; font-weight: 900; color: var(--orange); line-height: 1.1; }
.streakbig.off { filter: grayscale(1); color: var(--muted); }
.card.saved { display: flex; gap: 12px; align-items: center; border-color: var(--purple); }
.pslots { display: flex; justify-content: center; gap: 14px; }
.pslot { width: 74px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--bg); }
.pslot { position: relative; }
.pslot.busy .ic { opacity: .55; }
.pslot .ic.hollow { filter: grayscale(1); opacity: .3; }
.pslot.busy span { position: absolute; bottom: 4px; font-size: 11px; font-weight: 900; color: var(--purple); }
.pslot.on { animation: pillowbob 3s ease-in-out infinite; }
.pslot.on:nth-child(2) { animation-delay: -1s; }
.pslot.on:nth-child(3) { animation-delay: -2s; }
@keyframes pillowbob { 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pslot.on { animation: none; } }
.chip.streak.off { color: var(--muted); filter: grayscale(1); }
.chip.taler { color: var(--gold); }
.top .chips { flex-wrap: nowrap; margin-top: 0; flex: none; }
@media (max-width: 360px) {
  .top .chips { gap: 6px; }
  .top .chip { gap: 2px; }
  .top__left { gap: 6px; }
}
.chip.melon { color: var(--berry); }
.chip.melon.off { color: var(--muted); }
.chip.melon.off .ic, .melonslots span:not(.on) .ic, .pmelon.off .ic { filter: grayscale(1); opacity: .35; }
.melonbig { font-family: var(--display); font-size: 64px; font-weight: 600; color: var(--berry); text-align: center; line-height: 1.1; }
.melonhead { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; }
.melonhead > :first-child { flex: none; }
.melonslots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 2px; justify-items: center; flex: 1; }
.melonslots span { display: grid; place-items: center; }
.melonslots span.on { animation: melonin .3s backwards; }
.melonslots span:nth-child(5n+2) { animation-delay: .03s; }
.melonslots span:nth-child(5n+3) { animation-delay: .06s; }
.melonslots span:nth-child(5n+4) { animation-delay: .09s; }
.melonslots span:nth-child(5n) { animation-delay: .12s; }
@keyframes melonin { from { transform: scale(.4); opacity: 0; } }
.melonnote { margin: 8px 0; }
.melonbtns { gap: 8px; }
.melonbtns .btn .ic { vertical-align: -0.25em; }
.melonok { background: var(--green-soft); color: var(--green-dark); font-weight: 800; border-radius: 14px; padding: 10px 12px; margin: 6px 0; }
.melonhint { display: flex; align-items: center; gap: 8px; background: var(--red-soft); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 15px; }
.melonhint .ic { flex: none; }
.pmelon { display: inline-flex; align-items: center; gap: 2px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--berry); flex: none; }
.pmelon.off { color: var(--muted); }
.pmelon.lose { animation: melonlose .5s; }
@keyframes melonlose { 30% { transform: translateY(-4px) rotate(-10deg) scale(1.15); } 60% { transform: rotate(8deg); } }
.melonwon { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; border-color: var(--berry); }
.melonwon > span { display: flex; flex-direction: column; }
.talerwon { display: flex; align-items: center; gap: 10px; text-align: left; border-color: var(--gold); }
.talerwon > span { display: flex; flex-direction: column; }
.nowrap { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .melonslots span.on, .pmelon.lose { animation: none; } }
.levelbar { display: grid; gap: 6px; text-align: center; }
.levelbar .tsbar { height: 12px; }
.levelbar .tsbar span { background: var(--gold); }
.avatar { font-size: 28px; cursor: pointer; background: none; border: 0; padding: 0; }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: 28px; margin: 8px 0 4px; }
h2 { font-size: 22px; margin: 26px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

.goal b, .lookhint__text b, .psection__name b, .ach__name, .profile, .card > b:first-child, .psheet__title { font-family: var(--display); font-weight: 600; }
.goal { display: flex; gap: 14px; align-items: center; }
.goal .emoji { font-size: 40px; }
.goal .info { flex: 1; }
.bar { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #ffb347, var(--orange)); border-radius: 99px; transition: width .4s; }
.bar.green > span { background: var(--green); }

.subject { display: flex; align-items: center; gap: 10px; }
.subject .tag { background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px; padding: 2px 12px; font-weight: 600; font-size: 15px; }
.subject { font-family: var(--display); }

.stars { display: inline-flex; gap: 2px; vertical-align: -.2em; white-space: nowrap; }
.orange-ico { display: block; width: 1.25em; height: 1.25em; }
.stars .off, .bigstars .off { opacity: .3; filter: grayscale(1); }

.u-orange { --u: var(--orange); --u-ink: var(--orange-ink); }
.u-teal { --u: var(--teal); --u-ink: var(--teal-dark); }
.u-berry { --u: var(--berry); --u-ink: var(--berry); }
.u-plum { --u: var(--purple); --u-ink: var(--purple); }
.btn.unit { background: var(--u); }

.subjbtn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 4px 12px 4px 6px; font-family: var(--display); font-weight: 600; font-size: 17px; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.subjbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.subjbtn__icon { display: flex; }
.subjbtn .caret { color: var(--muted); font-size: 13px; }

.ptabs { display: flex; gap: 4px; margin-top: 12px; border-bottom: 2px solid var(--line); }
.ptabs button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px 8px; margin-bottom: -2px;
  background: none; border: 0; border-bottom: 3px solid transparent; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.ptabs button .ic { display: block; }
.ptabs button > span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptabs small { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--line); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 18px; }
.ptabs button.on { color: var(--teal-dark); border-bottom-color: var(--teal); }
.ptabs button.on small { background: var(--teal); color: #fff; }
@media (max-width: 360px) { .ptabs button { font-size: 13px; } }
.pbanner { position: sticky; top: var(--top-h, 68px); z-index: 4; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: var(--u); color: #fff; border: 2.5px solid var(--edge); border-radius: 18px; padding: 8px 8px 8px 16px; box-shadow: 0 4px 0 var(--edge);
  font: inherit; transition: background-color .25s; }
.pbanner:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--edge); }
.pbanner__text { flex: 1; min-width: 0; display: grid; }
.pbanner__text small { font-family: var(--display); font-size: 13px; font-weight: 500; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbanner__text b { font-family: var(--display); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbanner__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .45); }
.pbanner__icon .ic { display: block; }
.pchapter, .unit { scroll-margin-top: calc(var(--top-h, 68px) + 76px); }
.pjump { position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 8; display: none; align-items: center; gap: 2px;
  padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); cursor: pointer;
  font: 900 22px var(--display); color: var(--teal-dark); }
.pjump.show { display: flex; animation: fadeIn .2s; }
.pjump.up .pjump__arrow { transform: rotate(180deg); }
.pjump__arrow { display: inline-block; }
.scaninvite, .scanhint, .pempty, .pschool { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.scaninvite__text, .pempty > div, .pschool > div { flex: 1; display: grid; gap: 4px; min-width: 0; }
.pschool b { font-family: var(--display); font-weight: 600; font-size: 20px; }
button.scaninvite { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.scaninvite:active { transform: translateY(2px); }
.scanhint .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.scaninvite__icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); }
.scaninvite__icon .ic { display: block; }
.pempty p { margin: 2px 0 6px; }
.chlist { display: grid; gap: 6px; margin-top: 10px; }
.chlist__grade { margin-top: 10px; font-family: var(--display); font-weight: 600; color: var(--muted); }
.chrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--bg); border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.chrow.on { border-color: var(--teal); background: var(--teal-soft); }
.chrow__num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 2px solid var(--line);
  font-family: var(--display); font-weight: 600; }
.chrow.full .chrow__num { background: var(--teal); border-color: var(--teal); color: #fff; }
.chrow__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.chrow__main b { font-family: var(--display); font-weight: 600; }
.chrow__main small { font-weight: 700; font-size: 13px; }
.pchapter { display: flex; align-items: center; gap: 10px; margin: 30px 2px -10px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
.pchapter::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }

.unit { margin-top: 26px; }
.unit.archived .unit__head { filter: saturate(.35); }
.psection-title { margin-top: 22px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); }
.psection { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; margin-top: 34px; cursor: pointer;
  border: 2px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 4px 0 var(--line); }
.psection:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.psection__name { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.psection__name b { font-size: 18px; }
.psection__chev { font-size: 20px; color: var(--muted); }
.unit__head { display: flex; gap: 10px; align-items: flex-start; background: var(--u); color: #fff; border-radius: 24px;
  padding: 14px 10px 14px 18px; border: 2.5px solid var(--edge); box-shadow: 0 4px 0 var(--edge); }
.unit__info { flex: 1; min-width: 0; }
.unit__kicker { font-family: var(--display); font-size: 15px; font-weight: 500; opacity: .95; }
.unit__title { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.unit__sub { font-size: 14px; font-weight: 700; opacity: .9; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.unit__menu { flex: none; border: 2px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .15); color: #fff; border-radius: 999px;
  width: 44px; height: 44px; font-size: 22px; font-weight: 900; line-height: 1; cursor: pointer; }
.unit__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill { border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 14px; font-family: var(--display); font-weight: 500; font-size: 16px;
  cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.pill[data-mode="due"] { color: var(--teal-dark); border-color: var(--teal-soft); }
.pill[data-mode="mistakes"] { color: var(--red); border-color: var(--red-soft); }

.ppath { position: relative; margin: 56px 0 24px; }
.creek { position: absolute; left: 50%; top: 0; overflow: visible; pointer-events: none; }
.creek__water { fill: none; stroke: var(--creek); stroke-width: 58; stroke-linecap: round; }
.creek__ripple { fill: none; stroke: var(--creek-light); stroke-width: 22; stroke-linecap: round; stroke-dasharray: 2 26; }
.unit.archived .creek { filter: saturate(.3); }
.unit__head, .unit__pills { position: relative; z-index: 1; }
.pnode { position: absolute; left: calc(50% + var(--x)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pnode .stars { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); font-size: 13px; }
.node { position: relative; width: 74px; height: 66px; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: none;
  font-size: 30px; line-height: 1; color: #fff; transition: transform .06s, filter .06s; filter: drop-shadow(0 4px 0 rgba(59, 38, 24, .3)); }
.node:active { transform: translateY(3px); filter: drop-shadow(0 1px 0 rgba(59, 38, 24, .3)); }
.pad { width: 100%; height: 100%; overflow: visible; }
.pad__leaf { fill: #6cc070; stroke: #3b2618; stroke-width: 3.2; stroke-linejoin: round; }
.pad__vein { fill: none; stroke: #4a9a52; stroke-width: 2.4; stroke-linecap: round; }
.node.todo .pad__leaf { fill: var(--pad-off); stroke: var(--pad-off-edge); }
.node.todo .pad__vein { stroke: var(--pad-off-edge); }
.node.todo { filter: none; }
.pad .bud { fill: #f6a5c0; }
.lotus.silver path { fill: #f4f7fa; }
.lotus.silver .mid { fill: #c9d4de; }
.lotus.gold path { fill: #ffd45a; }
.lotus.gold .mid { fill: #ffad2e; }
.node.gold .lotus { animation: lotusGlow 3.2s ease-in-out infinite; transform-origin: 50px 60px; }
@keyframes lotusGlow { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.08); } }
.node.review { width: 64px; height: 60px; border-radius: 50%; background: var(--teal); border: 2.5px solid var(--edge); filter: none; box-shadow: 0 5px 0 var(--edge); font-size: 28px; }
.node.review:active { box-shadow: 0 2px 0 var(--edge); }
.node.review.todo { background: var(--line); border-color: var(--pad-off-edge); box-shadow: none; filter: grayscale(1); opacity: .8; }
.node.story { width: 64px; height: 60px; border-radius: 50%; background: var(--berry); border: 2.5px solid var(--edge); filter: none; box-shadow: 0 5px 0 var(--edge); font-size: 28px; }
.node.story:active { box-shadow: 0 2px 0 var(--edge); }
.node.story.todo { background: var(--line); border-color: var(--pad-off-edge); box-shadow: none; }
.node.story.locked { background: var(--line); border-color: var(--pad-off-edge); box-shadow: none; filter: grayscale(1); opacity: .8; }
.node.game { width: 64px; height: 60px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--edge); filter: none; box-shadow: 0 5px 0 var(--edge); }
.node.game:active { box-shadow: 0 2px 0 var(--edge); }
.node.game.todo, .node.game.next { background: var(--green-soft); }
.node.game.locked { background: var(--line); border-color: var(--pad-off-edge); box-shadow: none; filter: grayscale(1); opacity: .8; }
.node.game.next::after { border-color: var(--green); }
.node.kino { width: 64px; height: 60px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--edge); filter: none; box-shadow: 0 5px 0 var(--edge); font-size: 28px; }
.node.kino:active { box-shadow: 0 2px 0 var(--edge); }
.node.kino.locked { background: var(--line); border-color: var(--pad-off-edge); box-shadow: none; filter: grayscale(1); opacity: .8; }
.node.kino.next::after { border-color: var(--gold); }
.node.next::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid var(--orange); opacity: .5;
  animation: nodeRing 1.8s ease-out infinite; pointer-events: none; }
.node.chest { width: 76px; height: 64px; filter: none; }
.node.chest svg { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18)); }
.node.chest.next::after { inset: -6px -2px; border-color: var(--gold); }
.node.chest:active { transform: translateY(3px); }
.medal-note { font-weight: 800; font-size: 15px; color: var(--muted); }
.medal-note.silver { color: #7d8a96; }
.medal-note.gold { color: #b07800; }
@media (prefers-color-scheme: dark) { .medal-note.silver { color: #c3ccd5; } .medal-note.gold { color: #f4c25a; } }
.node.chest.locked svg, .psheet__chest.locked svg { filter: grayscale(1) opacity(.5); }
.node.chest.next svg { animation: chestWobble 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.lock { position: absolute; right: 2px; bottom: 0; font-size: 22px; line-height: 1; }
.psheet__chest { position: relative; flex: none; }
.pnode.justdone .node { animation: nodePop .7s cubic-bezier(.2, 1.6, .4, 1); }
.pnode.justdone .stars span { display: inline-block; animation: starIn .5s .3s both; }
.pstart { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  background: var(--card); color: var(--orange-ink); border: 2.5px solid var(--edge); border-radius: 999px; padding: 2px 13px; box-shadow: 0 3px 0 var(--edge);
  font-family: var(--display); font-weight: 600; font-size: 17px; animation: startBob 1.4s ease-in-out infinite; }
.pstart::after { content: ""; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--edge); }
.pstart.later { visibility: hidden; }
.pbuddy { position: absolute; left: calc(50% + var(--bx)); transform: translateX(-50%); z-index: 1; pointer-events: none;
  transition: left 1.1s ease-in-out, top 1.1s ease-in-out; }
.pbuddy.walking .capy { animation: buddyHop .37s ease-in-out infinite; }
@keyframes nodeRing { 0% { transform: scale(.9); opacity: .5; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes nodePop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes startBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
@keyframes chestWobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-6deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-4deg); } 94% { transform: rotate(3deg); } }

.turbo-2, .tx-2 { --tc: var(--turbo); --tc-ink: var(--turbo-ink); --tc-soft: var(--turbo-soft); --tc-creek: var(--turbo-creek); --tc-creek-light: var(--turbo-creek-light);
  --tc-leaf: var(--turbo-leaf); --tc-vein: var(--turbo-vein); --tc-off: var(--turbo-off); --tc-off-edge: var(--turbo-off-edge); }
.turbo-3, .tx-3 { --tc: var(--gturbo); --tc-ink: var(--gturbo-ink); --tc-soft: var(--gturbo-soft); --tc-creek: var(--gturbo-creek); --tc-creek-light: var(--gturbo-creek-light);
  --tc-leaf: var(--gturbo-leaf); --tc-vein: var(--gturbo-vein); --tc-off: var(--gturbo-off); --tc-off-edge: var(--gturbo-off-edge); }
html.turbo { --creek: var(--tc-creek); --creek-light: var(--tc-creek-light); }
.turbo .u-orange, .turbo .u-teal, .turbo .u-berry, .turbo .u-plum { --u: var(--tc); --u-ink: var(--tc-ink); }
.turbo .pad__leaf { fill: var(--tc-leaf); }
.turbo .pad__vein { stroke: var(--tc-vein); }
.turbo .node.todo .pad__leaf { fill: var(--tc-off); stroke: var(--tc-off-edge); }
.turbo .node.todo .pad__vein { stroke: var(--tc-off-edge); }
.turbo .node.next::after { border-color: var(--tc); }
.turbo .pstart { color: var(--tc-ink); }
.turbo .creek__ripple { animation: creekFlow 1.1s linear infinite; }
@keyframes creekFlow { to { stroke-dashoffset: -28; } }
.turbo-in .unit, .turbo-in .pbanner, .turbo-in .turbobar { animation: turboIn 1s ease-out both; }
@keyframes turboIn { 0% { filter: brightness(1.8) saturate(.2); transform: scale(.985); } 100% { filter: none; transform: none; } }
html:not(.turbo) .turbobadge, html:not(.turbo) .turbobar { display: none; }
.turbobadge { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; display: inline-flex; align-items: center; gap: 1px;
  background: var(--tc); color: #fff; border: 2px solid var(--edge); border-radius: 99px; padding: 0 7px 0 8px; font: 600 12px/18px var(--display); }
.turbobadge .ic { --icon-halo: transparent; }
.turbobadge.low { top: 92px; }
.turbobar { position: sticky; top: var(--top-h, 68px); z-index: 5; display: flex; align-items: center; gap: 8px; height: 42px; margin-top: 12px;
  padding: 0 14px 0 6px; border-radius: 999px; background: var(--tc-soft); border: 2.5px solid var(--tc); color: var(--tc-ink); font-weight: 900;
  box-shadow: 0 3px 0 var(--tc); }
.turbo .pbanner { top: calc(var(--top-h, 68px) + 50px); }
.turbo .pchapter, .turbo .unit { scroll-margin-top: calc(var(--top-h, 68px) + 126px); }
.pstart .ic { display: inline-block; vertical-align: -4px; margin-left: 3px; }
.turbobar > .ic { flex: none; display: block; }
.turbobar .turboclock { margin-left: auto; }
.turboclock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.turboready { display: flex; align-items: center; gap: 12px; border-color: var(--tc); background: var(--tc-soft); }
.turboready > .ic { flex: none; display: block; }
.turboready__text { display: grid; gap: 2px; min-width: 0; }
.turbonote { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--tc-soft); color: var(--tc-ink); font-weight: 800; }
.turbonote > .ic { flex: none; display: block; }
.tround { display: flex; justify-content: center; margin-top: 8px; }
.tpill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 4px; border-radius: 999px;
  background: var(--tc-soft); border: 2px solid var(--tc); color: var(--tc-ink); font-weight: 900; font-size: 15px; }
.tpill > .ic { display: block; }
.xpfly.turbo, .sheet .xpgain.turbo { color: var(--tc-ink, var(--turbo-ink)); }
.xpfly small, .xpgain small { font-size: .62em; margin-left: 2px; vertical-align: super; }
.tile.turbo .val { padding-bottom: 4px; }
.tile__sub { padding: 0 4px 8px; background: var(--card); color: var(--turbo-ink); font-size: 12px; font-weight: 800; line-height: 1.2; }
.turbocard { display: grid; gap: 10px; }
.turbocard p { margin: 0; }
.trow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--tc-soft); }
.trow > .ic { flex: none; display: block; }
.trow__main { display: grid; gap: 1px; min-width: 0; }
.trow__main b { color: var(--tc-ink); }
.toffers { gap: 6px; }
.btn.tredeem { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.btn.tredeem > span { white-space: nowrap; }
.btn.tredeem:not(.ghost) { background: var(--tc); }
.turbotoast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: var(--shadow);
  font-weight: 800; white-space: nowrap; animation: fadeIn .2s; }
.turbotoast .ic { filter: grayscale(.6); }
.turbotoast.out { animation: fadeOut .4s forwards; }
@keyframes buddyHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.psheet { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .3); display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .15s; }
.psheet.out { animation: fadeOut .2s forwards; }
.psheet__panel { width: 100%; max-width: 720px; background: var(--card); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  animation: up .22s ease-out; max-height: 85dvh; overflow-y: auto; }
.psheet__head { display: flex; gap: 14px; align-items: center; }
.iossteps { margin: 4px 0 18px; padding-left: 1.5em; display: grid; gap: 10px; line-height: 1.45; }
.iossteps .iosshare { vertical-align: -5px; color: var(--teal-dark); }
.psheet__icon { display: grid; place-items: center; width: 62px; height: 56px; flex: none; filter: drop-shadow(0 3px 0 rgba(59, 38, 24, .3)); }
.psheet__icon.review { width: 56px; height: 52px; border-radius: 50%; background: var(--teal); border: 2.5px solid var(--edge); font-size: 26px; filter: none; box-shadow: 0 4px 0 var(--edge); }
.psheet__icon.story { position: relative; width: 56px; height: 52px; border-radius: 50%; background: var(--berry); border: 2.5px solid var(--edge); font-size: 26px; filter: none; box-shadow: 0 4px 0 var(--edge); }
.psheet__icon.story.locked, .psheet__icon.kino.locked { background: var(--line); filter: grayscale(1); }
.psheet__icon.kino { position: relative; width: 56px; height: 52px; border-radius: 50%; background: var(--gold); border: 2.5px solid var(--edge); font-size: 26px; filter: none; box-shadow: 0 4px 0 var(--edge); }
.psheet__icon.game { position: relative; width: 56px; height: 52px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--edge); filter: none; box-shadow: 0 4px 0 var(--edge); }
.psheet__icon.game.locked { background: var(--line); filter: grayscale(1); }
.psheet__title { font-family: var(--display); font-size: 24px; font-weight: 600; }
.pmeta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.pmeta .bad { color: var(--red); }
.pmeta .good { color: var(--green-dark); }
.subjlist { display: grid; gap: 10px; margin-top: 14px; }
.subjrow { display: flex; align-items: center; gap: 14px; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 16px;
  padding: 10px 14px; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.subjrow.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 3px 0 var(--teal); }
.subjrow__icon { display: flex; }
.subjrow__name { flex: 1; display: flex; flex-direction: column; }
.subjrow__on { color: var(--teal); font-weight: 900; font-size: 20px; }
.subjrow__go { color: var(--teal); font-weight: 900; font-size: 24px; line-height: 1; }
.subjrow.soon { border-style: dashed; box-shadow: none; }
.subjsoon { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
.subjsoon > b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.subjsoon .subjlist { margin-top: 8px; }
.plevel__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.subjbtn__lvl { background: var(--teal); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 13px; font-weight: 800; }
.lvl { display: grid; gap: 4px; margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); }
.lvl > b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.lvl__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lvl__opt { display: grid; justify-items: center; min-width: 64px; padding: 6px 10px; border: 2px solid var(--line); background: var(--card); color: inherit;
  border-radius: 14px; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.lvl__opt b { font-family: var(--display); font-weight: 600; font-size: 20px; }
.lvl__opt small { font-size: 11px; font-weight: 700; color: var(--muted); }
.lvl__opt.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 3px 0 var(--teal); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--card); border-top: 2px solid var(--line);
  display: flex; justify-content: center; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.nav button { flex: 0 1 120px; min-width: 0; background: none; border: 2px solid transparent; border-radius: 14px; padding: 6px 2px; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
@media (max-width: 420px) { .nav { gap: 2px; padding-left: 4px; padding-right: 4px; } .nav button { flex: 1 1 0; font-size: 12px; } }
.nav__t { display: block; font: inherit; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .nav button { font-size: 11px; } }
.nav button span { display: block; font-size: 24px; position: relative; width: max-content; margin: 0 auto; }
.nav .dot { position: absolute; top: 0; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); border: 2px solid var(--card); }
.nav button.on { color: var(--teal-dark); border-color: var(--teal-soft); background: var(--teal-soft); }
.nav--six { gap: 0; }
.nav--six button { flex-basis: 100px; border-width: 0; padding: 8px 0; }
@media (max-width: 420px) { .nav--six button { font-size: 11.5px; } }
.nav .nav__scan span { display: grid; place-items: center; width: 54px; height: 54px; margin: -26px auto 0; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--card); box-shadow: 0 3px 0 var(--edge); }
.nav .nav__scan .dot { top: 0; right: 0; }
.nav .nav__scan.on { color: var(--orange-ink); border-color: transparent; background: none; }
.nav .nav__scan.on span { box-shadow: 0 0 0 4px var(--orange-soft), 0 3px 0 var(--edge); }
.nav .nav__scan:active span { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
@media (max-width: 380px) { .nav .nav__scan span { width: 46px; height: 46px; margin-top: -20px; } .nav .nav__scan span .ic { width: 26px; height: 26px; } }

.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.profile { text-align: center; cursor: pointer; border: 2px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 20px 10px; box-shadow: 0 4px 0 var(--line); font-weight: 900; }
.profile:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.profile .big { font-size: 54px; display: block; }
.avatars { display: flex; flex-wrap: wrap; gap: 8px; }
.avatars button { font-size: 32px; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 6px 10px; cursor: pointer; }
.avatars button.on { border-color: var(--teal); background: var(--teal-soft); }
input[type=text], input[type=password], input[type=email], input[type=search], .manage input[type=number] {
  width: 100%; font: inherit; font-weight: 700; padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); outline: none;
}
input:focus { border-color: var(--teal); }

.welcome { padding-top: 24px; }
.seg { display: flex; gap: 6px; background: var(--line); border-radius: 16px; padding: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 12px; padding: 10px 6px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.code-input { text-align: center; font-size: 26px !important; letter-spacing: .18em; text-transform: uppercase; }
.code-input.card-code { font-size: 21px !important; letter-spacing: .08em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--teal); }
.check a { color: var(--teal); }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--teal); }
.choice > span { display: grid; gap: 2px; min-width: 0; }

.play { display: flex; flex-direction: column; min-height: 100dvh; padding-top: 14px; }
.playtop { display: flex; align-items: center; gap: 12px; }
.combo { font-weight: 900; color: var(--orange); min-width: 54px; text-align: right; white-space: nowrap; }
.combo.pop { animation: pop .35s; }
.qbox { flex: 1; padding: 26px 0 220px; }
.qfrom { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.qlabel { font-family: var(--display); font-weight: 600; color: var(--teal-dark); font-size: 16px; display: flex; gap: 8px; align-items: center; }
.qlabel .again { color: var(--orange); }
.qtext { font-size: 24px; font-weight: 900; margin: 10px 0 22px; line-height: 1.25; white-space: pre-line; } 
.answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qtext, .answer > span:last-child, .story__text, .verdict, .solution, .expl, .hint, .mistake, .row { overflow-wrap: anywhere; hyphens: auto; min-width: 0; }
.answer {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px;
  font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 4px 0 var(--line);
  transition: transform .06s, box-shadow .06s, background .1s, border-color .1s;
}
.answer:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.answer .key { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; color: var(--muted); }
.answer.sel { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 4px 0 var(--teal); }
.answer.sel .key { border-color: var(--teal); color: var(--teal); }
.answer.right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 4px 0 var(--green); }
.answer.right .key { border-color: var(--green); color: var(--green); }
.answer.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 4px 0 var(--red); animation: shake .35s; }
.answer.wrong .key { border-color: var(--red); color: var(--red); }
.answer.dim { opacity: .5; }
.answers.locked .answer { cursor: default; }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pairs__col { display: grid; gap: 10px; align-content: start; }
.pair {
  min-height: 58px; width: 100%; padding: 10px 8px; text-align: center; overflow-wrap: anywhere; hyphens: auto;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 16px;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; cursor: pointer; box-shadow: 0 4px 0 var(--line);
  transition: transform .06s, box-shadow .06s, background .1s, border-color .1s, opacity .25s;
}
.pair:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.pair.sel { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 4px 0 var(--teal); }
.pair.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 4px 0 var(--red); animation: shake .35s; }
.pair.done { border-color: var(--green); background: var(--green-soft); box-shadow: 0 2px 0 var(--green); opacity: .5; cursor: default; transform: none; }

.gloss { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline dotted var(--teal); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.gloss.open::after { content: attr(data-m); display: inline-block; margin: 0 4px; padding: 1px 8px; border-radius: 10px;
  background: var(--teal-soft); color: var(--teal-dark, var(--teal)); font-size: 16px; font-weight: 800; vertical-align: middle; }
.hintline { margin-top: 10px; font-size: 16px; font-weight: 700; }
.hintbtn { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 4px 10px;
  font: inherit; font-weight: 800; cursor: pointer; }
.hint { color: var(--muted); }

.figure { display: flex; justify-content: center; margin: -6px 0 16px; }
.figure svg { display: block; height: auto; }
.figure--missing { padding: 12px; border: 2px dashed var(--line); border-radius: 14px; }
.slot { cursor: pointer; }
.slot .slot-bg { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; stroke-dasharray: 4 3; }
.slot.on .slot-bg { fill: var(--card); stroke-width: 3.5; stroke-dasharray: none; }
.slot.filled .slot-bg { stroke-dasharray: none; }
.slot.right .slot-bg { fill: var(--green-soft); stroke: var(--green); stroke-dasharray: none; }
.slot.wrong .slot-bg { fill: var(--red-soft); stroke: var(--red); stroke-dasharray: none; }
.slot.wrong .slot-v { fill: var(--green-dark); }
@media (prefers-color-scheme: dark) { .slot.wrong .slot-v { fill: var(--green); } }
.locked .slot, .figure .slot.right, .figure .slot.wrong { cursor: default; }
.fig-grid__l { stroke: var(--line); stroke-width: 1; }
.fig-grid__bar { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fig-grid__t { fill: var(--ink); font: 800 23px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-wall__s { fill: var(--orange-soft); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.fig-wall__s.gap { fill: var(--card); }
.fig-wall__t { fill: var(--ink); font: 800 24px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-domino__stone { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.fig-domino__mid { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fig-domino__dot { fill: var(--ink); }
.fig-domino__box { fill: var(--orange-soft); stroke: var(--ink); stroke-width: 2.5; }
.fig-domino__box.gap { fill: var(--card); }
.fig-domino__link { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fig-domino__t { fill: var(--ink); font: 800 24px Nunito, system-ui, sans-serif; text-anchor: middle; }
.keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.keypad__k { min-height: 50px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  font: inherit; font-weight: 900; font-size: 22px; box-shadow: 0 3px 0 var(--line); cursor: pointer; }
.keypad__k:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.keypad__k.back { color: var(--muted); }
.typein { display: flex; justify-content: center; margin-bottom: 14px; }
.typein__box { width: 100%; max-width: 360px; min-height: 58px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--teal); border-radius: 16px; background: var(--card); color: var(--ink);
  font: inherit; font-weight: 900; font-size: 24px; text-align: center; padding: 10px 14px; box-shadow: 0 4px 0 var(--teal); }
input.typein__box { outline: none; }
.typein__box.on { border-width: 3px; }
.typein__box.right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 4px 0 var(--green); }
.typein__box.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 4px 0 var(--red); animation: shake .35s; }

.listen { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -4px 0 20px; }
.listen__play {
  width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--edge); background: var(--teal); color: #fff;
  font-size: 44px; line-height: 1; cursor: pointer; box-shadow: 0 5px 0 var(--edge); position: relative;
  transition: transform .06s, box-shadow .06s;
}
.listen__play:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.listen__play.on::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid var(--teal); animation: nodeRing 1s ease-out infinite; }
.listen__play.nudge { animation: chestWobble 1.6s ease-in-out infinite; }
.listen__more { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.mic { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mic__btn {
  width: 100%; max-width: 360px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 3px solid var(--edge); border-radius: 22px; background: var(--orange); color: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 19px; box-shadow: 0 5px 0 var(--edge); padding: 12px 16px;
  transition: transform .06s, box-shadow .06s, background .15s;
}
.mic__btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.mic__btn:disabled { cursor: default; }
.mic__ico { font-size: 36px; line-height: 1; }
.mic__btn.rec { background: var(--red); }
.mic__btn.rec .mic__ico { animation: pop 1s ease-in-out infinite; }
.mic__btn.wait { background: var(--teal); }
.mic__btn.right { background: var(--green); }
.mic__btn.wrong { background: var(--red); }
.mic__bar { display: block; width: 80%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.mic__bar i { display: block; height: 100%; width: 0; background: #fff; }
.mic__note { min-height: 1.4em; color: var(--muted); }
.mic__note.warn { color: var(--orange-ink); font-weight: 800; }
.mic__say { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 360px;
  border: 2px solid var(--teal); border-radius: 18px; background: var(--card); padding: 14px 16px; box-shadow: 0 4px 0 var(--teal); }
.mic__say b { font-size: 30px; font-weight: 900; overflow-wrap: anywhere; }
.linkbtn { border: 0; background: none; padding: 4px; color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: underline; cursor: pointer; }
.sheet .heard { font-weight: 700; margin-bottom: 4px; color: var(--red-dark); }

.skipline { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 18px; }
.skipbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 4px; cursor: pointer;
  color: var(--muted); font-weight: 700; font-size: 14px; }
.skipbtn span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.mutebar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin: 10px auto 0; width: fit-content; max-width: 100%;
  padding: 4px 12px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); }
.mutebar .linkbtn { font-size: 14px; color: var(--teal-dark); padding: 0; }

.task { display: grid; gap: 16px; }
.tpool { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 52px; }
.tchip {
  min-height: 48px; padding: 8px 14px; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 14px;
  font: inherit; font-weight: 800; font-size: 18px; line-height: 1.2; cursor: pointer; box-shadow: 0 4px 0 var(--line);
  overflow-wrap: anywhere; hyphens: auto; transition: transform .06s, box-shadow .06s, background .1s, border-color .1s, opacity .25s;
}
.tchip:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.tchip.sel { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 4px 0 var(--teal); }
.tchip.right { border-color: var(--green); background: var(--green-soft); box-shadow: 0 4px 0 var(--green); }
.tchip.wrong { border-color: var(--red); background: var(--red-soft); box-shadow: 0 4px 0 var(--red); animation: shake .35s; }
.tchip.miss { border: 2px dashed var(--green); box-shadow: none; }
.tchip.dim { opacity: .45; }
.task.locked .tchip, .padbox.locked .tchip { cursor: default; transform: none; }
.task-view { margin: 4px 0; }
.task-view .tchip { cursor: default; min-height: 0; font-size: 16px; padding: 4px 10px; box-shadow: none; }

.task-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: pos; }
.task-order li { counter-increment: pos; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 4px 10px; min-height: 44px; }
.task-order li::before { content: counter(pos); width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 14px; font-weight: 900; color: var(--muted); }
.task-order li:empty::after { content: ""; height: 40px; border: 2px dashed var(--line); border-radius: 14px; }
.task-order .tchip { text-align: left; }
.task-order__fix { grid-column: 2; font-size: 14px; font-weight: 800; color: var(--green-dark); }
.task-order__fix::before { content: "richtig: "; color: var(--muted); }
.task-order--view li { min-height: 0; }

.task .tpool[hidden] { display: none; }
.task-sort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.task-sort--3 .task-sort__bin:last-child { grid-column: span 2; }
.task-sort__bin {
  min-width: 0; min-height: 116px; display: flex; flex-direction: column; gap: 8px; padding: 8px 6px; background: var(--card);
  border: 2.5px dashed var(--line); border-radius: 18px; cursor: pointer; transition: border-color .1s, background .1s;
}
.task-sort--3 .task-sort__bin, .task-sort--4 .task-sort__bin { min-height: 88px; }
.task-sort__name { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.15; color: var(--teal-dark); text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.task-sort__in { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.task-sort__in .tchip { display: inline-flex; align-items: center; font-size: 15px; padding: 4px 8px; }
.task .task-sort__in .tchip { min-height: 40px; }
.task-sort.armed .task-sort__bin { border-color: var(--teal); background: var(--teal-soft); }
.task.locked .task-sort__bin, .task-view .task-sort__bin { cursor: default; }
.task-view .task-sort__bin { min-height: 0; }

.task-cloze {
  margin: 0; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 18px;
  font-size: 20px; font-weight: 800; line-height: 2.4; overflow-wrap: anywhere;
}
.task-cloze__gap {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; min-width: 76px; min-height: 44px;
  margin: 2px 3px; border-bottom: 3px solid var(--muted); border-radius: 6px 6px 2px 2px; cursor: pointer; line-height: 1.2;
}
.task-cloze__gap.on { border-bottom-color: var(--teal); background: var(--teal-soft); }
.task-cloze__gap .tchip { min-height: 40px; padding: 4px 10px; }
.task.locked .task-cloze__gap { cursor: default; }
.task-cloze__fix { display: inline-block; vertical-align: middle; margin-right: 3px; color: var(--green-dark); font-size: 17px; line-height: 1.2; }
.task-cloze__fix::before { content: "→ "; color: var(--muted); }
.task .tpool .tchip.used { visibility: hidden; }
.task-cloze--view { font-size: 16px; line-height: 2; padding: 6px 10px; }
.task-cloze__extra { justify-content: flex-start; min-height: 0; margin-top: 6px; gap: 6px; }

.task-build { display: grid; gap: 18px; }
.task-build .tchip { min-height: 44px; padding: 6px 12px; font-size: 18px; }
.task-build__line {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 104px;
  background: repeating-linear-gradient(to bottom, transparent 0 49px, var(--line) 49px 51px, transparent 51px 52px);
}
.task-build__bank { gap: 8px; }
.task-build--short .tchip { min-width: 48px; font-size: 20px; text-align: center; }
.task-build__fix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -6px; }
.task-build__fixlabel { font-size: 14px; font-weight: 800; color: var(--muted); }
.task-build__fix .tchip { min-height: 0; padding: 3px 9px; font-size: 16px; box-shadow: none; }
.task-view .task-build__line { min-height: 0; background: none; gap: 6px; }
.task-build__extra { justify-content: flex-start; min-height: 0; margin-top: 6px; gap: 6px; }

.task-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 5px; padding: 12px 10px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; font-weight: 800; font-size: 19px; line-height: 1.2; }
.task-mark__w { display: inline-flex; align-items: center; white-space: nowrap; }
.task-mark .tchip { min-height: 44px; padding: 6px 9px; font-size: 19px; border-radius: 12px; white-space: normal; }
.task-mark__fix { padding: 0 3px; }
.task-mark--done .tchip:not(.right):not(.wrong):not(.miss) { border-color: transparent; box-shadow: none; background: transparent; }
.task-view .task-mark { gap: 4px; padding: 8px 10px; font-size: 16px; }
.task-view .task-mark .tchip { min-height: 0; padding: 2px 6px; font-size: inherit; }

.task-tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; }
.task-tiles .tchip { min-height: 50px; padding: 6px 4px; text-align: center; font-variant-numeric: tabular-nums; }
.task-view .task-tiles { gap: 6px; }
.task-view .task-tiles .tchip { min-height: 0; padding: 4px 2px; }

.task-tf { display: grid; gap: 8px; }
.task-tf__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 6px 6px 12px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; font-weight: 800; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.task-tf__row.right { border-color: var(--green); background: var(--green-soft); }
.task-tf__row.wrong { border-color: var(--red); background: var(--red-soft); }
.task-tf__btns { display: flex; gap: 6px; }
.task-tf__btns .tchip { width: 48px; min-height: 48px; padding: 0; font-size: 22px; display: grid; place-items: center; }
.task-view .task-tf { gap: 6px; }
.task-view .task-tf__row { padding: 4px 6px 4px 10px; font-size: 15px; }
.task-view .task-tf__btns .tchip { width: 34px; min-height: 30px; padding: 0; font-size: 16px; }

.task-estimate { display: grid; gap: 6px; }
.task-estimate__val { text-align: center; font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.1; color: var(--teal-dark);
  font-variant-numeric: tabular-nums; min-height: 50px; }
.task-estimate__val small { font-size: 22px; color: var(--muted); }
.task-estimate__track { position: relative; height: 64px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.task-estimate__rail { position: absolute; left: 14px; right: 14px; top: 30px; height: 14px; border-radius: 99px; background: var(--line); border: 2px solid var(--muted); opacity: .9; }
.task-estimate__band { position: absolute; top: 20px; height: 34px; border-radius: 10px; background: var(--green-soft); border: 2px solid var(--green); }
.task-estimate__true { position: absolute; z-index: 2; top: -6px; transform: translateX(-50%); font-size: 14px; font-weight: 900; color: var(--green-dark); white-space: nowrap; }
.task-estimate__true::after { content: ""; position: absolute; left: 50%; top: 20px; width: 3px; height: 40px; margin-left: -1.5px; border-radius: 2px; background: var(--green); }
.task-estimate__thumb { position: absolute; top: 15px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: var(--orange); border: 3px solid var(--edge);
  box-shadow: 0 3px 0 var(--edge); transition: opacity .15s, width .2s, height .2s, top .2s, margin .2s; }
.task-estimate__thumb.right, .task-estimate__thumb.wrong, .task-estimate__thumb.near { width: 28px; height: 28px; top: 23px; margin-left: -14px; box-shadow: none; }
.task-estimate__thumb.idle { opacity: .45; }
.task-estimate__thumb:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.task-estimate__thumb.right { background: var(--green); }
.task-estimate__thumb.wrong { background: var(--red); }
.task-estimate__thumb.near { background: var(--gold); }
.task-estimate__scale { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.task-estimate__fine { display: flex; justify-content: center; gap: 16px; }
.task-estimate__btn { width: 64px; height: 50px; font-size: 26px; font-weight: 900; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  box-shadow: 0 4px 0 var(--line); cursor: pointer; }
.task-estimate__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.task-estimate__btn:disabled { opacity: .45; cursor: default; transform: none; }
.task-estimate__note { padding: 10px 14px; border-radius: 14px; font-size: 16px; font-weight: 700; text-align: center; }
.task-estimate__note.right { background: var(--green-soft); color: var(--green-dark); }
.task-estimate__note.near { background: var(--orange-soft); color: var(--orange-ink); }
.task-estimate__note.wrong { background: var(--card); border: 2px solid var(--line); }
.task-estimate--view { gap: 2px; padding-top: 8px; }
.task-estimate--view .task-estimate__track { height: 56px; cursor: default; }

.pairs__count { grid-column: 1 / -1; text-align: center; font-weight: 800; color: var(--muted); font-size: 15px; margin-top: -4px; }
.pairs__count b { font-family: var(--display); font-weight: 600; color: var(--orange-ink); font-size: 20px; }
.pair.new:not(.wrong) { animation: popIn .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .pair.new:not(.wrong) { animation: none; } }
.answers--pics { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.answer.answer--pic { position: relative; display: grid; place-items: center; min-height: 128px; padding: 32px 8px 12px; }
.answer--pic .key { position: absolute; top: 6px; left: 8px; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
.answer--pic .figure { margin: 0; width: 100%; }
.answer--pic .figure svg { margin: 0 auto; max-height: 100px; }
.answer--pic.dim { opacity: .4; }
.ans-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ans-pics > div { border: 2px solid var(--line); border-radius: 12px; padding: 6px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.ans-pics > div.c { border-color: var(--green); }
.ans-pics .figure { margin: 0; width: 100%; }
.ans-pics .figure svg { margin: 0 auto; max-height: 90px; }
.pic-row { display: grid; grid-template-columns: auto 96px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.pic-row input[type=text] { min-width: 0; padding: 10px 8px; font-size: 16px; }
.pic-row details { grid-column: 1 / -1; margin-top: -4px; }
.pic-row details textarea { width: 100%; margin-top: 6px; }
.pic-row__view { border: 2px solid var(--line); border-radius: 12px; padding: 4px; background: var(--card); }
.pic-row__view .figure { margin: 0; }
.pic-row__view .figure svg { max-height: 64px; margin: 0 auto; }
.fig-shape { overflow: visible; }
.fig-shape__paper { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.fig-shape__grid { stroke: var(--line); stroke-width: 1.2; }
.fig-shape--small .fig-shape__grid { stroke: var(--muted); stroke-opacity: .35; stroke-width: 1; }
.fig-shape__poly { fill: var(--orange-soft); stroke: var(--ink); stroke-linejoin: round; }
.fig-shape__poly--teal { fill: var(--teal-soft); }
.fig-shape__poly--purple { fill: var(--purple); fill-opacity: .18; }
.fig-shape__poly--none { fill: none; }
.fig-shape__mark { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig-shape--small .fig-shape__mark { stroke-width: 1.6; }
.fig-shape__dot { fill: var(--ink); }
.fig-shape__line { stroke: var(--ink); stroke-linecap: round; }
.fig-shape__line.dashed { stroke: var(--teal); stroke-dasharray: 12 5 2 5; }
.fig-shape__pt { fill: var(--purple); stroke: var(--card); stroke-width: 2; }
.fig-shape__name, .fig-shape__side { font-family: Nunito, system-ui, sans-serif; text-anchor: middle;
  paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.fig-shape--small .fig-shape__name, .fig-shape--small .fig-shape__side { stroke: none; }
.fig-shape__name { fill: var(--ink); font-weight: 900; }
.fig-shape__name.line { fill: var(--teal-dark); font-style: italic; }
.fig-shape__name.pt { fill: var(--ink); }
.fig-shape__side { fill: var(--ink); font-weight: 700; }

.fig-place-box { touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.fig-place { display: grid; gap: 10px; justify-items: center; }
.fig-place__hint { font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; }
.fig-c__mark.place, .fig-c__tip.place { fill: var(--orange); }
.fig-c__stem.place { stroke: var(--orange); }
.fig-c__mark.cur { stroke: var(--edge); stroke-width: 2.5; }
.fig-c__mark.right, .fig-c__tip.right, .fig-c__mark.sol, .fig-c__tip.sol { fill: var(--green); }
.fig-c__stem.right { stroke: var(--green); }
.fig-c__stem.sol { stroke: var(--green); stroke-dasharray: 4 3; }
.fig-c__mark.wrong, .fig-c__tip.wrong { fill: var(--red); }
.fig-c__stem.wrong { stroke: var(--red); }
.fig-c__band { fill: var(--green-soft); stroke: var(--green); stroke-width: 1.5; }
.fig-c__pt.place { fill: var(--orange); stroke: var(--edge); }
.fig-c__pt.right, .fig-c__pt.sol { fill: var(--green); }
.fig-c__pt.wrong { fill: var(--red); }
.fig-c__ring.place { stroke: var(--orange); stroke-dasharray: none; }
.fig-c__ring.sol { stroke: var(--green); }
.fig-c__name.place { fill: var(--orange-ink); }
.fig-c__name.place.right { fill: var(--green-dark); }
.fig-c__name.place.wrong { fill: var(--red-dark); }
.fig-c__solshape { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linejoin: round; }
.fig-angle { overflow: visible; }
.fig-angle__paper { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.fig-angle__track { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 6; }
.fig-angle__arc { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.fig-angle__arc.right { fill: var(--green-soft); stroke: var(--green); }
.fig-angle__arc.wrong { fill: var(--red-soft); stroke: var(--red); }
.fig-angle__dot { fill: var(--teal); }
.fig-angle__leg { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.fig-angle__leg.move { stroke: var(--orange); }
.fig-angle__leg.move.right { stroke: var(--green); }
.fig-angle__leg.move.wrong { stroke: var(--red); }
.fig-angle__vertex { fill: var(--ink); }
.fig-angle__handle { fill: var(--orange); stroke: var(--edge); stroke-width: 3; cursor: grab; }
.fig-angle__handle.idle { animation: fig-angle-hint 1.6s ease-in-out infinite; }
.fig-angle__handle.right { fill: var(--green); }
.fig-angle__handle.wrong { fill: var(--red); }
@keyframes fig-angle-hint { 50% { stroke-width: 6; } }
.fig-angle__target { stroke: var(--green); stroke-width: 4; stroke-dasharray: 8 6; stroke-linecap: round; }
.fig-angle__goal { fill: var(--green); }
.fig-angle__alpha { fill: var(--teal-dark); font: italic 800 18px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-angle__deg { fill: var(--ink); font: 800 17px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-angle__a { fill: var(--ink); font: 800 22px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-angle .s { text-anchor: start; }
.fig-angle .e { text-anchor: end; }
.fig-angle__res { padding: 10px 14px; border-radius: 14px; font-size: 17px; font-weight: 700; text-align: center; }
.fig-angle__res.right { background: var(--green-soft); color: var(--green-dark); }
.fig-angle__res.wrong { background: var(--red-soft); color: var(--red-dark); }
.fig-frac { overflow: visible; }
.fig-frac__crust { fill: var(--gold); stroke: var(--ink); stroke-width: 2.5; }
.fig-frac__bar { fill: var(--line); stroke: var(--ink); stroke-width: 2.5; }
.fig-frac__part { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; transition: fill .12s; }
.fig-frac__part.on { fill: var(--orange); }
.fig-frac.right .fig-frac__part.on { fill: var(--green); }
.fig-frac.wrong .fig-frac__part.on { fill: var(--orange); }
.fig-frac .fig-frac__part.on.extra { fill: var(--red-soft); stroke: var(--red); stroke-dasharray: 6 4; }
.fig-frac__part.miss { fill: var(--green-soft); stroke: var(--green); stroke-dasharray: 6 4; }
.fig-frac__mid { fill: var(--ink); }
.fig-frac__cap { fill: var(--ink); font: 800 17px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-frac__count { font-size: 19px; font-weight: 700; color: var(--ink); }
.fig-frac__count b { font-family: var(--display); font-size: 26px; color: var(--orange-ink); }
.fig-frac__res { padding: 10px 14px; border-radius: 14px; font-size: 17px; font-weight: 700; text-align: center; }
.fig-frac__res.right { background: var(--green-soft); color: var(--green-dark); }
.fig-frac__res.wrong { background: var(--red-soft); color: var(--red-dark); }

.fig-clock { --lcd: #2b211a; --lcd-ink: #9df2df; overflow: visible; }
@media (prefers-color-scheme: dark) { .fig-clock { --lcd: #0d0906; } }
.fig-clock__face { fill: var(--card); stroke: var(--ink); }
.fig-clock__tick { stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; opacity: .7; }
.fig-clock__tick.big { stroke-width: 3; opacity: 1; }
.fig-clock__n { fill: var(--ink); font-family: var(--display); font-weight: 600; text-anchor: middle; }
.fig-clock__n.in { fill: var(--teal-dark); font-family: Nunito, system-ui, sans-serif; font-weight: 800; }
.fig-clock__hh { stroke: var(--ink); stroke-linecap: round; }
.fig-clock__mh { stroke: var(--orange); stroke-linecap: round; }
.fig-clock__pin { fill: var(--ink); }
.fig-clock__pin2 { fill: var(--orange); }
.fig-clock__label { fill: var(--ink); font: 600 17px var(--display); text-anchor: middle; }
.fig-clock__day { fill: var(--teal-dark); font: italic 800 16px Nunito, system-ui, sans-serif; }
.fig-clock__sky { fill: var(--gold); stroke: var(--ink); stroke-width: 1.2; }
.fig-clock__ray { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.fig-clock__lcd { fill: var(--lcd); stroke: var(--edge); stroke-width: 2; }
.fig-clock__lcdt { fill: var(--lcd-ink); font: 800 27px Nunito, system-ui, sans-serif; font-variant-numeric: tabular-nums; text-anchor: middle; letter-spacing: 1px; }
.fig-clock__a { fill: var(--ink); font: 800 22px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-clock .s { text-anchor: start; }
.fig-clock__note { fill: var(--muted); font: 700 13px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-ghs { --ghs-red: #e3001b; --ghs-ink: #000; --ghs-paper: #fff; overflow: visible; }
.fig-ghs__frame { fill: var(--ghs-red); stroke: var(--ghs-red); stroke-width: 3; stroke-linejoin: round; }
.fig-ghs__ground, .fig-ghs__cut { fill: var(--ghs-paper); }
.fig-ghs__sym { fill: var(--ghs-ink); }
.fig-ghs__ring { fill: var(--ghs-paper); stroke: var(--ghs-ink); stroke-width: 5; }
.fig-ghs__bone { stroke: var(--ghs-ink); stroke-width: 4.6; stroke-linecap: round; }
.fig-ghs__line { stroke: var(--ghs-ink); stroke-width: 2.6; stroke-linecap: round; }
.fig-ghs__tree { fill: none; stroke: var(--ghs-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fig-ghs__x { fill: none; stroke: var(--ghs-paper); stroke-width: 1.3; stroke-linecap: round; }
.fig-ghs__q { fill: var(--ghs-ink); font: 800 30px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-plan { --plan-land: #fbf0d9; --plan-green: #d5ecc2; --plan-brown: #9a6233; --plan-rock: #b8a38c; --plan-blue: #2f6fd6; --plan-sign: #17803d; overflow: visible; }
@media (prefers-color-scheme: dark) { .fig-plan { --plan-land: #3a2c20; --plan-green: #263d26; --plan-brown: #c08654; --plan-rock: #85705c; --plan-blue: #4c86e8; } }
.fig-plan__paper { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.fig-plan__land { fill: var(--plan-land); }
.fig-plan__green { fill: var(--plan-green); }
.fig-plan__water { fill: var(--creek); }
.fig-plan__wave { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; opacity: .6; }
.fig-plan__mark { fill: var(--orange-soft); stroke: var(--orange); stroke-width: 3; }
.fig-plan__grid { stroke: var(--ink); stroke-width: 1; opacity: .28; }
.fig-plan__frame { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.fig-plan__ax { fill: var(--ink); font: 800 15px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-plan__help.hide { display: none; }
.fig-plan__band { fill: var(--teal); fill-opacity: .18; }
.fig-plan__target { fill: none; stroke: var(--teal); stroke-width: 3; }
.fig-plan__path { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 7; }
.fig-plan__start { fill: var(--orange); stroke: var(--edge); stroke-width: 1.5; }
.fig-plan__arrow { fill: var(--orange); stroke: var(--edge); stroke-width: 1.2; stroke-linejoin: round; }
.fig-plan__dot { fill: var(--orange-soft); stroke: var(--ink); stroke-width: 1.4; }
.fig-plan__dl { fill: var(--ink); font-family: var(--display); font-weight: 600; text-anchor: middle; }
.fig-plan__name { fill: var(--ink); font-family: Nunito, system-ui, sans-serif; font-weight: 800; text-anchor: middle;
  paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; }
.fig-plan__name.ask { fill: var(--teal-dark); }
.fig-plan__a { fill: var(--ink); font: 800 20px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-plan .s { text-anchor: start; }
.pi-w, .pi-r, .pi-o, .pi-y, .pi-t, .pi-g, .pi-b, .pi-m, .pi-u, .pi-x { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.pi-w { fill: var(--card); }
.pi-r { fill: var(--berry); }
.pi-o { fill: var(--orange); }
.pi-y { fill: var(--gold); }
.pi-t { fill: var(--teal); }
.pi-g { fill: var(--green); }
.pi-b { fill: var(--plan-brown); }
.pi-m { fill: var(--plan-rock); }
.pi-u { fill: var(--plan-blue); }
.pi-x { fill: var(--red); }
.pi-k { fill: var(--ink); }
.pi-l, .pi-c, .pi-tw, .pi-wave, .pi-stripe, .pi-bo, .pi-bz { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pi-l { stroke: var(--ink); stroke-width: 1.4; }
.pi-l.pi-thin { stroke-width: .9; }
.pi-c { stroke: var(--ink); stroke-width: 2.4; }
.pi-tw { stroke: var(--teal); stroke-width: 2.2; }
.pi-wave { stroke: var(--card); stroke-width: 1.4; }
.pi-stripe { stroke: var(--card); stroke-width: 1.7; }
.pi-bo { stroke: var(--ink); stroke-width: 4.6; }
.pi-bz { stroke: var(--plan-brown); stroke-width: 2.6; }
.pi-h, .pi-p { font: 900 10px Nunito, system-ui, sans-serif; text-anchor: middle; }
.pi-h { fill: var(--plan-sign); }
.pi-p { fill: #fff; font-size: 14px; }

.fig-map { --map-land: #fbf0d9; --map-near: #f1ebe1; --map-mark: #ffcf9e; --map-fruchtland: #bfdc8e; --map-tief: #cfe3a8; --map-hoch: #ecd4a2; --map-berg: #cc9f72; width: 100%; display: grid; gap: 12px; justify-items: center; }
@media (prefers-color-scheme: dark) { .fig-map { --map-land: #3a2c20; --map-near: #2a221c; --map-mark: #8a4a1c; --map-fruchtland: #3f5a26; --map-tief: #34492a; --map-hoch: #4f3e27; --map-berg: #6e4c2f; } }
.fig-map--europa-gebirge { --map-land: var(--map-berg); }
.fig-map--europa-gebirge, .fig-map--suedamerika-landschaften { --map-mark: #ffb15e; }
@media (prefers-color-scheme: dark) { .fig-map--europa-gebirge, .fig-map--suedamerika-landschaften { --map-mark: #b5621f; } }
.fig-map__svg { display: block; width: 100%; max-height: 52vh; overflow: visible; -webkit-tap-highlight-color: transparent; }
.fig-map:not(.fig-map--label) .fig-map__svg:not(.tap) { max-height: 34vh; }
.fig-map__rg.k-l { fill: var(--map-land); }
.fig-map__rg.k-n, .fig-map__rg.k-x { fill: var(--map-near); }
.fig-map__rg.k-w, .fig-map__rg.k-s { fill: var(--creek); }
.fig-map__rg.r-niltal, .fig-map__rg.r-nildelta { fill: var(--map-fruchtland); }
.fig-map__rg.r-amazonastiefland, .fig-map__rg.r-llanos, .fig-map__rg.r-gran-chaco, .fig-map__rg.r-pampa { fill: var(--map-tief); }
.fig-map__rg.r-brasilianisches-bergland, .fig-map__rg.r-bergland-von-guayana, .fig-map__rg.r-patagonien, .fig-map__rg.r-atacama { fill: var(--map-hoch); }
.fig-map__rg.r-anden { fill: var(--map-berg); }
.fig-map__rg.mark { fill: var(--map-mark); }
.fig-map__rg.k-w.mark { fill: var(--teal); }
.fig-map__rg.sel { fill: var(--orange); }
.fig-map__rg.right, .fig-map__rg.solution { fill: var(--green); }
.fig-map__rg.wrong { fill: var(--red); }
.fig-map__rg.river { stroke-width: 5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fig-map__rg.river.mark { stroke: var(--teal); }
.fig-map__rg.river.sel { stroke: var(--orange); }
.fig-map__rg.river.right, .fig-map__rg.river.solution { stroke: var(--green); }
.fig-map__rg.river.wrong { stroke: var(--red); }
.fig-map__svg.tap [data-r] { cursor: pointer; }
.fig-map__svg.tap .fig-map__rg:hover:not(.sel) { fill: var(--map-mark); }
.fig-map__b { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.fig-map__b.bd { stroke-width: .8; opacity: .75; }
.fig-map--welt .fig-map__b.bd { stroke-dasharray: 3 3; }
.fig-map__b.nat { stroke-width: 1.8; }
.fig-map__b.bd2 { stroke-width: .7; opacity: .4; }
.fig-map__b.sea { stroke: var(--teal-dark); stroke-width: 1; stroke-dasharray: 1 3; opacity: .7; }
.fig-map__b.fr { stroke-width: 1.4; }
.fig-map__b.riv { stroke: var(--teal-dark); stroke-width: .9; }
.fig-map--aegypten .fig-map__b.bd { stroke-width: .6; opacity: .45; }
.fig-map__grat { fill: none; stroke: var(--teal); stroke-width: .6; stroke-dasharray: 2 3; opacity: .55; vector-effect: non-scaling-stroke; pointer-events: none; }
.fig-map__hit { fill: var(--map-land); fill-opacity: .35; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.fig-map__hit.sel, .fig-map__hit.mark, .fig-map__hit.right, .fig-map__hit.wrong, .fig-map__hit.solution { fill-opacity: .55; stroke-dasharray: none; stroke-width: 2; }
.fig-map__hit.sel { fill: var(--orange); }
.fig-map__hit.mark { fill: var(--orange); }
.fig-map__hit.right, .fig-map__hit.solution { fill: var(--green); }
.fig-map__hit.wrong { fill: var(--red); }
.fig-map__ort { fill: var(--ink); stroke: var(--card); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fig-map__ort.mark, .fig-map__ort.sel { fill: var(--orange); }
.fig-map__ort.right, .fig-map__ort.solution { fill: var(--green); }
.fig-map__ort.wrong { fill: var(--red); }
.fig-map__name { font-family: var(--display); font-weight: 700; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.fig-map__name.solution { fill: var(--green-dark); }
.fig-map__name.wrong { fill: var(--red-dark); }
.fig-map__pin { cursor: pointer; }
.fig-map__pin circle { fill: var(--card); stroke: var(--ink); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.fig-map__pin text { font-family: var(--display); font-weight: 700; text-anchor: middle; fill: var(--ink); pointer-events: none; }
.fig-map__pin.on circle { fill: var(--orange); }
.fig-map__pin.right circle { fill: var(--green); }
.fig-map__pin.wrong circle { fill: var(--red); }
.fig-map__pin.on text, .fig-map__pin.right text, .fig-map__pin.wrong text { fill: #fff; }
.fig-map__slots { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fig-map__slot { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 4px 8px 4px 6px; border: 2px dashed var(--teal); border-radius: 14px;
  background: var(--teal-soft); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.fig-map__slot b { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center;
  background: var(--card); font-family: var(--display); font-weight: 700; font-size: 15px; }
.fig-map__slot.on { border-style: solid; border-width: 3px; padding: 3px 7px 3px 5px; background: var(--card); }
.fig-map__slot.filled { border-style: solid; background: var(--card); }
.fig-map__slot.right { border-style: solid; border-color: var(--green); background: var(--green-soft); }
.fig-map__slot.wrong { border-style: solid; border-color: var(--red); background: var(--red-soft); color: var(--green-dark); }
.fig-map__hint { text-align: center; }
.fig-map--label .fig-map__svg { max-height: 36vh; }
.fig-map__slots.many { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fig-map__slots.many .fig-map__slot { gap: 5px; font-size: 14px; padding: 3px 5px 3px 3px; }
.fig-map__slots.many .fig-map__slot.on { padding: 2px 4px 2px 2px; }
.fig-map__slots.many .fig-map__slot b { width: 24px; height: 24px; font-size: 13px; }

.figure--diagram { display: block; }
.fig-d { width: 100%; max-width: 440px; margin: 0 auto; display: grid; gap: 8px; }
.fig-d__svg { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.fig-d:has(.fig-d__fields li:nth-child(5)) .fig-d__svg { max-height: 24vh; }
.fig-d:has(.fig-d__fields li:nth-child(5)) .fig-d__slot { min-height: 40px; }
.fig-d__paper { fill: #fffaf2; stroke: var(--line); stroke-width: 2; }
.fig-d__halo { stroke: #fff; stroke-width: 5.5; stroke-linecap: round; opacity: .9; }
.fig-d__lead { stroke: #3b2618; stroke-width: 2; stroke-linecap: round; }
.fig-d__dot { fill: #3b2618; stroke: #fff; stroke-width: 1.6; }
.fig-d__mk { fill: #fff; stroke: #3b2618; stroke-width: 2.5; }
.fig-d__n { fill: #3b2618; font: 900 14px Nunito, system-ui, sans-serif; text-anchor: middle; pointer-events: none; }
.fig-d__hit { fill: transparent; }
.fig-d__pin[data-pin] { cursor: pointer; }
.fig-d__pin.on .fig-d__mk { fill: #d6f2ee; stroke: #14a098; stroke-width: 3.5; }
.fig-d__pin.on .fig-d__lead, .fig-d__pin.on .fig-d__dot { stroke: #0e766f; }
.fig-d__pin.on .fig-d__lead { stroke-width: 3; }
.fig-d__pin.on .fig-d__dot { fill: #14a098; }
.fig-d__pin.ask .fig-d__mk { fill: #14a098; stroke: #3b2618; }
.fig-d__pin.ask .fig-d__n { fill: #fff; font-size: 16px; }
.fig-d__pin.right .fig-d__mk { fill: #e0f4e3; stroke: #3daa5c; stroke-width: 3; }
.fig-d__pin.wrong .fig-d__mk { fill: #fde3e0; stroke: #ef5a5a; stroke-width: 3; }
.fig-d__pin.right, .fig-d__pin.wrong { cursor: default; }
@media (prefers-color-scheme: dark) { .fig-d__paper { fill: #efe3d1; stroke: none; } .fig-d__svg { filter: brightness(.94); } }
.fig-d__fields { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; }
.fig-d__fields li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fig-d__no { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--card);
  display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.fig-d__slot { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4px 6px; border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 12px;
  font-weight: 800; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; cursor: pointer; }
.fig-d__slot.filled { border-style: solid; border-color: var(--line); background: var(--card); }
.fig-d__slot.on { border: 2.5px solid var(--teal); background: var(--teal-soft); }
.fig-d__fields li:has(.fig-d__slot.on) .fig-d__no { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.fig-d__slot.right { border: 2px solid var(--green); background: var(--green-soft); cursor: default; }
.fig-d__slot.wrong { border: 2px solid var(--red); background: var(--red-soft); color: var(--green-dark); cursor: default; }
.fig-d__note { font-size: 14px; color: var(--muted); text-align: center; }
.fig-d__pad .tpool { gap: 8px; }
.fig-d__pad .tchip { min-height: 44px; padding: 6px 12px; font-size: 16px; }

.fig-t { width: 100%; max-width: 480px; margin: 0 auto; display: grid; gap: 6px; }
.fig-t .fig-t__tab { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 2px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--card); font-size: 15px; line-height: 1.2; }
.fig-t .fig-t__tab th, .fig-t .fig-t__tab td { padding: 6px; text-align: center; vertical-align: middle; border: 0; font: inherit; color: inherit;
  overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.fig-t .fig-t__tab th { background: var(--orange-soft); font-weight: 900; border-bottom: 2px solid var(--line); }
.fig-t .fig-t__tab td { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.fig-t .fig-t__tab tbody tr:first-child td { border-top: 0; }
.fig-t .fig-t__tab th + th, .fig-t .fig-t__tab td + td { border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.fig-t .fig-t__tab .fig-t__first { font-weight: 800; }
.fig-t__slot { min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 3px 4px; border-radius: 10px;
  border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); font-weight: 800; cursor: pointer; }
.fig-t__slot.filled { border-style: solid; border-color: var(--line); background: var(--card); }
.fig-t__slot.on { border: 2.5px solid var(--teal); background: var(--teal-soft); }
.fig-t__slot.right { border: 2px solid var(--green); background: var(--green-soft); cursor: default; }
.fig-t__slot.wrong { border: 2px solid var(--red); background: var(--red-soft); color: var(--green-dark); cursor: default; }
.fig-t__note { font-size: 14px; color: var(--muted); text-align: center; }
.fig-t--narrow .fig-t__tab { font-size: 14px; }
.fig-t--narrow .fig-t__tab th, .fig-t--narrow .fig-t__tab td { padding: 5px 4px; }
.fig-t--narrow .fig-t__slot { padding: 3px 2px; }
.fig-t--small .fig-t__tab { font-size: 11px; }
.fig-t--small .fig-t__tab th, .fig-t--small .fig-t__tab td { padding: 2px 3px; }
.fig-t__pad .tpool { gap: 8px; }
.fig-t__pad .tchip { min-height: 44px; padding: 6px 12px; font-size: 16px; }

.fig-sg { width: 100%; max-width: 440px; margin: 0 auto; display: grid; gap: 6px; font-size: 15px; line-height: 1.25; }
.fig-sg__title { text-align: center; font-weight: 900; }
.fig-sg__main { border: 2px solid var(--line); background: var(--card); }
.fig-sg__seq { display: flex; flex-direction: column; min-width: 0; }
.fig-sg__seq > * + * { border-top: 2px solid var(--line); }
.fig-sg__do, .fig-sg__head { min-height: 40px; display: flex; align-items: center; padding: 6px 10px;
  overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.fig-sg__loop { display: flex; flex-direction: column; background: var(--teal-soft); }
.fig-sg__head { font-weight: 800; }
.fig-sg__body { margin-left: 22px; border-left: 2px solid var(--line); border-top: 2px solid var(--line); background: var(--card); }
.fig-sg__cond { position: relative; min-height: 64px; padding: 6px 34px 22px; text-align: center; font-weight: 800;
  display: flex; justify-content: center; align-items: flex-start; }
.fig-sg .fig-sg__cond > svg.fig-sg__tri { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0; }
.fig-sg__tri path { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fig-sg__q { position: relative; max-width: 72%; overflow-wrap: anywhere; }
.fig-sg__yn { position: absolute; bottom: 3px; font-size: 13px; font-weight: 800; color: var(--muted); }
.fig-sg__yn--ja { left: 8px; }
.fig-sg__yn--nein { right: 8px; }
.fig-sg__cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); }
.fig-sg__cols > .fig-sg__seq + .fig-sg__seq { border-left: 2px solid var(--line); }
.fig-sg__none { align-items: center; justify-content: center; color: var(--muted); min-height: 40px; }
.fig-sg--mark { background: var(--orange-soft); }
.fig-sg__do.fig-sg--mark, .fig-sg--mark > .fig-sg__head, .fig-sg--mark > .fig-sg__cond { box-shadow: inset 0 0 0 3px var(--orange); font-weight: 900; }
.fig-sg__txt { min-width: 0; }
.fig-sg__slot { flex: 1; min-height: 36px; display: flex; align-items: center; justify-content: center; padding: 3px 6px; border-radius: 10px;
  border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); font-weight: 800; cursor: pointer; background: var(--card); }
.fig-sg__q .fig-sg__slot { min-width: 120px; }
.fig-sg__slot.filled { border-style: solid; border-color: var(--line); }
.fig-sg__slot.on { border: 2.5px solid var(--teal); background: var(--teal-soft); }
.fig-sg__slot.right { border: 2px solid var(--green); background: var(--green-soft); cursor: default; }
.fig-sg__slot.wrong { border: 2px solid var(--red); background: var(--red-soft); color: var(--green-dark); cursor: default; }
.fig-sg__note { font-size: 14px; color: var(--muted); text-align: center; }
.fig-sg--small { font-size: 11px; gap: 2px; }
.fig-sg--small .fig-sg__do, .fig-sg--small .fig-sg__head { min-height: 0; padding: 2px 4px; }
.fig-sg--small .fig-sg__body { margin-left: 10px; }
.fig-sg--small .fig-sg__cond { min-height: 34px; padding: 2px 16px 12px; }
.fig-sg--small .fig-sg__yn { font-size: 9px; bottom: 1px; }
.fig-sg--small .fig-sg__note { font-size: 10px; }
.fig-sg--small .fig-sg__slot, .fig-sg--small .fig-sg__q .fig-sg__slot { min-width: 0; min-height: 0; padding: 1px 3px; border-radius: 5px; border-width: 1.5px; }
.fig-sg__pad .tpool { gap: 8px; }
.fig-sg__pad .tchip { min-height: 44px; padding: 6px 12px; font-size: 16px; }

.fig-k { --k-temp: #e2483d; --k-temp-ink: #bf3a31; --k-rain: #5b9be8; --k-rain-deep: #2d63b8; --k-rain-ink: #2b62b3; }
@media (prefers-color-scheme: dark) {
  .fig-k { --k-temp: #ff6f62; --k-temp-ink: #ff9a8f; --k-rain: #5f9fee; --k-rain-deep: #3166bb; --k-rain-ink: #8dbdf7; }
}
.fig-k text { font-family: Nunito, system-ui, sans-serif; }
.fig-k__head { fill: var(--ink); font-size: 14px; font-weight: 700; }
.fig-k__place { font-family: var(--display); font-size: 18px; font-weight: 600; }
.fig-k__rest { fill: var(--muted); }
.fig-k__sum { fill: var(--muted); font-size: 14px; font-weight: 700; }
.fig-k__t-ink { fill: var(--k-temp-ink); }
.fig-k__r-ink { fill: var(--k-rain-ink); }
.fig-k__num { font-weight: 700; }
.fig-k__unit { font-size: 14px; font-weight: 800; }
.fig-k__rain { fill: var(--k-rain); }
.fig-k__rain.deep { fill: var(--k-rain-deep); }
.fig-k__temp { fill: none; stroke: var(--k-temp); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fig-k__dot { fill: var(--k-temp); stroke: var(--card); stroke-width: 1.5; }
.fig-k__month { fill: var(--ink); font-weight: 800; text-anchor: middle; }
.fig-k__month.on { fill: var(--orange-ink); font-weight: 900; }
.fig-k__note { fill: var(--muted); font-size: 12px; font-weight: 700; }
.fig-k__band { fill: transparent; }
.fig-k__band.mark, .fig-k__band.sel { fill: var(--orange-soft); stroke: var(--orange); stroke-width: 2; }
.fig-k__band.right { fill: var(--green-soft); stroke: var(--green); stroke-width: 2; }
.fig-k__band.wrong { fill: var(--red-soft); stroke: var(--red); stroke-width: 2; }
.fig-k__band.solution { fill: var(--green-soft); stroke: var(--green); stroke-width: 2; stroke-dasharray: 5 4; }
.fig-k__hit { fill: transparent; cursor: pointer; }
.fig-k__hint { text-align: center; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--bg); border-top: 2px solid var(--line);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.sheet .inner { max-width: 688px; margin: 0 auto; }
.sheet.ok { background: var(--green-soft); border-color: transparent; }
.sheet.bad { background: var(--red-soft); border-color: transparent; }
.sheet.show { animation: up .22s ease-out; }
.verdict { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; margin-bottom: 6px; }
.sheet.ok .verdict { color: var(--green-dark); }
.verdict .ic-richtig { flex: none; animation: richtig .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes richtig { from { transform: scale(.3) rotate(-25deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .verdict .ic-richtig { animation: none; } }
.sheet.bad .verdict { color: var(--red-dark); }
.sheet .solution { font-weight: 800; margin-bottom: 4px; }
.sheet .expl { font-size: 15px; margin-bottom: 14px; }
.sheet.ok .expl { color: var(--green-dark); }
.sheet.bad .expl { color: var(--red-dark); }
.sheet.near { background: var(--orange-soft); }
.sheet.near .verdict, .sheet.near .expl { color: var(--orange-ink); }
.sheet .near-hint { font-weight: 800; color: var(--orange-ink); margin-bottom: 4px; }
.sheet.fixing { background: var(--orange-soft); border-color: transparent; }
.sheet .fixhint { font-weight: 800; color: var(--orange-ink); margin-bottom: 12px; }
.tchip.fixed { cursor: default; }
.frac-w { white-space: nowrap; }
.frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; font-size: .88em; line-height: 1.08; margin: 0 .1em; }
.frac__n { border-bottom: max(1.5px, .08em) solid currentColor; padding: 0 .15em .04em; }
.frac__d { padding: .04em .15em 0; }
.frac__s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sheet .xpgain { float: right; font-weight: 900; color: var(--gold); }

.result { text-align: center; padding-top: 30px; }
.result .bigstars { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.result .bigstars .orange-ico { width: 64px; height: 64px; }
.result .bigstars span { display: inline-block; animation: starIn .5s both; }
.result .bigstars span:nth-child(2) { animation-delay: .25s; }
.result .bigstars span:nth-child(3) { animation-delay: .5s; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.tile { border: 2px solid; border-radius: 20px; overflow: hidden; font-weight: 900; background: var(--card); }
.tile .lbl { color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 4px; }
.tile .val { padding: 12px 4px; font-size: 22px; background: var(--card); }
.tile.gold { border-color: var(--gold); } .tile.gold .lbl { background: var(--gold); } .tile.gold .val { color: var(--gold); }
.tile.green { border-color: var(--green); } .tile.green .lbl { background: var(--green); } .tile.green .val { color: var(--green); }
.tile.teal { border-color: var(--teal); } .tile.teal .lbl { background: var(--teal); } .tile.teal .val { color: var(--teal); }
.mistake { text-align: left; border-left: 5px solid var(--red); }
.mistake .q { font-weight: 900; margin-bottom: 6px; }
.mistake .was { color: var(--red); font-weight: 800; text-decoration: line-through; }
.mistake .is { color: var(--green-dark); font-weight: 800; }
.badge { display: inline-block; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 600; padding: 5px 16px; border-radius: 99px; font-size: 16px; }

.hist { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.hist .pct { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #fff; }
.hist .info { flex: 1; min-width: 0; }
.hist .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .ico { font-size: 20px; flex: none; }
.daylabel { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 17px; margin: 22px 0 8px; }

.empty { text-align: center; padding: 40px 10px; color: var(--muted); font-weight: 700; }
.empty .big { font-size: 64px; display: block; }
.error { background: var(--red-soft); color: var(--red-dark); font-weight: 800; border-radius: 14px; padding: 12px 14px; }
.btn.google, .btn.apple { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.google svg, .btn.apple svg { flex: none; }
.btn.apple { background: #000; color: #fff; border-color: #000; font-family: -apple-system, system-ui, sans-serif; }
@media (prefers-color-scheme: dark) { .btn.apple { background: #fff; color: #000; border-color: #fff; } }
.welcome .or { margin: 4px 0 0; }
.welcome .small a { color: var(--teal); }

@media (max-width: 420px) {
  .qtext { font-size: 21px; margin-bottom: 18px; }
  .answer { font-size: 17px; padding: 12px 14px; }
  .chips { gap: 10px; }
}
@media (min-width: 768px) {
  .qtext { font-size: 28px; }
  .answer { padding: 18px 20px; font-size: 20px; }
}

.capy { overflow: visible; display: block; flex: none; }
.center > .capy { margin-left: auto; margin-right: auto; }
.capy [class^="c-"] { transform-box: fill-box; }
.capy .c-all { transform-origin: 50% 100%; }
.capy .c-head { transform-origin: 50% 90%; }
.capy .c-shadow { transform-origin: 50% 50%; }
.capy .c-blink { transform-origin: 50% 50%; animation: capyBlink 4.2s infinite; }
.capy .c-arm { transform-box: view-box; }
.capy .c-arm-l { transform-origin: 53px 115px; transform: rotate(-16deg); }
.capy .c-arm-r { transform-origin: 147px 115px; transform: rotate(16deg); }

.capy--idle .c-all, .capy--comfort .c-all, .capy--think .c-all { animation: capyBreathe 3.2s ease-in-out infinite; }
.capy--wave .c-arm-r, .capy--comfort .c-arm-r { animation: capyWave 1s ease-in-out infinite; }
.capy--wave .c-all { animation: capyBreathe 3.2s ease-in-out infinite; }
.capy--think .c-head { animation: capyTilt 3s ease-in-out infinite; }
.capy--think .c-q { transform-origin: 50% 50%; animation: capyBob 1.6s ease-in-out infinite; }

.capy--happy .c-all { animation: capyHop .55s ease-out 3; }
.capy--happy .c-shadow { animation: capyShadow .55s ease-out 3; }
.capy--happy .c-arm-l { transform: rotate(-40deg); }
.capy--happy .c-arm-r { transform: rotate(40deg); }

.capy--cheer .c-all { animation: capyHop .6s ease-out infinite; }
.capy--cheer .c-shadow { animation: capyShadow .6s ease-out infinite; }
.capy--cheer .c-arm-l { animation: capyCheerL .6s ease-in-out infinite; }
.capy--cheer .c-arm-r { animation: capyCheerR .6s ease-in-out infinite; }
.capy--cheer .c-orange { transform-origin: 50% 100%; animation: capyWobble .6s ease-in-out infinite; }

.capy--oops .c-head { animation: capyShake .5s ease-in-out 1, capyTilt 3s ease-in-out .5s infinite; }
.capy--oops .c-arm-l { transform: rotate(-30deg); }
.capy--oops .c-arm-r { transform: rotate(30deg); }
.capy--oops .c-sweat { transform-origin: 50% 0; animation: capyDrip 1.4s ease-in infinite; }

.capy--comfort .c-heart { transform-origin: 50% 50%; animation: capyPulse 1s ease-in-out infinite; }
.capy--sleep .c-all { animation: capyBreathe 4s ease-in-out infinite; }
.capy--sleep .c-zzz { animation: capyBob 2.4s ease-in-out infinite; }
.capy--sleep .c-head { transform: rotate(-6deg); }
.capy .c-tw { transform-origin: 50% 50%; animation: capyTwinkle 1.2s ease-in-out infinite; }
.capy .c-tw2 { animation-delay: .3s; }
.capy .c-tw3 { animation-delay: .6s; }

@keyframes capyBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes capyBreathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, 1.03); } }
@keyframes capyWave { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-115deg); } }
@keyframes capyTilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes capyBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes capyHop {
  0% { transform: translateY(0) scale(1.08, .92); }
  35% { transform: translateY(-22%) scale(.95, 1.06); }
  70% { transform: translateY(0) scale(1.06, .94); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes capyShadow { 0%, 70%, 100% { transform: scale(1); opacity: .12; } 35% { transform: scale(.7); opacity: .06; } }
@keyframes capyCheerL { 0%, 100% { transform: rotate(150deg); } 50% { transform: rotate(125deg); } }
@keyframes capyCheerR { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-125deg); } }
@keyframes capyWobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes capyShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5%); } 40%, 80% { transform: translateX(5%); } }
@keyframes capyDrip { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(40%); opacity: 0; } }
@keyframes capyPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes capyTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }

.capy-overlay {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 94%, transparent); animation: fadeIn .2s ease-out;
  padding: 16px;
}
.capy-overlay.out { animation: fadeOut .22s ease-in forwards; }
.capy-overlay__inner { text-align: center; animation: popIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.capy-overlay__inner .capy { margin: 0 auto 10px; }
.capy-overlay__title { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--orange-ink); }
.capy-overlay__text { font-size: 18px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.capy-overlay.ask { cursor: default; background: color-mix(in srgb, var(--bg) 98%, transparent); }
.ask .capy-overlay__inner { width: 100%; max-width: 340px; }
.ask .capy-overlay__title { font-size: 26px; }
.ask__btns { display: grid; gap: 14px; margin-top: 24px; }
.learn .capy-overlay__inner { max-width: 520px; width: 100%; }
.learn__cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.learn__cards li.saying { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.learn .capy-overlay__title .saybtn { float: none; display: inline-grid; margin: 0 0 0 8px; vertical-align: middle; }
.learn__cards li { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: 17px; font-weight: 600; line-height: 1.35; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }

.speak { display: flex; align-items: center; gap: 10px; }
.bubble {
  position: relative; flex: 1; min-width: 0; background: var(--card); border: 2px solid var(--line);
  border-radius: 18px; padding: 12px 16px; font-family: var(--display); font-weight: 500; font-size: 18px;
}
.bubble::before, .bubble::after {
  content: ""; position: absolute; top: 50%; border: 10px solid transparent; transform: translateY(-50%);
}
.bubble::before { left: -21px; border-right-color: var(--line); }
.bubble::after { left: -17px; border-right-color: var(--card); }
.brand { display: flex; align-items: center; gap: 8px; }
.qspeak { margin: 26px 0 22px; align-items: flex-end; }
.qbuddy { position: relative; flex: none; }
.qcount { background: var(--teal); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 14px; font-weight: 500; white-space: nowrap; flex: none; }
.powertag { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  background: var(--gold); color: #4a2c17; font-weight: 900; font-size: 11px; border-radius: 99px; padding: 2px 8px; border: 2px solid #4a2c17; }
.powertag.new { animation: powerIn .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes powerIn { from { transform: translateX(-50%) scale(0) rotate(-20deg); } }
.xpfly { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-weight: 900; font-size: 22px; color: var(--gold);
  -webkit-text-stroke: 1px #4a2c17; pointer-events: none; animation: xpFly 1.1s ease-out forwards; }
@keyframes xpFly { 0% { transform: translate(-50%, 10px) scale(.5); opacity: 0; } 25% { opacity: 1; transform: translate(-50%, -14px) scale(1.2); } 100% { transform: translate(-50%, -60px) scale(1); opacity: 0; } }

.track { flex: 1; position: relative; height: 18px; background: var(--line); border-radius: 99px; margin-right: 18px; }
.track .fill { height: 100%; background: linear-gradient(90deg, #ffb347, var(--orange)); border-radius: 99px; transition: width .5s cubic-bezier(.3, 1.2, .5, 1); position: relative; }
.track .fill::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.track .runner { position: absolute; top: 50%; transform: translate(-50%, -58%); transition: left .5s cubic-bezier(.3, 1.2, .5, 1); z-index: 2; }
.track .runner .capy { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.track .flag { position: absolute; right: -16px; top: 50%; transform: translateY(-55%); font-size: 22px; }
.track.fire .fill { background: linear-gradient(90deg, #ffc531, #ff8a00, #e5484d); }
.track.fire .runner::before { content: "🔥"; position: absolute; right: 85%; top: 20%; font-size: 18px; animation: flameTrail .3s ease-in-out infinite alternate; }
@keyframes flameTrail { from { transform: scale(.9) rotate(-80deg); } to { transform: scale(1.15) rotate(-95deg); } }
.qspeak .bubble { margin: 0; padding: 14px 18px; }
.saybtn { float: right; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -8px 4px 10px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; position: relative; }
.saybtn:active { transform: translateY(2px); }
.saybtn.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid var(--teal); animation: nodeRing 1s ease-out infinite; }
.saybtn.nudge { animation: chestWobble 1.6s ease-in-out infinite; }
.answer.saying, .task-tf__row.saying { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft), 0 4px 0 var(--teal); transform: scale(1.02); transition: transform .15s, box-shadow .15s; }
.qspeak .bubble::before, .qspeak .bubble::after { top: auto; bottom: 18px; transform: none; }
.empty .capy { margin: 0 auto 10px; }
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 2px; flex-wrap: wrap; }
.result .capy { margin: 0 auto -10px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
#confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pop { 50% { transform: scale(1.4); } }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.pagehead--profile h1 { flex: 1; text-align: center; font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pagehead--profile .iconbtn .ic { display: block; }
.profilehero { position: relative; display: grid; place-items: center; padding: 22px 0 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal-soft), var(--orange-soft)); }
.profilehero__avatar { display: grid; place-items: center; width: 148px; height: 148px; border-radius: 50%; background: var(--card); font-size: 80px; overflow: hidden;
  box-shadow: var(--shadow); }
.profilehero__edit { position: absolute; right: calc(50% - 86px); bottom: 16px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); cursor: pointer; }
.profilehero__edit .ic { display: block; }
.profilehero__avatar:has(.avatar-svg), .profilehead__avatar:has(.avatar-svg) { width: auto; height: auto; border-radius: 22px; background: none; }
.profilehero:has(.avatar-svg) .profilehero__edit { right: calc(50% - 100px); bottom: 8px; }
.profile-page > .center { margin-top: 10px; }
.profile-page > .center > * + * { margin-top: 2px; }
.profile-subjects { justify-content: center; }
.ptiles.ptiles--grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.tsavatars { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; }
.tsavatar { flex: none; width: 72px; display: grid; justify-items: center; gap: 2px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.tsavatar__pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); border: 3px solid var(--orange); overflow: hidden; font-size: 34px; }
.tsavatar small { font-weight: 900; color: var(--orange-ink); font-size: 13px; }
.tsavatar b { font-size: 13px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsavatar.out .tsavatar__pic { border-style: dashed; border-color: var(--muted); opacity: .7; }
.tsavatar.out small { color: var(--muted); }
.tsavatar--plus .tsavatar__pic { background: none; border: 3px dashed var(--line); color: var(--muted); font-family: var(--display); font-weight: 600; }
.tsavatar--plus b { color: var(--muted); }
.profilehead { margin: 4px 0 2px; }
.profilehead__avatar { display: inline-grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; background: var(--teal-soft);
  border: 3px solid var(--edge); box-shadow: 0 4px 0 var(--edge); font-size: 64px; overflow: hidden; }
.profilehead h1 { margin: 10px 0 0; }
.ptiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.ptile { display: grid; justify-items: center; gap: 2px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 10px 4px; }
.ptile__icon { font-size: 22px; }
.ptile b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.ptile small { color: var(--muted); font-weight: 800; font-size: 12px; }
.codecard { text-align: center; }
.fcode { font-family: var(--display); font-size: 38px; font-weight: 600; letter-spacing: .08em; color: var(--teal-dark); margin: 2px 0 10px; }
.codecard__btns, .sheet-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sheet-btns { margin-top: 14px; }
.sheet-btns .btn { flex: 1; }
.codecard p { margin: 10px 0 0; }
.flist { padding: 6px 10px; }
.frow, .setrow { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-bottom: 2px solid var(--line);
  padding: 10px 2px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.frow:last-child, .setrow:last-child { border-bottom: 0; }
.frow__avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-soft); font-size: 28px; overflow: hidden; }
.frow__name { flex: 1; min-width: 0; display: grid; }
.frow__name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow__streak { font-weight: 900; color: var(--orange-ink); }
.frow__streak.off { color: var(--muted); opacity: .7; }
.freq { display: flex; align-items: center; gap: 12px; padding: 12px; border-color: var(--teal); margin-bottom: 10px; }
.freq__btns { display: flex; gap: 6px; flex: none; }
.freq__alias { color: var(--teal-dark); font-weight: 800; }
.freq__alias .ic { vertical-align: -3px; }
.freq:has(.freq__foot) { flex-wrap: wrap; }
.freq__foot { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-left: 60px; }
.lcard { display: grid; gap: 14px; }
.lcard .profilehead { margin: 0; }
.lcard .profilehead__avatar:not(:has(.avatar-svg)) { width: 112px; height: 112px; }
.lcard .psheet__title { margin-top: 8px; }
.lcard .card.note { margin: 0; }
.lcard__more { display: flex; justify-content: center; gap: 24px; }
.lcard .pbadges { display: flex; justify-content: center; gap: 14px; }
.lcard .pbadge { width: 72px; }
.fout { margin-top: 8px; line-height: 2; }
.fout__code { display: inline-flex; align-items: center; gap: 2px; background: var(--line); border-radius: 999px; padding: 0 4px 0 10px; font-weight: 800; color: var(--ink); }
.codeinput { font-family: var(--display); font-size: 28px; text-align: center; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 10px; }
.pbadges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pbadge { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pbadge small { font-weight: 800; font-size: 12px; color: var(--muted); line-height: 1.2; }
.setlist { padding: 4px 14px; }
.setrow span:first-child { font-size: 22px; width: 28px; text-align: center; flex: none; }
.setrow i { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 800; font-size: 14px; }
.setrow--theme { cursor: default; }
.setrow--theme .seg { flex: 1; }
.setrow--theme .seg button { padding: 8px 4px; font-size: 14px; }
.setrow--read .seg { margin-top: 8px; }

.ptile--league b { font-size: 15px; line-height: 27px; }
.ptile .lbadge { display: block; }

.lbadge.dim { filter: grayscale(1); opacity: .4; }
.league-head { text-align: center; }
.league-head h1 { margin: 6px 0 0; }
.league-head .lzone { margin-top: 6px; color: var(--green-dark); font-weight: 800; }
.lneed { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.lneed > svg { flex: none; }
.lbadges { display: flex; justify-content: center; align-items: center; gap: 2px; }
.lbadges span { display: grid; }
.lbadges span.on { margin: 0 4px; filter: drop-shadow(0 3px 0 rgba(59, 38, 24, .25)); }
.llist { padding: 6px 8px; }
.lrow { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 2px solid transparent; border-radius: 14px;
  padding: 6px 8px; font: inherit; color: inherit; text-align: left; }
button.lrow { cursor: pointer; }
.lrow + .lrow { margin-top: 2px; }
.lrow.up { background: var(--green-soft); }
.lrow.down { background: var(--red-soft); }
.lrow.me { border-color: var(--teal); }
.lrow .frow__avatar { width: 40px; height: 40px; font-size: 24px; }
.lrow__rank { width: 30px; flex: none; text-align: center; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); }
.lrow__rank .ic { display: block; margin: 0 auto; }
.lrow__name { flex: 1; min-width: 0; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__xp { flex: none; font-weight: 900; color: var(--orange-ink); }
.lsep { margin: 6px 4px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.lsep::before, .lsep::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .35; border-radius: 2px; }
.lsep.up { color: var(--green-dark); }
.lsep.down { color: var(--red-dark); }
.league-howto { line-height: 1.5; }
.capy-overlay__title .lbadge { margin-bottom: 4px; }

.rankseg button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rankseg button .ic { flex: none; }
.league-head > .ic { display: block; margin: 0 auto; }
.lrow.zero .lrow__xp, .lrow.zero .lrow__name { color: var(--muted); }
.rankweek { display: flex; align-items: center; gap: 12px; border: 2px solid var(--gold); }
.rankweek > .ic { flex: none; }
.rankgoal { display: grid; gap: 10px; }
.rankgoal__head { display: flex; align-items: center; gap: 10px; }
.rankgoal__head > .ic { flex: none; }

.tslist { padding: 6px 12px; }
.tsrow { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-bottom: 2px solid var(--line);
  padding: 10px 0; font: inherit; color: inherit; text-align: left; }
button.tsrow { cursor: pointer; }
.tsrow:last-child { border-bottom: 0; }
.tspair { flex: none; display: flex; }
.tspair > * { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); border: 2px solid var(--card); display: grid; place-items: center;
  font-size: 22px; overflow: hidden; }
.tspair > * + * { margin-left: -12px; }
.tsrow__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tsbars { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.tsbars small { font-weight: 800; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.tsbar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tsbar span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.tsrow__weeks { flex: none; display: grid; justify-items: center; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--orange-ink); }
.tsrow__weeks small { font-family: inherit; font-size: 11px; color: var(--muted); }
.tsrow__weeks.off { color: var(--muted); }

.plaque { display: block; flex: none; overflow: visible; }
.plaque__rim, .plaque__band { fill: var(--pc); }
.plaque__tails { fill: var(--pc); opacity: .75; }
.plaque__in { fill: var(--card); }
.plaque__label { font: 600 13px var(--display); fill: #fff; }
.plaque__q { font: 600 30px var(--display); fill: var(--muted); }
.plaque.dim .plaque__rim, .plaque.dim .plaque__tails, .plaque.dim .plaque__band { fill: var(--line); opacity: 1; }
.plaque.dim .plaque__label { fill: var(--muted); }
.questcard { display: grid; gap: 12px; }
.questcard__head { display: flex; align-items: center; gap: 14px; }
.questcard__head b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.quest { display: flex; align-items: center; gap: 10px; }
.quest__check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center;
  font-weight: 800; color: #fff; }
.quest.done .quest__check { background: var(--teal); border-color: var(--teal); }
.quest__main { flex: 1; min-width: 0; display: grid; gap: 5px; font-weight: 700; }
.quest > small { flex: none; font-weight: 800; color: var(--muted); min-width: 44px; text-align: right; }
.quest.done .tsbar span { background: var(--teal); }
.pshelf { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.pshelf__item { flex: none; }
.ach-won .plaque { display: inline-block; vertical-align: middle; margin-right: 8px; }
.capy-overlay__title .plaque { margin: 0 auto 4px; }

.missioncard { display: grid; gap: 14px; }
.missioncard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.missioncard__head b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.mission { display: flex; align-items: center; gap: 12px; }
.mission__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--orange-soft); }
.mission__icon .ic { display: block; }
.mission .quest__main small { font-weight: 800; font-size: 12px; }
.mission.done .tsbar span { background: var(--teal); }
.mission__chest { flex: none; opacity: .55; }
.mission__chest .ic, .mission__claim .ic { display: block; }
.mission__claim { flex: none; display: inline-flex; align-items: center; gap: 4px; padding-left: 8px; animation: missionpulse 1.6s ease-in-out infinite; }
.mission__got { flex: none; font-weight: 800; color: var(--teal-dark); white-space: nowrap; }
.mission.claimed .mission__icon { opacity: .6; }
@keyframes missionpulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mission__claim { animation: none; } }

a.setrow { text-decoration: none; }
.setrow--static { cursor: default; }
.setrow__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); overflow: hidden; }
.setrow span.setrow__avatar { width: 40px; font-size: 24px; }
.setrow__main { flex: 1; min-width: 0; display: grid; }
.setrow__main small { font-weight: 700; font-size: 13px; }
.setrow i .ic { display: block; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.pagehead h1 { margin: 0; }
.settings h2 { font-size: 17px; margin: 18px 0 8px; color: var(--muted); }
.psheet label { display: grid; gap: 4px; font-weight: 800; }

.fevent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.fevent__body { flex: 1; min-width: 0; line-height: 1.4; }
.fevent__icon { flex: none; display: grid; place-items: center; }
.fevent__acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.fevent__likes { font-weight: 800; font-size: 14px; color: var(--muted); }
.likebtn { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 800;
  font-size: 15px; color: var(--ink); cursor: pointer; }
.likebtn.on { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); }
.giftcard { display: flex; gap: 12px; align-items: center; border-color: var(--gold); background: linear-gradient(135deg, var(--card), var(--orange-soft)); }
.giftcard__box { font-size: 40px; animation: giftwiggle 1.6s ease-in-out infinite; }
@keyframes giftwiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .giftcard__box { animation: none; } }
.cheercard { display: flex; gap: 12px; align-items: center; border-color: var(--orange); background: linear-gradient(135deg, var(--card), var(--orange-soft)); }
.cheercard__icon { flex: none; animation: giftwiggle 1.6s ease-in-out infinite; }
.cheercard .btn { flex: none; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .cheercard__icon { animation: none; } }
.cheerbtn__state { display: grid; place-items: center; height: 26px; }
.cheerbtn.done { cursor: default; opacity: .8; }
.cheerbtn.done .frow__avatar { filter: saturate(.6); }
.giftgive { display: grid; gap: 10px; }
.giftgive__row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.giftgive__friend { flex: none; display: grid; justify-items: center; gap: 4px; width: 72px; padding: 6px 2px; background: none; border: 2px solid transparent;
  border-radius: 14px; font: inherit; color: var(--ink); cursor: pointer; }
.giftgive__friend:active { border-color: var(--orange); background: var(--orange-soft); }
.giftgive__friend .small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.friends { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.friend { display: grid; place-items: center; gap: 4px; text-align: center; cursor: pointer; font: inherit; color: inherit; border: 2px solid var(--line); }
.friend .capy { margin: 0 auto; }
.friendhead { margin: 6px 0 14px; }
.friendhead #fbig { cursor: pointer; display: inline-block; }
.friendhead p { margin: 8px auto 2px; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip.trait { background: var(--teal-soft); color: var(--teal-dark); border-radius: 999px; padding: 4px 10px; font-size: 14px; font-weight: 800; }
.rel { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.rel .capy { flex: none; }

.storybtn { border: 0; background: var(--teal-soft); border-radius: 10px; padding: 2px 8px; margin: 0 6px; font-size: 16px; cursor: pointer; }
.story { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow: hidden; animation: popIn .3s ease-out; }
.story.out { animation: fadeOut .22s ease-in forwards; }
.filmstage { position: fixed; inset: 0; z-index: 60; background: var(--bg); animation: popIn .3s ease-out; }
.filmstage.out { animation: fadeOut .22s ease-in forwards; }
.filmstage__wait { position: absolute; inset: 0; display: grid; place-items: center; }
.filmstage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; }
.filmstage.on iframe { opacity: 1; }
.story__sky, .story__ground { position: absolute; left: 0; right: 0; }
.story__sky { inset: 0; }
.story__ground { bottom: 0; height: 42%; }
.story__top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.story__top b { background: rgba(255, 255, 255, .9); color: #3b2618; border-radius: 12px; padding: 6px 12px; font-size: 16px; }
.story__skip { border: 0; background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.story__btns, .film__btns { display: flex; gap: 8px; align-items: center; }
.story__stage { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding: 0 8px 8px; cursor: pointer; }
.story__actor { transition: transform .25s, opacity .25s; opacity: .8; }
.story__actor.talk { opacity: 1; animation: storyTalk .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes storyTalk { from { transform: translateY(14px) scale(.9); } to { transform: none; } }
.story__say { position: relative; margin: 0 12px max(14px, env(safe-area-inset-bottom)); background: #fff; color: #3b2618; border-radius: 20px;
  padding: 14px 16px 12px; border: 3px solid #3b2618; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); animation: popIn .3s ease-out; max-width: 640px; align-self: center; width: calc(100% - 24px); }
.story__say::before { content: ""; position: absolute; top: -14px; left: var(--tip, 50%); margin-left: -12px; transition: left .25s; border: 12px solid transparent; border-top: 0; border-bottom: 14px solid #3b2618; }
.story__name { font-family: var(--display); font-weight: 600; color: #0e766f; font-size: 16px; }
.story__text { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 4px 0 10px; }
.story__nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.story__back { border: 2px solid #d5dcd2; background: #fff; color: #3b2618; font: inherit; font-weight: 800; font-size: 15px;
  border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.story__back:disabled { visibility: hidden; }
.story__nav .small { color: #6b766b; }
.story__room { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; padding: clamp(18px, 5vh, 48px) 16px 14px; cursor: pointer; }
.story--board .story__stage { flex: 0 0 auto; }
.story__board { position: relative; width: 100%; max-width: 560px;
  background-color: var(--card); color: var(--ink); border: 3px solid var(--edge); border-radius: 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .2); padding: 14px 14px 12px;
  background-image: linear-gradient(var(--board-grid) 1px, transparent 1px), linear-gradient(90deg, var(--board-grid) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
  --board-grid: color-mix(in srgb, var(--teal) 13%, transparent); }
.story__board::before { content: ""; position: absolute; top: -11px; left: 50%; width: 64px; height: 20px; margin-left: -32px;
  background: var(--orange); opacity: .85; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.story__board.pop { animation: popIn .3s ease-out; }
.story__lines { display: flex; flex-direction: column; align-items: center; width: max-content; margin: 0 auto; row-gap: .1em;
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 7.6vw, 38px); line-height: 1.25;
  white-space: nowrap; font-variant-numeric: tabular-nums; }
.story__lines b { color: var(--orange-ink); font-weight: 700; }
.sb-run { display: grid; grid-template-columns: auto auto auto; column-gap: .32em; row-gap: .1em; }
.sb-line { display: contents; }
.sb-l { text-align: right; }
.sb-x { text-align: left; }
.sb-line--wide { display: block; text-align: center; }
.story__lines .new > span, .story__lines .sb-line--wide.new { animation: boardWrite .55s ease-out var(--d, 0s) backwards; }
.story__lines .new > .sb-r { animation-delay: calc(var(--d, 0s) + .12s); }
.story__lines .new > .sb-x { animation-delay: calc(var(--d, 0s) + .2s); }
@keyframes boardWrite { from { clip-path: inset(0 100% 0 0); opacity: .3; } to { clip-path: inset(0 -4px 0 0); opacity: 1; } }
.story__board--fig { background-image: none; }
.story__fig .figure { margin: 4px 0 0; }
.story__fig svg { width: 100%; max-width: 440px; max-height: min(32vh, 280px); }
.story__fig.new { animation: popIn .35s ease-out .1s backwards; }
@media (prefers-reduced-motion: reduce) { .story__board.pop, .story__lines .new > span, .story__lines .sb-line--wide.new, .story__fig.new { animation: none; } }

.film { justify-content: flex-start; }
.film__top { position: absolute; z-index: 7; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.film__top b { background: rgba(255, 255, 255, .92); color: #3b2618; border-radius: 12px; padding: 6px 12px; font-size: 16px; }
.film__new { display: inline-block; margin-left: 4px; background: var(--orange); color: #fff; border-radius: 8px; padding: 1px 7px; font-size: 12px; vertical-align: 2px; }
.film__skip { border: 0; background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.film__say { position: absolute; z-index: 7; left: 0; right: 0; top: calc(max(14px, env(safe-area-inset-top)) + 54px); margin: 0 auto;
  width: calc(100% - 32px); max-width: 560px; background: #fff; color: #3b2618; border: 3px solid #3b2618; border-radius: 20px;
  padding: 10px 16px 12px; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); animation: popIn .3s ease-out; }
.film__say::after { content: ""; position: absolute; bottom: -16px; left: var(--tip, 50%); margin-left: -12px;
  border: 12px solid transparent; border-bottom: 0; border-top: 16px solid #3b2618; }
.film__name { font-family: var(--display); font-weight: 600; color: var(--teal-dark); font-size: 16px; }
.film__text { font-size: 20px; font-weight: 800; line-height: 1.3; margin-top: 2px; }
.film__foot { position: absolute; z-index: 7; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column;
  align-items: center; gap: 10px; }
.film__foot .btn { min-width: 180px; }
.film__dots { display: flex; gap: 6px; }
.film__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.film__dots i.on { background: #fff; transform: scale(1.3); }

.manage .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.manage .tabs button { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 14px; font-weight: 800; cursor: pointer; }
.manage .tabs button.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.manage table { width: 100%; border-collapse: collapse; font-size: 15px; }
.manage th, .manage td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.manage th { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); }
.manage tr.click { cursor: pointer; }
.manage tr.click:hover td { background: var(--teal-soft); }
.manage tr.inactive td { opacity: .45; }
.manage .scroll { overflow-x: auto; }
.manage textarea { width: 100%; min-height: 360px; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.manage .ans { font-size: 14px; }
.manage .ans .c { color: var(--green-dark); font-weight: 800; }
.manage .rate { font-weight: 900; }
.manage .ok, .welcome .ok { background: var(--green-soft); color: var(--green-dark); font-weight: 800; border-radius: 14px; padding: 12px 14px; white-space: pre-wrap; }
.manage .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.manage .pill { display: inline-block; border-radius: 8px; padding: 1px 8px; font-size: 12px; font-weight: 900; background: var(--line); }
.manage code { background: var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.manage .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.manage .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.manage .kpi { padding: 12px 14px; }
a.card.kpi { color: inherit; text-decoration: none; }
.manage .kpi.click { cursor: pointer; }
.manage .kpi-n { font-size: 24px; font-weight: 900; line-height: 1.2; }
.manage .admin-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.manage label.small { display: flex; flex-direction: column; gap: 4px; }
a.btn { text-decoration: none; }

.parents .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 0 16px 4px; }
.parents .tabs button { flex: none; white-space: nowrap; }
.parents .top .tools a { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.row.click { cursor: pointer; }
.row[hidden] { display: none; }
.kid { display: flex; gap: 14px; align-items: center; }
.kid .big { font-size: 44px; }
.kid .stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 800; color: var(--muted); margin-top: 4px; }
.code-show { font-size: 34px; font-weight: 900; letter-spacing: .14em; text-align: center; padding: 14px; border-radius: 16px; background: var(--teal-soft); color: var(--teal-dark); user-select: all; }
.qr { display: block; width: 100%; height: auto; border-radius: 8px; }
.qr-box { display: grid; justify-items: center; gap: 6px; text-align: center; }
.qr-box .qr { width: min(220px, 70vw); }
.linkbox { font-size: 13px; word-break: break-all; background: var(--line); border-radius: 10px; padding: 10px 12px; user-select: all; }
.danger { border-color: var(--red-soft); }
.manage tr.inactive td, .row.inactive { opacity: .5; }

.parents textarea { min-height: 0; font: inherit; font-weight: 700; padding: 12px 14px; border-radius: 14px; }
.parents select, .parents input[type=date], .manage select, .manage input[type=date] { font: inherit; font-weight: 700; padding: 12px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.parents input[type=date], .manage .admin-fields input[type=date] { display: block; width: 100%; margin-top: 6px; }
.manage label.small select { width: 100%; }
.parents .seg button { font-size: 13px; }
.privacy { background: var(--teal-soft); color: var(--teal-dark); border-radius: 12px; padding: 10px 12px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .n { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 900; border-radius: 8px; padding: 1px 7px; }
.thumb button { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-weight: 900; cursor: pointer; }
label.btn { cursor: pointer; text-align: center; }
.spin { display: inline-block; font-size: 24px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.2); opacity: .6; } }
.qcard textarea { width: 100%; }
.ans-row { display: flex; gap: 8px; align-items: center; }
.ans-row textarea { flex: 1; min-width: 0; padding: 10px 12px; }
textarea.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 16px; white-space: pre; overflow-x: auto; }
textarea.mono[data-task] { white-space: pre-wrap; overflow-x: hidden; }
.figure-edit .figure { margin: 0; }
.figure-edit details textarea { margin-top: 8px; }
.addkinds { flex-wrap: wrap; }
.pair-row { gap: 4px; }
.pair-row input[type=text] { flex: 1; min-width: 0; padding: 10px 8px; font-size: 16px; }
.pair-row .iconbtn { flex: none; width: 32px; }
textarea.auto { display: block; width: 100%; resize: none; overflow: hidden; line-height: 1.35; margin-top: 4px; }
.parents #kind { flex-wrap: wrap; }
.parents #kind button { flex: 1 1 40%; }
.correct { display: flex; }
.correct input { position: absolute; opacity: 0; pointer-events: none; }
.correct span { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; color: transparent; cursor: pointer; }
.correct input:checked + span { background: var(--green); border-color: var(--green-dark); color: #fff; }
.correct input:focus-visible + span { outline: 3px solid var(--teal); }
.pill.warn { background: var(--gold); color: #3a2a00; }
.notes { background: #fff8e1; border-color: #f2df9b; color: #5a4500; }
@media (prefers-color-scheme: dark) { .notes { background: #3a3218; border-color: #5a4c1e; color: #f2e3a8; } }
.story-card .panel { display: flex; gap: 10px; align-items: flex-start; }
.story-card .panel > svg, .story-card .panel > div:first-child { flex: none; }
.story-card__board { display: inline-block; margin-top: 6px; padding: 4px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); font-family: var(--display); font-weight: 600; }
.story-card__board b { color: var(--orange-ink); }
.story-card__board .figure { margin: 4px 0 0; justify-content: flex-start; }
.review-actions { border-color: var(--teal); }
.review-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 -4px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border: 2px solid var(--teal); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; }
.review-bar__who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.review-bar #msg-rev:empty { display: none; }
.qfold { border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.qfold__sum { list-style: none; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; cursor: pointer; }
.qfold__sum::-webkit-details-marker { display: none; }
.qfold__sum::after { content: "▾"; margin-left: auto; color: var(--muted); font-weight: 900; transition: transform .15s; }
.qfold[open] > .qfold__sum::after { transform: rotate(180deg); }
.qfold__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.qfold__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qfold__t { font-weight: 800; overflow-wrap: anywhere; }
.qfold__a { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.qfold__a:empty { display: none; }
.qfold[open] > .qfold__sum { border-bottom: 2px solid var(--line); }
.qfold__close { display: none; }
.qfold[open] > .qfold__sum { padding-top: 8px; padding-bottom: 8px; align-items: center; }
.qfold[open] > .qfold__sum .qfold__t, .qfold[open] > .qfold__sum .qfold__a, .qfold[open] > .qfold__sum .pill { display: none; }
.qfold[open] > .qfold__sum .qfold__close { display: block; }
.qfold > .card { border: 0; box-shadow: none; border-radius: 0 0 var(--radius) var(--radius); }
.chip-check { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
.chip-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.chip-check.small { padding: 3px 10px; font-size: 13px; }
.chip-check.small input { width: 16px; height: 16px; }
.manage label.chip-check { flex-direction: row; }
.keep-row { margin-top: 6px; align-items: center; gap: 6px; }
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 30px; transition: background .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--teal); }

.parents .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; margin: 0 0 18px; padding: 0; }
.parents .tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: 12px; white-space: normal; }
.parents .tabs button span { font-size: 20px; line-height: 1; }
@media (min-width: 640px) { .parents .tabs { grid-template-columns: repeat(7, 1fr); } }

.pinbox { padding-top: 30px; max-width: 360px; margin: 0 auto; }
.pin-avatar { font-size: 64px; }
.pin-dots { display: flex; gap: 16px; justify-content: center; margin: 8px 0; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ink); }
.pin-dots span.on { background: var(--ink); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-msg { min-height: 1.4em; color: var(--red-dark); font-weight: 800; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-keys button { font: inherit; font-size: 28px; font-weight: 900; padding: 16px 0; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 4px 0 var(--line); cursor: pointer; }
.pin-keys button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.profile .lock { position: static; display: inline-block; vertical-align: -0.2em; }
select.select { width: 100%; font: inherit; font-weight: 700; padding: 14px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }

.legal { padding-top: 24px; padding-bottom: 48px; }
.legal h1 { margin: 0 0 16px; }
.legal h2 { font-size: 18px; margin: 24px 0 6px; }
.legal h3 { font-size: 16px; margin: 18px 0 4px; }
.legal p, .legal li { line-height: 1.55; }
.legal a, .legal-links a { color: var(--teal); }
.legal-links { text-align: center; font-size: 14px; margin-top: 8px; }
.legal-links a { color: var(--muted); }
.vertrag { margin: 18px 0 8px; }
.vertrag form > * + * { margin-top: 14px; }
.vertrag fieldset { border: 0; padding: 0; margin-inline: 0; }
.vertrag fieldset .check { margin-top: 8px; color: var(--ink); font-size: 16px; }
.vfield { display: block; }
.vfield > span, .vfield > legend { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; padding: 0; }
.vertrag input[type=date], .vertrag textarea {
  width: 100%; font: inherit; font-weight: 700; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); outline: none;
}
.vertrag input[type=date] { margin-top: 8px; }
.vertrag textarea:focus, .vertrag input[type=date]:focus { border-color: var(--teal); }
.vmsg:empty { display: none; }
.kontakt__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vtext { white-space: pre-wrap; font: inherit; font-size: 14px; background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.vform .vline { border-bottom: 1px solid var(--muted); min-height: 1.4em; margin: 0 0 10px; }
@media print {
  .noprint, .vertrag .btn { display: none; }
  body.vprint .legal > :not(.vertrag) { display: none; }
  .vertrag { border: 0; box-shadow: none; }
}
.qcard > label { display: block; }
.qcard > label textarea { font-size: 16px; color: var(--ink); }

.fig-staff__line { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.fig-staff__ledger { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.fig-staff__stem { fill: none; stroke: var(--ink); }
.fig-staff__f { fill: var(--ink); }
.fig-staff__rest path { fill: none; stroke: var(--ink); }
.fig-staff__rest .fig-staff__f { fill: var(--ink); stroke: none; }
.fig-staff__time { fill: var(--ink); font-family: Nunito, system-ui, sans-serif; font-weight: 900; text-anchor: middle; }
.fig-staff__t { fill: var(--ink); font: 800 21px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-staff__lab { fill: var(--muted); }
.fig-staff__hl { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.5; }
.fig-staff__m .fig-staff__f { fill: var(--teal); }
.fig-staff__m .fig-staff__stem, .fig-staff__m .fig-staff__ledger, .fig-staff__m .fig-staff__rest path { stroke: var(--teal); }
.fig-staff__m .fig-staff__rest .fig-staff__f { fill: var(--teal); stroke: none; }
.keypad__k.suffix { color: var(--teal); }
.keypad__k.suffix::before { content: "-"; }

.fig-c { overflow: visible; }
.fig-c__paper { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.fig-c__grid { stroke: var(--line); stroke-width: 1; }
.fig-c__axis { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fig-c__axis.nl { stroke-width: 3; }
.fig-c__arrow { fill: var(--ink); }
.fig-c__tick { stroke: var(--ink); stroke-width: 1.5; }
.fig-c__tick.big { stroke-width: 2.5; }
.fig-c__num, .fig-c__ax, .fig-c__name { font-family: Nunito, system-ui, sans-serif; text-anchor: middle;
  paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.fig-c__num { fill: var(--ink); font-size: 13px; font-weight: 700; }
.fig-c__num.nl { font-weight: 800; }
.fig-c__ax { fill: var(--ink); font-size: 16px; font-weight: 800; font-style: italic; }
.fig-c__name { fill: var(--purple); font-size: 17px; font-weight: 900; }
.fig-c__name.ask { fill: var(--teal-dark); }
.fig-c__pt { fill: var(--purple); stroke: var(--card); stroke-width: 2; }
.fig-c__pt.ask { fill: var(--teal); }
.fig-c__ring { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-dasharray: 4 3; }
.fig-c__seg { stroke: var(--purple); stroke-width: 3; stroke-linecap: round; }
.fig-c__poly { fill: var(--purple); fill-opacity: .12; stroke: var(--purple); stroke-width: 3; stroke-linejoin: round; }
.fig-c__mark { fill: var(--purple); }
.fig-c__mark.ask { fill: var(--teal); }
.fig-c__stem { stroke: var(--purple); stroke-width: 2.5; }
.fig-c__stem.ask { stroke: var(--teal); }
.fig-c__tip { fill: var(--purple); }
.fig-c__tip.ask { fill: var(--teal); }
.fig-c__ml { fill: #fff; font: 900 15px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-c__a { fill: var(--ink); font: 800 22px Nunito, system-ui, sans-serif; text-anchor: middle; }
.fig-c__grid.major { stroke-width: 1.5; }
.fig-c__grid.minor { stroke-dasharray: 3 3; }
.fig-c__bar { fill: var(--purple); }
.fig-c__bar.ask { fill: var(--teal); }
.fig-c__name.bl { fill: var(--ink); font-weight: 800; }
.fig-c__name.bl.ask { fill: var(--teal-dark); }
.fig-c__ax.unit { font-style: normal; font-size: 14px; font-weight: 700; }
@media (prefers-color-scheme: dark) { .fig-c__name.ask, .fig-c__name.bl.ask { fill: var(--teal); } }
.fig-c .s { text-anchor: start; }
.fig-c .e { text-anchor: end; }

.avatar-svg { display: block; }
.avatar .avatar-svg, .profile .big .avatar-svg, .pin-avatar .avatar-svg { margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); }
.profile .big:has(.avatar-svg) { margin-bottom: 8px; }
.today { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; font: inherit; color: inherit;
  border: 2px solid var(--orange); background: linear-gradient(135deg, rgba(255, 179, 71, .2), transparent 70%), var(--card); }
.today:active { transform: translateY(2px); }
.today__icon { font-size: 36px; flex: none; }
.today__text { flex: 1; display: grid; gap: 2px; }
.today__text b { font-family: var(--display); font-weight: 600; font-size: 20px; }
.today__go { flex: none; display: grid; place-items: center; min-width: 58px; padding: 6px 8px; border-radius: 18px; background: var(--orange); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; border: 2.5px solid var(--edge); box-shadow: 0 3px 0 var(--edge); }
.today__go small { font-size: 10px; font-weight: 800; margin-top: 2px; }
.today.exam { border-color: var(--purple); background: linear-gradient(135deg, rgba(138, 92, 200, .16), transparent 70%), var(--card); }
.today.exam .today__go { background: var(--purple); }
.pill[data-mode="pruefung"] { color: var(--purple); border-color: rgba(139, 92, 246, .35); }
.today.auftrag { border-color: var(--teal); background: linear-gradient(135deg, rgba(20, 160, 152, .16), transparent 70%), var(--card); }
.today.auftrag .today__go { background: var(--teal); }
.today.auftrag .today__text b { font-size: 18px; line-height: 1.2; }
.today.auftrag .bar { display: block; height: 10px; margin: 4px 0 2px; }
.today.auftrag .bar > span { background: var(--teal); }
.today.auftrag.done { cursor: default; }
.today.auftrag.done:active { transform: none; }
.btn.purple { background: var(--purple); }
.manage a:not(.btn) { color: var(--teal); }
.examform { display: grid; gap: 8px; padding: 0 0 12px; }
.examform[hidden] { display: none; }
.trackunits { margin: 0 0 10px 6px; padding-left: 12px; border-left: 3px solid var(--line); }
.trackunits[hidden], #others[hidden] { display: none; }
.othergrades { margin: 12px 0 8px; }
.examform .tools > select, .examform .tools > input { flex: 1 1 140px; margin-top: 0; }
.examform .exerr { color: var(--red); }
.lookhint { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; }
.lookhint:active { transform: translateY(2px); }
.lookhint .avatar-svg { flex: none; border-radius: 50%; }
.lookhint__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lookhint__go { font-size: 30px; color: var(--muted); font-weight: 900; }
.look-stage { display: flex; gap: 14px; align-items: center; }
.look-big { flex: none; filter: drop-shadow(0 4px 0 rgba(0,0,0,.08)); }
.look-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.look-side h1, .look-side p { margin: 0; }
.look-balance { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: 0 3px 0 var(--line); line-height: 1.15; }
.look-balance b { font-size: 22px; color: var(--gold); }
.look-balance .small { display: block; }
.look-note { text-align: center; font-weight: 800; color: var(--green-dark); }
.look-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.look-tabs::-webkit-scrollbar { display: none; }
.look-tabs button { flex: none; border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-weight: 900; font-size: 14px; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.look-tabs button.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.look-tabs button.off { opacity: .45; }
@media (prefers-color-scheme: dark) { .look-tile.locked .look-tile__pic { opacity: .85; } }
.look-blocked { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-weight: 700; }
.look-blocked .avatar-svg { flex: none; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.look-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; border: 2px solid var(--line); background: var(--card);
  border-radius: 16px; padding: 8px 6px 10px; cursor: pointer; box-shadow: 0 3px 0 var(--line); font-weight: 800; font-size: 13px; line-height: 1.2; }
.look-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.look-tile.on { border-color: var(--teal); box-shadow: 0 3px 0 var(--teal); background: var(--teal-soft); }
.look-tile.locked .look-tile__pic { opacity: .7; }
.look-tile__pic { height: 88px; display: flex; align-items: center; justify-content: center; }
.look-tile__pic .avatar-svg { border-radius: 12px; }
.look-tile__name { text-align: center; hyphens: auto; overflow-wrap: anywhere; }
.look-tile__badge { font-size: 12px; color: var(--muted); font-weight: 900; }
.look-tile__badge.own { color: var(--green-dark); }
.look-tile__badge.abo { color: var(--purple); }
.look-abo { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 10px 14px; border-radius: 18px;
  background: var(--card); border: 2px solid var(--line); color: var(--muted); font-weight: 800; text-align: center; }
.look-bar { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5; padding-top: 6px; }
@media (prefers-color-scheme: dark) {
  .look-tabs button.on { color: var(--teal); }
  .look-note, .look-tile__badge.own { color: var(--green); }
}

.medal { --s: 56px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--line); box-shadow: inset 0 0 0 calc(var(--s) * .08) rgba(0,0,0,.12), 0 3px 0 rgba(0,0,0,.12); vertical-align: middle; }
.medal span { font-size: calc(var(--s) * .52); line-height: 1; }
.medal .ic { display: block; --icon-halo: var(--icon-cream, #fff4e2); }
.medal.t0 span { filter: grayscale(1); opacity: .45; }
.medal.t1 { background: radial-gradient(circle at 35% 30%, #f3c79b, #c07a3e 70%); }
.medal.t2 { background: radial-gradient(circle at 35% 30%, #ffffff, #aab4bf 70%); }
.medal.t3 { background: radial-gradient(circle at 35% 30%, #fff2a8, #f0b400 70%); }
.medal.t4 { background: radial-gradient(circle at 35% 30%, #e6fbff, #6fc8f2 60%, #b28cff); }
.ach-head { display: flex; align-items: center; gap: 14px; }
.ach-head h1 { margin: 0; }
.ach-avatar { flex: none; font-size: 52px; line-height: 1; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 12px; }
.ach { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; padding: 14px 10px; font: inherit; color: inherit; }
.ach .bar { width: 100%; margin: 2px 0 0; }
.ach__name { font-weight: 900; }
.ach__tier { font-size: 13px; font-weight: 800; color: var(--muted); }
.ach.t1 .ach__tier { color: #b06a2c; }
.ach.t3 .ach__tier, .ach.t4 .ach__tier { color: var(--green-dark); }
.ach__max { font-weight: 800; color: var(--green-dark); }
.ach.open { grid-column: 1 / -1; }
.ach.fresh { border-color: var(--gold, #ffc531); box-shadow: 0 3px 0 #f0b400; animation: achGlow 1.2s ease-in-out 3; }
@keyframes achGlow { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .ach.fresh { animation: none; } }
.ach-tiers { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; text-align: left; }
.ach-tier { display: flex; align-items: center; gap: 10px; }
.ach-tier > span:last-child { display: flex; flex-direction: column; }
.ach-tier:not(.done) { opacity: .75; }
.ach-won { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ach-won > span:last-child { display: flex; flex-direction: column; margin-left: 4px; }
.capy-overlay__title .medal { margin-bottom: 6px; }
@media (prefers-color-scheme: dark) {
  .ach.t1 .ach__tier { color: #e0a070; }
  .ach.t3 .ach__tier, .ach.t4 .ach__tier, .ach__max { color: var(--green); }
}

.pin-note { color: var(--orange); font-weight: 700; }
.pinbox input[type=password] { width: 100%; max-width: 360px; }

.kid-badges { margin-top: 10px; }
.kid-badges summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; list-style: none; }
.kid-badges summary::-webkit-details-marker { display: none; }
.kid-badges summary::after { content: "▾"; color: var(--muted); margin-left: 4px; }
.kid-badges[open] summary::after { content: "▴"; }
.kid-badge { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

.still { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 100px;
  border-radius: 14px; border: 2px solid var(--edge); overflow: hidden; }
.still__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; }
.still svg { position: relative; flex-shrink: 0; margin: 0 -6px -4px; }
.still svg, .still svg * { animation: none !important; }
.scene-locked { opacity: .8; cursor: default; }
.scene-locked .still { background: var(--line) !important; }
.scene-locked .still__ground { display: none; }
.scene-locked .still svg { filter: brightness(0); opacity: .22; }
.scene-locked b { color: var(--muted); }
.scene-count { font-weight: 800; color: var(--purple, #8b5cf6); }
@media (prefers-color-scheme: dark) {
  .scene-locked .still svg { filter: brightness(0) invert(1); opacity: .2; }
}

.chips, .streakbig, .verdict, .tile, .combo, .xpfly, .pin-keys button, .code-show, .manage .kpi-n, .hist .pct { font-family: var(--display); font-weight: 600; }

.ic { flex: none; vertical-align: -0.2em; }
.nav button span .ic, .today__icon .ic, .mic__ico .ic, .lock .ic, .storybtn .ic, .profile .big .ic,
.setrow span:first-child .ic, .ptile__icon .ic, .giftcard__box .ic { display: block; }
.profile .big .ic { margin: 0 auto 8px; }
.storybtn { padding: 2px 6px; }
.node.review, .psheet__icon.review, .listen__play, .btn.teal, .mic__btn.wait { --icon-accent: var(--icon-cream, #fff4e2); }
.node.review.todo { --icon-accent: var(--teal); }
.story__skip, .film__skip { --icon-line: #fff; --icon-halo: transparent; }
.story__skip .ic, .film__skip .ic { display: block; }

.known-note { font-size: 15px; font-weight: 700; color: var(--green-dark); margin: -4px 0 8px; }
.known-card { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 15px; }

@page { size: A4; margin: 0; }
.print-bar { position: sticky; top: 0; z-index: 5; display: grid; gap: 6px; padding: 12px 0; background: var(--bg); }
.print-pages { display: grid; justify-content: center; gap: 16px; padding-bottom: 40px; }
.a4 { box-sizing: border-box; width: 210mm; height: 297mm; padding: 10mm; overflow: hidden; background: #fff; color: #2b211b; box-shadow: 0 2px 14px rgba(0, 0, 0, .2); }
.kcards { display: grid; grid-template-columns: repeat(2, 95mm); grid-template-rows: repeat(4, 69.25mm); }
.kcard { box-sizing: border-box; display: grid; grid-template-columns: 1fr 34mm; gap: 3mm; padding: 5mm; border: .3mm dashed #b9ada3; overflow: hidden; }
.kcard-main { display: flex; flex-direction: column; gap: 1.5mm; min-width: 0; }
.kcard-brand { display: flex; align-items: center; gap: 2mm; font: 600 12pt var(--display); }
.kcard-name { display: flex; align-items: center; gap: 2mm; font: 600 19pt/1.1 var(--display); overflow-wrap: anywhere; }
.kcard-where { font-size: 9pt; color: #6b5a4e; }
.kcard-how { margin-top: auto; font-size: 7.5pt; line-height: 1.3; color: #4a3b31; }
.kcard-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5mm; }
.kcard-qr .qr { width: 34mm; height: 34mm; border-radius: 0; }
.kcard-code { font: 700 9.5pt/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3pt; white-space: nowrap; }
.a4:has(.jcards) { padding: 6mm; }
.jcards { display: grid; grid-template-columns: repeat(5, 39.6mm); grid-template-rows: repeat(7, 40.7mm); border-top: .25mm dashed #b9ada3; border-left: .25mm dashed #b9ada3; }
.jcard { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5mm; padding: 1mm; border-right: .25mm dashed #b9ada3; border-bottom: .25mm dashed #b9ada3; overflow: hidden; text-align: center; }
.jcard-head { flex: none; display: flex; align-items: center; justify-content: center; gap: 1mm; max-width: 100%; font: 600 7.5pt/1 var(--display); color: #2b211b; white-space: nowrap; }
.jcard-head span { overflow: hidden; text-overflow: ellipsis; }
.jcard-head svg { flex: none; width: 4.5mm; height: 4.5mm; }
.jcard .qr { flex: none; width: 25mm; height: 25mm; border-radius: 0; }
.jcard-code { flex: none; font: 700 9pt/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3pt; white-space: nowrap; }
.jcard-how { flex: none; font-size: 5.6pt; line-height: 1.15; color: #4a3b31; }

.joinbox { border: 2px solid var(--teal); }
.jcount { display: inline-flex; align-items: center; gap: 6px; }
.jcount input { width: 72px; }
.joinlive { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); }
.joinlive__head { display: flex; align-items: center; gap: 14px; }
.joinlive__head h1 { margin: 0 0 4px; }
.joinlive__head p { margin: 0; }
.joinlive__count { font: 600 20px/1.2 var(--display); color: var(--teal-dark); }
.joinlive__count b { font-size: 34px; }
.joinlive__kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.joinkid { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--bg); border: 2px solid var(--line); min-width: 0; }
.joinkid.new { border-color: var(--teal); background: var(--teal-soft); animation: obpop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.joinkid__av { font-size: 28px; line-height: 1; }
.joinkid__name { flex: 1; min-width: 0; font: 600 18px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.joinkid .iconbtn { padding: 2px; }
.joinlive:fullscreen { justify-content: flex-start; padding: 5vh 6vw; overflow: auto; border: 0; border-radius: 0; background: var(--bg); }
.joinlive:fullscreen .joinlive__head h1 { font-size: 44px; }
.joinlive:fullscreen .joinlive__count { font-size: 30px; }
.joinlive:fullscreen .joinlive__count b { font-size: 52px; }
.joinlive:fullscreen .joinlive__kids { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.joinlive:fullscreen .joinkid__av { font-size: 40px; }
.joinlive:fullscreen .joinkid__name { font-size: 26px; }
.joinlive:fullscreen .joinkid .iconbtn { display: none; }
@media (max-width: 600px) { .joinlive__head { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .joinkid.new { animation: none; } }

.joinflow { max-width: 480px; margin: 0 auto; padding-top: 12px; }
.joinflow__label { font: 600 18px/1.2 var(--display); }
.joinflow__me { display: flex; justify-content: center; font-size: 56px; line-height: 1; }
.joinflow h1 { margin: 0; font-size: 22px; }
.letter { display: flex; flex-direction: column; height: 100%; padding: 6mm 8mm; font-size: 11.5pt; line-height: 1.45; color: #2b211b; }
.letter-head { display: flex; align-items: center; gap: 5mm; padding-bottom: 4mm; margin-bottom: 7mm; border-bottom: .5mm solid #f0e3d6; font-size: 10pt; color: #6b5a4e; }
.letter-brand { font: 600 22pt var(--display); }
.letter h1 { margin: 0 0 4mm; font: 600 17pt var(--display); color: #2b211b; }
.letter h2 { margin: 7mm 0 2mm; font: 600 13pt var(--display); color: #16857d; }
.letter p, .letter ol, .letter ul { margin: 0 0 2mm; }
.letter li { margin-bottom: 1.5mm; }
.letter-steps { display: grid; grid-template-columns: 1fr 56mm; gap: 6mm; align-items: center; }
.letter-qr { padding: 4mm; text-align: center; border: .4mm solid #f0e3d6; border-radius: 4mm; }
.letter-qr .qr { width: 46mm; height: 46mm; margin: 0 auto; border-radius: 0; }
.letter-code-label { margin-top: 2mm; font-size: 9pt; color: #6b5a4e; }
.letter-code { font: 700 17pt ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1pt; }
.letter-foot { margin-top: auto; color: #6b5a4e; }
.cletters { display: grid; grid-template-rows: 1fr 1fr; height: 100%; }
.cletter { display: flex; flex-direction: column; overflow: hidden; padding: 4mm 8mm; font-size: 10.5pt; line-height: 1.4; color: #2b211b; }
.cletter + .cletter { border-top: .3mm dashed #b9ada3; padding-top: 8mm; }
.cletter .letter-head { margin-bottom: 4mm; padding-bottom: 3mm; }
.cletter .letter-brand { font-size: 18pt; }
.cletter h1 { margin: 0 0 2.5mm; font: 600 15pt var(--display); }
.cletter p, .cletter ol { margin: 0 0 2mm; }
.cletter li { margin-bottom: 1mm; }
.cletter-steps { grid-template-columns: 1fr 46mm; gap: 5mm; }
.cletter .letter-qr { padding: 3mm; }
.cletter .letter-qr .qr { width: 36mm; height: 36mm; }
.cletter-code { font: 700 12pt ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5pt; white-space: nowrap; }
.cletter-note { margin-top: auto !important; font-size: 8.5pt; color: #6b5a4e; }
@media print {
  body.printing { background: #fff !important; }
  body.printing .app { max-width: none; min-height: 0; margin: 0; padding: 0; }
  body.printing .no-print { display: none !important; }
  body.printing .print-pages { display: block; padding: 0; }
  body.printing .a4 { zoom: 1 !important; box-shadow: none; break-after: page; }
  body.printing .a4:last-child { break-after: auto; }
}

.classbadge { flex: none; display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark); font: 600 20px var(--display); }
.manage [hidden] { display: none !important; }
.kidrow { align-items: flex-start; }
.kidacts { display: flex; flex: none; gap: 2px; }
.kidacts .iconbtn { font-size: 18px; padding: 6px; }
.teachrow { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.teachrow select { min-width: 0; }
.chev { flex: none; color: var(--muted); font-size: 22px; }
.mxwrap { overflow-x: auto; margin: 0 -16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 14px; }
.matrix th, .matrix td { padding: 3px; text-align: center; vertical-align: middle; }
.matrix .mxname { position: sticky; left: 0; z-index: 1; min-width: 108px; max-width: 140px; padding: 3px 10px 3px 16px; background: var(--bg); text-align: left; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matrix thead .mxname { font: 600 14px var(--display); color: var(--muted); }
.mxnum { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border: 0; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); font: 600 14px var(--display); cursor: pointer; }
.mxcell { display: inline-grid; place-items: center; width: 40px; height: 32px; border-radius: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-none { background: var(--line); color: var(--muted); }
.mx-red { background: var(--red-soft); color: var(--red-dark); }
.mx-yellow { background: #fff0c2; color: #8a5a00; }
.mx-green { background: var(--green-soft); color: var(--green-dark); }
@media (prefers-color-scheme: dark) { .mx-yellow { background: #3d3214; color: #f4cf6a; } }
.mxname .small { font-weight: 400; }
.mxhidden span { display: block; height: 32px; border-radius: 9px; background: repeating-linear-gradient(135deg, var(--line) 0 6px, transparent 6px 12px); }
.mxlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.mxlegend span { display: inline-flex; align-items: center; gap: 6px; }
.mxlegend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.mxunit + .mxunit { border-top: 1px solid var(--line); }
.mxunit summary { list-style: none; cursor: pointer; }
.mxunit summary::-webkit-details-marker { display: none; }
.mxhard { padding: 0 0 12px 42px; }
.mxhard ol { margin: 6px 0 0; padding-left: 18px; }
.mxhard li { display: grid; gap: 1px; margin-bottom: 6px; }
.pathchap { display: flex; align-items: center; gap: 6px; padding: 10px 0 4px; border-bottom: 1px solid var(--line); color: var(--teal-dark); font: 600 15px var(--display); }
.pathchap:not(:first-child) { margin-top: 6px; }
.pathunit { align-items: flex-start; }
.pathunit .kidacts .iconbtn:disabled { opacity: .3; cursor: default; }
@media (max-width: 420px) { .pathunit .kidacts { flex-wrap: wrap; width: 80px; justify-content: flex-end; } }
.card.note { background: var(--orange-soft); border-color: transparent; font-weight: 700; }
.giftcard .grow { flex: 1; min-width: 0; }

.scanpage h1 { margin-bottom: 0; }
.scanpage > p.muted { margin-top: 0; }
.scanfach { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.scanfach button { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 12px;
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.scanfach button.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.scanbtns { display: grid; gap: 10px; }
.scanbtns .btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding-left: 10px; padding-right: 10px; text-align: center; }
.scanbtns .btn .ic { display: block; }
.scanbtns .btn.off { opacity: .45; pointer-events: none; }
.thumbs:empty { display: none; }
.thumb button .ic { display: block; margin: auto; --icon-line: #fff; }
.scannote { display: flex; align-items: center; gap: 10px; margin-bottom: 0; color: var(--muted); }
.stack > .scannote + .scannote { margin-top: 6px; }
.scannote .ic { display: block; }
.scanwarn { color: var(--orange-ink); font-weight: 800; margin: 0; }
.scanlist .setrow__main small { overflow-wrap: anywhere; }
.scanwait { text-align: center; padding-top: 12px; }
.scanwait h1 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0; }
.scanwait p, .scanwait .btn { max-width: 420px; margin-left: auto; margin-right: auto; }
.scanwait p { margin-bottom: 0; }
.scanwait__fig { display: flex; justify-content: center; animation: scanbob 2.6s ease-in-out infinite; }
.scanwait__dots { display: flex; justify-content: center; gap: 8px; }
.scanwait__dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); animation: scandot 1.2s ease-in-out infinite; }
.scanwait__dots i:nth-child(2) { animation-delay: .2s; }
.scanwait__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes scandot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes scanbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .scanwait__fig, .scanwait__dots i { animation: none; } }

.ob { padding-top: 10px; }
.ob__head { display: flex; align-items: center; gap: 8px; }
.ob__back { flex: none; font-size: 28px; font-weight: 900; color: var(--ink); padding: 4px 10px 4px 0; }
.ob__bar { flex: 1; }
.ob__say { align-items: flex-end; }
.ob__say > .capy, .ob__say > svg { flex: none; }
.ob__hero { display: flex; justify-content: center; animation: obpop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.ob__bubble { margin-top: 14px; text-align: center; }
.ob__bubble::before, .ob__bubble::after { top: auto; left: 50%; transform: translateX(-50%); }
.ob__bubble::before { bottom: 100%; border-bottom-color: var(--line); border-right-color: transparent; }
.ob__bubble::after { bottom: calc(100% - 3px); border-bottom-color: var(--card); border-right-color: transparent; }
.ob__opts { display: grid; gap: 10px; }
.ob__opts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ob__opts--grades { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.ob__opts--subjects { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 360px) { .ob__opts--two .ob__opt { padding: 10px; font-size: 16px; } }
.ob__opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2.5px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line);
  font: inherit; font-weight: 800; overflow-wrap: break-word; hyphens: auto; }
.ob__opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.ob__opt.on { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 3px 0 var(--teal); }
.ob__opt:disabled { opacity: .6; cursor: default; }
.ob__opts--grades .ob__opt { flex-direction: column; justify-content: center; gap: 0; text-align: center; padding: 10px 4px; }
.ob__opts--grades b { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; }
.ob__opts--grades small { color: var(--muted); font-size: 13px; }
.ob__emoji { flex: none; font-size: 26px; line-height: 1; }
.ob__emoji .ic { display: block; }
.ob__main { flex: 1; min-width: 0; display: grid; }
.ob__main b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.ob__main small { color: var(--muted); font-weight: 700; font-size: 14px; }
.ob__xp { flex: none; display: flex; align-items: center; gap: 4px; font-weight: 900; color: var(--orange-ink); white-space: nowrap; }
.ob__more { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; }
.ob__note p { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.ob__note .ic { flex: none; display: block; }
.ob__note p.small { padding-left: 40px; }
.ob__note a { color: var(--teal-dark); font-weight: 800; }
.ob__nopath p { margin: 0; }
.ob--ready { padding-top: 28px; }
.ob--ready h1 { margin: 0; }
.mailtipp { margin: -4px 2px 2px; font-size: 15px; font-weight: 700; color: var(--muted); }
.mailtipp .linkbtn { padding: 0; font-weight: 800; color: var(--teal-dark); }
.gwall { padding-top: 28px; text-align: center; }
.gwall__text h1 { margin: 0 0 6px; text-wrap: balance; }
.gwall__text p { margin: 0 auto; max-width: 30em; font-weight: 700; }
@keyframes obpop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ob__hero { animation: none; } }

.guestbanner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
  border-color: var(--teal); background: var(--teal-soft); color: var(--ink); font: inherit; }
.guestbanner:active { transform: translateY(2px); }
.guestbanner--wait { cursor: default; border-color: var(--line); background: var(--card); }
.guestbanner__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); }
.guestbanner--wait .guestbanner__icon { background: var(--teal-soft); }
.guestbanner__icon .ic { display: block; }
.guestbanner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guestbanner__text b { font-family: var(--display); font-weight: 600; }
.guestbanner__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.guestbanner__btns .btn { box-shadow: 0 2px 0 var(--edge); }
.limitnote { display: flex; align-items: center; gap: 8px; background: var(--teal-soft); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 15px; }
.limitnote .ic { flex: none; }
.limitcard { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border-color: var(--teal); color: var(--ink); font: inherit; }
button.limitcard { cursor: pointer; }
.limitcard > span:not(.lookhint__go) { flex: 1; display: flex; flex-direction: column; }
.limitcard .ic { flex: none; }

.pa__title { flex: 1; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted); }
.pa__born { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.pa__born label, .pa__label { display: grid; gap: 4px; }
.pa__avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); overflow: hidden; font-size: 26px; }
.pa__waitrow { display: flex; align-items: center; gap: 12px; }
.pa__waitrow .ic { flex: none; display: block; }
.pa__waitrow > span { display: grid; }
.pa__waitrow b { font-family: var(--display); font-weight: 600; }
.pa__waitbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.pa__waitbtns .btn { flex: 1 1 140px; }
.pwfield { position: relative; }
.pwfield input { padding-right: 104px; }
.pwfield__show { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); border: 0; border-radius: 10px; padding: 6px 10px; cursor: pointer;
  background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: 14px; }
.pa-adult { padding-top: 14px; font-size: 16px; }
.pa-adult__band { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark);
  font-weight: 900; letter-spacing: .02em; text-transform: uppercase; font-size: 14px; }
.pa-adult__band .ic { flex: none; display: block; }
.pa-adult__band span { flex: 1; }
.pa-adult__close { flex: none; display: grid; place-items: center; border: 0; background: none; padding: 2px; cursor: pointer; }
.pa-adult__close .ic { display: block; }
.pa-adult__intro h1 { margin: 4px 0 8px; font-family: "Nunito", system-ui, sans-serif; font-weight: 900; font-size: 23px; line-height: 1.25; }
.pa-adult__intro p { margin: 0 0 8px; color: var(--ink); }
.pa-adult .card { box-shadow: none; }
.pa-adult .ob__main b { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 17px; }
.pa-adult .check { color: var(--ink); }

.gpreview { padding: 14px; overflow: hidden; }
.gpreview__rows { filter: blur(2.5px); opacity: .6; pointer-events: none; user-select: none; max-height: 250px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.gpreview__rows .lbadges { margin-bottom: 8px; }
.gpreview__rows .fevent { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.gpreview__rows .fevent__body { flex: 1; }
.gpreview__call { display: grid; justify-items: center; gap: 10px; text-align: center; margin-top: -10px; position: relative; }
.gpreview__call p { margin: 0; font-weight: 800; max-width: 420px; }
.gpreview__call .btn .ic { display: block; --icon-accent: var(--card); }
.scanfach__fake { border: 2px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 15px; }
.scanfach__fake.on { border-color: var(--teal); background: var(--teal-soft); }

.profiles__top { display: flex; justify-content: flex-end; }
.profiles__top .btn .ic { display: block; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1.02; min-width: 0; }
.wordmark__t { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.wordmark__capy { color: var(--brand-capy, #ff8a1f); }
.wordmark__lee { color: var(--brand-lee, #14a098); }
.wordmark__sub { font-family: "Nunito", system-ui, sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.brandlogo { flex: none; border-radius: 24%; box-shadow: 0 2px 0 var(--edge); }
.welcome__brand { font-size: 54px; margin-bottom: -6px; }
@media print { .wordmark__capy { color: #ff8a1f; } .wordmark__lee { color: #14a098; } }

.game { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); animation: fadeIn .2s ease-out; overflow: hidden; }
.game.out { animation: fadeOut .22s ease-in forwards; }
.game__top { display: flex; align-items: center; gap: 12px; padding: 10px 16px 4px; }
.game__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--muted);
  font-size: 18px; font-weight: 800; cursor: pointer; }
.game__dots { flex: 1; display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.game__dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); transition: background .2s, border-color .2s; }
.game__dots i.ok { background: var(--green); border-color: var(--green-dark); }
.game__dots i.bad { background: var(--red); border-color: var(--red-dark); }
.game__clock { flex: none; min-width: 44px; text-align: right; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }
.game__host { display: flex; align-items: center; gap: 10px; padding: 2px 16px 8px; min-height: 66px; }
.game__fig { flex: none; display: grid; place-items: center; width: 60px; }
.game__say { position: relative; flex: 1; margin: 0; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px;
  font-weight: 700; font-size: 15px; line-height: 1.3; min-height: 1.3em; }
.game__say:empty { visibility: hidden; }
.game__say::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-right-color: var(--line); border-left: 0; }
.game__box { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.game__intro, .game__end { margin: auto; width: 100%; max-width: 420px; padding: 16px; text-align: center; }
.game__introfig { display: grid; place-items: center; margin-bottom: 4px; }
.game.intro .game__host { display: none; }
.game__quote { position: relative; margin: 6px auto 14px; max-width: 340px; background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 10px 14px; font-weight: 700; font-size: 16px; line-height: 1.35; }
.game__quote::before { content: ""; position: absolute; top: -9px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom-color: var(--line); border-top: 0; }
.game__title { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 4px 0 6px; color: var(--u-ink, var(--orange-ink)); }
.game__howto { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.game__record, .game__xp { margin: 0 0 6px; font-weight: 800; color: var(--muted); }
.game__xp { margin-bottom: 18px; }
.game__count { margin: auto; font-family: var(--display); font-weight: 600; font-size: 120px; color: var(--u, var(--orange)); animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.game--end { display: grid; place-items: center; }
.game__line { font-size: 19px; font-weight: 800; margin: 6px 0 16px; }
.game__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.game__stats span { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 10px 4px;
  font-size: 13px; font-weight: 700; color: var(--muted); }
.game__stats b { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); white-space: nowrap; }
.game__note { font-weight: 700; color: var(--muted); margin: 0 0 14px; }
@media (prefers-reduced-motion: reduce) { .game__count { animation: none; } }
.game--timed .game__dots { visibility: hidden; }
.game--timed .game__clock { color: var(--ink); font-size: 20px; }
.game__endart { margin: 0 auto 6px; }
.friends-more { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }


.seg[hidden] { display: none; }
.vocabcard { margin: 0 0 14px; }
.pside { position: absolute; left: min(calc(50% + var(--sx)), calc(100% - 36px)); transform: translateX(-50%); z-index: 1;
  display: grid; justify-items: center; gap: 1px; width: 68px; padding: 8px 2px 5px; font: inherit; cursor: pointer; color: var(--ink);
  background: var(--card); border: 2px solid var(--teal); border-radius: 20px; box-shadow: 0 4px 0 var(--teal); animation: psideBob 2.6s ease-in-out infinite; }
.pside:active { transform: translate(-50%, 3px); box-shadow: 0 1px 0 var(--teal); animation: none; }
.pside small { font-size: 11px; font-weight: 800; color: var(--teal-dark); }
.pside__n { position: absolute; top: -9px; right: -7px; min-width: 24px; padding: 2px 6px; border-radius: 99px; background: var(--orange); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 18px; text-align: center; box-shadow: 0 2px 0 var(--edge); }
@keyframes psideBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .pside { animation: none; } }
.vocabpage h1 { display: flex; align-items: center; gap: 8px; }
.vocabback { align-self: flex-start; }
.vocabgo { font-size: 20px; }
.vocabdone { display: flex; align-items: center; gap: 12px; }
.vocabdone p { margin: 2px 0 0; }
.vocabstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vocabstats div { display: grid; justify-items: center; padding: 8px 4px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; }
.vocabstats b { font-family: var(--display); font-weight: 600; font-size: 24px; }
.vocabstats span { font-size: 13px; font-weight: 700; color: var(--muted); }
.vocabbar { display: flex; height: 8px; margin-top: 6px; }
.vocabbar > span { display: block; border-radius: 0; }
.vocabbar .vocabbar__open { background: var(--green); opacity: .4; }
.vocabhint { margin: 0; text-align: center; }
.vocabadd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vocabadd .btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding-inline: 6px; font-size: 16px; }
.vocabdraft { border-color: var(--teal); }
.vocabcheck__head { display: flex; align-items: center; gap: 12px; }
.vocabcheck__head p { margin: 2px 0 0; }
.vocabcheck p { margin: 0; }
.vocabcheck ul { margin: 4px 0 0; padding-left: 20px; }
.vocabkeep { position: sticky; bottom: calc(var(--nav-h, 76px) + 8px); z-index: 2; }
.vocabtitle { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vocabexam { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.vocabexam span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.vocabexam input { flex: 1; min-width: 0; font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.vocabdel { color: var(--muted); }
.vwords { padding: 2px 12px; }
.vword { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 2px 10px; width: 100%; padding: 10px 0; font: inherit; text-align: left; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.vword:last-child { border-bottom: 0; }
.vword__term { font-weight: 800; overflow-wrap: anywhere; }
.vword__meaning { font-size: 15px; overflow-wrap: anywhere; }
.vword__note { grid-column: 1 / -1; color: var(--teal-dark); font-weight: 700; }
.vword.marked { background: var(--teal-soft); margin-inline: -12px; padding-inline: 12px; width: calc(100% + 24px); }
.vdots { display: flex; gap: 2px; }
.vdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.vdots i.on { background: var(--green); }
.vfield { display: grid; gap: 4px; font-weight: 700; min-width: 0; }
.vfield span { font-size: 14px; color: var(--muted); }
.vnew { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; }
.vnew .btn { min-width: 56px; padding: 12px; font-size: 24px; line-height: 1; }
.vrow { display: grid; gap: 8px; padding: 12px; }
.vrow__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vrow__head b { overflow-wrap: anywhere; font-size: 18px; }
.vrow__rm { flex: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted); }
.vrow input { padding: 10px 12px; }
.vrow__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.vrow__opts .pill { font-size: 14px; padding: 3px 10px; }
.vrow__opts .pill.on { border-color: var(--teal); background: var(--teal-soft); }

.probebar { position: sticky; top: 0; z-index: 6; display: flex; gap: 8px 12px; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: var(--teal-soft); color: var(--ink); font-size: 14px; line-height: 1.3; }
.probebar span { min-width: 0; }
.probebar .btn { flex: none; }

.mailcode { display: grid; gap: 10px; }
.mailaddr { overflow-wrap: anywhere; }
.mailcode__label { font-weight: 700; }
.mailcode__in { font: 800 30px/1.2 var(--display); letter-spacing: .18em; text-align: center; padding: 12px 8px; }
.mailcode__in::placeholder { color: var(--line); }
.mailcode__msg:empty { display: none; }
.mailcode__msg { font-weight: 700; }
.mailcode__msg--err { color: var(--red-dark); }
.mailcode__msg--ok { color: var(--teal-dark); }
.mailcode__hint { margin: 0; }
.mailcode__hint .linkbtn { padding: 0; font-size: inherit; color: var(--teal-dark); }
.mailcode--done .mailcode__in { border-color: var(--teal); }
.mailcode--done [data-mailcode-go], .mailcode--done .mailcode__hint { display: none; }
