@font-face { font-family: 'Lilita One'; src: url('/fonts/lilita-one-latin-400-normal.woff2') format('woff2'); font-display: swap; }
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f0ede6; --ink: #1f2a2e; --ink-2: #4a5559; --muted: #7a8387; --line: #e2ddd3;
  --brand: #2f6f6a; --brand-2: #e3efed; --brand-ink: #ffffff;
  --ok: #2e7d4f; --ok-bg: #e5f3ea; --warn: #9a6a00; --warn-bg: #fbf1d9; --alert: #a23b2c; --alert-bg: #f8e4df; --wait: #3c5a99; --wait-bg: #e6ecf7;
  --sky-a: #cfe6f2; --sky-b: #f6efd9; --hill-1: #a9cdb3; --hill-2: #6fa585; --hill-3: #3f7c63; --sun: #f2c14e; --gold: #d49b1f;
  --g-bg: #eef4ff; --g-surface: #ffffff; --g-brand: #1f6feb; --g-brand-2: #dce8ff; --g-edge: #1d3a70; --g-yellow: #ffc531; --g-green: #2fb35a; --g-grid: rgba(31,111,235,.07);
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161b1d; --surface: #1f2629; --surface-2: #273033; --ink: #eef1f1; --ink-2: #c3cbcd; --muted: #93a0a3; --line: #334045;
    --brand: #6fb8b0; --brand-2: #213634; --brand-ink: #0f1a19;
    --ok: #7cc79a; --ok-bg: #1f3328; --warn: #e2b95a; --warn-bg: #3a3120; --alert: #f09a8b; --alert-bg: #3d2522; --wait: #9db6ee; --wait-bg: #232c40;
    --shadow: none;
    --g-bg: #0f1a2e; --g-surface: #172540; --g-brand: #5b9bff; --g-brand-2: #1c3563; --g-edge: #05090f; --g-yellow: #ffcf4a; --g-green: #47c774; --g-grid: rgba(91,155,255,.08);
    --sky-a: #1d3346; --sky-b: #2d3a3f; --hill-1: #2f5242; --hill-2: #3b6a54; --hill-3: #4f8b6e; --sun: #e8b54a; --gold: #e3b24a;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body.student { font-size: 19px; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.hidden { display: none !important; }

/* layout */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); white-space: nowrap; font-size: .95rem; }
.nav a.active { background: var(--brand-2); color: var(--ink); font-weight: 600; }
.nav .count { background: var(--alert); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.who { color: var(--muted); font-size: .9rem; white-space: nowrap; }
main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 96px; }
body.student main { max-width: 720px; }
h1 { font-size: 1.6rem; margin: 8px 0 4px; line-height: 1.2; }
h2 { font-size: 1.2rem; margin: 24px 0 10px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.stack > * + * { margin-top: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 12px; font-weight: 600; min-height: 44px; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); padding: 8px 10px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn.danger { color: var(--alert); border-color: var(--alert); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* status pills — always icon + text, never color alone */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); line-height: 1.5; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.alert { background: var(--alert-bg); color: var(--alert); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.demo { background: #fde9ff; color: #7a2b86; }
.pill .ic { width: 14px; height: 14px; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* student home tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--line); min-height: 130px; box-shadow: var(--shadow); }
.tile:active { transform: scale(.99); }
.tile .ic { width: 32px; height: 32px; color: var(--brand); }
.tile .t { font-size: 1.2rem; font-weight: 700; }
.tile .d { color: var(--ink-2); font-size: .95rem; }
.praise { background: var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.praise div + div { margin-top: 4px; }

/* checklist */
.check { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; user-select: none; }
.check + .check { margin-top: 10px; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 32px; height: 32px; border-radius: 9px; border: 2.5px solid var(--muted); flex: none; display: grid; place-items: center; background: var(--surface); }
.check.done .box { background: var(--ok); border-color: var(--ok); }
.check.done .box::after { content: ""; width: 10px; height: 17px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg) translate(-1px, -2px); }
.check.done .label { text-decoration: line-through; color: var(--muted); }
.check .label { font-weight: 600; }
.check .why { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.check:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.origin { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; }
.origin.teacher { color: var(--ok); } .origin.parent { color: var(--wait); } .origin.suggested, .origin.unknown { color: var(--warn); }
.progress-line { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 16px; }
.progress-line > div { height: 100%; background: var(--ok); border-radius: 999px; transition: width .3s; }

/* now / next / later */
.now { border: 2px solid var(--brand); }
.now .label-now { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--brand); text-transform: uppercase; }
.now .action { font-size: 1.35rem; font-weight: 700; margin: 6px 0 4px; line-height: 1.3; }
.task { cursor: pointer; }
.task .title { font-weight: 700; }
.task .meta { color: var(--muted); font-size: .9rem; }
details.more > summary { cursor: pointer; list-style: none; color: var(--brand); font-weight: 600; padding: 6px 0; }
details.more > summary::-webkit-details-marker { display: none; }
.teacher-words { background: var(--surface-2); border-left: 4px solid var(--ok); padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; }
.suggested-box { border: 1px dashed var(--warn); border-radius: 10px; padding: 10px 12px; }
.step { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.step input[type=checkbox] { width: 24px; height: 24px; }
.stage-track { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.stage { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: .92rem; border: 2px solid transparent; }
.stage.done { background: var(--ok-bg); color: var(--ok); }
.stage.can { border-color: var(--brand); background: var(--surface); color: var(--ink); cursor: pointer; }
.timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.timer .clock { font-variant-numeric: tabular-nums; font-size: 2rem; font-weight: 700; min-width: 5ch; }

/* parent */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.kpi .n { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: .88rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .t { font-weight: 600; }
.subj { display: flex; flex-direction: column; gap: 6px; }
.subj .grade { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.subj .letter { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin-left: 6px; }
.flag { font-size: .88rem; padding: 6px 10px; border-radius: 8px; }
.flag.concern { background: var(--alert-bg); color: var(--alert); }
.flag.watch { background: var(--warn-bg); color: var(--warn); }
.flag.good { background: var(--ok-bg); color: var(--ok); }
.fresh { display: flex; gap: 8px; flex-wrap: wrap; }
.tips li { margin: 6px 0; }
.banner { padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.banner.info { background: var(--wait-bg); color: var(--wait); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.demo { background: #fde9ff; color: #7a2b86; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 760px) { .week { grid-template-columns: 1fr; } }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 110px; }
.day.today { border-color: var(--brand); border-width: 2px; }
.day .dh { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.ev { font-size: .82rem; padding: 4px 6px; border-radius: 6px; margin-bottom: 4px; background: var(--surface-2); }
.ev.assess { background: var(--warn-bg); } .ev.study { background: var(--wait-bg); border: 1px dashed var(--wait); } .ev.closure { background: var(--alert-bg); } .ev.cancelled { text-decoration: line-through; opacity: .6; }
label.f { display: block; font-weight: 600; font-size: .9rem; margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 44px; }
textarea { min-height: 140px; resize: vertical; }
.chart { width: 100%; height: 80px; }
.chart path { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.chart circle { fill: var(--brand); }
.chart line { stroke: var(--line); stroke-dasharray: 3 3; }

/* modal */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 20px; }
@media (min-width: 700px) { .sheet { border-radius: 20px; } }
.help-opt { display: block; width: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; margin-bottom: 10px; min-height: 56px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 60; max-width: 90vw; font-weight: 600; }

/* login */
.login { max-width: 380px; margin: 10vh auto; }

/* print */
.print-sheet { max-width: 700px; margin: 0 auto; background: #fff; color: #000; padding: 24px; }
.print-sheet h1 { font-size: 22px; }
.print-sheet .pline { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ccc; font-size: 18px; }
.print-sheet .pbox { width: 22px; height: 22px; border: 2px solid #000; flex: none; margin-top: 2px; }
@media print {
  .topbar, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
}

/* mobile */
.tabs { display: none; }
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 4px; }
  .nav { order: 3; width: 100%; }
  body.has-tabs .nav { display: none; }
  body.has-tabs .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--muted); text-decoration: none; padding: 4px 0; border-radius: 10px; }
  .tabs a.active { color: var(--brand); font-weight: 700; background: var(--brand-2); }
  .tabs .ic { width: 24px; height: 24px; }
}
.timer label { display: inline-flex; align-items: center; gap: 6px; }
.timer select { width: auto; min-height: 40px; }
@media print { .tabs { display: none !important; } }

/* ---- Hunter's visuals ---- */
.viz-tonight { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); margin-bottom: 14px; border: 2px solid var(--brand); }
.ring { flex: none; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ring-fill { fill: none; stroke: var(--ok); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring-num { font: 800 28px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.ring-sub { font: 600 13px var(--font); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
ul.mini { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
ul.mini li, ul.mini li a { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
ul.mini li .ic { width: 18px; height: 18px; color: var(--brand); }
ul.mini li.done span { text-decoration: line-through; color: var(--muted); }
ul.mini li.done .ic { color: var(--ok); }
.viz-pack, .viz-jar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pack-body { fill: var(--surface-2); }
.pack-fill { fill: var(--ok); opacity: .85; transition: y .6s ease, height .6s ease; }
.pack-pocket { fill: none; stroke: var(--ink-2); stroke-width: 3; opacity: .5; }
.pack-outline { fill: none; stroke: var(--ink-2); stroke-width: 4; }
.pack-strap { fill: none; stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; }
.pack-num { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pack-num span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.week-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); min-height: 86px; }
.wday.sel { border-color: var(--brand); background: var(--brand-2); }
.wday.today .wnum { text-decoration: underline; text-underline-offset: 3px; }
.wdow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wnum { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wdots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; min-height: 10px; }
.wdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.wdot.test { background: var(--warn); border-radius: 2px; transform: rotate(45deg); }
.wdot.event { background: var(--wait); }
.wdot.done { opacity: .35; }
.wdot.none { background: transparent; }
.wlist { margin-top: 12px; min-height: 40px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.countdowns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.cd { display: flex; flex-direction: column; gap: 8px; }
.cd-top { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.cd-when { font-size: 1.6rem; font-weight: 800; color: var(--warn); }
.cd-subj { font-weight: 700; }
.cd-title { color: var(--ink-2); font-size: .95rem; }
.cd-dots { display: flex; gap: 6px; }
.cd-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--warn); }
.cd-dots span.on { background: var(--warn); }
.jar-lid { fill: var(--ink-2); opacity: .6; }
.jar-glass { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 3; }
.marble.m0 { fill: var(--brand); } .marble.m1 { fill: var(--ok); } .marble.m2 { fill: var(--warn); } .marble.m3 { fill: var(--wait); }
@media (prefers-reduced-motion: reduce) { .ring-fill, .pack-fill { transition: none; } }

/* ---- My Progress ---- */
.hero { position: relative; padding: 0; overflow: hidden; min-height: 190px; }
.hero-scene { display: block; width: 100%; height: 190px; }
.hero-text { position: absolute; left: 16px; right: 16px; top: 14px; }
.eyebrow { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--hill-3); }
.hero-head { font-size: 1.35rem; font-weight: 800; line-height: 1.25; max-width: 16em; color: var(--ink); text-wrap: balance; }
.sun { fill: var(--sun); } .ray { stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.hill.h1 { fill: var(--hill-1); } .hill.h2 { fill: var(--hill-2); } .hill.h3 { fill: var(--hill-3); }
.trail { fill: none; stroke: var(--surface); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.trail-dot { fill: var(--surface); }
.flag-pole { stroke: var(--ink); stroke-width: 2.5; } .flag { fill: var(--gold); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.badge { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.badge.off { background: transparent; border-style: dashed; }
.hex-on { fill: var(--gold); } .hex-inner { fill: var(--surface); opacity: .92; } .hex-icon svg { stroke: var(--gold); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hex-off { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 3; } .hex-off-inner { fill: none; } .hex-icon-off svg { stroke: var(--muted); fill: none; stroke-width: 2; }
.bricks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.bcol { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bstack { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; max-width: 40px; }
.brick { display: block; height: 7px; border-radius: 3px; }
.brick.b0 { background: var(--hill-2); } .brick.b1 { background: var(--hill-3); } .brick.b2 { background: var(--hill-1); }
.brick.hollow { background: transparent; border: 1.5px dashed var(--warn); height: 7px; }
.bcol.cur .blabel { color: var(--brand); font-weight: 800; }
.bnum { font-weight: 800; font-variant-numeric: tabular-nums; }
.blabel { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.tcard { display: flex; flex-direction: column; gap: 8px; }
.tcard.glow { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.tpct { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ridge { width: 100%; height: 56px; }
.ridge .rg-a { stop-color: var(--brand); stop-opacity: .35; } .ridge .rg-b { stop-color: var(--brand); stop-opacity: 0; }
.ridge.up .rg-a { stop-color: var(--ok); } .ridge.up .rg-b { stop-color: var(--ok); }
.ridge.down .rg-a { stop-color: var(--warn); stop-opacity: .25; } .ridge.down .rg-b { stop-color: var(--warn); }
.ridge-line { fill: none; stroke: var(--brand); stroke-width: 2.5; } .ridge.up .ridge-line { stroke: var(--ok); } .ridge.down .ridge-line { stroke: var(--warn); }
.ridge-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.ridge-empty { height: 56px; display: flex; align-items: center; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.chip .ic { width: 14px; height: 14px; }
.chip.good { background: var(--ok-bg); color: var(--ok); } .chip.easy { background: var(--warn-bg); color: var(--warn); }
.medal { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.m-track { fill: none; stroke: var(--surface-2); stroke-width: 7; } .m-fill { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round; } .m-fill.up { stroke: var(--gold); }
.m-num { font: 800 17px var(--font); fill: var(--ink); text-anchor: middle; }

/* ---- points jar & rewards ---- */
.jar-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.jar-wrap { flex: none; }
.jar-rim { fill: var(--ink-2); opacity: .45; }
.jar-shine { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.marble.ghost { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 2 1.5; }
.bal { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bal .ic { color: var(--gold); }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.missed { margin-top: 10px; border-style: dashed; border-color: var(--warn); background: transparent; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.reward { display: flex; gap: 12px; align-items: flex-start; }
.reward.ready { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.rw-emoji { font-size: 2rem; line-height: 1; }
.rw-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 6px 0 8px; }
.rw-bar > div { height: 100%; background: var(--gold); border-radius: 999px; }
a.viz-jar { text-decoration: none; color: var(--ink); }

/* ---- game look (Hunter's screens) ---- */
body.game { --bg: var(--g-bg); --surface: var(--g-surface); --brand: var(--g-brand); --brand-2: var(--g-brand-2); --radius: 10px;
  background-color: var(--g-bg); background-image: linear-gradient(var(--g-grid) 1px, transparent 1px), linear-gradient(90deg, var(--g-grid) 1px, transparent 1px); background-size: 24px 24px; }
body.game h1, body.game h2, body.game h3, body.game .tile .t, body.game .pack-num, body.game .now .action, body.game .cd-when, body.game .hero-head, body.game .wnum, body.game .ring-num, body.game .tpct { font-family: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', var(--font); font-weight: 400; letter-spacing: .01em; }
body.game .ring-num { font-family: 'Lilita One', 'Trebuchet MS', sans-serif; font-weight: 400; }
body.game .card, body.game .tile, body.game .check, body.game .wday, body.game .badge { border-radius: 10px; border: 3px solid var(--g-edge); box-shadow: 0 5px 0 var(--g-edge); }
body.game .card.flat { box-shadow: 0 3px 0 var(--g-edge); }
body.game .tile { position: relative; transition: transform .08s, box-shadow .08s; }
body.game .tile:active, body.game .check:active, body.game .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--g-edge); }
body.game .tile .ic { color: var(--g-brand); }
body.game .btn { border: 3px solid var(--g-edge); border-radius: 10px; box-shadow: 0 4px 0 var(--g-edge); }
body.game .btn.primary { background: var(--g-green); border-color: var(--g-edge); color: #fff; }
body.game .btn.ghost { box-shadow: none; border-color: transparent; }
body.game .check.done .box { background: var(--g-green); border-color: var(--g-edge); }
body.game .box { border-radius: 6px; border-color: var(--g-edge); }
body.game .quest { position: absolute; top: -12px; left: 14px; background: var(--g-yellow); color: #3a2a00; font: 400 .78rem 'Lilita One', 'Trebuchet MS', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 2px 10px; border: 2px solid var(--g-edge); border-radius: 6px; }
.quest { display: none; } body.game .quest { display: inline-block; }
body.game .tiles { gap: 22px; margin-top: 6px; }
body.game .praise { border: 3px solid var(--g-edge); box-shadow: 0 4px 0 var(--g-edge); border-radius: 10px; }
body.game .now { border-color: var(--g-brand); }
body.game .now .label-now::before { content: '▶ '; }
body.game .tabs { border-top: 3px solid var(--g-edge); }
body.game .tabs a.active { background: var(--g-yellow); color: #3a2a00; }
body.game .ring-fill { stroke: var(--g-green); stroke-linecap: butt; }
body.game .cd-when { color: #c2410c; }
body.game .cd-dots span { border-radius: 3px; transform: rotate(45deg); border-color: var(--g-brand); }
body.game .cd-dots span.on { background: var(--g-brand); }
body.game .hex-on { fill: var(--g-yellow); }
/* XP bar */
.xpbar { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 3px solid var(--g-edge); box-shadow: 0 4px 0 var(--g-edge); border-radius: 10px; padding: 8px 10px; margin: 4px 0 14px; }
.lvl { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; height: 52px; background: var(--g-brand); color: #fff; border: 3px solid var(--g-edge); border-radius: 8px; font: 400 1.5rem/1 'Lilita One', 'Trebuchet MS', sans-serif; }
.lvl-k { font-size: .62rem; letter-spacing: .12em; opacity: .9; }
.xp-track { flex: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; min-width: 0; }
.xp-track span { height: 16px; background: var(--surface-2); border: 2px solid var(--g-edge); border-radius: 3px; }
.xp-track span.on { background: var(--g-yellow); }
.xp-num { font: 400 .95rem 'Lilita One', 'Trebuchet MS', sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* voxel world */
.vx-sky { fill: var(--sky-a); } .vx-cloud rect { fill: var(--surface); opacity: .85; } .vx-sun { fill: var(--g-yellow); }
.vx-grass { fill: var(--g-green); } .vx-dirt { fill: #8a5a33; } .vx-edge { fill: none; stroke: rgba(0,0,0,.25); stroke-width: 1.5; }
.vx-pole { fill: var(--ink); } .vx-flag { fill: #ef4444; }
/* block burst */
.burst { position: fixed; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 70; }
.burst i { position: absolute; width: 12px; height: 12px; border: 2px solid var(--g-edge); animation: pop 1s ease-out forwards; }
.burst i.c0 { background: var(--g-yellow); } .burst i.c1 { background: var(--g-green); } .burst i.c2 { background: var(--g-brand); } .burst i.c3 { background: #ef4444; }
@keyframes pop { from { transform: translate(0,0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .burst { display: none; } body.game .tile, body.game .btn { transition: none; } }

body.game .hero { min-height: 0; }
body.game .hero-text { position: static; padding: 14px 16px 0; }
body.game .hero-scene { height: 140px; }
body.game .hero { background: var(--sky-a); }
