/* 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;
}
@media (prefers-color-scheme: dark) {
  :root {
    --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; }
.spinner::before { content: "🐐"; }
@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) { 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) { .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; }
