/* IELTS Conquer - chunky sticker style, sky palette with a royal-blue header ("Sticker Pop+", 2026-11-28). */
:root {
  --bg: #9ED8FF; --surface: #FFFFFF; --surface-2: #EEF8FF; --ink: #000000; --ink-2: #2F4558; --edge: #000000; --drop: #000000;
  --sky: #2F6BFF; --royal: #1E3FCC; --royal-2: #2B55F0; --amber: #FFE14D; --ok: #1FA463; --bad: #E5383B;
  --S: #FF8FB1; --W: #FFB547; --L: #63D2FF; --R: #A98CFF; --V: #7BE495; --G: #5EEAD4; --Rv: #FFE14D;
  --tint-S: #FFD9E5; --tint-W: #FFE6C2; --tint-L: #D3F1FF; --tint-R: #E5DCFF; --tint-V: #D6F7DF; --tint-G: #D2F8F1;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 22px;
  color-scheme: light;
}
/* Dark colours: follow the device (Auto), or the learner's choice in Settings (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E2236; --surface: #17334D; --surface-2: #1F3F5E; --ink: #F2F8FF; --ink-2: #B8CFE6; --edge: #E3F1FF; --drop: #000000;
    --sky: #7FA4FF; --royal: #132A86; --royal-2: #1D3BB0; --ok: #4BD98C; --bad: #FF6B6E;
    --tint-S: #4A2A3A; --tint-W: #4A3820; --tint-L: #1F3E52; --tint-R: #3A2F66; --tint-V: #21452E; --tint-G: #1C4440;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E2236; --surface: #17334D; --surface-2: #1F3F5E; --ink: #F2F8FF; --ink-2: #B8CFE6; --edge: #E3F1FF; --drop: #000000;
  --sky: #7FA4FF; --royal: #132A86; --royal-2: #1D3BB0; --ok: #4BD98C; --bad: #FF6B6E;
  --tint-S: #4A2A3A; --tint-W: #4A3820; --tint-L: #1F3E52; --tint-R: #3A2F66; --tint-V: #21452E; --tint-G: #1C4440;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; }
h4 { font-size: .85rem; color: var(--ink-2); margin: 1.3em 0 .45em; }
p { margin: 0 0 .6em; }
b, strong { font-weight: 800; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.boot { padding: 40px; font-weight: 700; }
.muted { color: var(--ink-2); } .small { font-size: .85rem; }
.lead { color: var(--ink-2); font-size: 1.02rem; font-weight: 500; max-width: 62ch; }
.eyebrow { font-size: .78rem; font-weight: 800; color: var(--ink-2); margin: 0 0 .35em; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; }
.label { font-size: .8rem; font-weight: 800; color: var(--ink-2); margin: 0 0 .3em; }
.hint { font-size: .86rem; color: var(--ink-2); font-weight: 500; }
.warn { color: var(--bad); font-weight: 700; }
.ok { color: var(--ok); } .no { color: var(--bad); }
code { font: 700 .85em var(--font); background: var(--surface-2); border: 2px solid var(--edge); padding: 1px 9px; border-radius: 99px; white-space: nowrap; }
mark { background: var(--amber); color: #000; padding: 0 3px; border-radius: 4px; box-shadow: 0 0 0 2px #000; }

/* ---------- shell ---------- */
#app { min-height: 100vh; }
.nav { max-width: 980px; margin: 0 auto; padding: 16px 18px 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .mark { width: 44px; height: 44px; border-radius: 14px; background: var(--amber); border: 3px solid var(--edge); box-shadow: 3px 3px 0 var(--drop); display: grid; place-items: center; font-size: 1.5rem; transform: rotate(-6deg); }
.brand b { display: block; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1; }
.brand small { font-weight: 700; font-size: .78rem; color: var(--ink-2); }
.pills { display: flex; gap: 8px; }
.pill { display: flex; align-items: center; gap: 5px; border: 3px solid var(--edge); box-shadow: 3px 3px 0 var(--drop); border-radius: 99px; padding: 2px 12px 2px 8px; font-weight: 800; font-size: .95rem; white-space: nowrap; color: #000; }
.pill.fire { background: var(--S); } .pill.star { background: var(--amber); }
.nav nav { display: flex; gap: 8px; width: 100%; }
.nav nav a { position: relative; text-decoration: none; font-weight: 800; padding: 8px 16px; border: 3px solid var(--edge); border-radius: 14px; background: var(--surface); box-shadow: 3px 3px 0 var(--drop); transition: transform .06s, box-shadow .06s; display: flex; align-items: center; gap: 6px; }
.nav nav a .ni { font-size: 1.05rem; }
.nav nav a:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--drop); }
.nav nav a.on { background: #000; color: var(--amber); border-color: #000; }
.nav .dot { position: absolute; top: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); border: 2px solid var(--edge); }
.sync { display: none; }
.sync-line { max-width: 980px; margin: 0 auto; padding: 0 18px 30px; font-size: .8rem; font-weight: 600; color: var(--ink-2); text-align: center; }
.sync-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-2); margin-right: 6px; vertical-align: 1px; }
.sync-dot.synced { background: var(--ok); } .sync-dot.syncing { background: var(--amber); } .sync-dot.badcode { background: var(--bad); }
#view { max-width: 980px; margin: 0 auto; padding: 22px 18px 40px; outline: none; }
@media (max-width: 760px) {
  .nav { padding: 12px 14px 0; }
  .brand b { font-size: 1.25rem; } .brand small { display: none; }
  .nav nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 3px solid var(--edge); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 4px; justify-content: space-around; }
  .nav nav a { flex: 1; flex-direction: column; gap: 0; padding: 4px 2px; font-size: .72rem; border: 0; box-shadow: none; border-radius: 12px; background: transparent; }
  .nav nav a .ni { font-size: 1.35rem; }
  .nav nav a.on { background: var(--amber); color: #000; }
  .nav .dot { top: 0; right: 22%; }
  #view { padding: 16px 14px 120px; }
  .sync-line { padding-bottom: 110px; }
  h1 { font-size: 1.6rem; }
}

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 3px solid var(--edge); border-radius: var(--r); padding: 16px 18px; box-shadow: 5px 5px 0 var(--drop); margin-bottom: 18px; }
.row { display: flex; align-items: center; flex-wrap: wrap; } .row.gap { gap: 10px; margin-top: 14px; } .row.between { justify-content: space-between; gap: 12px; margin-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .two > .card { margin-bottom: 0; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; padding: 2px 11px; border-radius: 99px; background: var(--amber); color: #000; border: 2px solid var(--edge); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 3px solid var(--edge); border-radius: 16px; padding: 10px 18px; font-weight: 800; font-size: .98rem; background: var(--amber); color: #000; box-shadow: 4px 4px 0 var(--drop); text-decoration: none; transition: transform .06s, box-shadow .06s; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--drop); }
.btn.primary { background: var(--amber); }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.small { padding: 6px 13px; font-size: .9rem; border-radius: 13px; box-shadow: 3px 3px 0 var(--drop); }
.btn.big { padding: 14px 28px; font-size: 1.1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .86em; font-weight: 800; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--sky); }
.icon-btn { width: 46px; height: 46px; border-radius: 14px; border: 3px solid var(--edge); background: var(--L); color: #000; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--drop); }
.bar { position: relative; height: 18px; border: 3px solid var(--edge); border-radius: 99px; background: var(--surface-2); margin: 8px 0; }
.bar i { display: block; height: 100%; background: var(--V); border-radius: 99px 0 0 99px; border-right: 3px solid var(--edge); max-width: 100%; }
.bar i[style*="width:0%"] { border-right: 0; }
.bar em { position: absolute; top: -8px; width: 4px; height: 26px; background: var(--bad); border-radius: 2px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; text-decoration: none; font-weight: 800; border: 3px solid var(--edge); background: var(--surface); border-radius: 14px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--drop); }
details { background: var(--surface); border: 3px solid var(--edge); border-radius: 18px; padding: 2px 14px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 800; padding: 9px 0; }
details[open] { padding-bottom: 12px; }
.why { background: var(--surface-2); font-size: .92rem; } .why summary { font-size: .88rem; } .why p { color: var(--ink-2); font-weight: 500; margin: 2px 0 0; }
textarea, input[type=text], input:not([type]), input[type=number], select { font: inherit; color: var(--ink); background: var(--surface); border: 3px solid var(--edge); border-radius: 14px; padding: 10px 12px; width: 100%; }
.field { display: block; font-weight: 800; margin-bottom: 14px; } .field input, .field textarea { margin-top: 6px; font-weight: 500; } .field small { color: var(--ink-2); font-weight: 600; }

/* ---------- mascot ---------- */
.mascot { display: flex; gap: 12px; align-items: flex-end; margin: 4px 0 20px; }
.mascot .face { width: 64px; height: 64px; flex: none; font-size: 2.4rem; border-radius: 50%; background: var(--V); border: 3px solid var(--edge); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--drop); }
.bubble { background: var(--surface); border: 3px solid var(--edge); border-radius: 20px 20px 20px 4px; padding: 11px 15px; font-weight: 600; font-size: .98rem; box-shadow: 3px 3px 0 var(--drop); }
.bubble b { font-weight: 800; }
.notice { display: flex; align-items: center; gap: 10px; background: #000; color: var(--amber); border-radius: 18px; padding: 12px 16px; margin-bottom: 16px; text-decoration: none; font-weight: 700; }

/* ---------- Today ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.stickers { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 560px) {
  .stickers { grid-template-columns: 1fr 1.15fr; gap: 12px; }
  .st-streak .num { font-size: 3.4rem; } .st-streak { padding: 12px; }
  .st-level { padding: 10px; overflow: hidden; } .lvrow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lvico { width: 38px; height: 38px; font-size: 1.35rem; } .lvrow b { font-size: 1.1rem; } .xpbar { margin-right: 6px; }
  .dots { gap: 3px; } .dots .d i { width: 15px; height: 15px; }
  .mission { padding: 14px; } .mission h2 { font-size: 1.45rem; }
}
.st-streak { background: var(--S); color: #000; border: 3px solid var(--edge); box-shadow: 5px 5px 0 var(--drop); border-radius: var(--r); padding: 14px; transform: rotate(-2deg); display: flex; flex-direction: column; }
.st-streak .num { font-weight: 800; font-size: 4.2rem; line-height: .9; letter-spacing: -.05em; }
.st-streak .lbl { font-weight: 800; font-size: .95rem; }
.st-streak .sub { font-weight: 600; font-size: .78rem; margin-top: 2px; }
.st-level { background: var(--surface); border: 3px solid var(--edge); box-shadow: 5px 5px 0 var(--drop); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lvrow { display: flex; align-items: center; gap: 10px; }
.lvico { width: 46px; height: 46px; flex: none; font-size: 1.7rem; display: grid; place-items: center; border: 3px solid var(--edge); border-radius: 14px; background: var(--amber); transform: rotate(4deg); }
.lvrow b { display: block; font-size: 1.35rem; line-height: 1.05; } .lvrow small { font-weight: 700; font-size: .82rem; color: var(--ink-2); }
.xpbar { position: relative; height: 20px; border: 3px solid var(--edge); border-radius: 99px; background: var(--surface-2); margin: 8px 12px 2px 0; }
.xpbar .fill { height: 100%; background: var(--V); border-radius: 99px 0 0 99px; border-right: 3px solid var(--edge); }
.xpbar .rider { position: absolute; top: 50%; transform: translate(-50%, -58%) scaleX(-1); font-size: 22px; line-height: 1; }
.dots { display: flex; gap: 5px; margin: 10px 0 2px; }
.dots .d { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 800 .62rem var(--font); }
.dots .d i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .55); border: 2px solid #000; }
.dots .d.on i { background: #000; } .dots .d.miss i { background: rgba(255, 255, 255, .25); border-style: dashed; } .dots .d.today i { box-shadow: 0 0 0 2px var(--amber); }
.mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.mhead h2 { margin: 0; }
.mission { background: var(--surface); border: 3px solid var(--edge); border-radius: 26px; padding: 18px; box-shadow: 6px 6px 0 var(--drop); margin-bottom: 22px; }
.mission h2 { font-size: 1.7rem; }
.mission.locked { background: var(--surface-2); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.mcard { position: relative; text-decoration: none; text-align: left; border: 3px solid var(--edge); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 4px; min-height: 128px; color: #000; box-shadow: 4px 4px 0 var(--drop); transition: transform .06s, box-shadow .06s; }
.mcard:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--drop); }
.mcard:nth-child(odd) { transform: rotate(-.8deg); } .mcard:nth-child(even) { transform: rotate(.8deg); }
.mcard .mi { font-size: 1.9rem; line-height: 1; }
.mcard b { font-size: 1.06rem; line-height: 1.12; }
.mcard small { font-weight: 700; font-size: .78rem; }
.mcard.opt { background: var(--surface) !important; color: var(--ink); border-style: dashed; }
.mcard.done { background: var(--surface) !important; color: var(--ink); box-shadow: none; opacity: .85; }
.stamp { position: absolute; right: 10px; top: 10px; background: var(--V); color: #000; border: 3px solid var(--edge); border-radius: 99px; padding: 0 9px; font-weight: 800; font-size: .74rem; transform: rotate(8deg); }
.sk-V { background: var(--V); } .sk-L { background: var(--L); } .sk-R { background: var(--R); } .sk-W { background: var(--W); } .sk-S { background: var(--S); } .sk-G { background: var(--G); } .sk-Rv { background: var(--Rv); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { border: 3px solid var(--edge); border-radius: var(--r); padding: 13px 14px; color: #000; box-shadow: 4px 4px 0 var(--drop); display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.tile .ti { font-size: 1.6rem; line-height: 1; }
.tile .tv { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tile .tv small { font-size: .9rem; font-weight: 700; }
.tile .tl { font-weight: 800; font-size: .88rem; } .tile .ts2 { font-weight: 600; font-size: .76rem; }
.tile .bar { background: rgba(255, 255, 255, .6); border-color: #000; height: 14px; margin: 4px 0; } .tile .bar i { background: #000; border-color: #000; }
.plan-card { background: var(--tint-V); } .intent-text { font-size: 1.02rem; font-weight: 500; } .why-text { color: var(--ink-2); font-style: italic; font-weight: 500; }
.pace-card .kval { margin: 0; font-weight: 700; } .pace-card .kval b { font-size: 2rem; letter-spacing: -.03em; }
.ksub { font-size: .84rem; color: var(--ink-2); font-weight: 600; margin: 4px 0 0; }

/* ---------- onboarding ---------- */
.onboard { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px; }
.onboard-card { background: var(--surface); border: 3px solid var(--edge); border-radius: 28px; box-shadow: 8px 8px 0 var(--drop); padding: clamp(22px, 5vw, 40px); max-width: 600px; width: 100%; position: relative; }
.onboard-card .hello-face { position: absolute; top: -34px; right: 24px; width: 72px; height: 72px; border-radius: 50%; background: var(--V); border: 3px solid var(--edge); display: grid; place-items: center; font-size: 2.6rem; transform: rotate(8deg); box-shadow: 3px 3px 0 var(--drop); }
.onboard-card h1 { font-size: 2rem; max-width: 15ch; }
.phase-intro { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.phase-intro li { display: flex; gap: 12px; align-items: center; border: 3px solid var(--edge); border-radius: 18px; padding: 10px 12px; color: #000; }
.phase-intro li:nth-child(1) { background: var(--V); transform: rotate(-1deg); } .phase-intro li:nth-child(2) { background: var(--L); transform: rotate(.8deg); } .phase-intro li:nth-child(3) { background: var(--S); transform: rotate(-.6deg); }
.phase-intro p { margin: 1px 0 0; font-size: .9rem; font-weight: 600; }
.pn { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--edge); background: var(--surface); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; flex: none; }
.intent { line-height: 2.7; font-size: 1.04rem; font-weight: 600; }
.intent input { width: auto; min-width: 150px; display: inline-block; padding: 5px 10px; } .intent select, .intent input[type=number] { width: auto; display: inline-block; padding: 5px 8px; }
.intent.card { background: var(--tint-V); box-shadow: 4px 4px 0 var(--drop); }

/* ---------- Plan ---------- */
.phase { padding: 18px 20px; }
.phase.p1 { border-top: 12px solid var(--V); } .phase.p2 { border-top: 12px solid var(--L); } .phase.p3 { border-top: 12px solid var(--S); }
.phase.is-locked { background: var(--surface-2); }
.phase-head { display: flex; gap: 14px; align-items: flex-start; }
.phase-head h2 small { color: var(--ink-2); font-weight: 700; font-size: .85rem; margin-left: 6px; }
.phase-head > div { flex: 1; } .phase-head p { color: var(--ink-2); font-weight: 600; margin: 0; }
.phase-meta { display: grid; grid-template-columns: 110px 1fr; gap: 6px 14px; margin: 14px 0 4px; font-size: .94rem; } .phase-meta dt { font-weight: 800; } .phase-meta dd { margin: 0; font-weight: 500; }
.weeks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.wk { display: grid; grid-template-columns: 54px 1fr 50px; gap: 12px; padding: 12px; border: 3px solid var(--edge); border-radius: 18px; align-items: start; background: var(--surface); }
.wk-n { font-weight: 800; font-size: .95rem; background: var(--surface-2); border: 2px solid var(--edge); border-radius: 10px; text-align: center; padding: 3px 0; }
.wk.current { background: var(--amber); color: #000; box-shadow: 4px 4px 0 var(--drop); } .wk.current .wk-b > span { color: #000; }
.wk.complete .wk-n { background: var(--V); color: #000; }
.wk-b b { display: block; font-size: 1rem; } .wk-b > span { display: block; color: var(--ink-2); font-size: .86rem; font-weight: 600; } .wk-b > span.muted { font-style: italic; margin-top: 2px; }
.wk-p { font-weight: 800; text-align: right; padding-top: 3px; }
.wk-sessions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.sess { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--edge); display: grid; place-items: center; font-weight: 800; font-size: .85rem; text-decoration: none; color: var(--ink); background: var(--surface); }
.sess.done { background: #000; color: var(--amber); border-color: #000; } .sess.next { background: var(--S); color: #000; box-shadow: 2px 2px 0 var(--drop); } .sess.locked { opacity: .4; pointer-events: none; }

/* ---------- session list ---------- */
.task-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.task-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 3px solid var(--edge); border-radius: 20px; text-decoration: none; color: var(--ink); box-shadow: 4px 4px 0 var(--drop); transition: transform .06s, box-shadow .06s; }
.task-row:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--drop); }
.task-row .num { width: 52px; height: 52px; flex: none; border: 3px solid var(--edge); border-radius: 15px; display: grid; place-items: center; font-size: 1.6rem; color: #000; }
.task-row .tb { flex: 1; min-width: 0; } .task-row .tb b { display: block; font-size: 1.06rem; } .task-row .tb .eyebrow { margin-bottom: 1px; text-transform: none; letter-spacing: 0; }
.task-row .ts { font-weight: 800; font-size: .82rem; padding: 2px 10px; border-radius: 99px; border: 2px solid var(--edge); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.task-row.done .ts { background: var(--V); color: #000; }
.tick { display: inline-flex; }

/* ---------- task screens ---------- */
.task-head { margin-bottom: 16px; }
.task-head h2 { font-size: 1.7rem; }
.task-head .eyebrow { display: inline-flex; color: #000; border: 2px solid var(--edge); border-radius: 99px; padding: 2px 12px 2px 6px; text-transform: none; letter-spacing: 0; font-size: .82rem; margin-bottom: 8px; }
.counter { font-weight: 800; font-size: .82rem; color: var(--ink-2); margin-bottom: 8px; }
.wcard { background: var(--surface); border: 3px solid var(--edge); border-radius: 26px; padding: 22px; box-shadow: 6px 6px 0 var(--drop); max-width: 620px; }
.wcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .wcard h3 { font-size: 2.3rem; margin: 0; letter-spacing: -.03em; }
.wmeta { color: var(--ink-2); margin: 4px 0 14px; font-weight: 600; } .pos { font-style: italic; } .ipa { font-weight: 500; }
.wdef { font-size: 1.12rem; font-weight: 600; } .wex { border-left: 6px solid var(--V); padding: 4px 0 4px 12px; font-weight: 500; } .wcol { font-size: .92rem; font-weight: 500; }
.quiz { max-width: 700px; } .qtext { font-size: 1.08rem; font-weight: 700; margin-bottom: 12px; }
.blank { display: inline-block; min-width: 64px; border-bottom: 3px solid var(--ink); color: transparent; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .opts.vertical { grid-template-columns: 1fr; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.opt { text-align: left; font-weight: 700; padding: 12px 16px; border: 3px solid var(--edge); border-radius: 16px; background: var(--surface); box-shadow: 3px 3px 0 var(--drop); transition: transform .06s, box-shadow .06s; }
.opt:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--drop); }
.opt.right { background: var(--V); color: #000; } .opt.wrong { background: var(--S); color: #000; }
.opt:disabled { cursor: default; color: var(--ink); } .opt.right:disabled, .opt.wrong:disabled { color: #000; }
.feedback { margin-top: 14px; min-height: 1.5em; font-weight: 500; } .feedback .btn { margin-left: 8px; }
.done-box { background: #000; color: #fff; border-radius: 20px; padding: 16px 20px; margin: 18px 0; box-shadow: 5px 5px 0 var(--S); }
.done-box .big { font-size: 2.6rem; font-weight: 800; color: var(--amber); margin: 0 0 2px; letter-spacing: -.03em; }
.done-box .muted { color: #ddd; }
.player { background: var(--tint-L); border: 3px solid var(--edge); border-radius: var(--r); padding: 16px; box-shadow: 5px 5px 0 var(--drop); margin-bottom: 18px; }
.video { background: var(--tint-L); border: 3px solid var(--edge); border-radius: var(--r); padding: 16px; box-shadow: 5px 5px 0 var(--drop); margin-bottom: 18px; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 3px solid var(--edge); border-radius: 14px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .hint a { font-weight: 800; }
.pl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-bar { flex: 1; min-width: 120px; height: 20px; background: var(--surface); border: 3px solid var(--edge); border-radius: 99px; cursor: pointer; overflow: hidden; }
.pl-fill { height: 100%; width: 0; background: var(--L); border-right: 3px solid var(--edge); }
.pl-time { font-weight: 800; min-width: 40px; } .pl-rate { width: auto; padding: 6px 8px; font-weight: 700; }
.instr { font-weight: 700; }
.qlist { padding-left: 0; list-style: none; counter-reset: q; display: grid; gap: 12px; margin: 14px 0; }
.q { counter-increment: q; padding: 14px 16px 12px 56px; position: relative; background: var(--surface); border: 3px solid var(--edge); border-radius: 20px; }
.q::before { content: counter(q); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 10px; background: var(--amber); color: #000; border: 2px solid var(--edge); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.q .qtext { font-size: 1rem; margin-bottom: 8px; }
.q.is-right { background: var(--tint-V); box-shadow: inset 0 0 0 2px var(--ok); } .q.is-right::before { background: var(--V); }
.q.is-wrong { background: var(--tint-S); box-shadow: inset 0 0 0 2px var(--bad); } .q.is-wrong::before { background: var(--S); }
.qfb { font-size: .92rem; margin: 8px 0 0; font-weight: 500; } .qfb:empty { display: none; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 14px; border: 2px solid var(--edge); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: .96rem; }
.choice label:has(input:checked) { background: var(--amber); color: #000; box-shadow: 3px 3px 0 var(--drop); }
.choice input { margin-top: 4px; accent-color: #000; }
.gap-in { max-width: 260px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.split .passage { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .passage { position: static; max-height: none; } }
.passage { border-top: 12px solid var(--R); } .passage h3 { font-size: 1.35rem; } .ptext p { font-size: 1.04rem; line-height: 1.75; font-weight: 500; } .source { font-size: .8rem; color: var(--ink-2); font-style: italic; }
.transcript p { margin: 6px 0; font-size: .95rem; font-weight: 500; }
.rule { border-top: 12px solid var(--G); } .rule h3 { margin-top: 0; font-size: 1.3rem; }
.rule table { border-collapse: collapse; width: 100%; font-size: .94rem; margin: 10px 0; }
.rule th, .rule td { border: 2px solid var(--edge); padding: 8px 10px; text-align: left; vertical-align: top; font-weight: 500; }
.rule th { background: var(--G); color: #000; font-weight: 800; }
.rule .ex { font-style: italic; color: var(--ink-2); }
.prompt { border-top: 12px solid var(--W); } .prompt.speak { border-top-color: var(--S); }
.prompt-text { font-size: 1.18rem; font-weight: 800; } .tips { font-size: .94rem; font-weight: 500; padding-left: 20px; margin: 10px 0 0; }
.useful { font-size: .9rem; line-height: 2.3; font-weight: 700; }
.writebox { font-size: 1.05rem; line-height: 1.7; min-height: 200px; box-shadow: 4px 4px 0 var(--drop); }
.wc { font-weight: 800; font-size: .88rem; color: var(--ink-2); }
.rec { background: var(--tint-S); }
.rec-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rec-btn { background: var(--S); }
.rec-btn.recording { background: var(--bad); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 4px 4px 0 var(--drop), 0 0 0 8px rgba(229, 56, 59, .25); } }
.meter { flex: 1; min-width: 100px; height: 20px; background: var(--surface); border: 3px solid var(--edge); border-radius: 99px; overflow: hidden; } .meter i { display: block; height: 100%; width: 0; background: var(--V); transition: width .1s; }
.rec-time { font-weight: 800; font-size: 1.05rem; }
.rec-review audio { width: 100%; margin-top: 12px; }
.grading { display: flex; gap: 16px; align-items: center; } .grading p { margin: 0; }
.spinner { width: 56px; height: 56px; flex: none; font-size: 2.2rem; display: grid; place-items: center; background: var(--V); border: 3px solid var(--edge); border-radius: 50%; animation: wob 1s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg) translateY(-6px); } }
.pending { background: var(--tint-W); }
.checks { list-style: none; padding: 0; } .checks label { display: flex; gap: 8px; font-weight: 600; } .checks input { accent-color: #000; }

/* ---------- dictation ---------- */
.dict-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; counter-reset: d; }
.dict-item { counter-increment: d; position: relative; padding: 14px 16px 12px 58px; margin: 0; }
.dict-item::before { content: counter(d); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--L); color: #000; border: 2px solid var(--edge); display: grid; place-items: center; font-weight: 800; }
.dict-item .gap0 { gap: 8px; margin-bottom: 8px; }
.dict-in { font-size: 1.05rem; }
.dict-item.is-right { background: var(--tint-V); } .dict-item.is-wrong { background: var(--surface); }
.dict-fb p { margin: 8px 0 0; } .dict-score { font-weight: 600; }
.dict-target { font-size: 1.05rem; line-height: 1.9; }
.w-ok { background: var(--tint-V); border-radius: 5px; padding: 1px 4px; }
.w-miss { background: var(--S); color: #000; border-radius: 5px; padding: 1px 4px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- language spotlight ---------- */
.spot { border-top: 12px solid var(--amber); background: var(--surface); margin-top: 18px; }
.spot h3 { font-size: 1.3rem; }
.spot-note { background: var(--surface-2); border: 2px dashed var(--edge); border-radius: 16px; padding: 12px 14px; font-weight: 500; margin-bottom: 8px; }
.spot-note i { background: var(--amber); color: #000; font-style: normal; font-weight: 700; padding: 0 4px; border-radius: 4px; }
.spot-done { font-weight: 600; margin-top: 10px; }

/* ---------- self-check and send to teacher ---------- */
.selfcheck { border-top: 12px solid var(--V); margin-top: 18px; }
.selfcheck .checks li { margin: 6px 0; }
.selfcheck .checks label { padding: 8px 12px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface-2); cursor: pointer; align-items: flex-start; }
.selfcheck .checks label:has(input:checked) { background: var(--tint-V); box-shadow: 3px 3px 0 var(--drop); }
.selfcheck .checks input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.note-field { margin-top: 14px; }
.sent { display: flex; align-items: center; gap: 14px; background: var(--tint-V); margin-top: 18px; }
.sent .big-emoji { font-size: 2.6rem; margin: 0; } .sent p { margin: 2px 0 0; font-weight: 500; } .sent a { color: var(--sky); font-weight: 800; }

/* ---------- feedback ---------- */
.feedback-card { background: var(--surface); border: 3px solid var(--edge); border-radius: 24px; padding: 18px; box-shadow: 6px 6px 0 var(--drop); margin: 16px 0; }
.fb-head { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .fb-head { grid-template-columns: 1fr; } }
.fb-band { background: var(--amber); color: #000; border: 3px solid var(--edge); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--drop); }
.fb-band .label, .fb-band .muted { color: #000; } .fb-band b { font-size: 3.6rem; line-height: 1; letter-spacing: -.04em; margin: 4px 0; }
.crits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
@media (max-width: 640px) { .crits { grid-template-columns: 1fr; } }
.crit-top { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; font-weight: 800; }
.crit .bar { height: 14px; margin: 5px 0; } .crit p { font-size: .86rem; color: var(--ink-2); margin: 0; font-weight: 500; }
.ticks { padding-left: 20px; font-weight: 600; } .ticks li { margin-bottom: 4px; }
.corr { width: 100%; border-collapse: collapse; font-size: .92rem; }
.corr th { text-align: left; font-weight: 800; background: var(--amber); color: #000; border: 2px solid var(--edge); padding: 6px 8px; }
.corr td { border: 2px solid var(--edge); padding: 8px; vertical-align: top; font-weight: 500; } .corr s { color: var(--bad); } .corr td b { color: var(--ok); }
@media (max-width: 640px) { .corr thead { display: none; } .corr td { display: block; border: 0; padding: 2px 0; } .corr tr { display: block; border-left: 5px solid var(--bad); padding: 6px 0 6px 10px; margin-bottom: 8px; } }
.improved { background: var(--tint-V); border: 3px solid var(--edge); border-radius: 16px; padding: 12px 14px; line-height: 1.7; font-weight: 500; }
.transcript-text { background: var(--surface-2); border: 2px dashed var(--edge); border-radius: 16px; padding: 12px 14px; font-weight: 500; }
.next-step { background: #000; color: var(--amber); border-radius: 16px; padding: 10px 14px; font-weight: 700; }
.model p { margin-top: 4px; font-weight: 500; }
.appeal textarea { margin: 6px 0 10px; } .appeal-sent { font-weight: 600; }

/* ---------- reward ---------- */
.reward-card { position: relative; overflow: hidden; background: #000; color: #fff; border: 3px solid #000; border-radius: 26px; padding: 18px; margin: 22px 0; box-shadow: 6px 6px 0 var(--S); }
.rw-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.rw-face { width: 70px; height: 70px; flex: none; font-size: 2.6rem; display: grid; place-items: center; border-radius: 20px; background: var(--V); border: 3px solid #fff; animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }
.reward-card .xp { font-size: 3.1rem; font-weight: 800; color: var(--amber); line-height: 1; letter-spacing: -.04em; }
.rw-msg { font-weight: 700; color: #ddd; }
.rw-body { position: relative; z-index: 1; margin-top: 10px; } .rw-body p { margin: 0; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 600; }
.badge-new { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px !important; border-radius: 16px; background: var(--amber); color: #000; border: 2px solid #fff !important; }
.badge-new .badge-mark { font-size: 1.6rem; }
.reward-card .row.gap { position: relative; z-index: 1; }
.reward-card .btn { border-color: #fff; box-shadow: 3px 3px 0 #fff; } .reward-card .btn.ghost { background: transparent; color: #fff; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border: 1.5px solid #fff; opacity: 0; animation: fall 1.7s ease-in forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(280px) rotate(540deg); } }

/* ---------- weekly review ---------- */
.steps { display: flex; list-style: none; padding: 0; gap: 8px; margin: 0 0 16px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; font-size: .88rem; font-weight: 800; padding: 5px 14px; border-radius: 99px; border: 3px solid var(--edge); background: var(--surface); }
.steps li::before { content: counter(s) ". "; } .steps li.on { background: var(--amber); color: #000; box-shadow: 3px 3px 0 var(--drop); } .steps li.past { background: var(--V); color: #000; }
.reflect label { display: block; font-weight: 800; margin-bottom: 14px; line-height: 2.4; } .reflect textarea { margin-top: 4px; font-weight: 500; line-height: 1.5; }
.reflect input { display: inline-block; width: auto; min-width: 180px; font-weight: 500; }
.conf { border: 0; padding: 0; margin: 0 0 16px; } .conf legend { font-weight: 800; margin-bottom: 8px; } .conf label { display: inline-flex; margin-right: 6px; } .conf input { display: none; }
.conf label span { width: 42px; height: 42px; border-radius: 12px; border: 3px solid var(--edge); display: grid; place-items: center; font-weight: 800; cursor: pointer; background: var(--surface); }
.conf input:checked + span { background: var(--amber); color: #000; box-shadow: 3px 3px 0 var(--drop); }

/* ---------- progress ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 860px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { margin: 0; padding: 13px 15px; } .kpis .kpi:nth-child(1) { background: var(--S); color: #000; } .kpis .kpi:nth-child(2) { background: var(--L); color: #000; } .kpis .kpi:nth-child(3) { background: var(--W); color: #000; } .kpis .kpi:nth-child(4) { background: var(--V); color: #000; }
.kpi .label, .kpi .ksub { color: #000; }
.kval { margin: 0; font-weight: 700; } .kval b { font-size: 2rem; letter-spacing: -.03em; }
.heat { display: grid; grid-template-rows: repeat(7, 16px); grid-auto-flow: column; grid-auto-columns: 16px; gap: 4px; overflow-x: auto; padding: 2px 2px 6px; }
.heat i, .legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; background: var(--surface-2); border: 1.5px solid var(--edge); }
.h1 { background: var(--tint-V) !important; } .h2 { background: #A8EDBB !important; } .h3 { background: var(--V) !important; } .h4 { background: var(--ok) !important; } .heat i.future { opacity: .3; }
.legend { font-size: .82rem; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.vbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; height: 180px; align-items: end; }
.vb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.vb i { width: 100%; max-width: 36px; background: var(--L); border: 2px solid var(--edge); border-radius: 8px 8px 0 0; min-height: 4px; }
.vb span { font-weight: 800; font-size: .75rem; } .vb small { font-size: .66rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.skills { width: 100%; border-collapse: collapse; font-size: .94rem; }
.skills th { text-align: left; font-weight: 800; background: var(--amber); color: #000; border: 2px solid var(--edge); padding: 6px 8px; }
.skills td { padding: 7px 8px; border: 2px solid var(--edge); font-weight: 600; }
.chart { width: 100%; height: auto; } .chart text { font: 700 11px var(--font); fill: var(--ink-2); }
.chart line.grid { stroke: var(--ink-2); stroke-opacity: .2; } .chart line.target { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 6 4; } .chart line.start { stroke: var(--ink-2); stroke-dasharray: 2 4; }
.chart .ln { fill: none; stroke-width: 3; } .ln.write, .pt.write { stroke: #E08A00; } .pt.write { fill: var(--W); stroke-width: 2; } .ln.speak, .pt.speak { stroke: #E0457B; } .pt.speak { fill: var(--S); stroke-width: 2; }
.lg { width: 16px; height: 5px; display: inline-block; border-radius: 3px; } .lg.write { background: var(--W); } .lg.speak { background: var(--S); } .lg.target { background: var(--bad); } .lg.start { background: var(--ink-2); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 18px 12px; }
.badge { text-align: center; font-size: .76rem; line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.badge .medal { width: 66px; height: 66px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 2rem; background: var(--amber); border: 3px solid var(--edge); border-radius: 50%; box-shadow: 3px 3px 0 var(--drop); }
.badge:nth-child(3n+1) .medal { background: var(--S); transform: rotate(-8deg); border-radius: 18px; } .badge:nth-child(3n+2) .medal { background: var(--L); transform: rotate(6deg); } .badge:nth-child(3n) .medal { background: var(--V); transform: rotate(-3deg); border-radius: 18px; }
.badge:not(.got) .medal { background: var(--surface) !important; border-style: dashed; box-shadow: none; filter: grayscale(1); opacity: .5; }
.badge b { display: block; color: var(--ink); font-weight: 800; font-size: .84rem; }
.badge p { margin: 2px 0 4px; } .badge .bar { height: 12px; margin: 4px 6px; } .badge small { font-weight: 700; }

/* ---------- journal and settings ---------- */
.journal { list-style: none; padding: 0; margin: 0; }
.j-item { padding: 4px 16px; } .j-item > details { border: 0; padding: 0; margin: 0; background: transparent; }
.j-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; list-style: none; }
.j-item summary::-webkit-details-marker { display: none; }
.j-item summary .eyebrow { width: 100%; margin: 0; } .j-item summary b { font-size: 1.08rem; }
.jband { font-weight: 800; background: var(--amber); color: #000; border: 2px solid var(--edge); border-radius: 99px; padding: 0 10px; margin-left: auto; }
.j-item.has-reply { border-color: var(--edge); box-shadow: 5px 5px 0 var(--S); }
.teacher-reply { background: var(--tint-S); border: 3px solid var(--edge); border-radius: 16px; padding: 12px 16px; margin: 12px 0; font-weight: 500; }
.answer { background: var(--surface-2); border: 2px solid var(--edge); padding: 12px 14px; border-radius: 14px; font-weight: 500; }
.refl p { margin: 4px 0; font-weight: 500; }
.danger { background: var(--tint-S); }
.form .intent { margin: 4px 0 14px; }
.saved { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .confetti { display: none; } }

/* Custom artwork (img/art.js). Pictures take the size of the emoji they replace. */
.art { width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -0.2em; display: inline-block; }
.badge .medal .art { width: 50px; height: 50px; }
.badge-new .badge-mark .art { width: 40px; height: 40px; }
.mascot .face .art, .hello-face .art, .rw-face .art { width: 1.35em; height: 1.35em; }
.xpbar .rider .art { transform: scaleX(-1); width: 28px; height: 28px; } /* the picture already faces right */
.brand .mark .art, .lvico .art, .task-row .num .art { width: 1.3em; height: 1.3em; }


/* Fix my mistakes · Names and numbers */
.q-src { font-size: .78rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.ctx { margin: 10px 0 4px; padding: 2px 12px; border: 2px dashed var(--edge); border-radius: 14px; background: var(--surface-2); }
.ctx summary { font-weight: 800; cursor: pointer; padding: 6px 0; }
.ctx p { font-size: .95rem; line-height: 1.6; } .ctx h4 { margin: 6px 0; } .ctx audio { width: 100%; margin: 6px 0; }
.ctx-link { margin: 8px 0 0; font-weight: 800; }
.spell-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spell-field span { font-weight: 800; white-space: nowrap; }
.spell-field input { flex: 1; min-width: 160px; }
.tiles.six { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .tiles.six { grid-template-columns: 1fr 1fr; } }
/* Studio recording not ready yet (no robot voice fallback) */
.audio-pending { border: 3px dashed var(--amber, #f5b400); }
.audio-pending p:last-child { margin: 6px 0 0; font-weight: 600; }
.dict-item.clip-missing { opacity: .45; }

/* ================= Sticker Pop+ (2026-11-28) =================
   Same chunky sticker DNA (black edges, hard shadows), made brighter: a royal-blue header band, a dotted sky,
   soft gradients inside the coloured cards, a striped XP bar, hover lift and a floating mascot.
   Everything below overrides the rules above; motion stops under prefers-reduced-motion. */
body { background-color: var(--bg); background-image: radial-gradient(rgba(255, 255, 255, .45) 1.6px, transparent 1.8px); background-size: 24px 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background-image: radial-gradient(rgba(255, 255, 255, .06) 1.6px, transparent 1.8px); } }
:root[data-theme="dark"] body { background-image: radial-gradient(rgba(255, 255, 255, .06) 1.6px, transparent 1.8px); }

/* header band */
.nav { max-width: none; margin: 0; padding: 14px max(18px, calc((100% - 944px) / 2)) 16px; background: linear-gradient(135deg, var(--royal) 0%, var(--royal-2) 100%); border-bottom: 3px solid #000; color: #fff; }
.brand b { color: #fff; font-size: 1.6rem; text-shadow: 3px 3px 0 #000; }
.brand .mark { width: 50px; height: 50px; font-size: 1.7rem; box-shadow: 4px 4px 0 #000; border-color: #000; }
.pill { border-color: #000; box-shadow: 3px 3px 0 #000; }
.nav nav a { border-color: #000; box-shadow: 3px 3px 0 #000; color: var(--ink); }
.nav nav a.on { background: var(--amber); color: #000; border-color: #000; }
.nav .dot { border-color: #000; }
#view { padding-top: 26px; }
@media (max-width: 760px) {
  .nav { padding: 12px 14px 14px; }
  .brand b { font-size: 1.3rem; text-shadow: 2px 2px 0 #000; }
  .brand .mark { width: 42px; height: 42px; }
  .nav nav a { box-shadow: none; color: var(--ink); }
  .nav nav a.on { background: var(--amber); color: #000; }
}

/* headings: white sticker shadow on the page title */
.page-head h1 { font-size: 2.15rem; text-shadow: 3px 3px 0 #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head h1 { text-shadow: 3px 3px 0 #000; } }
:root[data-theme="dark"] .page-head h1 { text-shadow: 3px 3px 0 #000; }
@media (max-width: 760px) { .page-head h1 { font-size: 1.7rem; } }

/* skill colours: soft gradient inside every coloured sticker */
.sk-V { background: linear-gradient(160deg, #B5F5C6 0%, var(--V) 70%); }
.sk-L { background: linear-gradient(160deg, #A8EBFF 0%, var(--L) 70%); }
.sk-R { background: linear-gradient(160deg, #D5C6FF 0%, var(--R) 70%); }
.sk-W { background: linear-gradient(160deg, #FFD9A0 0%, var(--W) 70%); }
.sk-S { background: linear-gradient(160deg, #FFC2D5 0%, var(--S) 70%); }
.sk-G { background: linear-gradient(160deg, #A9F7E9 0%, var(--G) 70%); }
.sk-Rv { background: linear-gradient(160deg, #FFF29A 0%, var(--Rv) 70%); }

/* buttons */
.btn, .btn.primary { background: linear-gradient(180deg, #FFEC80 0%, var(--amber) 55%, #FFD21F 100%); }
.btn.ghost { background: var(--surface); }
.btn, .mcard, .tile, .task-row, .crumb, .nav nav a, .opt { transition: transform .12s ease, box-shadow .12s ease; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--drop); }
  .btn.small:hover:not(:disabled) { box-shadow: 5px 5px 0 var(--drop); }
  .tile:hover, .task-row:hover, .crumb:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--drop); }
  .nav nav a:not(.on):hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
  .opt:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--drop); }
}
.reward-card .btn:hover { box-shadow: 5px 5px 0 #fff; }

/* mission cards keep their tilt while lifting */
.mcard { --rot: 0deg; transform: rotate(var(--rot)); }
.mcard:nth-child(odd) { --rot: -.8deg; transform: rotate(var(--rot)); }
.mcard:nth-child(even) { --rot: .8deg; transform: rotate(var(--rot)); }
@media (hover: hover) { .mcard:hover { transform: translate(-2px, -3px) rotate(0deg); box-shadow: 7px 7px 0 var(--drop); } }
.mcard:active { transform: translate(3px, 3px) rotate(var(--rot)); }
.mcard .mi { font-size: 2.1rem; }
.mission { box-shadow: 7px 7px 0 var(--drop); position: relative; }
.mission::before { content: ""; position: absolute; left: 22px; right: 22px; top: -3px; height: 9px; border-radius: 0 0 9px 9px; background: linear-gradient(90deg, var(--S), var(--W), var(--amber), var(--V), var(--L), var(--R)); border: 3px solid var(--edge); border-top: 0; }
.mission h2 { font-size: 1.85rem; }

/* streak and level stickers */
.st-streak { background: linear-gradient(160deg, #FFC2D5 0%, var(--S) 55%, #FF6F9C 100%); }
.st-streak .num { font-size: 4.6rem; text-shadow: 3px 3px 0 #fff; }
.lvico { background: linear-gradient(160deg, #FFF29A, var(--amber)); }
.xpbar { height: 22px; }
.xpbar .fill { background: repeating-linear-gradient(45deg, #8EF0A8 0 8px, var(--V) 8px 16px); background-size: 22.6px 22.6px; animation: stripes 1.2s linear infinite; transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes stripes { to { background-position: 22.6px 0; } }

/* mascot floats gently */
.mascot .face, .onboard-card .hello-face { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-5px); } }
.mascot .face { background: linear-gradient(160deg, #FFF29A, var(--amber)); width: 70px; height: 70px; }
.bubble { box-shadow: 4px 4px 0 var(--drop); }

/* tiles and KPI cards: big numbers with a white sticker shadow */
.tile .tv, .kval b { text-shadow: 2px 2px 0 rgba(255, 255, 255, .7); }
.kpis .kpi:nth-child(1) { background: linear-gradient(160deg, #FFC2D5, var(--S)); }
.kpis .kpi:nth-child(2) { background: linear-gradient(160deg, #A8EBFF, var(--L)); }
.kpis .kpi:nth-child(3) { background: linear-gradient(160deg, #FFD9A0, var(--W)); }
.kpis .kpi:nth-child(4) { background: linear-gradient(160deg, #B5F5C6, var(--V)); }

/* reward and done boxes: royal blue instead of plain black */
.reward-card { background: linear-gradient(140deg, var(--royal) 0%, #4B2FD6 100%); border-color: #000; box-shadow: 6px 6px 0 #000; }
.rw-face { background: linear-gradient(160deg, #FFF29A, var(--amber)); }
.done-box { background: linear-gradient(140deg, var(--royal) 0%, #4B2FD6 100%); border: 3px solid #000; box-shadow: 5px 5px 0 #000; }
.notice, .next-step { background: var(--royal); color: #fff; border: 3px solid #000; box-shadow: 4px 4px 0 #000; }

/* onboarding */
.onboard-card h1 { font-size: 2.3rem; }
.onboard-card .hello-face { width: 80px; height: 80px; font-size: 2.9rem; background: linear-gradient(160deg, #FFF29A, var(--amber)); }
.phase-intro li:nth-child(1) { background: linear-gradient(160deg, #B5F5C6, var(--V)); }
.phase-intro li:nth-child(2) { background: linear-gradient(160deg, #A8EBFF, var(--L)); }
.phase-intro li:nth-child(3) { background: linear-gradient(160deg, #FFC2D5, var(--S)); }

/* plan: current week glows amber, finished sessions turn royal blue */
.wk.current { background: linear-gradient(160deg, #FFF29A, var(--amber)); }
.sess.done { background: var(--royal); color: #fff; border-color: #000; }

@media (prefers-reduced-motion: reduce) { .xpbar .fill, .mascot .face, .onboard-card .hello-face { animation: none !important; } }

/* Real artwork (Summit, knight levels): fill the round frames instead of matching the emoji size */
.mascot .face .art { width: 60px; height: 60px; }
.onboard-card .hello-face .art { width: 70px; height: 70px; }
.rw-face .art { width: 62px; height: 62px; }
.brand .mark .art { width: 44px; height: 44px; }
.lvico .art { width: 40px; height: 40px; }
.xpbar .rider .art { width: 34px; height: 34px; }
@media (max-width: 760px) { .brand .mark .art { width: 37px; height: 37px; } .lvico .art { width: 33px; height: 33px; } }
/* 3D medals already have their own golden frame: no extra sticker frame around them */
.badge .medal:has(.art) { background: transparent !important; border: 0; box-shadow: none; border-radius: 0; transform: none !important; width: 76px; height: 76px; }
.badge .medal .art { width: 76px; height: 76px; }
.badge:not(.got) .medal:has(.art) { filter: grayscale(1); opacity: .4; }
.badge-new .badge-mark .art { width: 48px; height: 48px; }
/* "listen" button whose studio clip is not made yet */
.say-off { opacity: .45; cursor: default; text-decoration: none; }
.say-soon { font-size: .78rem; font-weight: 700; color: var(--ink-2); font-style: normal; }
/* Pictures in the Today tiles, header pills, chips and card labels */
.tile .ti .art { width: 44px; height: 44px; }
.pill .art { width: 22px; height: 22px; vertical-align: -5px; }
.chip .art, .label .art, .eyebrow .art, .notice .art, .btn .art, .st-streak .lbl .art { width: 1.5em; height: 1.5em; vertical-align: -0.4em; }

/* Settings: theme choice */
.theme-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-pick .btn[aria-pressed="true"] { background: var(--royal); color: #fff; }

/* ---------------------------------------------------------------- Flashcards (2026-12-03) */
.fc-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .fc-choose { grid-template-columns: 1fr; } }
.fc-weeks { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-weeks .btn { padding: 6px 12px; min-width: 56px; }
.fc-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fc-count { font-weight: 800; margin: 0; }
.fc-deck { width: min(100%, 480px); }
.fc-card { position: relative; display: block; height: min(70vh, 480px); perspective: 1400px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; cursor: pointer; transition: transform .25s ease, opacity .25s ease; }
.fc-card:focus-visible .fc-face { outline: 3px solid var(--sky); outline-offset: 3px; }
.fc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.fc-card.is-flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 3px solid var(--edge); border-radius: var(--r); box-shadow: 6px 6px 0 var(--drop); background: var(--surface); overflow: hidden; }
.fc-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; background: linear-gradient(160deg, var(--tint-V), var(--surface) 70%); }
.fc-back { transform: rotateY(180deg); display: flex; flex-direction: column; }
.fc-topic { position: absolute; top: 16px; left: 16px; right: 16px; margin: 0; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.fc-pos { margin: 0; font-style: italic; font-weight: 600; color: var(--ink-2); }
.fc-word { font-size: clamp(1.9rem, 7vw, 2.6rem); margin: 0; overflow-wrap: anywhere; }
.fc-ipa { margin: 0 0 6px; font-size: 1.1rem; color: var(--ink-2); }
.fc-tap { position: absolute; bottom: 16px; left: 16px; right: 16px; margin: 0; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.fc-body { flex: 1; overflow-y: auto; padding: 20px 20px 34px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fc-head { margin-bottom: .2em; font-size: 1.15rem; }
.fc-def { font-weight: 600; }
.fc-vi { font-family: "Times New Roman", Times, serif; font-style: italic; color: var(--bad); font-size: 1.12rem; }
.fc-other .fc-vi { display: block; font-size: 1.02rem; }
.fc-row { margin: .7em 0 0; }
.fc-row .label { display: block; margin-bottom: 4px; }
.fc-chip { display: inline-block; border: 2px solid var(--edge); border-radius: 999px; padding: 1px 10px; margin: 0 6px 6px 0; font-weight: 700; font-size: .88rem; background: var(--surface-2); }
.fc-other, .fc-ex { margin: 0; padding-left: 1.2em; }
.fc-other li, .fc-ex li { margin-bottom: 6px; }
.fc-ex li > span { margin-right: 4px; }
.fc-ex .icon-btn, .fc-front .icon-btn { vertical-align: middle; }
.fc-more { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 0 8px; text-align: center; font-weight: 800; font-size: .82rem; color: var(--ink); background: linear-gradient(transparent, var(--surface) 55%); pointer-events: none; }
.fc-stamp { position: absolute; top: 22px; z-index: 2; padding: 4px 12px; border: 3px solid currentColor; border-radius: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); opacity: 0; transition: opacity .12s; pointer-events: none; }
.fc-stamp-no { left: 18px; color: var(--bad); transform: rotate(-10deg); }
.fc-stamp-ok { right: 18px; color: var(--ok); transform: rotate(10deg); }
.fc-card.lean-left .fc-stamp-no, .fc-card.lean-right .fc-stamp-ok { opacity: 1; }
.fc-card.fly-right { transform: translateX(130%) rotate(18deg) !important; opacity: 0; }
.fc-card.fly-left { transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.fc-card.dragging { transition: none; }
.fc-card.nudge { animation: fc-nudge .4s; }
@keyframes fc-nudge { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.fc-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; width: min(100%, 480px); }
@media (max-width: 520px) { .fc-actions { grid-template-columns: 1fr 1fr; } .fc-actions .fc-flip { grid-column: 1 / -1; order: 3; } .fc-actions .btn { padding: 10px 8px; } }
.fc-actions .fc-no { background: #FFC9CA; } .fc-actions .fc-ok { background: #BFF0D2; }
.fc-actions .btn:disabled { opacity: .45; cursor: default; }
.fc-help { margin: 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .fc-inner, .fc-card { transition: none; } .fc-card.nudge { animation: none; } }

/* ---------- mock test exam mode (js/mock.js, 2026-12-03) ----------
   A plain exam look over the app: own tokens follow the app theme ("Standard") or the contrast chosen
   in the exam Settings (black on white, white on black, yellow on black). Text size: .mx-fs1/2/3. */
body.mx-on { overflow: hidden; }
body.mx-on #app { display: none; }
.mx { --mx-bg: var(--surface); --mx-ink: var(--ink); --mx-soft: var(--ink-2); --mx-panel: var(--surface-2); --mx-line: var(--ink-2);
  --mx-accent: var(--royal-2); --mx-accent-ink: #fff; --mx-mark: #FFE14D; --mx-mark-ink: #000; --mx-fs: 16px;
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--mx-bg); color: var(--mx-ink);
  font: var(--mx-fs)/1.5 Arial, "Helvetica Neue", "Segoe UI", sans-serif; }
.mx-fs2 { --mx-fs: 19px; } .mx-fs3 { --mx-fs: 22px; }
.mx-c-bw { --mx-bg: #fff; --mx-ink: #000; --mx-soft: #222; --mx-panel: #f1f1f1; --mx-line: #000; --mx-accent: #000; --mx-accent-ink: #fff; color-scheme: light; }
.mx-c-wb { --mx-bg: #000; --mx-ink: #fff; --mx-soft: #e6e6e6; --mx-panel: #151515; --mx-line: #fff; --mx-accent: #fff; --mx-accent-ink: #000; color-scheme: dark; }
.mx-c-yb { --mx-bg: #000; --mx-ink: #FFE600; --mx-soft: #FFE600; --mx-panel: #151515; --mx-line: #FFE600; --mx-accent: #FFE600; --mx-accent-ink: #000; color-scheme: dark; }
.mx h2, .mx h3, .mx h4 { letter-spacing: 0; font-weight: 700; }
.mx h2 { font-size: 1.35em; } .mx h3 { font-size: 1.15em; } .mx h4 { font-size: 1em; color: inherit; margin: .8em 0 .4em; }
.mx button, .mx input, .mx select, .mx textarea { font: inherit; color: inherit; }
.mx input[type="text"], .mx select, .mx textarea { background: var(--mx-bg); color: var(--mx-ink); border: 1px solid var(--mx-line); border-radius: 4px; }
.mx :focus-visible { outline: 3px solid var(--mx-accent); outline-offset: 2px; }
.mx-muted { color: var(--mx-soft); } .mx-warnline { color: var(--bad); font-weight: 700; } .mx-okline { color: var(--ok); font-weight: 700; }
.mx-eyebrow { font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mx-soft); margin: 0 0 .3em; }
.mx-note { border-left: 4px solid var(--mx-accent); padding: 6px 10px; background: var(--mx-panel); }
.mx-link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.mx .mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--mx-accent); background: var(--mx-accent); color: var(--mx-accent-ink); border-radius: 8px; padding: .5em 1.1em; font-weight: 700; text-decoration: none; cursor: pointer; }
.mx .mx-btn.mx-ghost { background: transparent; color: var(--mx-ink); border-color: var(--mx-line); }
.mx .mx-btn.mx-small { padding: .3em .8em; font-size: .9em; }
.mx .mx-btn:disabled { opacity: .45; cursor: not-allowed; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
/* header */
.mx-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 14px; background: var(--mx-panel); border-bottom: 2px solid var(--mx-line); }
.mx-id { min-width: 0; } .mx-id b, .mx-id span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mx-id span { font-size: .85em; color: var(--mx-soft); }
.mx-timer { background: none; border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; font-weight: 700; cursor: pointer; }
.mx-timer.mx-low { color: var(--bad); }
.mx-time-hidden .mx-tt { display: none; } .mx-time-hidden .mx-timer::after { content: "Show time"; font-weight: 400; text-decoration: underline; }
.mx-tools { justify-self: end; display: flex; gap: 8px; align-items: center; }
.mx-tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mx-line); background: transparent; border-radius: 8px; padding: 4px 10px; cursor: pointer; font-weight: 700; }
.mx-vol { display: inline-flex; align-items: center; gap: 6px; } .mx-vol input { width: 90px; accent-color: var(--mx-accent); } .mx-vol-big input { width: 220px; }
.mx-banner { padding: 8px 16px; border-bottom: 1px solid var(--mx-line); }
/* body and panes */
.mx-body { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.mx-body.mx-scroll { overflow: auto; }
.mx-part { height: 100%; }
.mx-single { overflow: auto; } .mx-single .mx-qpane { max-width: 860px; margin: 0 auto; }
.mx-split { display: grid; grid-template-columns: var(--mx-split, 50%) 10px minmax(0, 1fr); }
.mx-split.mx-dragging { user-select: none; }
.mx-pane { overflow: auto; min-width: 0; padding: 16px 20px 40px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mx-divider { background: var(--mx-panel); border-left: 1px solid var(--mx-line); border-right: 1px solid var(--mx-line); cursor: col-resize; position: relative; touch-action: none; }
.mx-divider::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 36px; margin-top: -18px; border-left: 1px solid var(--mx-line); border-right: 1px solid var(--mx-line); }
.mx-switch { display: none; }
.mx-text p { line-height: 1.7; } .mx-plabel { margin-right: 6px; }
.mx-prompt { font-weight: 600; border: 1px solid var(--mx-line); padding: 12px 14px; border-radius: 6px; }
/* questions */
.mx-group { margin-bottom: 26px; }
.mx-instr { font-weight: 700; }
.mx-q { padding: 8px 10px; border-left: 3px solid transparent; border-radius: 4px; margin-bottom: 6px; }
.mx-q.mx-qcur, .mx-form p.mx-qcur { border-left-color: var(--mx-accent); background: var(--mx-panel); }
.mx-qt { margin: 0 0 .4em; }
.mx-qn { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 4px; border: 1px solid var(--mx-line); border-radius: 4px; font-weight: 700; margin-right: 6px; }
.mx-qn-in { display: none; }
.mx-gap { width: 9.5em; padding: 2px 6px; text-align: center; }
.mx-gap::placeholder { color: var(--mx-soft); font-weight: 700; opacity: 1; }
.mx .mx-sel { width: auto; display: inline-block; padding: 2px 4px; min-width: 3.6em; margin: 0 4px 0 0; }
.mx .mx-gap { display: inline-block; width: 9.5em; max-width: 100%; padding: 2px 6px; margin: 0; }
.mx-choice label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 6px; cursor: pointer; border-radius: 4px; }
.mx-choice input { margin-top: .3em; accent-color: var(--mx-accent); width: 1.05em; height: 1.05em; }
.mx-form, .mx-optbox { border: 1px solid var(--mx-line); border-radius: 6px; padding: 10px 16px; }
.mx-form p { margin: .25em 0; padding: 4px 8px; line-height: 2; border-left: 3px solid transparent; }
.mx-optbox ul { list-style: none; padding: 0; margin: 0; } .mx-optbox b { margin-right: 8px; }
/* highlight and notes */
.mx mark.mx-mark { background: var(--mx-mark); color: var(--mx-mark-ink); box-shadow: none; border-radius: 2px; padding: 0; cursor: pointer; }
.mx mark.mx-noted { text-decoration: underline 2px dashed; text-underline-offset: 3px; }
.mx-pop { position: fixed; z-index: 70; background: var(--mx-bg); color: var(--mx-ink); border: 2px solid var(--mx-line); border-radius: 10px; padding: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.35); max-width: min(320px, calc(100vw - 16px)); }
.mx-pop-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mx-note-l { display: block; font-weight: 700; } .mx-note-t { display: block; width: 260px; max-width: 100%; margin: 4px 0 8px; padding: 6px; }
.mx-note-show { margin: 0 0 8px; white-space: pre-wrap; }
/* footer navigator */
.mx-foot { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--mx-panel); border-top: 2px solid var(--mx-line); }
.mx-parts { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px; }
.mx-pnav { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--mx-line); border-radius: 8px; white-space: nowrap; flex-shrink: 0; }
.mx-pnav.mx-on { border-width: 2px; }
.mx-pbtn { background: none; border: 0; font-weight: 700; padding: 2px; cursor: pointer; }
.mx-pcount { font-size: .85em; color: var(--mx-soft); }
.mx-nums { display: none; gap: 4px; }
.mx-pnav.mx-on .mx-nums { display: flex; } .mx-pnav.mx-on .mx-nums ~ .mx-pcount, .mx-pnav.mx-on .mx-pcount:has(+ .mx-nums) { display: none; }
.mx-num { position: relative; min-width: 2.1em; height: 2.1em; border: 1px solid var(--mx-line); background: var(--mx-bg); border-radius: 4px; font-weight: 700; font-size: .85em; cursor: pointer; }
.mx-num.mx-ans { background: var(--mx-panel); box-shadow: inset 0 -4px 0 var(--mx-accent); }
.mx-num.mx-cur { outline: 2px solid var(--mx-accent); outline-offset: 1px; }
.mx-num.mx-flagged::after { content: ""; position: absolute; top: -5px; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); border: 2px solid var(--mx-bg); }
.mx-navr { display: flex; gap: 6px; align-items: center; }
.mx-flag { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--mx-line); background: transparent; border-radius: 6px; padding: .35em .7em; cursor: pointer; font-weight: 700; }
.mx .mx-flag.on { background: var(--mx-mark); color: #000; }
.mx .mx-arrow { width: 2.6em; height: 2.3em; border: 2px solid var(--mx-accent); background: var(--mx-accent); color: var(--mx-accent-ink); border-radius: 6px; font-size: 1.05em; font-weight: 700; cursor: pointer; }
/* start sheets and dialogs */
.mx-sheet { flex: 1; overflow: auto; display: grid; place-items: start center; padding: 28px 16px; }
.mx-card { width: 100%; max-width: 660px; background: var(--mx-panel); border: 2px solid var(--mx-line); border-radius: 12px; padding: 20px 22px; }
.mx-card ul, .mx-dlg-box ul { padding-left: 1.2em; } .mx-card li, .mx-dlg-box li { margin-bottom: .4em; }
.mx-dlg { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; }
.mx-dlg-box { width: 100%; max-width: 560px; max-height: 92%; overflow: auto; background: var(--mx-bg); color: var(--mx-ink); border: 2px solid var(--mx-line); border-radius: 12px; padding: 18px 20px; }
.mx-dlg fieldset { border: 1px solid var(--mx-line); border-radius: 8px; margin: 0 0 12px; padding: 8px 12px; }
.mx-dlg legend { font-weight: 700; padding: 0 4px; }
.mx-radio { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; } .mx-radio input { accent-color: var(--mx-accent); }
.mx-revgrid { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
/* results */
.mx-results { max-width: 920px; margin: 0 auto; padding: 20px 16px 48px; }
.mx-score { display: flex; gap: 32px; flex-wrap: wrap; margin: 10px 0 14px; }
.mx-big { display: block; font-size: 2.2em; font-weight: 700; line-height: 1.1; }
.mx-tablewrap { overflow-x: auto; margin: 10px 0; }
.mx-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.mx-table th, .mx-table td { border: 1px solid var(--mx-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.mx-table caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.mx-ok td:nth-child(4) { color: var(--ok); font-weight: 700; } .mx-no td:nth-child(4) { color: var(--bad); font-weight: 700; }
.mx-transcript, .mx-res-block { border: 1px solid var(--mx-line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.mx-transcript summary, .mx-res-block summary, .mx-chart summary { cursor: pointer; font-weight: 700; }
.mx-transcript mark, .mx-results mark { background: var(--mx-mark); color: #000; box-shadow: none; }
.mx-answer { line-height: 1.65; }
.mx-results audio { width: 100%; max-width: 480px; }
/* writing */
.mx-write { display: flex; flex-direction: column; }
.mx-ta { flex: 1; min-height: 16em; width: 100%; resize: none; line-height: 1.6; padding: 12px; }
.mx-wc { margin: 6px 0 0; font-weight: 700; }
.mx-chart { margin: 14px 0; } .mx-chart figcaption { font-weight: 700; margin-bottom: 6px; }
.mx-chart svg { width: 100%; max-width: 640px; height: auto; display: block; }
.mx-grid { stroke: var(--mx-line); stroke-opacity: .35; } .mx-ax { fill: currentColor; font-size: 12px; font-family: Arial, sans-serif; }
.mx-bar { stroke: #000; stroke-width: 1; }
.mx-b0 { fill: var(--L); background: var(--L); } .mx-b1 { fill: var(--W); background: var(--W); } .mx-b2 { fill: var(--R); background: var(--R); } .mx-b3 { fill: var(--S); background: var(--S); }
.mx-legend span { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; } .mx-legend i { width: 14px; height: 14px; border: 1px solid #000; display: inline-block; }
/* speaking */
.mx-speak { max-width: 780px; margin: 0 auto; padding: 20px 16px 40px; }
.mx-examiner { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--mx-line); border-radius: 12px; padding: 14px; background: var(--mx-panel); }
.mx-avatar { width: 3em; height: 3em; border-radius: 50%; display: grid; place-items: center; background: var(--mx-accent); color: var(--mx-accent-ink); flex-shrink: 0; }
.mx-who { font-weight: 700; margin: 0; } .mx-sstatus { margin: .2em 0 .4em; } .mx-qtext { font-size: 1.1em; font-weight: 600; }
.mx-recbar { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 700; }
.mx-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: mx-blink 1.2s infinite; }
@keyframes mx-blink { 50% { opacity: .25; } }
.mx-meter { flex: 1; max-width: 200px; height: 8px; border: 1px solid var(--mx-line); border-radius: 4px; overflow: hidden; } .mx-meter i { display: block; height: 100%; width: 0; background: var(--ok); }
.mx-cue { border: 2px solid var(--mx-line); border-radius: 8px; padding: 14px 18px; margin: 16px 0; }
.mx-cue-t { font-weight: 700; font-size: 1.1em; } .mx-count { font-size: 1.5em; margin: 8px 0; }
.mx-notes { display: block; font-weight: 700; } .mx-notes textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; }
@media (max-width: 760px) {
  .mx-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .mx-switch { display: flex; gap: 0; border-bottom: 1px solid var(--mx-line); }
  .mx-switch button { flex: 1; padding: 8px; border: 0; background: var(--mx-panel); font-weight: 700; cursor: pointer; }
  .mx-switch button[aria-selected="true"] { background: var(--mx-accent); color: var(--mx-accent-ink); }
  .mx-divider { display: none; }
  .mx-split[data-show="text"] .mx-qpane, .mx-split[data-show="qs"] .mx-text { display: none; }
  .mx-pane { padding: 12px 14px 32px; }
  .mx-head { grid-template-columns: minmax(0, 1fr) auto auto; padding: 6px 10px; }
  .mx-id span, .mx-tool span, .mx-flag span { display: none; }
  .mx-vol input { width: 60px; }
  .mx-foot { flex-wrap: wrap; padding: 4px 8px; }
  .mx-parts { flex-basis: 100%; }
  .mx-navr { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .mx-dot { animation: none; } }
/* mock test list (inside the app) */
.mock-skills { list-style: none; padding: 0; margin: 10px 0 14px; }
.mock-skills li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 2px dashed var(--surface-2); }
.mock-skills .mi { font-size: 1.6rem; width: 2.2rem; text-align: center; } .mock-skills .mi .art { width: 2rem; height: 2rem; }
.mock-skills li > div { flex: 1; min-width: 0; } .mock-skills small { display: block; color: var(--ink-2); font-weight: 600; }
.mock-card .row h2 { margin: 0; }
.mx details { background: transparent; border: 1px solid var(--mx-line); border-radius: 8px; padding: 2px 12px; margin: 10px 0; }
.mx details summary { font-weight: 700; padding: 6px 0; }
.mx b, .mx strong { font-weight: 700; }
.mx .mx-ax { font-size: 14px; }

/* ================================================================ Video lessons (Knowledge, #/learn; player P.lesson in tasks.js) */
.vl-source p { margin: 0 0 8px; } .vl-source p:last-child { margin-bottom: 0; }
.vl-pq { margin: 14px 0; } .vl-pq .qtext { margin-bottom: 8px; }
.opt.picked { background: var(--amber); color: #000; } .opt.picked:disabled { color: #000; }
.vl-track { position: relative; height: 12px; margin: 14px 4px 6px; background: var(--surface-2); border: 2px solid var(--edge); border-radius: 99px; }
.vl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--sky); border-radius: 99px; opacity: .55; }
.vl-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid var(--edge); border-radius: 50%; background: var(--amber); }
.vl-dot.ok { background: var(--ok); } .vl-dot.no { background: var(--bad); }
.vl-cp { margin-top: 12px; padding: 14px 16px; border: 3px solid var(--edge); border-radius: 18px; background: var(--surface-2); box-shadow: 4px 4px 0 var(--drop); }
.vl-cp .eyebrow { margin-bottom: 4px; }
.vl-cp .feedback .row { display: flex; margin-top: 10px; } .vl-cp .feedback .btn { margin-left: 0; }
.vl-cp .row .gap-in { flex: 1; min-width: 0; }
.vl-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.vl-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 2px dashed var(--surface-2); }
.vl-list li > span { flex: none; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #000; background: var(--surface-2); }
.vl-list li.ok > span { background: var(--ok); } .vl-list li.no > span { background: var(--bad); }
.vl-list small { color: var(--ink-2); font-weight: 700; }
.learn-week { font-size: 1.15rem; margin: 22px 0 10px; }
.learn-card { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 12px; background: var(--surface) !important; border: 3px solid var(--edge); border-radius: 20px; text-decoration: none; color: var(--ink); box-shadow: 4px 4px 0 var(--drop); }
.learn-card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--drop); }
.learn-card .mi { width: 52px; height: 52px; flex: none; border: 3px solid var(--edge); border-radius: 15px; display: grid; place-items: center; font-size: 1.6rem; color: #000; background: var(--V); }
.learn-card.sk-G .mi { background: var(--G); } .learn-card.sk-S .mi { background: var(--S); } .learn-card .mi .art { width: 1.3em; height: 1.3em; }
.learn-card .lc-body { flex: 1; min-width: 0; } .learn-card .lc-body b { display: block; font-size: 1.06rem; }
.learn-card .lc-body .eyebrow { margin-bottom: 1px; text-transform: none; letter-spacing: 0; }
.learn-card small { display: block; color: var(--ink-2); font-weight: 600; }
.learn-card .ts { font-weight: 800; font-size: .82rem; padding: 2px 10px; border-radius: 99px; border: 2px solid var(--edge); white-space: nowrap; }
.learn-card.done .ts { background: var(--V); color: #000; }
@media (max-width: 560px) { .learn-card { flex-wrap: wrap; } .learn-card .ts { margin-left: 66px; } }

/* ================================================================ Step S4: improve after the model, feedback from Claude, error log, calibration
   (players in tasks.js, panel in js/claude.js, #/errors and the Progress table in ui.js) */
.improve { margin: 18px 0 6px; padding-top: 14px; border-top: 3px dashed var(--surface-2); }
.improve h4 { margin: 0 0 4px; }
.improve .imp-box { margin-top: 10px; }
.improve .imp-wc { margin: 6px 0 0; }
.rec2 { margin-top: 10px; padding: 12px 14px; border: 3px solid var(--edge); border-radius: 18px; background: var(--tint-S); }
.watch-out { border-left: 12px solid var(--amber); }
.watch-out ul, .el-top, .el-items { margin: 8px 0; padding-left: 1.2em; }
.watch-out li, .el-top li, .el-items li { margin: 6px 0; line-height: 1.5; overflow-wrap: anywhere; }
.wo-wrong { color: var(--bad); text-decoration-thickness: 2px; }
.wo-right { color: var(--ok); font-weight: 800; }
.cl-panel { border-top: 12px solid var(--sky); }
.cl-panel h4 { margin: 14px 0 4px; }
.cl-panel select, .el-paste select { margin-top: 6px; font-weight: 600; max-width: 100%; }
.cl-own-f select { max-width: 12em; display: block; }
.cl-slot { margin-bottom: 6px; }
.cl-privacy { border-left: 4px solid var(--amber); padding-left: 8px; }
.cl-dict { margin-bottom: 12px; }
.cl-dict.recording { background: var(--bad); color: #fff; }
.cl-see { margin-top: 8px; } .cl-see textarea { margin-top: 8px; font-size: .85rem; font-family: ui-monospace, Consolas, monospace; }
.cl-msg a, .cl-res a, .el-res a { color: var(--sky); font-weight: 800; }
.cl-back { margin-top: 10px; padding-top: 10px; border-top: 3px dashed var(--surface-2); }
.cl-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
.cl-sheet { width: min(720px, 100%); margin: auto 0; background: var(--bg); color: var(--ink); border: 3px solid var(--edge); border-radius: var(--r); padding: 12px; box-shadow: 6px 6px 0 #000; font-family: var(--font); }
.cl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 10px; font-size: 1.1rem; }
.cl-body .card { margin-bottom: 0; }
.el-tops > div { min-width: 0; } .el-tops h4 { margin: 4px 0; }
.el-log .chip { margin-right: 4px; }
.el-del { margin-top: 4px; }
.calib-t td, .calib-t th { padding: 6px; text-align: center; } .calib-t td:first-child { white-space: nowrap; }
.calib-t .ct { text-align: left; max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .calib-t { font-size: .84rem; } .calib-t .ct { max-width: 7.5em; } }

/* ================================================================ Step S7: shadowing (#/shadow library in ui.js; player P.shadow in tasks.js) */
.learn-card.sk-L .mi { background: var(--L); }
.sh-source p { margin: 0 0 8px; } .sh-source p:last-child { margin-bottom: 0; }
.sh-source .video-frame { margin: 8px 0; }
.sh-focus { border-left: 4px solid var(--amber); padding-left: 10px; }
.sh-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; scroll-margin-top: 12px; }
.sh-step { flex: 1 1 auto; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink); background: var(--surface); border: 3px solid var(--edge); border-radius: 14px; padding: 7px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--drop); text-align: left; }
.sh-step b { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 4px; border-radius: 50%; background: var(--surface-2); }
.sh-step.on { background: var(--L); color: #000; } .sh-step.on b { background: #fff; color: #000; }
.sh-bar { align-items: center; flex-wrap: wrap; }
.sh-rate { display: inline-flex; border: 3px solid var(--edge); border-radius: 13px; overflow: hidden; }
.sh-r { font: inherit; font-weight: 700; font-size: .85rem; padding: 6px 12px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.sh-r + .sh-r { border-left: 3px solid var(--edge); }
.sh-r.on { background: var(--amber); color: #000; }
.sh-read { margin: 12px 0; padding-left: 1.6em; }
.sh-read li { padding: 6px 8px; margin: 2px 0; border-radius: 10px; line-height: 1.55; cursor: pointer; }
.sh-read li:hover { background: var(--surface-2); }
.sh-read li.now, .sh-row.now .sh-text { background: var(--amber); color: #000; }
.sh-rows { list-style: none; padding: 0; margin: 12px 0; }
.sh-row { padding: 10px 0; border-top: 2px dashed var(--surface-2); }
.sh-text { display: flex; gap: 10px; align-items: baseline; padding: 4px 6px; border-radius: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.sh-n { flex: none; width: 1.7em; height: 1.7em; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: .85rem; background: var(--surface-2); color: var(--ink); }
.sh-row.has-take .sh-n { background: var(--ok); color: #000; }
.sh-hidden { color: var(--ink-2); font-weight: 600; }
.sh-text { flex-wrap: wrap; } .sh-hidden + .sh-t:not([hidden]) { flex-basis: 100%; padding-left: 2.4em; }
.sh-t[hidden] { display: none; }
.sh-text > .sh-t { flex: 1 1 0; min-width: 0; }
.sh-ctl { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 2.4em; }
.sh-ctl .btn { margin: 0; }
.sh-rec.recording { background: var(--bad); color: #fff; }
.sh-msg { margin: 6px 0 0 2.4em; min-height: 0; }
.sh-msg:empty { display: none; }
.sh-count { font-weight: 700; }
@media (max-width: 560px) {
  .sh-ctl, .sh-msg { margin-left: 0; }
  .sh-ctl .btn { flex: 1 1 30%; padding-left: 6px; padding-right: 6px; }
  .sh-step { flex-basis: calc(50% - 4px); }
}

/* ================================================================ Step S9: 4/3/2 speaking, dictogloss, mixed review (players in tasks.js) */
.f432-how .tips { margin-bottom: 12px; }
.f432-steps li { font-variant-numeric: tabular-nums; }
.f432-steps li::before { content: none; }
.f432-clock { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 8px; }
.f432-time { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.f432-state { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.f432-clock.live .f432-state { color: var(--bad); }
.f432-clock.live .f432-state::before { content: "● "; }
.f432-clock.low .f432-time { color: var(--bad); }
.f432-bar { height: 14px; border: 3px solid var(--edge); border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.f432-bar i { display: block; height: 100%; background: var(--S); transition: width .2s linear; }
.f432-stage audio, .f432-pair audio { width: 100%; margin: 6px 0; }
.f432-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f432-qs { padding-left: 1.4em; }
.f432-qs li { margin-bottom: 12px; }
.row-choice { flex-direction: row; flex-wrap: wrap; }
.row-choice label { flex: 1 1 0; min-width: 6.5em; justify-content: center; }
.dg-bar { margin: 6px 0 14px; }
.dg-notes-view { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-weight: 600; overflow-wrap: anywhere; }
.dg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.dg-cols h4 { display: flex; gap: 8px; align-items: baseline; margin-top: 0; }
.dg-orig, .dg-mine { line-height: 1.9; overflow-wrap: anywhere; }
mark.dg-gram { background: var(--amber); color: #000; box-shadow: none; padding: 2px 0; border-bottom: 3px solid #000; border-radius: 0; }
mark.dg-gram .w-ok, mark.dg-gram .w-miss { color: #000; }
mark.dg-gram .w-ok { background: transparent; padding: 0; }
.dg-focus { border-left: 4px solid var(--amber); padding-left: 12px; margin: 14px 0; }
.dg-marks { list-style: none; padding: 0; margin: 0; }
.dg-marks li { padding: 3px 0; }
.dg-marks li.kept b { color: var(--ok); } .dg-marks li.lost b { color: var(--bad); }
.dg-saved { margin-top: 12px; }
.mix { margin-top: 18px; border-color: var(--edge); background: var(--surface); }
.mix-list { margin-top: 12px; }
.mix-src { font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.mix-tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 1px 8px; margin-right: 4px; border: 2px solid var(--edge); border-radius: 99px; background: var(--Rv); color: #000; }
@media (max-width: 560px) {
  .f432-pair, .dg-cols { grid-template-columns: 1fr; }
  .f432-time { font-size: 2.5rem; }
}

/* ---------------------------------------------------------------- Step S10: badges for the new features, medals
   A medal (bigger milestone) has a small "Medal" tag under its picture; its picture is a medal on a neck ribbon. */
.badge .medal-tag { display: inline-block; margin: 0 0 3px; padding: 0 8px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--edge); border-radius: 99px; background: var(--amber); color: #000; }
.badge.is-medal:not(.got) .medal-tag { background: var(--surface); color: var(--ink-2); border-style: dashed; }
.badges-sum { margin-top: -4px; }
span.badge-new { margin-top: 10px; }

/* ---------------------------------------------------------------- Step S11 (2026-12-04): long "Useful language" chips
   (Phase 2 essays and paragraphs) may wrap inside the screen instead of pushing the page sideways at 375 px. */
.useful code { white-space: normal; display: inline-block; max-width: 100%; border-radius: 14px; margin: 2px 0; }

/* ---------------------------------------------------------------- Writing Task 1 figures (step S12)
   Inline SVG process diagrams and maps in the weekly writing tasks (task.figure). Shapes use the colour tokens through
   classes, so the same SVG works in light and dark mode; text and arrows follow currentColor (--ink). */
.t1-fig { margin: 12px 0 0; }
.t1-fig figcaption { font-weight: 800; margin-bottom: 8px; }
.t1-fig svg { display: block; width: 100%; max-width: 520px; height: auto; color: var(--ink); }
.t1-maps { display: flex; flex-wrap: wrap; gap: 12px; }
.t1-maps > div { flex: 1 1 280px; min-width: 0; }
.t1-fig text { fill: currentColor; font: 13px var(--font); }
.t1-fig .tl { font-weight: 700; }
.t1-fig .sm { font-size: 11px; fill: var(--ink-2); }
.t1-fig .num { font-size: 11px; font-weight: 800; fill: var(--ink-2); }
.t1-fig .ar { stroke: currentColor; stroke-width: 2; fill: none; }
.t1-fig .bx { fill: var(--surface-2); stroke: currentColor; stroke-width: 2; }
.t1-fig .bx-w, .t1-fig .wt { fill: var(--tint-L); }
.t1-fig .bx-g { fill: var(--tint-V); }
.t1-fig .mp-bg { fill: var(--surface-2); stroke: currentColor; stroke-width: 2; }
.t1-fig .wt { stroke: none; }
.t1-fig .rd { fill: var(--ink-2); opacity: .55; }
.t1-fig .hs { fill: var(--tint-S); stroke: currentColor; stroke-width: 1.2; }
.t1-fig .fm { fill: var(--tint-W); stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 4 3; }
.t1-fig .wd { fill: var(--tint-V); stroke: currentColor; stroke-width: 1.2; }
.t1-fig .bd { fill: var(--tint-R); stroke: currentColor; stroke-width: 1.5; }
.t1-fig .pk { fill: var(--surface); stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 3 2; }
.t1-fig .lp { fill: none; stroke: var(--ink-2); stroke-width: 6; opacity: .55; }
.t1-fig .fp { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 5 4; }
.t1-text { margin-top: 8px; }
.t1-text summary { cursor: pointer; font-weight: 700; }
.t1-text p { margin: 6px 0 0; }

/* ---------------------------------------------------------------- Precision Checkpoint (C02, week 14 day 6)
   One task in four parts (P.checkpoint in tasks.js). Each part is a card (the reading part is a heading card + the usual
   .split passage and questions); the result table lists the score of each part. */
.cp-intro p { margin: 0 0 8px; }
.cp-intro p:last-child { margin-bottom: 0; }
.cp-best { font-weight: 700; }
.cp-part { margin: 18px 0; }
.cp-part > .cp-head { margin-bottom: 12px; }
.cp-part h3 { margin: 4px 0 8px; }
.cp-audio { margin: 8px 0 12px; }
.cp-audio audio { width: 100%; max-width: 520px; display: block; }
.cp-left { font-size: .95rem; }
.cp-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.cp-table th, .cp-table td { text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--surface-2); }
.cp-table td:last-child, .cp-table th:last-child { text-align: right; white-space: nowrap; }

/* ---------------------------------------------------------------- Phase 3 exam practice (C03)
   Figures (maps, plans, diagrams) and the glossary inside the exam screens (js/mock.js), the sources on the Reading results,
   and the exam task page (P.exam in tasks.js). Figures reuse the .t1-fig shapes (Writing Task 1 figures, step S12), so they
   follow light and dark mode; in the exam's own colour settings (black on white, white or yellow on black) every shape
   takes the exam colours instead. */
.mx-fig { margin: 4px 0 18px; }
.mx-fig svg { max-width: 560px; color: var(--mx-ink); }
.mx-fig figcaption { font-weight: 700; }
.mx-fig .t1-text summary { font-weight: 600; font-size: .92em; }
.mx-text .mx-fig { margin-top: 18px; }
.mx:not(.mx-c-std) .mx-fig .bx, .mx:not(.mx-c-std) .mx-fig .mp-bg, .mx:not(.mx-c-std) .mx-fig .hs, .mx:not(.mx-c-std) .mx-fig .fm,
.mx:not(.mx-c-std) .mx-fig .wd, .mx:not(.mx-c-std) .mx-fig .bd, .mx:not(.mx-c-std) .mx-fig .pk, .mx:not(.mx-c-std) .mx-fig .wt,
.mx:not(.mx-c-std) .mx-fig .bx-w, .mx:not(.mx-c-std) .mx-fig .bx-g { fill: var(--mx-panel); stroke: var(--mx-ink); }
.mx:not(.mx-c-std) .mx-fig .rd, .mx:not(.mx-c-std) .mx-fig .lp { fill: var(--mx-soft); stroke: var(--mx-soft); }
.mx:not(.mx-c-std) .mx-fig text, .mx:not(.mx-c-std) .mx-fig .sm, .mx:not(.mx-c-std) .mx-fig .num { fill: var(--mx-ink); }
.mx-fig .lbl { font-weight: 800; font-size: 14px; }
.mx-fig .pin { fill: var(--mx-bg); stroke: var(--mx-ink); stroke-width: 1.5; }
.mx-gloss { margin-top: 20px; border-top: 1px solid var(--mx-line); padding-top: 8px; font-size: .92em; }
.mx-gloss h4 { margin-top: .2em; }
.mx-gloss ul { margin: 0; padding-left: 1.2em; }
.mx-sources { margin: 6px 0 16px; padding: 8px 12px; border-left: 4px solid var(--mx-line); background: var(--mx-panel); }
.mx-sources h4 { margin: .2em 0 .3em; }
.mx-sources ul { margin: .3em 0 0; padding-left: 1.2em; }
.mx-sources a { color: inherit; overflow-wrap: anywhere; }
.ex-inside ul { margin: 0; padding-left: 1.2em; }
.ex-inside li { margin: 4px 0; }
.ex-result .eyebrow { color: inherit; opacity: .85; }
.ex-result a { color: inherit; }
.ex-go { margin: 14px 0 8px; }

/* ================================================================ Engjoy (2026-12-06): royal blue + gold, Ejay the knight */
:root { --gold: #F5B800; --ej: #1E3FCC; }
.pill.gear { background: var(--surface); color: var(--ink); text-decoration: none; padding: 2px 9px; }
.pill.gear.on { background: #000; color: var(--amber); }
.promise { background: var(--tint-L); border: 2px solid var(--edge); border-radius: 16px; padding: 10px 14px; font-weight: 600; margin: 0 0 16px; display: flex; gap: 10px; align-items: flex-start; }
.promise .art, .promise img { width: 32px; height: 32px; flex: none; }
.aim { font-weight: 700; color: var(--ej); background: var(--surface-2); border-left: 5px solid var(--ej); border-radius: 0 12px 12px 0; padding: 6px 12px; margin: 6px 0 0; }
.vi-hint { font-size: .86rem; color: var(--ink-2); font-style: italic; margin: 4px 0 8px; }
/* Beginner "New words" box (task.nw) */
.nw-box { margin: 12px 0 16px; padding: 10px 14px; }
.nw-box > summary { font-weight: 800; cursor: pointer; }
.nw-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.nw-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 0; border-top: 2px dashed var(--edge); }
.nw-list li:first-child { border-top: 0; padding-top: 0; }
.nw-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nw-w { font-size: 1.08rem; }
.nw-top .icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.nw-def { color: var(--ink-2); }
.nw-list .vi-hint { margin: 0; }
.feedback .ipa, .gm-words .ipa, .fc-head .ipa { color: var(--ink-2); font-weight: 500; }
/* onboarding choices (buttons) */
.choice-list { display: grid; gap: 10px; margin: 10px 0; list-style: none; padding: 0; }
button.choice { text-align: left; width: 100%; display: flex; flex-direction: column; gap: 2px; border: 3px solid var(--edge); border-radius: 16px; background: var(--surface-2); padding: 11px 14px; box-shadow: 3px 3px 0 var(--drop); }
button.choice b { font-size: 1.05rem; } button.choice span { font-weight: 500; color: var(--ink-2); font-size: .92rem; }
button.choice.sel, button.choice:hover { background: var(--amber); color: #000; } button.choice.sel span, button.choice:hover span { color: #222; }
button.choice.test { background: var(--tint-V); }
/* time slots */
.slots { display: grid; gap: 8px; margin: 10px 0; }
.slot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 7px 10px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface-2); opacity: .6; }
.slot-row.on { opacity: 1; background: var(--surface); box-shadow: 3px 3px 0 var(--drop); }
.slot-day { font-weight: 800; min-width: 64px; display: flex; gap: 6px; align-items: center; }
.slot-row input[type=time], .slot-row select { width: auto; margin: 0; min-width: 0; font: inherit; font-weight: 700; padding: 4px 6px; border: 2px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--ink); }
.slot-to, .slot-unit { font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.slot-now { font-weight: 800; }
.slot-edit summary { cursor: pointer; font-weight: 800; margin: 6px 0; }
/* placement test */
.test-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.test-meta { font-weight: 800; }
.ptbar { height: 12px; border: 2px solid var(--edge); border-radius: 99px; background: var(--surface); overflow: hidden; margin-bottom: 14px; }
.ptbar i { display: block; height: 100%; background: var(--ej); }
.test-text p { font-weight: 500; }
/* This week */
.week-nav { display: flex; justify-content: space-between; gap: 10px; margin: -6px 0 14px; font-weight: 800; }
.week-nav a { text-decoration: none; }
.fire-card { display: flex; gap: 16px; align-items: center; background: var(--tint-S); }
.fire-card.lit { background: var(--amber); color: #000; } .fire-card.lit .muted, .fire-card.lit .eyebrow { color: #333; }
.fire-big { display: flex; flex-direction: column; align-items: center; min-width: 74px; font-size: 2rem; line-height: 1; }
.fire-big b { font-size: 2.2rem; letter-spacing: -.03em; } .fire-big span { font-size: .8rem; font-weight: 800; }
.fire-txt p { margin: 0 0 .3em; }
.week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.week-grid > .card { margin-bottom: 0; }
@media (max-width: 760px) { .week-grid { grid-template-columns: 1fr; } .fire-card { gap: 10px; } }
.goal-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.goal { display: flex; gap: 10px; align-items: flex-start; padding: 8px 11px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface-2); font-weight: 600; cursor: pointer; }
.goal input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ok); flex: none; }
.goal.on { background: var(--tint-V); }
.monster-card { display: flex; gap: 14px; align-items: flex-start; background: var(--tint-R); }
.monster-card.beaten { background: var(--tint-V); }
.mon-pic { width: 76px; height: 76px; flex: none; border: 3px solid var(--edge); border-radius: 20px; background: var(--surface); display: grid; place-items: center; font-size: 2.6rem; box-shadow: 3px 3px 0 var(--drop); overflow: hidden; }
.mon-pic img { width: 100%; height: 100%; object-fit: contain; }
.mon-pic.big { width: 110px; height: 110px; font-size: 3.8rem; }
.mon-txt h3 { margin-bottom: .2em; }
.week-tasks h3 { margin: 0; }
.wk-unit h4 { margin: 1.1em 0 .4em; font-size: .92rem; color: var(--ink); }
.wk-unit h4 a { text-decoration: none; }
.wk-unit.done h4::after { content: " ✓"; color: var(--ok); }
.wt-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.wt a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px 10px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface); }
.wt a:hover { background: var(--surface-2); }
.wt.done a { background: var(--tint-V); }
.wt.bonus a { border-style: dashed; }
.wt-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 2px solid var(--edge); display: grid; place-items: center; background: var(--surface-2); font-size: 1.1rem; }
.wt-ic svg { width: 18px; height: 18px; }
.wt-b { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wt-b b { font-size: .95rem; } .wt-b small { color: var(--ink-2); font-weight: 600; font-size: .78rem; }
.next-line { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.next-line svg { width: 18px; height: 18px; }
.minutes { margin: 4px 0 16px; }
.tiles .tile { background: var(--surface); color: var(--ink); }
.tiles .tile span { font-size: 1.6rem; line-height: 1; }
.locked-week svg { width: 18px; height: 18px; vertical-align: -3px; }
.wk-mon { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
/* monster fight */
.mon-head { display: flex; gap: 16px; align-items: center; }
.mon-hp { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .85rem; margin-bottom: 10px; }
.mon-hp-pic { display: inline-flex; font-size: 1.4rem; line-height: 1; } .mon-hp-pic .art { width: 34px; height: 34px; vertical-align: middle; }
.mon-hp .hp-track { flex: 1; height: 16px; border: 2px solid var(--edge); border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mon-hp .hp-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--bad), #FF8A5B); transition: width .3s; }
.mon-hp span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.kind-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.counter { font-weight: 700; color: var(--ink-2); font-size: .88rem; }
.why-line { margin: 4px 0 0; color: var(--ink-2); font-weight: 500; }
.fb { padding: 10px 12px; border-radius: 14px; border: 2px solid var(--edge); }
.fb.is-right { background: var(--tint-V); } .fb.is-wrong { background: var(--tint-S); }
.err-s { line-height: 2.2; }
.err-part { border: 2px solid var(--edge); border-radius: 10px; background: var(--surface-2); padding: 0 8px; margin: 0 2px; font-weight: 700; }
.err-part small { color: var(--sky); font-weight: 800; margin-right: 2px; }
.err-part.sel small { color: var(--ej); }
.err-part.sel { background: var(--amber); color: #000; }
.order-built, .order-pool { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; padding: 8px; border-radius: 14px; margin: 8px 0; }
.order-built { border: 2px dashed var(--edge); background: var(--surface-2); }
.otile { border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 6px 12px; font-weight: 700; box-shadow: 2px 2px 0 var(--drop); }
.otile.on { background: var(--amber); color: #000; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcol { display: grid; gap: 8px; align-content: start; }
.mitem { text-align: left; border: 2px solid var(--edge); border-radius: 12px; background: var(--surface); padding: 8px 10px; font-weight: 600; }
.mitem.sel { background: var(--amber); color: #000; }
.mitem[data-pair="p0"] { background: var(--tint-L); } .mitem[data-pair="p1"] { background: var(--tint-V); }
.mitem[data-pair="p2"] { background: var(--tint-R); } .mitem[data-pair="p3"] { background: var(--tint-W); }
.mitem[data-pair="p4"] { background: var(--tint-S); }
.mon-result { text-align: center; position: relative; overflow: hidden; }
.mon-result .mon-pic { margin: 0 auto 10px; }
.mon-result .big { font-size: 2.6rem; font-weight: 800; margin: 0; }
.mon-result.won { background: var(--amber); color: #000; } .mon-result.won .muted { color: #333; }
.row.center { justify-content: center; }
/* Trophy Hall */
.trophies { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.trophy a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; padding: 12px 8px; border: 2px solid var(--edge); border-radius: 16px; background: var(--surface-2); height: 100%; }
.trophy .t-pic { font-size: 2.6rem; width: 72px; height: 72px; display: grid; place-items: center; filter: grayscale(1) opacity(.45); }
.trophy .t-pic img { width: 100%; height: 100%; object-fit: contain; }
.trophy.won a { background: var(--amber); color: #000; box-shadow: 3px 3px 0 var(--drop); }
.trophy.won .t-pic { filter: none; }
.trophy.boss a { border-width: 3px; }
.trophy b { font-size: .9rem; line-height: 1.15; } .trophy small { font-weight: 700; font-size: .75rem; color: inherit; opacity: .8; }
.medals { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.medal { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface-2); }
.medal .m-pic { font-size: 1.7rem; line-height: 1.2; min-height: 34px; } .medal .m-pic img { width: 34px; height: 34px; }
.medal small { font-weight: 800; font-size: .75rem; }
.medal.gold { background: #FFE89A; color: #000; } .medal.silver { background: #E4E9EF; color: #000; } .medal.bronze { background: #F4D2B0; color: #000; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aim { color: #B9C8FF; border-left-color: #7FA4FF; } }
:root[data-theme="dark"] .aim { color: #B9C8FF; border-left-color: #7FA4FF; }
@media (max-width: 420px) { .match { grid-template-columns: 1fr; } .mon-pic.big { width: 84px; height: 84px; font-size: 3rem; } }
.level-line { display: flex; gap: 14px; align-items: center; }
.level-line > div { flex: 1; min-width: 0; }
.lv-pic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 2.2rem; }
.lv-pic img { width: 100%; height: 100%; object-fit: contain; }
.lv-bar { height: 12px; border: 2px solid var(--edge); border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 4px 0; }
.lv-bar i { display: block; height: 100%; background: var(--ej); }

/* ---------- real video clips (js/clips.js) ---------- */
.clip-slot:empty { display: none; }
.clip-btn { display: inline-flex; align-items: center; gap: 6px; font: 800 .9rem var(--font); color: #000; background: var(--amber); border: 3px solid var(--edge); border-radius: 99px; padding: 4px 14px 4px 10px; box-shadow: 3px 3px 0 var(--drop); cursor: pointer; }
.clip-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--drop); }
.clip-btn .art { width: 22px; height: 22px; }
.fc-body .clip-slot { display: block; margin: 8px 0; }
.clip-panel { margin-top: 12px; background: var(--surface-2); border: 3px solid var(--edge); border-radius: 20px; padding: 10px; box-shadow: 4px 4px 0 var(--drop); max-width: 620px; }
.clip-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.clip-frame iframe, .clip-frame .clip-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-text { margin: 10px 4px 4px; font-size: 1.05rem; font-weight: 600; }
.clip-text b { background: var(--amber); color: #000; padding: 0 4px; border-radius: 6px; box-shadow: 0 0 0 2px #000; }
.clip-src { margin: 0 4px 8px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.clip-src a { color: inherit; }
.clip-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-ctl .art { width: 18px; height: 18px; }
.clip-ctl [aria-pressed="true"] { background: var(--amber); color: #000; }
.clip-off { margin: 4px; font-weight: 700; color: var(--ink-2); }

/* ---------- vocabulary games (js/games.js) ---------- */
.gm-head { display: flex; gap: 14px; align-items: center; }
.gm-pic { width: 72px; height: 72px; flex: none; display: grid; place-items: center; font-size: 2.4rem; border: 3px solid var(--edge); border-radius: 20px; background: var(--tint-V); box-shadow: 3px 3px 0 var(--drop); overflow: hidden; }
.gm-pic img, .gm-ejay img { width: 100%; height: 100%; object-fit: contain; }
.gm-hub-head { display: flex; gap: 16px; align-items: center; }
.gm-ejay { width: 84px; height: 84px; flex: none; display: grid; place-items: center; font-size: 3rem; }
.gm-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .gm-hub { grid-template-columns: 1fr; } }
.gm-card { display: flex; gap: 14px; align-items: flex-start; }
.gm-card h3 { margin: 0 0 .2em; }
.gm-card.locked .gm-pic { filter: grayscale(1) opacity(.6); }
.gm-stats { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.gm-need { font-weight: 700; color: var(--ink-2); background: var(--surface-2); border: 2px dashed var(--edge); border-radius: 12px; padding: 6px 10px; }
.gm-bar { height: 12px; border: 2px solid var(--edge); border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 4px 0 6px; }
.gm-bar i { display: block; height: 100%; background: var(--V); transition: width .3s; }
.gm-def { font-size: 1.2rem; font-weight: 700; margin: 0 0 .2em; }
.gm-end { text-align: center; }
.gm-end .gm-ejay { margin: 0 auto; }
.gm-end .big { font-size: 2.6rem; font-weight: 800; margin: 0; }
.gm-end.perfect { background: var(--amber); color: #000; }
.gm-words { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gm-words li { border-bottom: 2px solid var(--surface-2); padding-bottom: 8px; }
/* Word Forge */
.fg-word { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; min-height: 52px; }
.fg-cell { width: 40px; height: 48px; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; border: 3px solid var(--edge); border-radius: 10px; background: var(--surface-2); }
.fg-cell.on { background: var(--surface); }
.fg-cell.hint { background: var(--tint-R); }
.fg-gap { width: 14px; }
.fg-word.right .fg-cell { background: var(--V); color: #000; } .fg-word.wrong .fg-cell { background: var(--S); color: #000; }
.fg-pile { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fg-tile { width: 46px; height: 50px; font-size: 1.35rem; font-weight: 800; color: #000; background: var(--W); border: 3px solid var(--edge); border-radius: 12px; box-shadow: 3px 3px 0 var(--drop); }
.fg-tile:disabled { opacity: .25; box-shadow: none; }
.fg-tile:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
@media (max-width: 420px) { .fg-cell { width: 32px; height: 42px; font-size: 1.15rem; } .fg-tile { width: 40px; height: 46px; } }
/* Archery Range */
.ar-time { height: 14px; border: 2px solid var(--edge); border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ar-time i { display: block; height: 100%; width: 100%; background: var(--sky); transition: width .1s linear; }
.ar-time.low i { background: var(--bad); }
.ar-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ar-target { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px; border: 3px solid var(--edge); border-radius: 18px; background: var(--surface); box-shadow: 3px 3px 0 var(--drop); font-size: 1.02rem; }
.ar-ring { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid #000; background: radial-gradient(circle, #F5B800 0 22%, #fff 23% 42%, #E5383B 43% 62%, #fff 63% 80%, #1E3FCC 81%); }
.ar-target.right { background: var(--V); color: #000; } .ar-target.wrong { background: var(--S); color: #000; }
.ar-target:disabled { cursor: default; color: var(--ink); } .ar-target.right:disabled, .ar-target.wrong:disabled { color: #000; }
.ar-combo { min-height: 1.4em; font-weight: 800; color: var(--royal-2); margin: 8px 0 0; }
@media (max-width: 420px) { .ar-targets { grid-template-columns: 1fr; } }
/* Echo Cave */
.ec-video .clip-panel { margin-top: 0; }
/* Rune Pairs */
.rn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .rn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rn-stone { min-height: 96px; padding: 8px; border: 3px solid var(--edge); border-radius: 16px; background: var(--R); color: #000; box-shadow: 3px 3px 0 var(--drop); font-weight: 700; font-size: .85rem; line-height: 1.25; display: grid; place-items: center; text-align: center; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.rn-stone .rn-back { font-size: 1.8rem; } .rn-stone .rn-back .art { width: 70%; height: 70%; max-width: 72px; max-height: 72px; }
.rn-stone.up { background: var(--surface); color: var(--ink); }
.rn-stone.up .rn-back { display: none; }
.rn-stone .rn-face.w { font-size: 1.05rem; font-weight: 800; }
@media (max-width: 560px) { .rn-stone .rn-face.w { font-size: .92rem; } }
.rn-stone.matched { background: var(--V); color: #000; box-shadow: none; }
.rn-stone.miss { background: var(--S); color: #000; }
.trophy.played .t-pic { filter: none; }
/* Icon pictures that replace line drawings and symbols (S7.icons, quick links, exam tools). */
.tiles .tile span { min-height: 40px; display: flex; align-items: center; } .tiles .tile span .art { width: 40px; height: 40px; }
.icon-btn .art { width: 26px; height: 26px; }
.mx-tool .art, .mx-flag .art { width: 20px; height: 20px; vertical-align: -4px; }
.mx-avatar .art { width: 28px; height: 28px; }
.next-line .art, .locked-week .art, .wt-ic .art { width: 1.25em; height: 1.25em; vertical-align: -0.25em; }
.next-line { flex-wrap: nowrap; } .next-line .art { flex: none; }
.minutes .art, h3 > .art:first-child { width: 1.5em; height: 1.5em; vertical-align: -0.4em; margin-right: 6px; }
