/* Handhold web, direction C "Soft" (DESIGN.md): white panes on warm grey, 20 px pane radius, 12 px controls, a
   segmented control, progress rings, soft real shadows, one accent per screen. Tokens mirror Brand/handhold/tokens.json. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #F2EFE9; --pane: #FFFFFF; --fg: #1C1C1E; --fg2: #6E6E73; --hair: rgba(0,0,0,.06); --acc: #D97A12;
  --ringbg: #E8E6E1; --ringfg: #1C1C1E; --sh: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --seg: rgba(0,0,0,.05); --segon: #FFFFFF; --btn: #1C1C1E; --btnfg: #FFFFFF; --mark: #1B2A4A; --card: #0B1020; --cardfg: #F5F5F7;
  --track: #D8D4CC; --right: #3F8A3A; --wrong: #C0392B;
}
:root[data-theme="dark"] {
  --bg: #0B1020; --pane: #141C33; --fg: #F2F2F4; --fg2: #9AA3B8; --hair: rgba(255,255,255,.07); --acc: #FFB547;
  --ringbg: #242D47; --ringfg: #F2F2F4; --sh: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --seg: rgba(255,255,255,.06); --segon: #242D47; --btn: #FFB547; --btnfg: #0B1020; --mark: #FFB547; --card: #07090F; --cardfg: #F5F5F7;
  --track: #2A3658; --right: #83C167; --wrong: #FC6255;
}
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--fg); background: var(--bg); font: 400 13.5px/1.5 Inter, -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:where(p, h1, h2, h3, li, td) { overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* MARK: Shell */
.top { max-width: 1180px; margin: 0 auto; padding: 18px 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand i { width: 22px; height: 22px; border-radius: 7px; background: var(--mark); display: inline-block; }
.seg { display: flex; background: var(--seg); border-radius: 10px; padding: 3px; font-size: 12.5px; }
.seg a, .seg button { padding: 5px 12px; border-radius: 8px; white-space: nowrap; color: var(--fg2); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.seg .on { background: var(--segon); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600; }
.seg [aria-disabled="true"] { opacity: .45; cursor: default; }
.who { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--fg2); }
.who select { border: 0; background: transparent; color: var(--fg); font-weight: 500; padding: 4px 2px; cursor: pointer; }
.who .account { text-decoration: none; padding: 5px 10px; border-radius: 9px; background: var(--seg); color: var(--fg); font-weight: 500; }
.who .account.on { background: transparent; }
.who .theme { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair); background: var(--pane); cursor: pointer; display: grid; place-items: center; font-size: 13px; }
main { max-width: 1180px; margin: 0 auto; padding: 22px 28px 80px; }

/* MARK: Type */
.h { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -.03em; margin: 0 0 4px; line-height: 1.05; }
.h2 { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0 0 4px; line-height: 1.15; }
.dek { color: var(--fg2); font-size: 13.5px; margin: 0 0 18px; }
.lab { font-size: 12px; font-weight: 600; color: var(--fg2); margin-bottom: 8px; }
.cap { font-size: 12px; color: var(--fg2); }
.now { color: var(--acc); font-weight: 600; }
.math { font-family: Georgia, "Times New Roman", serif; font-style: italic; }

/* MARK: Panes and controls */
.pane { background: var(--pane); border-radius: 20px; padding: 18px 20px; box-shadow: var(--sh); }
.pane + .pane { margin-top: 12px; }
.go { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; background: var(--btn); color: var(--btnfg); font-weight: 600; font-size: 13px; border: 0; cursor: pointer; text-decoration: none; }
.go.q { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair); }
.go:disabled { opacity: .4; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rowx { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.rowx:last-child { border-bottom: 0; }
.rowx .t { font-weight: 500; }
.rowx .st { font-size: 12px; color: var(--fg2); }
.ring { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--ringfg) var(--p), var(--ringbg) 0); display: grid; place-items: center; flex: none; }
.ring i { width: 22px; height: 22px; border-radius: 50%; background: var(--pane); display: block; }
.field { width: 100%; border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--fg); border: 0; font-size: 13px; }
.field:focus { outline: 1.5px solid var(--fg); }
textarea.field { min-height: 72px; resize: vertical; }
.holds { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.holds li { padding: 8px 0; border-bottom: 1px solid var(--hair); }
.holds li:last-child { border-bottom: 0; }
.holds li b { display: block; font-size: 11px; color: var(--fg2); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin: 0 0 12px; }
.tile { background: var(--pane); border-radius: 16px; padding: 14px 16px; box-shadow: var(--sh); }
.tile .v { font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.tile .k { font-size: 12px; color: var(--fg2); margin-top: 2px; }
.note { font-size: 12.5px; color: var(--fg2); }
.empty { color: var(--fg2); padding: 24px 0; text-align: center; }

/* MARK: Overview */
.over { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.over > .pane + .pane { margin-top: 0; }
.otterwrap { display: flex; gap: 12px; align-items: flex-end; margin: 6px 0 14px; }
.otterwrap img { width: 64px; height: 86px; flex: none; object-fit: contain; }
.bubble { background: var(--bg); border-radius: 14px 14px 14px 4px; padding: 9px 11px; font-size: 12.5px; }

/* MARK: Lesson */
.lesson { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.step { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--fg2); }
.step .ring { width: 22px; height: 22px; }
.step .ring i { width: 15px; height: 15px; }
.step.now { color: var(--fg); font-weight: 600; }
.body p { margin: 0 0 10px; }
.check { display: grid; gap: 8px; margin-top: 8px; }
.check label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; cursor: pointer; }
.check label input { position: absolute; opacity: 0; pointer-events: none; }
.check label i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--fg2); display: inline-block; flex: none; }
.check label.sel { box-shadow: inset 0 0 0 1.5px var(--fg); background: var(--pane); }
.check label.sel i { border-color: var(--fg); background: var(--fg); box-shadow: inset 0 0 0 3px var(--pane); }
.check label.right i { border-color: var(--right); background: var(--right); box-shadow: inset 0 0 0 3px var(--pane); }
.check label.locked { cursor: default; }
.verdict { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.verdict b { display: block; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.verdict.right b { color: var(--right); }
.verdict.wrong b { color: var(--wrong); }
.callout { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; border-left: 2px solid var(--acc); }
.callout b { display: block; font-size: 11px; color: var(--fg2); font-weight: 600; }
.ink { display: block; width: 100%; height: 260px; border-radius: 12px; border: 1px solid var(--hair); background: #FBF7EF; touch-action: none; cursor: crosshair; }
.videocard { border-radius: 14px; overflow: hidden; background: var(--card); color: var(--cardfg); padding: 8px 10px 10px; }
.videocard .scene-player { --fg: #F5F5F7; --fg2: #9AA3B8; --bg: #07090F; --pane: #141C33; --hair: rgba(255,255,255,.08); --seg: rgba(255,255,255,.08); }
.videocard .scene-foot { flex-wrap: wrap; }
.videocard .scene-caption { flex: 1 1 100%; order: 2; font-size: 12px; }
.videocard .scene-controls { margin-left: auto; }
.probe .q { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.probe .q:last-child { border-bottom: 0; }
.probe .ask { font-weight: 500; margin: 0 0 8px; }
.climb li { padding: 6px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; font-size: 13px; }
.climb li:last-child { border-bottom: 0; }

/* MARK: Practice and account */
.practice { display: grid; gap: 12px; max-width: 720px; }
.practice .pane + .pane { margin-top: 0; }
.photo { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin-top: 10px; border: 1px solid var(--hair); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 20px; letter-spacing: .04em; padding: 12px 14px; border-radius: 12px; background: var(--bg); margin: 0 0 14px; user-select: all; }
.verdict .callout { margin-top: 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.tabs { display: inline-flex; margin: 0 0 14px; }
.parent { max-width: 760px; }
.parent .pane + .pane { margin-top: 12px; }
.doc { max-width: 720px; }
.doc .h { margin-top: 6px; }
.doc .h2 { margin-top: 22px; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-left: 20px; }
.doc li { margin: 0 0 6px; }

/* MARK: Scene player */
.scene-player { display: grid; gap: 8px; }
.scene-title { font-size: 12px; font-weight: 600; color: var(--fg2); }
.scene-canvas { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); line-height: 0; }
.scene-canvas canvas { width: 100%; display: block; }
.scene-cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.25); color: #fff; font-size: 34px; cursor: pointer; display: grid; place-items: center; }
.scene-foot { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.scene-caption { font-size: 13px; color: var(--fg2); flex: 1; min-height: 1.5em; }
.scene-controls { display: flex; gap: 4px; align-items: center; flex: none; }
.scene-controls button { width: 30px; height: 28px; border-radius: 50%; border: 0; background: var(--seg); color: var(--fg); cursor: pointer; font-size: 12px; }
.scene-controls button:disabled { opacity: .35; cursor: default; }
.scene-count { font-size: 11px; color: var(--fg2); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* MARK: Map */
.mapscr { display: grid; grid-template-columns: 220px minmax(0, 1fr) 290px; gap: 14px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; max-height: 70vh; overflow: auto; }
.lines button { width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font-size: 12.5px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; color: var(--fg); }
.lines button span { color: var(--fg2); font-size: 11.5px; flex: none; }
.lines button.on { background: var(--bg); font-weight: 600; }
.track { overflow-x: auto; padding: 10px 4px 4px; }
.track svg { display: block; height: 170px; }
.track text { font-family: Inter, system-ui, sans-serif; font-size: 11px; fill: var(--fg); }
.track text.cap { font-size: 10px; fill: var(--fg2); }
.track text.grade { font-size: 10.5px; font-weight: 600; fill: var(--fg2); letter-spacing: .04em; }
.track .station { cursor: pointer; }
.track .station.on text { font-weight: 600; }
.needs button { border: 0; background: var(--bg); border-radius: 8px; padding: 4px 8px; font-size: 12px; cursor: pointer; margin: 0 6px 6px 0; color: var(--fg); }
.notice { font-size: 10.5px; color: var(--fg2); margin-top: 14px; line-height: 1.4; }

@media (max-width: 900px) { .lesson, .mapscr, .over { grid-template-columns: 1fr; } .top { flex-wrap: wrap; } }

/* MARK: Landing v4 (the board .lavish/landing-v3.html, 2026-10-29): a straight scroll in the kid look, one column, the
   otter beside each section in a different pose. By night the page is space: stars behind, planets in the text's way,
   ships drifting, the otter in a helmet (frames in otter.js). */
body.landing .seg, body.landing .who label { display: none; }
body.landing main { max-width: none; padding: 0; }
body.landing { --grass1: #CFE6B8; --grass2: #A9CC95; --band: url(/brand/landing/meadow-band.jpg); }
:root[data-theme="dark"] body.landing { --grass1: #1E2B4A; --grass2: #16213B; --band: none; background: var(--stars) center top / 1200px 1200px repeat, #070B18; --bg: #070B18; --pane: #141C33; }
body.landing .who .account:not(.on) { background: var(--btn); color: var(--btnfg); font-weight: 800; font-family: Nunito, Inter, sans-serif; padding: 8px 14px; border-radius: 999px; }
.v4 { position: relative; overflow: hidden; }
.sec { position: relative; max-width: 1000px; margin: 0 auto; padding: 72px 48px; }
.sec + .sec { border-top: 1px dashed rgba(27,42,74,.12); }
:root[data-theme="dark"] .sec + .sec { border-top-color: rgba(255,255,255,.08); }
.sec .k { font: 800 11px/1 Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.sec h2 { font-family: Nunito, "Inter Tight", sans-serif; font-weight: 900; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.1; max-width: 20ch; margin: 0; }
.sec > p, .sec .copy > p { color: var(--fg2); font-size: 16.5px; max-width: 54ch; margin: 12px 0 0; }
.sec .btns { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.sec .go { font-family: Nunito, Inter, sans-serif; font-weight: 800; border-radius: 14px; padding: 11px 18px; }
/* The otter in the right margin, with a word. */
.otterside { position: absolute; right: 48px; top: 64px; width: 128px; }
.hero .otterside { top: auto; bottom: 10px; }
.otterside img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 10px rgba(27,42,74,.18)); }
.otterside.flip img { transform: scaleX(-1); }
.otterside .say { position: absolute; right: 110%; top: 10%; width: 190px; background: var(--pane); color: var(--fg); border-radius: 16px 16px 4px 16px; padding: 8px 11px; font-size: 13px; line-height: 1.35; box-shadow: var(--sh); }
.otterside .say.up { right: -10px; top: auto; bottom: 104%; width: 200px; border-radius: 16px 16px 16px 4px; }
:root[data-theme="dark"] .otterside img { filter: drop-shadow(0 0 20px rgba(160,190,255,.35)); transform: rotate(-12deg); }
:root[data-theme="dark"] .otterside.flip img { transform: scaleX(-1) rotate(12deg); }
:root[data-theme="dark"] .hero .otterside img { transform: rotate(-58deg) translate(-10px, -20px); } /* sprawled, still */
/* The section pops in; the otter bobs once. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.3,1.4,.5,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .otterside { transition: transform .5s cubic-bezier(.3,1.6,.5,1); transform: translateY(14px) scale(.96); }
.js-anim .in .otterside { transform: none; }
/* The hero: the word, the meadow floor by day, nothing on the floor by night. */
.hero { padding-top: 56px; min-height: 480px; }
.hero .word { font: 900 clamp(56px, 7.8vw, 96px)/1 Nunito, sans-serif; letter-spacing: -.04em; color: var(--mark); }
:root[data-theme="dark"] .hero .word { color: #F2F2F4; }
.hero .tag { font-size: 18px; }
.hero .band { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: var(--band) center 62% / cover no-repeat; mask-image: linear-gradient(180deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); pointer-events: none; }
.hero .otterside { width: 170px; z-index: 1; }
.hero .copy { position: relative; z-index: 1; }
/* The try-it (nine.js) field keeps the kid tokens; the otter in it is the field's own. */
.sec #nine { margin-top: 8px; }
/* Cards, the graph, the frames, the week. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; max-width: 760px; }
.card { background: var(--pane); border-radius: 20px; padding: 16px; box-shadow: var(--sh); }
.card b { display: block; font: 800 16px Nunito, sans-serif; margin-bottom: 4px; }
.card span { font-size: 13.5px; line-height: 1.45; color: var(--fg2); }
.card i { width: 36px; height: 36px; border-radius: 12px; background: var(--bg); margin-bottom: 10px; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.graphgrid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px; margin-top: 20px; max-width: 800px; align-items: start; }
.gtree { width: 100%; height: auto; display: block; align-self: center; }
.gstack { display: grid; gap: 14px; }
.gpane { background: var(--pane); border-radius: 20px; padding: 14px 16px; box-shadow: var(--sh); }
.gpane svg { width: 100%; height: auto; display: block; }
.held { list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.4; }
.held li { padding: 7px 0; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 10px; }
.held li:first-child { border-top: 0; } .held li em { color: var(--fg2); font-style: normal; font-size: 12px; white-space: nowrap; }
.frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; max-width: 820px; }
.frames img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: var(--sh); background: #E6F1FA; }
.frames b { display: block; font: 800 14px Nunito, sans-serif; margin-top: 8px; }
.sshot { width: 100%; max-width: 560px; height: auto; display: block; border-radius: 16px; margin-top: 16px; box-shadow: var(--sh); }
.sfaq { max-width: 560px; border-top: 1px solid var(--hair); margin-top: 16px; }
.sfaq details { border-bottom: 1px solid var(--hair); }
.sfaq summary { padding: 14px 0; font: 800 17px Nunito, sans-serif; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sfaq summary::after { content: "+"; color: var(--acc); font-size: 20px; }
.sfaq details[open] summary::after { content: "–"; }
.sfaq details p { margin: 0 0 14px; color: var(--fg2); font-size: 15px; }
.foot { margin-top: 48px; padding: 18px 0 0; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg2); }
.foot nav a { color: var(--fg2); text-decoration: none; }
.sec .join { margin: 18px 0 0; max-width: 480px; }
/* The night: painted planets in the flow, so the text wraps around them; painted ships drifting behind. Hidden by day. */
.planet, .sky { display: none; }
:root[data-theme="dark"] .planet { display: block; height: auto; shape-outside: circle(50%); shape-margin: 22px; z-index: 1; filter: drop-shadow(0 0 24px rgba(120,160,255,.25)); }
:root[data-theme="dark"] .planet.l { float: left; margin: 0 28px 12px -60px; }
:root[data-theme="dark"] .planet.r { float: right; margin: 290px -60px 12px 28px; } /* below the otter at the top right */
:root[data-theme="dark"] #s-try .planet.r { margin-top: -10px; } /* no otter up there: the planet sits in the copy, the field below */
:root[data-theme="dark"] .sky { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ship { position: absolute; height: auto; will-change: transform; filter: drop-shadow(0 0 18px rgba(120,160,255,.25)); }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal, .js-anim .otterside { transition: none; } }
/* Phone: the otter under the text, smaller; the planets in the margins. */
@media (max-width: 760px) {
  .sec { padding: 44px 16px; } .hero { padding-top: 28px; min-height: 0; }
  .otterside { position: static; width: 104px; margin-top: 16px; } .hero .otterside { width: 120px; margin-left: 48px; }
  :root[data-theme="dark"] .hero .otterside img { transform: rotate(-36deg) translate(0, -10px); }
  .otterside .say, .otterside .say.up { position: static; width: auto; margin-top: 8px; border-radius: 4px 16px 16px 16px; }
  .hero .band { height: 120px; }
  .cards, .frames, .graphgrid { grid-template-columns: minmax(0, 1fr); }
  :root[data-theme="dark"] .planet.l, :root[data-theme="dark"] .planet.r { width: 96px !important; margin: 0 12px 8px -20px; }
  :root[data-theme="dark"] .planet.r { margin: 0 -20px 8px 12px; }
}

/* The landing's own play, in the kid tokens inside a direction C page (`nine.js`): the otter stands on the grass at
   the field's left edge (the scene walks it in), holds out a ball at PAW, the rings wait on the right. */
.kidpane { --bg: #E6F1FA; --water1: #B5D9E4; --water2: #86B8C9; --grass1: #CFE6B8; --grass2: #A9CC95; }
:root[data-theme="dark"] .kidpane { --bg: #0F1C2E; --water1: #3A6E9C; --water2: #254C78; --grass1: #1E2B4A; --grass2: #16213B; }
.nine .nfield { position: relative; width: 100%; height: clamp(300px, 34vw, 420px); border-radius: 28px; background: url(/brand/landing/field-pond.jpg) center / cover no-repeat; overflow: hidden; margin-top: 12px; user-select: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px rgba(27,42,74,.08); }
:root[data-theme="dark"] .nine .nfield { background-image: linear-gradient(rgba(7,11,24,.7), rgba(7,11,24,.7)), url(/brand/landing/field-pond.jpg); }
.nine .nlayer { position: absolute; inset: 0; z-index: 2; }
.nine .notter { position: absolute; left: 2%; bottom: 7%; height: 60%; width: auto; z-index: 1; pointer-events: none; filter: drop-shadow(0 8px 8px rgba(27,42,74,.18)); transform: scaleX(-1); }
.nine .nball { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 0; padding: 0; background: radial-gradient(circle at 35% 30%, #FFD08A, var(--acc) 70%); box-shadow: 0 3px 8px rgba(27,42,74,.25); cursor: grab; font: 800 15px/40px Nunito, "Inter Tight", sans-serif; color: #1C1C1E; text-align: center; touch-action: none; animation: pop .4s cubic-bezier(.34,1.5,.64,1); transition: left .55s cubic-bezier(.3,1.3,.5,1), top .55s cubic-bezier(.3,1.3,.5,1), transform .15s, translate .3s; }
.nine .nball.paw { opacity: 0; pointer-events: none; animation: none; }
.nine .nfield.in .nball.paw { opacity: 1; pointer-events: auto; animation: pop .4s cubic-bezier(.34,1.5,.64,1), offer 1.6s ease-in-out .5s infinite; }
@keyframes offer { 0%, 100% { translate: 0 0; } 50% { translate: 8px -6px; } }
.nine.count .nball, .nine.done .nball, .nine .nball.in { pointer-events: none; cursor: default; }
.nine .nball:not(.in):not(.paw):hover { transform: scale(1.1); }
.nine.make .nball:not(.paw), .nine.group .nball:not(.in) { cursor: grab; }
.nine .nball.drag, .nine .nfield.in .nball.paw.drag { transition: left 0s, top 0s, translate 0s; animation: none; z-index: 3; transform: scale(1.12); box-shadow: 0 10px 22px rgba(27,42,74,.35); cursor: grabbing; } /* the paw rule outranks .drag alone, and its offer nudge animates translate */
.nine.make .notter { transition: filter .2s; } .nine .nfield.back .notter { filter: drop-shadow(0 0 16px rgba(255,181,71,.9)); }
.nine .nball.sel { outline: 3px solid var(--mark); outline-offset: 3px; }
.nine .nball.in { box-shadow: 0 1px 3px rgba(27,42,74,.2); }
/* The loops: the ones drawn (or made by three taps) in the accent, the one being drawn dashed; percent coordinates, so the stroke must not scale. */
.nine .nloops { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nine .nloops path { fill: rgba(255,255,255,.2); stroke: var(--mark); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; animation: pop .4s cubic-bezier(.34,1.5,.64,1); transform-origin: center; }
.nine .nloops .live { fill: none; stroke-dasharray: 6 6; animation: none; }
.nine.group .nfield { touch-action: none; cursor: crosshair; }
.nine .nline { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 15px; }
.nine .nb { font: 800 30px/1 Nunito, "Inter Tight", sans-serif; color: var(--mark); min-width: 36px; text-align: center; }
.nine .nopts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.nine .nopts .go { min-width: 56px; justify-content: center; font-size: 15px; }
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }
@media (max-width: 720px) { .nine .nball { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 13px; line-height: 32px; } .nine .notter { height: 50%; } }

/* MARK: The kid theme (DESIGN.md, decision E): brighter, rounder, Nunito for the headings, signed-in screens only. */
body.kid { --bg: #E6F1FA; --pane: #FFFFFF; --acc: #F28C28; --seg: rgba(27,42,74,.07); --ringbg: #D6E6F2; --sh: 0 1px 2px rgba(27,42,74,.05), 0 10px 28px rgba(27,42,74,.08);
  --water1: #8ED8EA; --water2: #2A8BBF; --bank: #DCCFB4; --pool: #A9E2F0; --stone: #1B2A4A; --stone-ring: #2A3658; --done: #FFB547; --done-ring: #D97A12; }
:root[data-theme="dark"] body.kid { --bg: #0F1C2E; --pane: #182A44; --acc: #FFB547; --seg: rgba(255,255,255,.07); --ringbg: #27405E;
  --water1: #58C4DD; --water2: #1F6F9A; --bank: #2A3658; --pool: #3A9DBF; --stone: #F2F2F4; --stone-ring: #9AA3B8; --done: #FFB547; --done-ring: #FFD08A; }
body.kid, body.kid .brand, body.kid .h, body.kid .h2, body.kid .tile .v { font-family: Nunito, "Inter Tight", Inter, sans-serif; }
body.kid { font-size: 14.5px; }
body.kid .h { font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
body.kid .pane, body.kid .tile { border-radius: 24px; }
body.kid .go, body.kid .field { border-radius: 14px; }

/* MARK: Sign up and sign in */
.auth { max-width: 520px; margin: 24px auto 0; }
.auth .pane { padding: 24px 26px 22px; }
.auth .h { font-size: 26px; margin-top: 2px; }
.auth .code { font-size: 22px; text-align: center; padding: 16px 14px; }
.code-field { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; font-size: 15px; padding: 12px 14px; }
.grades { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grades button { border: 0; border-radius: 14px; padding: 12px 4px 10px; background: var(--bg); color: var(--fg); cursor: pointer; font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: 22px; line-height: 1; display: grid; gap: 4px; justify-items: center; box-shadow: inset 0 0 0 1px var(--hair); }
.grades button span { font: 500 10.5px/1 Inter, sans-serif; color: var(--fg2); }
.grades button.on { background: var(--btn); color: var(--btnfg); box-shadow: none; }
.grades button.on span { color: inherit; opacity: .8; }
@media (max-width: 480px) { .grades { grid-template-columns: repeat(3, 1fr); } }

/* MARK: Rivers */
.rivershome { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 14px; align-items: start; }
.gradebar { padding: 14px; position: sticky; top: 14px; }
.gradebar button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--fg2); padding: 9px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.gradebar button:hover { background: var(--bg); }
.gradebar button.on { background: var(--btn); color: var(--btnfg); }
.gradebar button + button { margin-top: 2px; }
.offer, .nextup { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.offer { padding: 14px 20px; }
.nextup { cursor: pointer; padding: 14px 20px 14px 16px; box-shadow: var(--sh), inset 0 0 0 2px var(--acc); }
.nextup .otterwrap { align-items: center; }
.nextup .otterwrap img { width: 48px; height: 64px; object-fit: contain; }
.nextup:focus-visible { outline: 2px solid var(--fg); }
@media (max-width: 900px) { .rivershome { grid-template-columns: 1fr; } .gradebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .gradebar .lab, .gradebar .note { width: 100%; } .gradebar button { width: auto; } }
.rivershead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.riverbed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.river { width: 100%; height: auto; display: block; background: var(--pane); border-radius: 24px; box-shadow: var(--sh); overflow: hidden; }
.river .bank { stroke: var(--bank); opacity: .55; }
.river .ripple { stroke: #fff; opacity: .55; }
.river .pool { fill: var(--pool); stroke: var(--bank); stroke-width: 4; }
.river .name { font: 800 16px Nunito, "Inter Tight", sans-serif; fill: var(--fg); }
.river .grade { font: 700 9.5px Inter, sans-serif; letter-spacing: .08em; fill: var(--fg2); }
.river .title { font: 600 12px Inter, sans-serif; fill: var(--fg); }
.river .sub { font: 500 10.5px Inter, sans-serif; fill: var(--fg2); }
.river .sub .now { fill: var(--acc); font-weight: 700; }
.river .stone circle { fill: none; stroke: var(--fg2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.river .stone.ready circle { fill: var(--stone); stroke: var(--stone-ring); stroke-dasharray: none; }
.river .stone.now circle { fill: var(--pane); stroke: var(--stone); stroke-width: 3; stroke-dasharray: none; }
.river .stone.done circle { fill: var(--done); stroke: var(--done-ring); stroke-dasharray: none; }
.river .tick { fill: none; stroke: #fff; stroke-width: 2.2; }
.river .stone.open { cursor: pointer; }
.river .stone.open:hover circle, .river .stone.open:focus-visible circle { stroke-width: 3; }
.river .stone.open:focus-visible { outline: none; }
.place { max-width: 720px; }
.place .pane + .pane { margin-top: 12px; }
.place .q { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.place .q:last-child { border-bottom: 0; }
.place .ask { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; border: 0; }
.ask { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.ask:last-child { border-bottom: 0; }

/* MARK: Play (Web/play.js: hands-on widgets; drag, swipe, stretch, turn, draw) */
.play { --wood: #C98B4F; --paper: #FBF7EF; --ink: #1B2A4A; --gold: #FFB547; --gold2: #D97A12; --ok: #3F8A3A; --line: rgba(31,111,154,.45);
  position: relative; margin: 12px 0 4px; display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; align-items: start; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
:root[data-theme="dark"] .play { --line: rgba(142,216,234,.4); }
.play .playotter { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: 76px; }
.play .playotter img { width: 70px; height: 92px; object-fit: contain; transform: scaleX(-1); }
.play .say { margin: 0; grid-column: 2; font: 700 14.5px/1.35 Nunito, "Inter Tight", sans-serif; color: var(--fg); display: flex; gap: 8px; align-items: flex-start; }
.play .playbody { min-width: 0; grid-column: 2; }
.play .speak { flex: none; border: 0; background: var(--seg); border-radius: 999px; width: 30px; height: 30px; font-size: 15px; cursor: pointer; }
.play.demo .speak:not(.hear) { display: none; }
.play .listen { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 10px; padding: 10px 12px; background: var(--seg); border-radius: 14px; }
.play .listen .hear { width: auto; height: 32px; padding: 0 12px; font: 700 13.5px Nunito, "Inter Tight", sans-serif; color: var(--fg); background: var(--pane); white-space: nowrap; }
.play .readtext { margin: 0; font: 600 16px/1.5 Nunito, "Inter Tight", sans-serif; color: var(--fg); }
.play.locked .listen { pointer-events: auto; }
.play .listen.ear { width: max-content; padding: 6px; }
.play.locked .playbody { pointer-events: none; }
.play [data-drag], .play [data-paint], .play [data-track], .play [data-ink], .play [data-knob] { touch-action: none; }
.play [data-drag] { cursor: grab; }
.play .lifting { opacity: .25; }
.play .ghost { position: fixed; margin: 0; z-index: 50; pointer-events: none; cursor: grabbing; filter: drop-shadow(0 8px 14px rgba(0,0,0,.22)); transition: none; }
.play .dragdot { border-radius: 50%; background: var(--gold); border: 3px solid var(--gold2); box-sizing: border-box; }
.play .held { outline: 3px solid var(--gold2); outline-offset: 2px; }
.play .over { outline: 3px solid var(--gold2); outline-offset: -3px; background-color: rgba(255,181,71,.18) !important; }
.play .cap { color: var(--fg2); font-size: 12.5px; }
.play .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.play .playcount { font-size: 13px; color: var(--fg2); margin-top: 8px; }
.play .playcount b { color: var(--fg); font-family: Nunito, "Inter Tight", sans-serif; font-size: 16px; }
.play .liveink { position: absolute; pointer-events: none; overflow: visible; z-index: 5; }
.play .liveink path { fill: none; stroke: var(--gold2); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.play .paw { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='%237A4F33' stroke='%23FBF7EF' stroke-width='1.5'%3E%3Cellipse cx='22' cy='28' rx='10' ry='9'/%3E%3Ccircle cx='10' cy='17' r='4.5'/%3E%3Ccircle cx='17' cy='10' r='4.5'/%3E%3Ccircle cx='27' cy='10' r='4.5'/%3E%3Ccircle cx='34' cy='17' r='4.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }
.play .paw.on { opacity: 1; }
.play.demo .playbody { pointer-events: none; }
.play button.go.small { padding: 8px 14px; font-size: 13px; }
/* groups */
.play .ponds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 12px; }
.play .pond { position: relative; min-height: 104px; border-radius: 48% 52% 46% 54% / 55% 48% 52% 45%; border: 2px dashed var(--line); background: rgba(88,196,221,.16); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 18px 12px 24px; }
.play .pond .n { position: absolute; right: 14px; bottom: 6px; font: 800 12.5px Nunito, sans-serif; color: var(--water2, #1F6F9A); }
.play .thing { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; line-height: 1; border: 0; background: transparent; padding: 0; color: var(--gold2); font-style: normal; }
.play-groups .thing, .play-loop .lthing { text-shadow: 0 1px 0 rgba(0,0,0,.08); }
.play .basket, .play .tray, .play .shelf, .play .purse { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 58px; padding: 10px 12px; margin-top: 12px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--hair); }
.play .basket, .play .counter { background: #F6E7CF; box-shadow: inset 0 0 0 2px #E2C39A; }
:root[data-theme="dark"] .play .basket, :root[data-theme="dark"] .play .counter { background: #3A2F25; box-shadow: inset 0 0 0 2px #6B5236; }
/* array */
.play .grids { display: flex; flex-wrap: wrap; gap: 14px; }
.play .grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 40px)); gap: 5px; max-width: 100%; }
.play .cell { aspect-ratio: 1; width: 100%; min-width: 22px; border-radius: 9px; border: 2px dashed var(--line); background: transparent; padding: 0; cursor: pointer; transition: background-color .12s, transform .12s; }
.play .cell.on { background: var(--gold); border: 2px solid var(--gold2); transform: scale(1.04); }
.play .grid.layer { grid-template-columns: repeat(var(--cols), 26px); }
/* number line, plane, ruler, clock, protractor: svg on a track */
.play .ptrack { position: relative; cursor: pointer; }
.play .ptrack > svg { display: block; width: 100%; height: auto; overflow: visible; }
.play .line { max-width: 640px; }
.play svg .axis { stroke: var(--fg); stroke-width: 2; }
.play svg .tick { font: 700 13px Nunito, Inter, sans-serif; fill: var(--fg2); }
.play svg .hop { fill: none; stroke: var(--gold2); stroke-width: 3; stroke-linecap: round; }
.play svg .run { stroke: var(--gold2); stroke-width: 6; stroke-linecap: round; opacity: .8; }
.play svg .here { fill: var(--gold); stroke: var(--gold2); stroke-width: 2.5; }
.play svg .lineotter { pointer-events: none; }
.play svg .gridline { stroke: var(--hair); stroke-width: 1.5; }
:root[data-theme="dark"] .play svg .gridline { stroke: rgba(255,255,255,.12); }
.play svg .grip { fill: rgba(255,181,71,.35); stroke: var(--gold2); stroke-width: 2.5; cursor: grab; }
.play svg .grip:focus { outline: none; stroke-width: 4; }
.play .plane { max-width: 380px; }
.play .ruler { max-width: 680px; }
.play svg .rule { fill: #F6D58E; stroke: #C99A3C; }
.play svg .rtick { stroke: #5B4214; stroke-width: 1.5; }
.play .ruler .tick { fill: #5B4214; }
.play svg .unit { font: 700 11px Inter, sans-serif; fill: #5B4214; }
.play svg .ribbon { fill: #E2554A; }
.play svg .rend { stroke: #E2554A; stroke-width: 2; stroke-dasharray: 3 3; }
.play svg .thingbar { fill: color-mix(in srgb, var(--wood) 30%, transparent); }
.play svg .thingicon { font-size: 15px; }
.play .clockwrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.play .clockwrap .ptrack { width: min(100%, 260px); }
.play svg .face { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.play svg .htick { stroke: var(--ink); stroke-width: 3; } .play svg .mtick { stroke: #7C8598; stroke-width: 1.2; }
.play .clock .num { font: 800 19px Nunito, sans-serif; fill: var(--ink); }
.play svg .hhand { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.play svg .mhand { stroke: #2A8BBF; stroke-width: 5; stroke-linecap: round; }
.play svg .hub { fill: var(--ink); }
.play .clock .mgrip { fill: rgba(42,139,191,.25); stroke: #2A8BBF; }
.play .clock .hgrip { fill: rgba(27,42,74,.18); stroke: var(--ink); }
.play .digital { font: 800 34px Nunito, sans-serif; padding: 6px 16px; border-radius: 12px; background: var(--ink); color: #8EF0A8; letter-spacing: .04em; }
.play .protractor { max-width: 420px; }
.play svg .prot { fill: rgba(88,196,221,.12); stroke: var(--line); stroke-width: 2; }
.play svg .arm { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; } .play svg .arm.live { stroke: var(--gold2); }
.play svg .wedge { fill: rgba(255,181,71,.35); } .play svg .rightmark { fill: none; stroke: var(--fg); stroke-width: 2; }
/* tiles, pattern, order, sort */
.play .slots { display: flex; gap: 8px; flex-wrap: wrap; }
.play .slot { min-width: 54px; height: 60px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; padding: 3px; }
.play .slots.words .slot { min-width: 90px; }
.play .tile { min-width: 50px; height: 52px; padding: 0 14px; border-radius: 13px; border: 0; background: var(--pane); box-shadow: 0 2px 0 rgba(27,42,74,.14), inset 0 0 0 1.5px var(--hair); font: 800 24px Nunito, sans-serif; color: var(--fg); }
.play .slot .tile { box-shadow: none; background: var(--gold); color: #1C1C1E; }
.play .patrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.play .pat { min-width: 52px; height: 52px; padding: 0 8px; border-radius: 13px; background: var(--bg); display: grid; place-items: center; font: 800 24px Nunito, sans-serif; }
.play .pat.long, .play .tile.long { height: auto; min-height: 52px; max-width: 100%; padding: 8px 14px; font-size: 19px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.play .pat.blank { border: 2px dashed var(--line); background: transparent; color: var(--fg2); }
.play .pat.blank.on { border-style: solid; border-color: var(--gold2); background: var(--gold); color: #1C1C1E; }
.play .cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.play .cards.tall { flex-direction: column; }
.play .card { font-size: 17px; height: auto; min-height: 46px; text-align: left; display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.play .cards.tall .card { width: 100%; font-weight: 700; }
.play .card .pos { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--seg); display: grid; place-items: center; font-size: 12px; color: var(--fg2); }
.play .bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.play .bin { min-height: 110px; border-radius: 18px; border: 2px dashed var(--line); background: rgba(88,196,221,.1); display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding: 30px 10px 10px; position: relative; }
.play .bin .n { position: absolute; left: 12px; top: 7px; font: 800 13px Nunito, sans-serif; color: var(--water2, #1F6F9A); }
.play .thing.card { width: auto; height: auto; min-height: 40px; border-radius: 12px; font-size: 16px; color: var(--fg); background: var(--pane); box-shadow: 0 2px 0 rgba(27,42,74,.14), inset 0 0 0 1.5px var(--hair); font-weight: 700; }
/* highlight */
.play .passage { font: 600 21px/1.9 Nunito, sans-serif; margin: 0; }
.play .word { padding: 2px 4px; border-radius: 8px; cursor: pointer; transition: background-color .12s; }
.play .word.on { background: #FFE08A; box-shadow: 0 0 0 2px #F2B531; color: #1C1C1E; }
/* blocks */
.play .shelf { gap: 14px; }
.play .shelfblk, .play .piece { border: 0; background: transparent; padding: 2px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font: 700 12px Nunito, sans-serif; color: var(--fg2); }
.play .mat { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 12px; padding: 12px; border-radius: 18px; background: rgba(63,138,58,.1); box-shadow: inset 0 0 0 2px rgba(63,138,58,.3); min-height: 170px; }
.play .matcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.play .pieces { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; flex: 1; }
.play .blk { display: block; background: #4FA3D9; border: 1.5px solid #1F6F9A; border-radius: 3px; }
.play .blk-o { width: 15px; height: 15px; }
.play .blk-t { width: 15px; height: 120px; background: repeating-linear-gradient(#4FA3D9 0 10.5px, #1F6F9A 10.5px 12px); }
.play .blk-h { width: 72px; height: 72px; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(31,111,154,.6) 6px 7.2px), repeating-linear-gradient(#4FA3D9 0 6px, #1F6F9A 6px 7.2px); }
.play .shelf .blk-t { height: 60px; } .play .shelf .blk-h { width: 48px; height: 48px; }
/* fraction */
.play .fshapes { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play .fbar { display: grid; grid-template-columns: repeat(var(--parts), 1fr); width: min(100%, 520px); height: 74px; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
:root[data-theme="dark"] .play .fbar { border-color: #F2F2F4; }
.play .fbar .part { border-left: 2.5px solid var(--ink); cursor: pointer; transition: background-color .12s; }
.play .fbar .part:first-child { border-left: 0; }
.play .part.on { background: var(--gold); }
.play .pie { width: min(46%, 180px); }
.play .pie .part { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; cursor: pointer; }
.play .pie .part.on { fill: var(--gold); }
.play .cutter { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.play .hslide { flex: 1; max-width: 360px; height: 10px; border-radius: 99px; background: var(--seg); margin: 18px 16px; }
.play .hslide .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--gold); }
.play .hslide .knob { position: absolute; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--pane); box-shadow: 0 2px 6px rgba(0,0,0,.2), inset 0 0 0 3px var(--gold2); display: grid; place-items: center; font: 800 15px Nunito, sans-serif; cursor: grab; }
/* coins */
.play .counter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 86px; margin-top: 12px; padding: 12px; border-radius: 18px; }
.play .purseitem { border: 0; background: transparent; padding: 0; }
.play .coin { display: grid; place-items: center; border-radius: 50%; font: 800 12px Nunito, sans-serif; color: #2F3640; background: radial-gradient(circle at 35% 30%, #F4F6F8, #B9C1CB); box-shadow: inset 0 0 0 2px #8D96A2, 0 2px 3px rgba(0,0,0,.18); }
.play .coin-quarter { width: 52px; height: 52px; } .play .coin-dime { width: 38px; height: 38px; font-size: 10.5px; } .play .coin-nickel { width: 45px; height: 45px; }
.play .coin-penny { width: 41px; height: 41px; background: radial-gradient(circle at 35% 30%, #F0B48A, #B4693A); box-shadow: inset 0 0 0 2px #8A4A24, 0 2px 3px rgba(0,0,0,.18); color: #3A1C08; }
.play .coin-dollar { width: 84px; height: 40px; border-radius: 5px; background: linear-gradient(#DCEBD3, #B9D3A8); box-shadow: inset 0 0 0 2px #5E8A4A, 0 2px 3px rgba(0,0,0,.18); color: #23401A; font-size: 15px; }
/* bars */
.play .bars { max-width: 560px; }
.play svg .barfill { fill: #4FA3D9; }
.play svg .bargrip { fill: transparent; stroke: var(--gold2); stroke-width: 2; stroke-dasharray: 4 3; cursor: ns-resize; }
.play svg .blabel { font: 800 13px Nunito, sans-serif; fill: var(--fg); }
.play .ptrack.fixed { cursor: default; }
/* geoboard */
.play .geo { width: min(100%, 300px); display: block; touch-action: none; }
.play svg .pegzone { fill: transparent; cursor: pointer; }
.play svg .pegzone.held, .play svg .pegzone.over { fill: rgba(255,181,71,.35); outline: none; }
.play svg .peg { fill: var(--fg2); pointer-events: none; } .play svg .peg.on { fill: var(--gold2); } .play svg .peg.first { fill: var(--ok); }
.play svg .band { fill: none; stroke: #E2554A; stroke-width: 4; stroke-linejoin: round; pointer-events: none; }
.play svg .band.closed { fill: rgba(226,85,74,.14); }
/* loop */
.play .loopfield { position: relative; width: 100%; max-width: 560px; border-radius: 22px; background: linear-gradient(#BFE6A6, #A8D78F); box-shadow: inset 0 0 0 2px rgba(63,138,58,.35); cursor: crosshair; }
:root[data-theme="dark"] .play .loopfield { background: linear-gradient(#2C4A3A, #233D30); }
.play .loopfield .loops { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.play .loopfield .loops path { fill: rgba(255,181,71,.18); stroke: var(--gold2); stroke-width: 3; stroke-linejoin: round; }
.play .lthing { position: absolute; transform: translate(-50%, -50%); border: 0; background: transparent; font-size: 26px; padding: 4px; line-height: 1; color: var(--gold2); }
.play .lthing.grouped { opacity: .55; }
/* trace */
.play .tracepad { background: var(--paper); border-radius: 18px; padding: 10px 14px; box-shadow: inset 0 0 0 2px var(--hair); width: fit-content; max-width: 100%; box-sizing: border-box; }
.play .tracesvg { display: block; width: calc(var(--w) * 2.3px); max-width: 100%; height: auto; overflow: visible; cursor: crosshair; }
.play .tracesvg .hand { stroke: #B9C6D8; stroke-width: .8; } .play .tracesvg .hand.mid { stroke-dasharray: 3 3; } .play .tracesvg .hand.base { stroke: #7C8FB0; stroke-width: 1.2; }
.play .tracesvg .guide { fill: none; stroke: #D7DDE6; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.play .tracesvg .start { fill: var(--ok); } .play .tracesvg .order { font: 800 7px Nunito, sans-serif; fill: var(--ok); }
.play .tracesvg .inked { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; } .play .tracesvg .inkdot { fill: var(--ink); }
.play-trace .liveink path, .play-loop .liveink path { stroke: var(--ink); stroke-width: 4; }
.play-loop .liveink path { stroke: var(--gold2); }
/* the small demo in the right column */
#demo .play { grid-template-columns: 1fr; }
#demo .play .say, #demo .play .playbody { grid-column: 1; }
#demo .play .say { font-size: 12px; color: var(--fg2); }
#demo .play .playotter { display: none; }
#demo .play .playbody { zoom: .62; }
@media (max-width: 560px) {
  .play { grid-template-columns: 52px 1fr; gap: 6px 10px; }
  .play .playotter img { width: 50px; height: 66px; }
  .play .tile { min-width: 44px; height: 48px; font-size: 21px; }
}

/* MARK: Draw on the page (touch screens): an ink layer over the lesson */
.drawable { position: relative; }
.scribble { position: absolute; inset: 0; z-index: 20; pointer-events: none; border-radius: inherit; overflow: hidden; }
.scribble canvas { display: block; width: 100%; height: 100%; background: transparent; border: 0; border-radius: 0; }
.drawable.drawing .scribble { pointer-events: auto; touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 3px var(--acc); }
.drawbar { position: sticky; top: 70px; z-index: 21; display: none; gap: 8px; align-items: center; justify-content: flex-end; margin: -6px 0 8px; }
.drawable.drawing .drawbar { display: flex; }
.drawbar .sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--pane); box-shadow: 0 0 0 1.5px var(--hair); cursor: pointer; padding: 0; }
.drawbar .sw.on { box-shadow: 0 0 0 3px var(--acc); }
.drawtoggle[aria-pressed="true"] { background: var(--acc); color: #1C1C1E; }

/* MARK: The shop */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-top: 12px; }
.item { background: var(--pane); border-radius: 20px; padding: 14px; box-shadow: var(--sh); text-align: center; }
.item .big { font-size: 40px; line-height: 1.2; }
.item .t { font-weight: 700; margin-top: 4px; }
.item.weekly { box-shadow: var(--sh), inset 0 0 0 2px var(--acc); }
.item.on { background: var(--seg); }
.otterhat { position: relative; display: inline-block; flex: none; }
.otterhat b { position: absolute; left: 50%; top: -14px; transform: translateX(-62%) rotate(-12deg); font-size: 22px; line-height: 1; }
.otterwrap .otterhat img { width: 64px; height: 86px; object-fit: contain; }
.river .hat { pointer-events: none; }

/* The waiting-list form (the landing dock and the account page) */
.join { max-width: 460px; margin: 18px auto 0; }
.join .row { flex-wrap: nowrap; }
.join .field { flex: 1; min-width: 0; border: 1px solid var(--hair); }
.join [data-join-status] { display: block; min-height: 1.2em; margin-top: 6px; }
.pane .join { margin: 0; text-align: left; }

/* The admin numbers table */
.stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats th, .stats td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.stats th:first-child, .stats td:first-child { text-align: left; }
.stats th { color: var(--fg2); font-weight: 600; }

/* What the otter saw in a first miss */
.callout.diag p { font-size: 14px; line-height: 1.45; }
.callout.diag em { font-style: normal; font-weight: 600; }
.callout.diag .speak { flex: none; border: 0; background: var(--seg); border-radius: 999px; width: 30px; height: 30px; font-size: 15px; cursor: pointer; }
