/* play.css — the gamified signed-in app (feature/app).
   Loaded only by app.html; every rule is scoped under body.play and every class is prefixed p- so nothing here can
   touch the public site or collide with verelect.css. Tokens follow the design canvas Tokens board:
   https://claude.ai/artifact/Ese5nFCUjtfjnvgySr99we
   Colour means one thing: green go/correct · red wrong/drift · gold rewards · blue Learn · lavender Quiz ·
   pink Recall · peach League · teal the bridge (Brief 3 §3.2: a wrong answer turning into a win). Text on a pastel fill uses that hue's ink (all ≥ 4.5:1). */

body.play {
  --p-cream: #FBF7EE; --p-surface: #FFFFFF; --p-ink: #2B2A33; --p-muted: #55535F; --p-line: #E6DFCC;
  --p-green: #BFECC9; --p-green-strong: #6FD49A; --p-green-ink: #1F6B40;
  --p-red: #FFC9C2; --p-red-strong: #FF8A7A; --p-red-ink: #A3301F;
  --p-gold: #FFE8A3; --p-gold-strong: #FFC83D; --p-gold-ink: #7A5600;
  --p-blue: #C6DDFF; --p-blue-strong: #7FB2FF; --p-blue-ink: #24508F;
  --p-lav: #DCD2FF; --p-lav-strong: #A994FF; --p-lav-ink: #5B3FA6;
  --p-pink: #FFD1E8; --p-pink-strong: #FF9CCB; --p-pink-ink: #9C2D63;
  --p-peach: #FFD9B8; --p-peach-strong: #FF9F6B; --p-peach-ink: #8A4513;
  --p-teal: #BDEFE8; --p-teal-strong: #2FC4B2; --p-teal-ink: #0E5E56;
  --p-flame: #FF9F1C; --p-scrim: rgba(43, 42, 51, .45);
  --p-border: 2px solid var(--p-ink); --p-drop: 0 4px 0 var(--p-ink); --p-drop-sm: 0 3px 0 var(--p-ink);
  --p-r: 20px; --p-r-tile: 16px; --p-r-sm: 12px;
  --p-display: 'Fredoka', system-ui, sans-serif; --p-body: 'Nunito', system-ui, sans-serif;
  background: var(--p-cream); color: var(--p-ink); font-family: var(--p-body); font-weight: 600;
  color-scheme: light;
}
body.play main { background: transparent; }
body.play h1, body.play h2, body.play h3 { font-family: var(--p-display); font-weight: 700; line-height: 1.1; color: var(--p-ink); }
body.play a { color: var(--p-blue-ink); }
body.play :focus-visible { outline: 3px solid var(--p-blue-ink); outline-offset: 3px; }

/* ---------- layout ---------- */
body.play .p-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 32px 64px; box-sizing: border-box; }
body.play .p-focus-wrap { max-width: 880px; margin: 0 auto; padding: 12px 24px 80px; box-sizing: border-box; }
body.play .p-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
body.play .p-cols > .p-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
body.play .p-cols > .p-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
body.play .p-row { display: flex; flex-wrap: wrap; gap: 16px; }
body.play .p-title { font-size: 44px; margin: 0; }
body.play .p-sub { margin: 6px 0 0; font-weight: 700; font-size: 18px; color: var(--p-muted); }

/* ---------- blocks, chips, bars ---------- */
body.play .p-blk { border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); background: var(--p-surface); padding: 22px; box-sizing: border-box; }
body.play .p-blk.is-green { background: var(--p-green); } body.play .p-blk.is-red { background: var(--p-red); }
body.play .p-blk.is-gold { background: var(--p-gold); } body.play .p-blk.is-blue { background: var(--p-blue); }
body.play .p-blk.is-lav { background: var(--p-lav); } body.play .p-blk.is-pink { background: var(--p-pink); }
body.play .p-blk.is-peach { background: var(--p-peach); }
body.play .p-blk.is-dashed { border-style: dashed; border-width: 3px; box-shadow: none; }
body.play .p-chip { display: inline-flex; align-items: center; gap: 6px; border: var(--p-border); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 13px; line-height: 1.35; background: var(--p-surface); white-space: nowrap; }
body.play .p-chip.is-green { background: var(--p-green); } body.play .p-chip.is-red { background: var(--p-red); }
body.play .p-chip.is-gold { background: var(--p-gold); } body.play .p-chip.is-xp { background: var(--p-gold-strong); }
body.play .p-chip.is-blue { background: var(--p-blue); } body.play .p-chip.is-lav { background: var(--p-lav); }
body.play .p-chip.is-pink { background: var(--p-pink); } body.play .p-chip.is-peach { background: var(--p-peach); }
body.play .p-bar { height: 14px; border: var(--p-border); border-radius: 999px; background: var(--p-surface); overflow: hidden; box-sizing: border-box; }
body.play .p-bar > span { display: block; height: 100%; background: var(--p-gold-strong); transition: width .4s; }
body.play .p-bar.is-green > span { background: var(--p-green-strong); } body.play .p-bar.is-blue > span { background: var(--p-blue-strong); }
body.play .p-bar.is-lav > span { background: var(--p-lav-strong); } body.play .p-bar.is-pink > span { background: var(--p-pink-strong); }

/* ---------- buttons: one green primary per screen ---------- */
body.play .p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; box-sizing: border-box;
  font-family: var(--p-display); font-weight: 600; font-size: 17px; color: var(--p-ink); text-decoration: none; cursor: pointer;
  background: var(--p-surface); border: var(--p-border); border-radius: 999px; box-shadow: var(--p-drop); transition: transform .08s, box-shadow .08s; }
body.play .p-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--p-ink); color: var(--p-ink); }
body.play .p-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--p-ink); }
body.play .p-btn.is-go { background: var(--p-green-strong); }
body.play .p-btn.is-danger { background: var(--p-red); }
body.play .p-btn[disabled], body.play .p-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--p-drop); }

/* ---------- hub bar (_hud.html) ---------- */
body.play .p-hud { background: var(--p-cream); border-bottom: var(--p-border); }
body.play .p-hud-in { max-width: 1200px; margin: 0 auto; padding: 14px 32px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
body.play .p-brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
body.play .p-brand-logo { display: block; width: auto; height: 60px; }   /* the owner's logo with its tagline, in its own colours: never recoloured */
body.play .p-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
body.play .p-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; box-sizing: border-box; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--p-display); font-weight: 600; font-size: 16px; color: var(--p-ink); text-decoration: none; }
body.play .p-nav a:hover { border-color: var(--p-ink); background: var(--p-surface); }
body.play .p-nav a[aria-current="page"] { background: var(--p-ink); color: var(--p-cream); border-color: var(--p-ink); }
body.play .p-nav .p-badge { min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border: var(--p-border); border-radius: 999px; background: var(--p-pink); color: var(--p-ink);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-body); font-weight: 800; font-size: 12px; }
body.play .p-stats { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.play .p-stat { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; box-sizing: border-box; border: var(--p-border); border-radius: 999px; background: var(--p-gold); font-weight: 800; font-size: 15px; }
body.play .p-stat.is-level { background: var(--p-surface); padding-left: 4px; font-size: 13px; }
body.play .p-stat .p-lvl { width: 30px; height: 30px; border-radius: 50%; border: var(--p-border); background: var(--p-gold-strong); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; font-family: var(--p-display); font-weight: 700; font-size: 14px; }
body.play .p-stat .p-mini { width: 64px; height: 10px; border: var(--p-border); border-radius: 999px; overflow: hidden; box-sizing: border-box; display: inline-block; background: var(--p-surface); }
body.play .p-stat .p-mini > span { display: block; height: 100%; background: var(--p-gold-strong); }
body.play .p-avatar { width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; border: var(--p-border); background: var(--p-green); box-shadow: var(--p-drop-sm); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--p-display); font-weight: 700; font-size: 18px; color: var(--p-ink); text-decoration: none; }
body.play .p-avatar[aria-current="page"] { box-shadow: 0 0 0 3px var(--p-cream), 0 0 0 6px var(--p-ink); }
body.play .p-acct { position: relative; }
body.play .p-acct > summary { list-style: none; cursor: pointer; }
body.play .p-acct > summary::-webkit-details-marker { display: none; }
body.play .p-acct-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 230px; display: flex; flex-direction: column; padding: 8px;
  background: var(--p-surface); border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop); }
body.play .p-acct-panel a, body.play .p-acct-panel button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font: inherit; font-weight: 800;
  color: var(--p-ink); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
body.play .p-acct-panel a:hover, body.play .p-acct-panel button:hover { background: var(--p-cream); }
body.play .p-acct-panel form { margin: 0; border-top: 2px dashed var(--p-line); margin-top: 4px; padding-top: 4px; }
body.play .p-acct-who { padding: 6px 12px 8px; font-size: 13px; font-weight: 800; color: var(--p-muted); word-break: break-all; }
body.play .p-add { min-height: 44px; padding: 0 16px; font-size: 16px; box-shadow: var(--p-drop-sm); }

/* ---------- focus bar (_focusbar.html) ---------- */
body.play .p-fbar { background: var(--p-cream); }
body.play .p-fbar-in { max-width: 960px; margin: 0 auto; padding: 16px 24px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
body.play .p-exit { width: 44px; height: 44px; flex: none; box-sizing: border-box; border: var(--p-border); border-radius: 50%; background: var(--p-surface); box-shadow: var(--p-drop-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--p-ink); }
body.play .p-fprog { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
body.play .p-fprog-l { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 14px; }
body.play .p-fprog .p-bar { height: 20px; }

/* ---------- Learn ---------- */
body.play .p-sec { border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); background: var(--p-surface); overflow: hidden; }
body.play .p-sec-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--p-ink); background: var(--p-surface); box-sizing: border-box; }
body.play .p-sec.is-done .p-sec-head { background: color-mix(in oklab, var(--p-green) 35%, var(--p-surface)); } body.play .p-sec.is-now .p-sec-head { background: var(--p-blue); }
body.play .p-sec-num { width: 38px; height: 38px; flex: none; border: var(--p-border); border-radius: var(--p-r-sm); display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; background: var(--p-surface); box-sizing: border-box; }
body.play .p-sec.is-done .p-sec-num { background: var(--p-green-strong); } body.play .p-sec.is-now .p-sec-num { background: var(--p-blue-strong); }
body.play .p-sec-name { flex: 1; font-family: var(--p-display); font-weight: 700; font-size: 22px; line-height: 1.15; }
body.play .p-sec-body { padding: 20px 22px 22px; border-top: var(--p-border); display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; }
body.play .p-sec-body .p-hl { background: color-mix(in oklab, var(--p-red) 55%, var(--p-surface)); border-radius: 8px; transition: background .3s; }
body.play .p-chain { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: var(--p-border); border-radius: var(--p-r-tile); background: color-mix(in oklab, var(--p-blue) 45%, var(--p-surface)); }
body.play .p-step { border: var(--p-border); border-radius: 14px; background: var(--p-surface); box-shadow: var(--p-drop-sm); padding: 10px 14px; font-weight: 700; font-size: 15px; }
body.play .p-step-row { display: flex; flex-wrap: wrap; gap: 8px; } body.play .p-step-row > .p-step { flex: 1 1 200px; }
body.play .p-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
body.play .p-tile { flex: 1 1 180px; min-height: 104px; border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop); padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  text-align: left; font: inherit; color: var(--p-ink); background: var(--p-blue); cursor: pointer; box-sizing: border-box; }
body.play .p-tile[aria-pressed="true"] { background: var(--p-gold); }
body.play .p-tile-value { font-family: var(--p-display); font-weight: 700; font-size: 28px; line-height: 1; }
body.play .p-tile-cue { font-weight: 700; font-size: 13px; line-height: 1.3; }
body.play .p-drift { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: var(--p-border); border-radius: 14px; background: color-mix(in oklab, var(--p-red) 35%, var(--p-surface)); font-size: 15px; }
body.play .p-check { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: var(--p-border); border-radius: var(--p-r-tile); background: color-mix(in oklab, var(--p-lav) 40%, var(--p-surface)); }
body.play .p-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; font-weight: 700; font-size: 16px; padding: 12px 14px; border: var(--p-border); border-radius: 14px;
  background: var(--p-surface); box-shadow: var(--p-drop-sm); cursor: pointer; color: var(--p-ink); box-sizing: border-box; transition: transform .08s, box-shadow .08s; }
body.play .p-opt:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--p-ink); }
body.play .p-opt .p-key { width: 32px; height: 32px; flex: none; border: var(--p-border); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; background: var(--p-lav); box-sizing: border-box; }
body.play .p-opt.is-right { background: var(--p-green); } body.play .p-opt.is-right .p-key { background: var(--p-green-strong); }
body.play .p-opt.is-wrong { background: var(--p-red); } body.play .p-opt.is-wrong .p-key { background: var(--p-red-strong); }
body.play .p-opt.is-dim { opacity: .6; }

/* ---------- Map ---------- */
body.play .p-world { position: relative; }
body.play .p-band { border: 2px solid var(--p-line); border-radius: 18px; background: var(--p-surface); padding: 12px 16px 18px; }
body.play .p-band-label { font-family: var(--p-display); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
body.play .p-node { width: 150px; min-height: 92px; box-sizing: border-box; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  font: inherit; font-size: 13px; color: var(--p-ink); background: var(--p-surface); border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop); cursor: pointer; }
body.play .p-node b { font-family: var(--p-display); font-weight: 600; font-size: 15px; }
body.play .p-node.is-mastered { background: var(--p-gold); } body.play .p-node.is-next { background: var(--p-green); border-width: 3px; }
body.play .p-node.is-gap { background: var(--p-cream); border-style: dashed; box-shadow: none; color: var(--p-muted); }
body.play .p-node[aria-pressed="true"] { outline: 3px solid var(--p-ink); outline-offset: 4px; }

/* ---------- stars ---------- */
body.play .p-star { width: 18px; height: 18px; vertical-align: -3px; }
body.play .p-star path { fill: var(--p-surface); stroke: var(--p-ink); stroke-width: 2; stroke-linejoin: round; }
body.play .p-star.is-on path { fill: var(--p-gold-strong); }

/* ---------- motion: reward pops, next step bobs; nothing moves under reduced motion ---------- */
@keyframes p-pop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.08); opacity: 1 } 100% { transform: scale(1) } }
@keyframes p-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
body.play .p-pop { animation: p-pop .4s ease-out both; }
body.play .p-bob { animation: p-bob 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { body.play .p-pop, body.play .p-bob { animation: none; } }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body.play .p-wrap, body.play .p-hud-in { padding-left: 16px; padding-right: 16px; }
  body.play .p-title { font-size: 34px; }
  body.play .p-stats { margin-left: 0; }
  body.play .p-sec-head { flex-wrap: wrap; }
  body.play .p-sec-name { flex: 1 1 60%; font-size: 19px; }
  body.play .p-learn, body.play .p-focus-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ================================================================ existing views take the play palette
   verelect.css draws every component from tokens set on :root; redefining them here on body.play restyles the upload,
   question bank, lecture, subscription and settings views without touching their markup. Derived tokens are restated
   because a var() resolves where it is declared. */
body.play {
  --v-navy-ink: #2B2A33; --v-navy: #2B2A33; --v-royal: #24508F; --v-link: #24508F; --v-mist: #C6DDFF; --v-tint: #EAF2FF;
  --v-text: #2B2A33; --v-text-muted: #55535F; --v-border: #E0D8C4; --v-page: #FBF7EE; --v-card: #FFFFFF;
  --v-accent: #FFC83D; --v-accent-text: #2B2A33;
  --v-verified: #1F6B40; --v-updated: #7A5600; --v-conflict: #A3301F; --v-unchecked: #8A8799;
  --v-on-navy: #FBF7EE; --v-on-status: #FFFFFF; --v-on-updated: #FFFFFF; --v-on-unchecked: #2B2A33;
  --v-heading: #2B2A33; --v-subheading: #24508F; --v-link-hover: #1A3A6B;
  --ground: #FBF7EE; --surface: #FFFFFF; --surface-2: #F4EFE3; --line: #E0D8C4; --line-strong: #2B2A33; --line-blue: #7FB2FF;
  --ink: #2B2A33; --ink-muted: #55535F; --ink-faint: #8A8799;
  --primary: #2B2A33; --primary-hover: #000000; --primary-tint: #EAF2FF; --on-primary: #FBF7EE;
  --attention: #A3301F; --attention-tint: #FFE1DC; --ok: #1F6B40; --ok-tint: #E3F6E8; --warn: #7A5600; --warn-tint: #FFF3CF;
  --stop: #A3301F; --stop-tint: #FFE1DC; --focus: #24508F; --diagram-ground: #2B2A33; --diagram-ink: #FBF7EE;
  --l1: #F4EFE3; --l1-b: #E0D8C4; --l2: #F4EFE3; --l2-b: #E0D8C4; --l3: #FFFFFF; --l3-b: #2B2A33;
  --rule: #E0D8C4; --field: #FBF7EE; --field-base: #FBF7EE; --glass: #FFFFFF;
  --ok-500: #1F6B40; --warn-500: #7A5600; --stop-500: #A3301F; --ok-dim: #E3F6E8; --warn-dim: #FFF3CF; --stop-dim: #FFE1DC;
  --cy-500: #2B2A33; --cy-300: #000000; --cy-700: #000000; --cy-100: #EAF2FF; --uv-500: #2B2A33; --uv-300: #000000; --uv-100: #EAF2FF;
  --verified: #1F6B40; --refined: #7A5600; --superseded: #A3301F; --held: #55535F; --cyan: #2B2A33; --uv: #2B2A33;
  --line-2: #E0D8C4; --line-3: #2B2A33;
  --sans: 'Nunito', system-ui, sans-serif; --serif: 'Nunito', system-ui, sans-serif; --display: 'Fredoka', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
  --r: 12px; --r-lg: 20px;
}
body.play .card { border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); background: var(--p-surface); }
body.play .btn { border: var(--p-border); border-radius: 999px; box-shadow: var(--p-drop-sm); font-family: var(--p-display); font-weight: 600; color: var(--p-ink); background: var(--p-surface); transition: transform .08s, box-shadow .08s; }
body.play .btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--p-ink); }
body.play .btn.primary, body.play .btn.accent { background: var(--p-green-strong); color: var(--p-ink); }
body.play h1.page { font-family: var(--p-display); font-weight: 700; color: var(--p-ink); }
body.play .qopt { border: var(--p-border); border-radius: 14px; box-shadow: var(--p-drop-sm); background: var(--p-surface); }
body.play input:not([type=checkbox]):not([type=radio]):not([type=file]), body.play select, body.play textarea { border: var(--p-border); border-radius: var(--p-r-sm); background: var(--p-surface); }
body.play.p-focus-on .p-hud { display: none; }

/* ================================================================ shared bits for the new pages */
body.play .p-h2 { font-size: 22px; margin: 0; }
body.play .p-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
body.play .p-head-wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
body.play .p-gap8 { gap: 8px; } body.play .p-gap12 { gap: 12px; }
body.play .p-mt { margin-top: 12px; } body.play .p-small { font-size: 14px; margin: 6px 0 0; } body.play .p-muted { color: var(--p-muted); }
body.play .p-strong { font-weight: 800; } body.play .p-display { font-family: var(--p-display); }
body.play .p-center { text-align: center; } body.play .p-justify { justify-content: center; } body.play .p-right { display: flex; justify-content: flex-end; }
body.play .p-self-start { align-self: flex-start; } body.play .p-self-center { align-self: center; } body.play .p-nopoint { pointer-events: none; }
body.play .p-ink-green { color: var(--p-green-ink); } body.play .p-ink-red { color: var(--p-red-ink); } body.play .p-ink-gold { color: var(--p-gold-ink); }
body.play .p-ink-blue { color: var(--p-blue-ink); } body.play .p-ink-lav { color: var(--p-lav-ink); } body.play .p-ink-pink { color: var(--p-pink-ink); } body.play .p-ink-peach { color: var(--p-peach-ink); }
body.play .p-chip-sm { padding: 1px 8px; font-size: 12px; }
body.play .p-btn-sm { min-height: 40px; padding: 6px 14px; font-size: 15px; }
body.play .p-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--p-blue-ink); text-decoration: underline; cursor: pointer; align-self: flex-start; }
body.play .p-big { font-family: var(--p-display); font-weight: 700; font-size: 52px; line-height: 1; }
body.play .p-bar-lg { height: 18px; }
body.play .p-tile-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--p-ink); flex: 1 1 280px; transition: transform .12s, box-shadow .12s; }
body.play .p-tile-link:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--p-ink); color: var(--p-ink); }
body.play .p-stars { display: inline-flex; gap: 2px; }
body.play .p-toasts { position: fixed; top: 16px; right: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
body.play .p-toast { background: var(--p-gold-strong); border: var(--p-border); border-radius: 999px; box-shadow: var(--p-drop-sm); padding: 8px 16px; font-family: var(--p-display); font-weight: 700; }
body.play .p-fbar-inline { margin: -8px 0 12px; }
body.play .p-xpchip { height: 40px; padding: 0 14px; font-family: var(--p-display); font-size: 16px; }

/* Home */
body.play .p-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px; }
body.play .p-hero-main { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
body.play .p-hero-title { font-size: 34px; margin: 0; } body.play .p-hero-line { margin: 0; font-weight: 700; color: var(--p-blue-ink); }
body.play .p-ring { --p-ring: 0; width: 164px; height: 164px; margin: 0 auto; border-radius: 50%; border: var(--p-border); box-shadow: 0 6px 0 var(--p-ink); box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, var(--p-surface) 72%, transparent 73% 100%), conic-gradient(var(--p-blue-strong) calc(var(--p-ring) * 1%), var(--p-line) 0); }
body.play .p-ring span { display: flex; flex-direction: column; align-items: center; line-height: 1; }
body.play .p-ring b { font-family: var(--p-display); font-size: 38px; } body.play .p-ring small { font-weight: 800; font-size: 13px; color: var(--p-blue-ink); margin-top: 4px; }
body.play .p-quests { display: flex; flex-direction: column; gap: 10px; }
body.play .p-quest { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: var(--p-border); border-radius: var(--p-r-tile); background: var(--p-surface); }
body.play .p-quest.is-done { background: color-mix(in oklab, var(--p-green) 35%, var(--p-surface)); }
body.play .p-quest-ic { width: 44px; height: 44px; flex: none; border: var(--p-border); border-radius: 13px; background: var(--p-gold); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
body.play .p-quest-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
body.play .p-quest-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; flex-wrap: wrap; }
body.play .p-chest { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 2px dashed var(--p-ink); border-radius: var(--p-r-tile); font-weight: 800; }
body.play .p-pips { display: inline-flex; gap: 6px; } body.play .p-pips i { width: 20px; height: 20px; border: var(--p-border); border-radius: 6px; box-sizing: border-box; background: var(--p-surface); }
body.play .p-pips i.on { background: var(--p-green-strong); }
body.play .p-lvl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
body.play .p-lvl-big { width: 54px; height: 54px; border-radius: 50%; border: var(--p-border); background: var(--p-gold-strong); display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; font-size: 26px; box-sizing: border-box; flex: none; }
body.play .p-week { display: flex; justify-content: space-between; gap: 4px; }
body.play .p-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
body.play .p-day-dot { width: 34px; height: 34px; border-radius: 50%; border: var(--p-border); background: var(--p-surface); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
body.play .p-day-dot.is-done { background: var(--p-gold); } body.play .p-day-dot.is-today { border-style: dashed; }
body.play .p-day-l { font-weight: 800; font-size: 12px; color: var(--p-muted); }
body.play .p-lrows { display: flex; flex-direction: column; gap: 6px; }
body.play .p-lrow { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 2px solid transparent; border-radius: 12px; font-weight: 800; }
body.play .p-lrow b { width: 26px; text-align: center; font-family: var(--p-display); } body.play .p-lrow span:nth-child(2) { flex: 1; }
body.play .p-lrow.is-me { background: var(--p-ink); color: var(--p-cream); border-color: var(--p-ink); }
body.play .p-lrow.is-up:not(.is-me) { background: color-mix(in oklab, var(--p-green) 35%, var(--p-surface)); } body.play .p-lrow.is-down:not(.is-me) { background: color-mix(in oklab, var(--p-red) 35%, var(--p-surface)); }

/* Map */
body.play .p-wtab { display: inline-flex; align-items: center; gap: 10px; font-family: var(--p-display); font-weight: 600; font-size: 16px; border: var(--p-border); border-radius: 16px; padding: 8px 14px; min-height: 48px; box-sizing: border-box; cursor: pointer; color: var(--p-ink); background: var(--p-surface); box-shadow: var(--p-drop); }
body.play .p-wtab.on { background: var(--p-ink); color: var(--p-cream); } body.play .p-wtab-s { display: inline-flex; align-items: center; gap: 4px; font-family: var(--p-body); font-weight: 800; font-size: 13px; }
body.play .p-next { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--p-ink); margin: 18px 0; padding: 16px 18px; }
body.play .p-next span:last-child { display: flex; flex-direction: column; } body.play .p-next b { font-family: var(--p-display); font-size: 19px; } body.play .p-next small { font-weight: 800; color: var(--p-green-ink); }
body.play .p-next-ic { width: 46px; height: 46px; flex: none; border: var(--p-border); border-radius: 50%; background: var(--p-green-strong); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
body.play .p-world-banner { background: var(--p-ink); color: var(--p-cream); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; box-shadow: 0 4px 0 color-mix(in oklab, var(--p-ink) 70%, var(--p-cream)); }
body.play .p-world-banner .p-h2 { color: var(--p-cream); flex: 1 1 200px; } body.play .p-world-banner > span { font-weight: 800; font-size: 14px; }
body.play .p-banner-bar { display: inline-flex; align-items: center; gap: 8px; } body.play .p-banner-bar .p-bar { width: 120px; border-color: var(--p-cream); background: color-mix(in oklab, var(--p-ink) 85%, var(--p-cream)); }
body.play .p-world { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 4px 0; }
body.play .p-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
body.play .p-links path { fill: none; stroke: var(--p-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
body.play .p-links path.is-dashed { stroke-dasharray: 6 6; }
body.play .p-band { position: relative; background: color-mix(in oklab, var(--p-surface) 55%, transparent); }
body.play .p-band-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 48px; padding-top: 10px; }
body.play .p-band-empty { color: var(--p-muted); font-weight: 700; font-size: 14px; padding: 16px 0; }
body.play .p-node { position: relative; z-index: 1; }
body.play .p-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-weight: 800; font-size: 13px; }
body.play .p-legend span { display: inline-flex; align-items: center; gap: 8px; } body.play .p-legend i { display: inline-block; width: 22px; height: 16px; border-radius: 5px; border: var(--p-border); box-sizing: border-box; }
body.play .p-legend .lg-m { background: var(--p-gold); } body.play .p-legend .lg-n { background: var(--p-green); border-width: 3px; } body.play .p-legend .lg-u { background: var(--p-surface); }
body.play .p-legend .lg-g { background: var(--p-cream); border-style: dashed; } body.play .p-legend .lg-d { width: 30px; height: 0; border-width: 0; border-top: 3px dashed var(--p-ink); border-radius: 0; }
body.play .p-link { display: inline-flex; align-items: center; gap: 6px; border: var(--p-border); border-radius: 999px; padding: 0 14px; min-height: 40px; font: inherit; font-weight: 800; font-size: 14px; background: var(--p-surface); box-sizing: border-box; cursor: pointer; color: var(--p-ink); }
body.play .p-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
body.play .p-act { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: var(--p-border); border-radius: 14px; }
body.play .p-act.is-blue { background: var(--p-blue); } body.play .p-act.is-lav { background: var(--p-lav); } body.play .p-act.is-pink { background: var(--p-pink); }
body.play .p-act .p-star { width: 24px; height: 24px; } body.play .p-act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.play .p-act-main b { font-family: var(--p-display); font-size: 16px; } body.play .p-act-main small { font-weight: 700; font-size: 13px; }

/* Learn */
body.play .p-learn { max-width: 1120px; margin: 0 auto; padding: 12px 24px 80px; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
body.play .p-learn-rail { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
body.play .p-learn-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
body.play .p-toc { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
body.play .p-toc-a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--p-ink); line-height: 1.3; }
body.play .p-toc-a:hover { background: var(--p-cream); }
body.play .p-toc-dot { width: 22px; height: 22px; flex: none; border: var(--p-border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; box-sizing: border-box; background: var(--p-surface); }
body.play .p-toc-dot.is-done { background: var(--p-green-strong); } body.play .p-toc-dot.is-now { background: var(--p-blue-strong); }
body.play .p-switch-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
body.play .p-switch { position: relative; width: 52px; height: 30px; border: var(--p-border); border-radius: 999px; background: var(--p-surface); cursor: pointer; padding: 0; flex: none; box-sizing: border-box; }
body.play .p-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--p-ink); transition: left .12s; }
body.play .p-switch.on { background: var(--p-blue); } body.play .p-switch.on span { left: 25px; }
body.play .p-note-html h2:first-of-type { display: none; }
body.play .p-note-html section { margin: 0; }
body.play .p-note-html table { border-collapse: separate; border-spacing: 0; border: var(--p-border); border-radius: 14px; overflow: hidden; width: 100%; }
body.play .p-chain-arrow { align-self: center; font-weight: 800; }
body.play .p-tile-hide { font-size: 18px; }
body.play .p-starwin { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; } body.play .p-starwin > .p-star { width: 80px; height: 80px; }

/* Recall */
body.play .p-card { width: 100%; min-height: 280px; border: var(--p-border); border-radius: 24px; box-shadow: 0 6px 0 var(--p-ink); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  text-align: left; font: inherit; color: var(--p-ink); background: var(--p-surface); box-sizing: border-box; cursor: pointer; }
body.play .p-card.is-back { background: var(--p-pink); cursor: default; }
body.play .p-card-front { font-family: var(--p-display); font-weight: 600; font-size: 26px; line-height: 1.35; }
body.play .p-card-back { font-family: var(--p-display); font-weight: 700; font-size: 30px; line-height: 1.25; }
body.play .p-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
body.play .p-cloze-blank { background: var(--p-blue); border: var(--p-border); border-radius: 8px; padding: 0 8px; }
body.play .p-cloze { background: var(--p-gold); border-radius: 6px; padding: 0 4px; }
body.play .p-rates { display: flex; flex-wrap: wrap; gap: 10px; }
body.play .p-rate { flex: 1 1 130px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px; min-height: 64px; border: var(--p-border); border-radius: 16px; box-shadow: var(--p-drop); font: inherit; cursor: pointer; color: var(--p-ink); background: var(--p-surface); box-sizing: border-box; }
body.play .p-rate b { font-family: var(--p-display); font-size: 18px; } body.play .p-rate span { font-weight: 700; font-size: 13px; }
body.play .p-rate.is-red { background: var(--p-red); } body.play .p-rate.is-green { background: var(--p-green-strong); } body.play .p-rate.is-blue { background: var(--p-blue); }
@keyframes p-flipin { 0% { transform: rotateX(70deg); opacity: .2 } 100% { transform: rotateX(0); opacity: 1 } }
body.play .p-flipin { animation: p-flipin .3s ease-out both; }
@media (prefers-reduced-motion: reduce) { body.play .p-flipin { animation: none; } }

/* League, Profile, quiz Results */
body.play .p-ltable { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
body.play .p-zone { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 4px; }
body.play .p-zone::before, body.play .p-zone::after { content: ""; flex: 1; border-top: 2px dashed currentColor; }
body.play .p-zone.is-up { color: var(--p-green-ink); } body.play .p-zone.is-down { color: var(--p-red-ink); }
body.play .p-rule { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 2px dashed color-mix(in oklab, var(--p-gold-strong) 60%, var(--p-surface)); font-weight: 700; }
body.play .p-rule b { font-family: var(--p-display); white-space: nowrap; }
body.play .p-profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
body.play .p-profile-hero .p-title { font-size: 28px; word-break: break-all; }
body.play .p-avatar-big { width: 88px; height: 88px; border-radius: 50%; border: var(--p-border); background: var(--p-surface); box-shadow: 0 5px 0 var(--p-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; font-size: 40px; box-sizing: border-box; }
body.play .p-stats-grid { display: flex; flex-wrap: wrap; gap: 12px; }
body.play .p-statbox { flex: 1 1 150px; border: var(--p-border); border-radius: var(--p-r-tile); background: var(--p-surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
body.play .p-statbox b { font-family: var(--p-display); font-size: 28px; } body.play .p-statbox span { font-weight: 800; font-size: 13px; color: var(--p-muted); }
body.play .p-trophies { display: flex; flex-wrap: wrap; gap: 12px; }
body.play .p-troph { flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: var(--p-border); border-radius: 18px; box-shadow: var(--p-drop); font: inherit; cursor: pointer; color: var(--p-ink); background: var(--p-surface); box-sizing: border-box; }
body.play .p-troph.is-won { background: color-mix(in oklab, var(--p-gold) 30%, var(--p-surface)); } body.play .p-troph[aria-pressed="true"] { outline: 3px solid var(--p-ink); outline-offset: 4px; }
body.play .p-troph b { font-family: var(--p-display); font-weight: 600; font-size: 15px; text-align: center; } body.play .p-troph small { font-weight: 800; font-size: 12px; color: var(--p-muted); }
body.play .p-troph-disc { width: 50px; height: 50px; border-radius: 50%; border: var(--p-border); background: var(--p-cream); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
body.play .p-troph.is-won .p-troph-disc { background: var(--p-gold-strong); } body.play .p-troph-disc .p-star { width: 26px; height: 26px; }
body.play .p-troph-detail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: var(--p-border); border-radius: var(--p-r-tile); background: var(--p-cream); }
body.play .p-troph-detail.is-won { background: var(--p-gold); } body.play .p-troph-detail b { font-family: var(--p-display); font-size: 18px; } body.play .p-troph-detail span:nth-child(2) { flex: 1; font-weight: 700; }
body.play .p-setrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 2px dashed var(--p-line); text-decoration: none; color: var(--p-ink); font-weight: 800; }
body.play .p-setrow:last-child { border-bottom: 0; }
body.play .p-results { margin: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
body.play .p-bigstar .p-star { width: 110px; height: 110px; }

/* the skeleton a page shows while its JSON loads: three ink-bordered blocks, a slow shimmer, never a word */
body.play .p-skel { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
body.play .p-skel-b { height: 72px; border: var(--p-border); border-radius: var(--p-r-block); background: linear-gradient(90deg, var(--p-surface) 0%, var(--p-cream) 50%, var(--p-surface) 100%); background-size: 200% 100%; animation: p-shimmer 1.4s linear infinite; }
body.play .p-skel-b.is-tall { height: 180px; } body.play .p-skel-b.is-short { height: 48px; width: 60%; }
@keyframes p-shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { body.play .p-skel-b { animation: none; } }

/* the quiz as a focus screen: the same option rows Learn's check uses, a square per question, a summary list */
body.play .p-quiz { display: flex; flex-direction: column; gap: 14px; }
body.play .p-vin { font-size: 17px; line-height: 1.6; margin: 0; } body.play .p-lead { font-size: 18px; margin: 0; }
body.play .p-opts { display: flex; flex-direction: column; gap: 10px; }
body.play .p-opt.is-sel { background: var(--p-lav); transform: translateY(2px); box-shadow: 0 2px 0 var(--p-ink); }
body.play .p-sq { display: inline-flex; gap: 4px; } body.play .p-sq i { width: 12px; height: 12px; border: 2px solid var(--p-ink); border-radius: 4px; background: var(--p-surface); }
body.play .p-sq i.y { background: var(--p-green-strong); } body.play .p-sq i.n { background: var(--p-red-strong); } body.play .p-sq i.cur { background: var(--p-lav-strong); }
body.play .p-quote { margin: 8px 0 0; padding: 10px 14px; border-left: 4px solid var(--p-ink); background: var(--p-cream); border-radius: 0 12px 12px 0; font-weight: 600; }
body.play .p-sumlist { list-style: none; margin: 0; padding: 0; }
body.play .p-sumrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 2px dashed var(--p-line); font-weight: 700; }
body.play .p-sumrow:last-child { border-bottom: 0; } body.play .p-sumrow b { font-family: var(--p-display); font-size: 20px; }
body.play .p-right .p-small { align-self: center; margin-right: 12px; }

/* the map's node: a one-word label, three stars, and how far through the note you are */
body.play .p-node-bar { display: block; width: 100%; height: 6px; margin-top: 4px; border: 2px solid var(--p-ink); border-radius: 999px; background: var(--p-surface); overflow: hidden; box-sizing: border-box; }
body.play .p-node-bar > span { display: block; height: 100%; background: var(--p-blue-strong); }
body.play .p-node.is-mastered .p-node-bar > span { background: var(--p-gold-strong); }

/* the question bank: a grade is a big pressable card, a lecture a row, the session a sticky block */
body.play .p-bankblk { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
body.play .p-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
body.play .p-grade { display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; color: var(--p-ink); padding: 14px; border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); background: var(--p-surface); cursor: pointer; box-sizing: border-box; transition: transform .08s, box-shadow .08s; }
body.play .p-grade:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--p-ink); }
body.play .p-grade[aria-pressed="true"] { border-width: 3px; padding: 13px; }
body.play .p-grade.is-green[aria-pressed="true"] { background: var(--p-green); } body.play .p-grade.is-blue[aria-pressed="true"] { background: var(--p-blue); }
body.play .p-grade.is-gold[aria-pressed="true"] { background: var(--p-gold); } body.play .p-grade.is-plain[aria-pressed="true"] { background: var(--p-cream); }
body.play .p-grade-letter { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; font-size: 26px; border: var(--p-border); border-radius: 14px; background: var(--p-surface); box-sizing: border-box; }
body.play .p-grade.is-green .p-grade-letter { background: var(--p-green-strong); } body.play .p-grade.is-blue .p-grade-letter { background: var(--p-blue-strong); } body.play .p-grade.is-gold .p-grade-letter { background: var(--p-gold-strong); }
body.play .p-grade-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; } body.play .p-grade-main b { font-family: var(--p-display); font-weight: 600; font-size: 20px; } body.play .p-grade-main small { font-weight: 700; font-size: 14px; color: var(--p-muted); }
body.play .p-check-ic { flex: none; width: 24px; }
body.play .p-picks { display: flex; flex-direction: column; gap: 10px; }
body.play .p-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--p-ink); padding: 12px 14px; border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop-sm); background: var(--p-surface); cursor: pointer; box-sizing: border-box; list-style: none; }
body.play .p-pick.on, body.play .p-pick[aria-pressed="true"] { background: var(--p-lav); border-width: 3px; padding: 11px 13px; }
body.play .p-pick-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } body.play .p-pick-main b { font-family: var(--p-display); font-weight: 600; font-size: 18px; } body.play .p-pick-main small { font-weight: 700; font-size: 13px; color: var(--p-muted); }
body.play .p-pickd > summary::-webkit-details-marker { display: none; } body.play .p-pickd > summary::marker { content: ''; }
body.play .p-pickd[open] > .p-pick { border-radius: var(--p-r-tile) var(--p-r-tile) 0 0; }
body.play .p-secs { display: flex; flex-direction: column; border: var(--p-border); border-top: 0; border-radius: 0 0 var(--p-r-tile) var(--p-r-tile); background: var(--p-cream); padding: 6px 14px; }
body.play .p-sec-pick { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px dashed var(--p-line); font-weight: 800; color: var(--p-ink); text-decoration: none; }
body.play .p-sec-pick:last-child { border-bottom: 0; } body.play .p-sec-pick:hover span:first-child { text-decoration: underline; }
body.play .p-everything { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
body.play .p-chipbtn { font: inherit; font-weight: 800; font-size: 14px; min-width: 40px; min-height: 40px; padding: 0 12px; border: var(--p-border); border-radius: 12px; background: var(--p-surface); box-shadow: var(--p-drop-sm); cursor: pointer; color: var(--p-ink); }
body.play .p-chipbtn.on { background: var(--p-ink); color: var(--p-cream); }
body.play .p-sticky { position: sticky; top: 84px; }
body.play .p-btn-sm { min-height: 40px; padding: 6px 14px; font-size: 15px; }
@media (max-width: 760px) { body.play .p-sticky { position: static; } }

/* a milestone (experience brief v2 §1.6): the page dims, one plain card, one button; Escape or the button closes it */
body.play .p-reward { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--p-scrim); box-sizing: border-box; }
body.play .p-reward-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 24px 24px; }
body.play .p-reward-card .p-title { font-size: 30px; }
body.play .p-reward-ic { display: inline-flex; } body.play .p-reward-ic .p-star, body.play .p-reward-ic svg { width: 64px; height: 64px; }
body.play .p-hud .p-stat.p-pop, body.play .p-hud .is-level.p-pop { animation: p-pop .45s ease-out; }

/* the pages that keep their old markup (upload, lectures, a lecture, settings, subscription) in the play look */
body.play h1.page, body.play .list-h, body.play .card h2, body.play .uf-t { font-family: var(--p-display); font-weight: 700; color: var(--p-ink); letter-spacing: 0; }
body.play h1.page { font-size: 34px; } body.play .sub { color: var(--p-muted); font-weight: 700; }
body.play .page-head { border-bottom: 0; margin-bottom: 24px; }
body.play .eyebrow { font-family: var(--p-display); font-weight: 600; letter-spacing: .06em; color: var(--p-muted); }
body.play .btn.secondary { background: var(--p-surface); } body.play .btn.quiet { border: 0; box-shadow: none; background: none; color: var(--p-blue-ink); font-family: var(--p-body); font-weight: 800; }
body.play .btn.quiet:hover { transform: none; }
body.play .rows .lrow, body.play .rows li.lrow { border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop-sm); background: var(--p-surface); margin-bottom: 10px; padding: 12px 14px; }
body.play .rows .lrow .name b { font-family: var(--p-display); font-weight: 600; font-size: 17px; }
body.play .stamp { border: 2px solid var(--p-ink); border-radius: 999px; font-weight: 800; font-family: var(--p-body); }
body.play .stamp.verified { background: var(--p-green); color: var(--p-green-ink); } body.play .stamp.superseded { background: var(--p-red); color: var(--p-red-ink); }
body.play .stamp.refined { background: var(--p-blue); color: var(--p-blue-ink); } body.play .stamp.working { background: var(--p-gold); color: var(--p-gold-ink); }
body.play .stamp.held { background: var(--p-cream); color: var(--p-ink); }
body.play .card h2.sp-plan, body.play .sp-plan { color: inherit; }          /* the subscription plan name sits on an ink block */
body.play .p-note-html table, body.play .note table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.play .field input, body.play .field select, body.play .field textarea { border: var(--p-border); border-radius: var(--p-r-sm); background: var(--p-surface); font-family: var(--p-body); font-weight: 600; }
body.play .uf-step { border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); background: var(--p-surface); }
body.play .uf-n { font-family: var(--p-display); font-weight: 700; border: var(--p-border); border-radius: 12px; background: var(--p-blue); }
body.play .uf-step[data-state="done"] .uf-n { background: var(--p-green-strong); }
body.play .strip { border: var(--p-border); border-radius: var(--p-r-tile); background: var(--p-cream); font-weight: 700; }
body.play .back { font-weight: 800; color: var(--p-blue-ink); }
body.play .tbl th { font-family: var(--p-display); font-weight: 600; letter-spacing: 0; }

/* motion: a painted page rises in, block by block; bars fill; nothing moves under prefers-reduced-motion */
@keyframes p-rise { 0% { transform: translateY(14px); opacity: 0 } 100% { transform: translateY(0); opacity: 1 } }
body.play .p-wrap > *, body.play .p-main > *, body.play .p-side > *, body.play .p-focus-wrap > *, body.play .p-learn-main > * { animation: p-rise .38s cubic-bezier(.2, .8, .3, 1) both; }
body.play .p-wrap > :nth-child(2), body.play .p-main > :nth-child(2), body.play .p-side > :nth-child(2), body.play .p-focus-wrap > :nth-child(2), body.play .p-learn-main > :nth-child(2) { animation-delay: .06s; }
body.play .p-wrap > :nth-child(3), body.play .p-main > :nth-child(3), body.play .p-side > :nth-child(3), body.play .p-focus-wrap > :nth-child(3), body.play .p-learn-main > :nth-child(3) { animation-delay: .12s; }
body.play .p-wrap > :nth-child(4), body.play .p-main > :nth-child(4), body.play .p-side > :nth-child(4), body.play .p-focus-wrap > :nth-child(4), body.play .p-learn-main > :nth-child(4) { animation-delay: .18s; }
body.play .p-wrap > :nth-child(n+5), body.play .p-main > :nth-child(n+5), body.play .p-side > :nth-child(n+5), body.play .p-focus-wrap > :nth-child(n+5), body.play .p-learn-main > :nth-child(n+5) { animation-delay: .24s; }
body.play .p-bar > span { transition: width .6s cubic-bezier(.2, .8, .3, 1); }
body.play .p-blk.p-tile-link, body.play .p-plan-it, body.play .p-work { transition: transform .08s, box-shadow .08s; }
body.play .p-blk.p-tile-link:hover, body.play .p-plan-it:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--p-ink); }
@media (prefers-reduced-motion: reduce) { body.play .p-wrap > *, body.play .p-main > *, body.play .p-side > *, body.play .p-focus-wrap > *, body.play .p-learn-main > * { animation: none; } body.play .p-bar > span { transition: none; } }

/* the plan: one row per thing to do, the kind's colour on the left, minutes and XP on the right */
body.play .p-planblk { display: flex; flex-direction: column; gap: 12px; }
body.play .p-plan { display: flex; flex-direction: column; gap: 10px; }
body.play .p-plan-it { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop-sm); background: var(--p-surface); color: var(--p-ink); text-decoration: none; border-left-width: 8px; animation-delay: calc(.05s * var(--i, 0)); }
body.play .p-plan-it.is-pink { border-left-color: var(--p-pink-strong); } body.play .p-plan-it.is-lav { border-left-color: var(--p-lav-strong); } body.play .p-plan-it.is-blue { border-left-color: var(--p-blue-strong); }
body.play .p-plan-ic { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: var(--p-border); border-radius: 12px; background: var(--p-cream); }
body.play .p-plan-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } body.play .p-plan-main b { font-family: var(--p-display); font-weight: 600; font-size: 18px; } body.play .p-plan-main small { font-weight: 700; font-size: 13px; color: var(--p-muted); }
body.play .p-plan-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { body.play .p-plan-it { flex-wrap: wrap; } body.play .p-plan-main { flex-basis: calc(100% - 52px); } body.play .p-plan-meta { width: 100%; justify-content: flex-start; padding-left: 52px; } }

/* the scoreboard: a ring, grade bars, weakest lectures, work on next */
body.play .p-h3 { font-size: 16px; margin: 0 0 8px; }
body.play .p-score { display: flex; flex-direction: column; gap: 18px; }
body.play .p-score-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
body.play .p-score-nums { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
body.play .p-pring { --p: 0; width: 120px; height: 120px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: var(--p-border); box-shadow: var(--p-drop); box-sizing: border-box;
  background: conic-gradient(var(--p-ring-c, var(--p-lav-strong)) calc(var(--p) * 1%), var(--p-surface) 0); }
body.play .p-pring::before { content: ''; position: absolute; width: 84px; height: 84px; border-radius: 50%; background: var(--p-surface); border: var(--p-border); box-sizing: border-box; }
body.play .p-pring { position: relative; } body.play .p-pring b { position: relative; font-family: var(--p-display); font-size: 26px; }
body.play .p-pring.is-green { --p-ring-c: var(--p-green-strong); } body.play .p-pring.is-red { --p-ring-c: var(--p-red-strong); } body.play .p-pring.is-gold { --p-ring-c: var(--p-gold-strong); } body.play .p-pring.is-lav { --p-ring-c: var(--p-lav-strong); }
body.play .p-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
body.play .p-gbar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
body.play .p-gbar b { font-family: var(--p-display); font-size: 16px; min-width: 42px; text-align: right; } body.play .p-gbar small { font-weight: 800; font-size: 12px; color: var(--p-muted); min-width: 40px; }
body.play .p-lab { font-weight: 800; font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.play .p-work { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border: var(--p-border); border-radius: var(--p-r-tile); background: var(--p-red); box-shadow: var(--p-drop-sm); }
body.play .p-work-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } body.play .p-work-main b { font-family: var(--p-display); font-weight: 600; font-size: 16px; } body.play .p-work-main small { font-weight: 700; font-size: 12px; color: var(--p-red-ink); }

/* add a lecture: the stepper in the play look (markup unchanged; verelect.css carries the layout) */
body.play .up-head h1 { font-size: 38px; }
body.play #ent .strip { margin-bottom: 8px; }
body.play .uf-step { padding: 20px 22px 24px; margin-bottom: 14px; border-top: var(--p-border); }
body.play .uf-step[data-state="locked"] { opacity: .75; box-shadow: none; background: var(--p-cream); }
body.play .uf-step[data-state="open"] { border-width: 3px; }
body.play .uf-step[data-state="open"] .uf-n { background: var(--p-blue-strong); color: var(--p-ink); }
body.play .uf-n { border-radius: 12px; }
body.play .uf-t { font-size: 24px; } body.play .uf-hint { font-weight: 700; color: var(--p-muted); }
body.play .uf-sum { font-weight: 800; } body.play .uf-sum-x { color: var(--p-blue-ink); }
body.play .uf-tile { border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop-sm); background: var(--p-surface); font-family: var(--p-display); font-weight: 600; font-size: 16px; transition: transform .08s, box-shadow .08s; }
body.play .uf-tile:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--p-ink); border-color: var(--p-ink); }
body.play .uf-tile[aria-checked="true"] { background: var(--p-blue); border-color: var(--p-ink); outline: 0; border-width: 3px; }
body.play .uf-drop { border: 3px dashed var(--p-ink); border-radius: var(--p-r); background: var(--p-cream); min-height: 200px; }
body.play .uf-drop.over { background: var(--p-blue); border-style: solid; }
body.play .uf-drop.locked { border-color: color-mix(in oklab, var(--p-ink) 35%, var(--p-cream)); color: var(--p-muted); }
body.play .uf-drop-t { font-family: var(--p-display); font-weight: 700; font-size: 26px; color: var(--p-ink); } body.play .uf-drop-r { font-weight: 700; color: var(--p-muted); }
body.play .uf-drop-ic { color: var(--p-blue-ink); }
body.play .uf-drop .uf-drop-btn { border: var(--p-border); border-radius: 999px; box-shadow: var(--p-drop-sm); font-family: var(--p-display); font-weight: 600; background: var(--p-surface); }
body.play .uf-file { border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop-sm); background: var(--p-surface); padding: 12px 14px; }
body.play .uf-bar { border: 2px solid var(--p-ink); border-radius: 999px; height: 12px; overflow: hidden; } body.play .uf-bar i { background: var(--p-green-strong); }
body.play .uf-out { border: var(--p-border); border-radius: var(--p-r-tile); box-shadow: var(--p-drop-sm); background: var(--p-surface); padding: 12px 14px; }
body.play .uf-out:has(input:checked) { background: var(--p-green); } body.play .uf-out.uf-always { background: var(--p-blue); }
body.play .uf-out-ic { color: var(--p-ink); } body.play .uf-out-b b { font-family: var(--p-display); font-weight: 600; font-size: 17px; } body.play .uf-out-b small { font-weight: 700; color: var(--p-muted); }
body.play .uf-out-tick { color: var(--p-green-ink); }
body.play #go { min-height: 52px; font-size: 18px; padding: 0 24px; }
body.play .uf-go-sub { font-weight: 800; color: var(--p-muted); }
body.play .uf-line { font-weight: 700; } body.play .uf-line[data-state="done"] .uf-line-t { color: var(--p-green-ink); }
body.play .uf-card { border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); background: var(--p-surface); }
body.play .uf-card[data-k="note"] { background: var(--p-blue); } body.play .uf-card[data-k="anki"] { background: var(--p-pink); } body.play .uf-card[data-k="qbank"] { background: var(--p-lav); }
body.play .uf-card h3 { font-family: var(--p-display); font-weight: 700; font-size: 22px; }
body.play .uf-done-t { font-family: var(--p-display); font-weight: 700; font-size: 32px; } body.play .uf-done-s { font-weight: 800; color: var(--p-muted); }
body.play .uf-count b { font-family: var(--p-display); font-size: 34px; }
body.play .uf-chip { border: var(--p-border); border-radius: 999px; font-weight: 800; }

/* the new pages set their own widths (p-wrap 1200, Learn 1120, focus 880); the existing views keep main's frame */
body.play main:has(> .view.on:is(#v-hub, #v-plan, #v-map, #v-learn, #v-quiz, #v-bank, #v-review, #v-league, #v-profile)) { max-width: none; padding: 0; }
/* the root behind the body: cream, light scheme, whatever the OS theme (the play look has no dark variant yet) */
html:has(> body.play) { background: #FBF7EE; color-scheme: light; }

/* ---- the bridge (Brief 3 §3.2) — teal is the bridge's own colour, so it can never look like "next" */
body.play .p-chip.is-teal { background: var(--p-teal); color: var(--p-teal-ink); }
body.play .p-bridge-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--p-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--p-surface); background: var(--p-teal-ink); border-radius: 999px; padding: 4px 12px; }
body.play .p-bridge-tag::before { content: ""; width: 14px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }
body.play .p-bridge-offer { margin-top: 20px; border: 3px solid var(--p-teal-ink); border-radius: var(--p-r); box-shadow: 0 6px 0 var(--p-teal-ink); background: var(--p-teal); padding: 22px; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.play .p-bridge-offer .p-h2 { margin: 0; color: var(--p-teal-ink); font-size: 24px; }
body.play .p-bridge-offer p { margin: 0; font-size: 17px; }
body.play .p-btn-bridge { background: var(--p-teal-strong); border-color: var(--p-teal-ink); box-shadow: 0 4px 0 var(--p-teal-ink); color: var(--p-ink); font-size: 18px; min-height: 56px; padding: 12px 26px; }
body.play .p-bridge-offer .p-btn-bridge { width: 100%; margin-top: 4px; }
body.play .p-btn-bridge:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--p-teal-ink); }
body.play .p-linkbtn { background: none; border: 0; padding: 6px 2px; font: inherit; font-weight: 800; color: var(--p-teal-ink); text-decoration: underline; cursor: pointer; align-self: center; }
body.play .p-bridge-mode { --p-accent: var(--p-teal-ink); }
body.play .p-quiz.is-bridge { border: 3px solid var(--p-teal-ink); box-shadow: 0 6px 0 var(--p-teal-ink); background: linear-gradient(var(--p-teal), var(--p-teal)) top / 100% 6px no-repeat, var(--p-surface); }
body.play .p-quiz.is-bridge .p-opt .p-key { background: var(--p-teal); border-color: var(--p-teal-ink); }
body.play .p-quiz.is-bridge .p-opt.is-sel { background: var(--p-teal); outline: 3px solid var(--p-teal-ink); }
body.play .p-quiz.is-bridge .p-opt.is-right .p-key { background: var(--p-green-strong); } body.play .p-quiz.is-bridge .p-opt.is-wrong .p-key { background: var(--p-red-strong); }
body.play .p-bridge-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px dashed var(--p-teal-ink); }
body.play .p-bridge-head .p-h2 { margin: 0; color: var(--p-teal-ink); font-size: 26px; }
body.play .p-bridge-head p { margin: 0; }
body.play .p-waiting { border: 2px dashed var(--p-muted); border-radius: var(--p-r-tile); background: var(--p-cream); padding: 10px 14px; margin-bottom: 18px; }
body.play .p-waiting summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 800; }
body.play .p-waiting-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--p-ink); border-radius: 999px; padding: 2px 10px; background: var(--p-surface); }
body.play .p-waiting-lead { flex: 1 1 220px; min-width: 0; color: var(--p-muted); }
body.play .p-waiting-pick { font-size: 14px; color: var(--p-red-ink); }
body.play .p-waiting[open] .p-vin { margin-top: 10px; font-size: 15px; }
body.play .p-bridge-out, body.play .p-bridge-banner { display: flex; gap: 16px; align-items: flex-start; border: 3px solid var(--p-ink); border-radius: var(--p-r); box-shadow: var(--p-drop); padding: 18px 20px; margin-bottom: 18px; background: var(--p-gold); box-sizing: border-box; }
body.play .p-bridge-out.is-won, body.play .p-bridge-banner.is-won { background: var(--p-teal); border-color: var(--p-teal-ink); box-shadow: 0 5px 0 var(--p-teal-ink); }
body.play .p-bridge-out .p-h2 { margin: 0 0 4px; font-size: 26px; } body.play .p-bridge-out p { margin: 0; font-size: 17px; }
body.play .p-bridge-out.is-won .p-h2, body.play .p-bridge-banner.is-won b { color: var(--p-teal-ink); }
body.play .p-bridge-tick { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; background: var(--p-surface); }
body.play .is-won .p-bridge-tick { color: var(--p-teal-ink); }
body.play .p-bridge-banner div { display: flex; flex-direction: column; gap: 2px; } body.play .p-bridge-banner b { font-family: var(--p-display); font-size: 22px; }
body.play .p-quiz.is-fixed { border-color: var(--p-teal-ink); box-shadow: 0 4px 0 var(--p-teal-ink); }
@media (max-width: 600px) {
  body.play .p-bridge-offer .p-h2, body.play .p-bridge-head .p-h2, body.play .p-bridge-out .p-h2 { font-size: 21px; }
  body.play .p-btn-bridge { font-size: 16px; }
}
body.play .p-why { margin-top: 10px; border-top: 1px dashed var(--p-line); padding-top: 8px; }
body.play .p-why summary { cursor: pointer; font-weight: 800; }
body.play .p-why ul { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
body.play .p-why li { display: flex; gap: 10px; align-items: flex-start; }
body.play .p-why li b { flex: none; width: 26px; height: 26px; border: var(--p-border); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); background: var(--p-lav); }

/* ---- mock exam (Brief 3 §3.3): lavender like every quiz, with an ink tag and a clock */
body.play .p-mock-tag { display: inline-block; font-family: var(--p-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--p-surface); background: var(--p-ink); border-radius: 999px; padding: 4px 12px; }
body.play .p-mock-card { margin-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
body.play .p-mock-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body.play .p-mock-top .p-h2, body.play .p-mock-top p { margin: 0; }
body.play .p-mock-blocks { display: grid; gap: 10px; }
body.play .p-mock-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border: 2px solid var(--p-ink); border-radius: var(--p-r-tile); padding: 12px 14px; background: var(--p-lav); }
body.play .p-mock-block > div:first-child { display: flex; flex-direction: column; min-width: 0; } body.play .p-mock-block small { color: var(--p-muted); font-weight: 700; }
body.play .p-btn-mock { background: var(--p-surface); }
body.play .p-mock-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
body.play .p-mock-rules { margin: 4px 0; padding-left: 20px; display: grid; gap: 6px; }
body.play .p-mock-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; background: var(--p-cream); }
body.play .p-mock-bar .p-btn { margin-left: auto; }
body.play .p-mclock { display: inline-flex; align-items: center; gap: 6px; font-family: var(--p-display); font-size: 22px; border: var(--p-border); border-radius: 999px; padding: 4px 14px; background: var(--p-surface); }
body.play .p-mclock.is-low { background: var(--p-red); color: var(--p-red-ink); }
body.play .p-mgrid { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
body.play .p-mnum { width: 36px; height: 36px; border: 2px solid var(--p-ink); border-radius: 10px; background: var(--p-surface); font: inherit; font-weight: 800; cursor: pointer; position: relative; }
body.play .p-mnum.done { background: var(--p-lav); } body.play .p-mnum.cur { outline: 3px solid var(--p-lav-ink); outline-offset: 1px; }
body.play .p-mnum.flag::after { content: ""; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--p-gold-strong); border: 2px solid var(--p-ink); }
body.play .p-mock .p-opt.is-sel { background: var(--p-lav); outline: 3px solid var(--p-lav-ink); }
body.play .p-mock-nav { justify-content: space-between; margin-top: 14px; }
body.play .p-mrevs { display: grid; gap: 8px; }
body.play .p-mrev { border: 2px solid var(--p-ink); border-radius: var(--p-r-tile); padding: 10px 14px; background: var(--p-surface); }
body.play .p-mrev summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 700; }
body.play .p-mrev-n { font-family: var(--p-display); } body.play .p-mrev-lead { flex: 1 1 200px; min-width: 0; }
body.play .p-mrev[open] { display: grid; gap: 10px; } body.play .p-mrev .p-vin { font-size: 15px; }
@media (max-width: 600px) { body.play .p-mnum { width: 32px; height: 32px; } body.play .p-mock-bar .p-btn { margin-left: 0; } }

/* ---- mock history and the clock setting */
body.play .p-mock-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.play .p-mock-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; }
body.play .p-mock-name { display: flex; flex-direction: column; min-width: 0; }
body.play .p-mock-trend { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.play .p-spark { width: 160px; max-width: 100%; height: 40px; overflow: visible; }
body.play .p-spark.is-big { width: 100%; height: 140px; margin-top: 8px; }
body.play .p-spark-line { fill: none; stroke: var(--p-lav-ink); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
body.play .p-spark-dot { fill: var(--p-lav); stroke: var(--p-lav-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
body.play .p-spark-dot.is-last { fill: var(--p-lav-ink); }
body.play .p-spark-grid { stroke: var(--p-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
body.play .p-spark-days { display: flex; justify-content: space-between; font-size: 12px; color: var(--p-muted); font-weight: 700; }
@media (max-width: 700px) { body.play .p-mock-block { grid-template-columns: 1fr; } }

/* ---- confidence (Brief 3 §3.4): neutral, because how sure you are is neither right nor wrong */
body.play .p-conf { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
body.play .p-conf-q { font-weight: 800; margin-right: auto; }
body.play .p-confbtn { min-width: 116px; background: var(--p-surface); }
body.play .p-confbtn:not(:disabled):hover { background: var(--p-lav); }
body.play .p-quiz.is-bridge .p-confbtn:not(:disabled):hover { background: var(--p-teal); }
body.play .p-meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 4px; }
body.play .p-meter i { width: 4px; border: 1.5px solid var(--p-ink); border-radius: 2px; background: var(--p-surface); box-sizing: border-box; }
body.play .p-meter i:nth-child(1) { height: 6px; } body.play .p-meter i:nth-child(2) { height: 10px; } body.play .p-meter i:nth-child(3) { height: 14px; }
body.play .p-meter i.on { background: var(--p-ink); }
body.play .p-conf.is-mock { justify-content: flex-start; margin-top: 12px; }
body.play .p-conf.is-mock .p-conf-q { margin-right: 4px; }
body.play .p-confnote { margin-bottom: 18px; } body.play .p-confnote b { font-family: var(--p-display); }
body.play .p-work.is-lucky { background: var(--p-gold); } body.play .p-work.is-lucky small { color: var(--p-gold-ink); }
body.play .p-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { body.play .p-conf { justify-content: stretch; } body.play .p-conf-q { width: 100%; } body.play .p-confbtn { flex: 1 1 0; min-width: 0; padding: 10px 8px; } }
body.play .p-chipbtn.on .p-meter i { border-color: var(--p-surface); background: transparent; }
body.play .p-chipbtn.on .p-meter i.on { background: var(--p-surface); }
body.play .p-show-sm { display: none; }
@media (max-width: 600px) {
  body.play .p-hide-sm { display: none; } body.play .p-show-sm { display: inline; }
  body.play .p-mock-bar { flex-wrap: nowrap; gap: 8px; } body.play .p-mock-bar .p-btn { margin-left: auto; padding: 8px 12px; }
  body.play .p-mclock { font-size: 18px; padding: 3px 10px; }
}

/* ---- block readiness (Brief 3 §3.5): the headline on Home, the breakdown one tap deeper */
body.play .p-pring.is-big { width: 132px; height: 132px; } body.play .p-pring.is-big::before { width: 94px; height: 94px; }
body.play .p-pring.is-big b { font-size: 32px; }
body.play .p-ready { display: flex; flex-direction: column; gap: 14px; }
body.play .p-ready-top { display: flex; align-items: center; gap: 20px; color: inherit; text-decoration: none; border-radius: var(--p-r-tile); }
body.play .p-ready-top .p-h2 { margin: 6px 0 2px; font-size: 26px; } body.play .p-ready-top p { margin: 0; }
body.play .p-ready-more { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--p-blue-ink); text-decoration: underline; }
body.play .p-ready .p-h3 { margin: 0; }
body.play .p-ready-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ra; }
body.play .p-ready-act { counter-increment: ra; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; border: 2px solid var(--p-ink); border-radius: var(--p-r-tile); padding: 10px 12px; background: var(--p-surface); }
body.play .p-ready-act::before { content: counter(ra); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--p-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--p-display); font-weight: 700; background: var(--p-cream); box-sizing: border-box; }
body.play .p-ready-act-main { display: flex; flex-direction: column; min-width: 0; } body.play .p-ready-act-main small { color: var(--p-muted); font-weight: 700; }
body.play .p-ready-act.is-red { border-left: 8px solid var(--p-red-strong); } body.play .p-ready-act.is-gold { border-left: 8px solid var(--p-gold-strong); }
body.play .p-ready-act.is-blue { border-left: 8px solid var(--p-blue-strong); } body.play .p-ready-act.is-lav { border-left: 8px solid var(--p-lav-strong); }
body.play .p-sheet { position: fixed; inset: 0; z-index: 50; background: var(--p-scrim); overflow-y: auto; padding: 24px 16px; box-sizing: border-box; }
body.play .p-sheet[hidden] { display: none; }
body.play.p-sheet-open { overflow: hidden; }
body.play .p-sheet-in { max-width: 880px; margin: 0 auto; background: var(--p-cream); border: var(--p-border); border-radius: var(--p-r); box-shadow: var(--p-drop); padding: 20px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
body.play .p-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; } body.play .p-sheet-head .p-h2 { margin: 0; }
body.play .p-ready-sum { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; } body.play .p-ready-sum > div { flex: 1 1 260px; min-width: 0; } body.play .p-ready-sum .p-h2 { margin: 0 0 8px; }
body.play .p-rconds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.play .p-rcond { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; border: 2px solid var(--p-ink); border-radius: var(--p-r-tile); padding: 10px 12px; background: var(--p-surface); }
body.play .p-rcond-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; } body.play .p-rcond-main small { color: var(--p-muted); font-weight: 700; }
body.play .p-why-ready ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; } body.play .p-why-ready summary { cursor: pointer; }
@media (max-width: 640px) {
  body.play .p-ready-top { gap: 14px; } body.play .p-pring.is-big { width: 104px; height: 104px; } body.play .p-pring.is-big::before { width: 72px; height: 72px; } body.play .p-pring.is-big b { font-size: 24px; }
  body.play .p-ready-act { grid-template-columns: 28px minmax(0, 1fr); } body.play .p-ready-act > .p-chip, body.play .p-ready-act > .p-row { grid-column: 2; justify-self: start; }
  body.play .p-rcond { grid-template-columns: minmax(0, 1fr); } body.play .p-sheet { padding: 8px; } body.play .p-sheet-in { padding: 14px; }
}

/* ---- flag (Brief 3 §3.8) */
body.play .p-flag { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--p-line); }
body.play .p-flag .p-linkbtn { color: var(--p-muted); font-size: 14px; }
body.play .p-flag.is-done { color: var(--p-muted); font-weight: 700; font-size: 14px; }
body.play .p-flag-form { display: grid; gap: 10px; margin-top: 8px; }
body.play .p-flag-form fieldset { border: 0; margin: 0; padding: 0; }
body.play .p-flag-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; margin-top: 6px; }
body.play .p-flag-r { display: flex; align-items: center; gap: 8px; border: 2px solid var(--p-ink); border-radius: 12px; padding: 8px 10px; background: var(--p-surface); cursor: pointer; font-weight: 700; }
body.play .p-flag-r:has(input:checked) { background: var(--p-lav); }
body.play .p-flag-form textarea { width: 100%; box-sizing: border-box; border: 2px solid var(--p-ink); border-radius: 12px; padding: 8px 10px; font: inherit; }

/* ---- Friends (Brief 3 §3.10) */
body.play .p-weekrows { display: grid; gap: 6px; }
body.play .p-weekrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(110px, auto); gap: 10px; align-items: baseline; }
body.play .p-weekrow b { font-family: var(--p-display); font-size: 20px; text-align: right; } body.play .p-weekrow small { text-align: right; font-weight: 800; }
body.play .p-duels, body.play .p-members { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
body.play .p-duel, body.play .p-group, body.play .p-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border: 2px solid var(--p-ink); border-radius: var(--p-r-tile); padding: 10px 12px; background: var(--p-surface); }
body.play .p-duel.is-to_play { background: var(--p-gold); } body.play .p-duel.is-result { background: var(--p-lav); }
body.play .p-duel-main, body.play .p-group-main, body.play .p-member-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 220px; }
body.play .p-duel-main small, body.play .p-group-main small, body.play .p-member-main small { color: var(--p-muted); font-weight: 700; }
body.play .p-duel-res { font-family: var(--p-display); font-weight: 700; }
body.play .p-group { margin-top: 10px; }
body.play .p-code { font-family: var(--p-display); font-weight: 700; letter-spacing: .12em; border: 2px dashed var(--p-ink); border-radius: 10px; padding: 3px 10px; background: var(--p-cream); }
body.play .p-code.is-big { font-size: 26px; padding: 6px 14px; }
body.play .p-codebox { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body.play .p-head-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
body.play .p-groupforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
body.play .p-gform { display: flex; flex-direction: column; gap: 8px; border: 2px dashed var(--p-line); border-radius: var(--p-r-tile); padding: 12px; }
body.play .p-gform .p-h3 { margin: 0; } body.play .p-gform label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 14px; }
body.play .p-gform input { border: 2px solid var(--p-ink); border-radius: 10px; padding: 8px 10px; font: inherit; }
body.play .p-gform .p-btn { align-self: flex-start; }
body.play .p-dslecs { border: 0; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
body.play .p-duelrows { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
body.play .p-duelrows li > span:not(.p-mrev-lead) { margin-left: 10px; font-weight: 800; white-space: nowrap; }
body.play .p-goal .p-goal-line { font-size: 18px; margin: 4px 0 8px; }
body.play .p-duelnote { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
body.play .p-focus-wrap > a.p-small { display: inline-block; margin-bottom: 10px; }
body.play .p-member-main > .p-chip, body.play .p-duel-main > .p-chip { align-self: flex-start; }

/* ================================================================ five destinations (Brief 3 §5, owner 2026-10-12)
   One nav: along the top on a wide screen; a bottom bar within thumb reach on a phone. Every target is 44px or more,
   and nothing needs hover. */
body.play .p-tab-ic { display: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 720px) {
  body.play .p-hud-in { padding-top: 10px; padding-bottom: 10px; gap: 8px 10px; }
  body.play .p-brand-logo { height: 52px; }
  body.play .p-stats { margin-left: auto; gap: 6px; flex-wrap: nowrap; }
  body.play .p-stat { height: 44px; padding: 0 10px; } body.play .p-stat .p-mini { display: none; }
  body.play .p-hud .p-add { display: none; }                         /* on a phone, Add a lecture lives on Home and Learn */
  body.play .p-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--p-cream); border-top: var(--p-border);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  body.play .p-tabs .p-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; flex-wrap: nowrap; }
  body.play .p-tabs .p-nav a { position: relative; flex-direction: column-reverse; justify-content: center; gap: 2px; min-height: 58px; padding: 4px 2px; border-radius: 14px;
    font-family: var(--p-body); font-size: 12px; font-weight: 800; }
  body.play .p-tabs .p-tab-ic { display: block; }
  body.play .p-tabs .p-nav a:hover { background: transparent; border-color: transparent; }
  body.play .p-tabs .p-nav a[aria-current="page"] { background: var(--p-ink); color: var(--p-cream); }
  body.play .p-tabs .p-badge { position: absolute; top: 2px; right: calc(50% - 26px); min-width: 20px; height: 20px; font-size: 11px; }
  body.play:has(.p-tabs) footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.play.p-focus-on .p-tabs { display: none; }
}

/* ---- Home: Continue, a question in two taps */
body.play .p-continue { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--p-ink); min-height: 88px; }
body.play .p-continue-ic { flex: none; width: 56px; height: 56px; border-radius: 50%; border: var(--p-border); background: var(--p-green-strong); box-shadow: var(--p-drop-sm); display: inline-flex; align-items: center; justify-content: center; }
body.play .p-continue-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.play .p-continue-main b { font-family: var(--p-display); font-size: 22px; }
body.play .p-continue-main small { font-weight: 800; color: var(--p-green-ink); }
body.play .p-challenges { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } body.play .p-challenges p { margin: 0; }

/* ---- Learn: Notes | Map */
body.play .p-seg { display: inline-flex; border: var(--p-border); border-radius: 999px; padding: 3px; gap: 3px; background: var(--p-surface); margin-bottom: 14px; }
body.play .p-seg-b { min-height: 44px; min-width: 96px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: inherit; font-family: var(--p-display); font-weight: 700; font-size: 16px; color: var(--p-ink); cursor: pointer; }
body.play .p-seg-b.on { background: var(--p-ink); color: var(--p-cream); }
body.play .p-notes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
body.play .p-note { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; border: 2px solid var(--p-ink); border-radius: var(--p-r-tile); padding: 10px 12px; background: var(--p-surface); }
body.play .p-note-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; } body.play .p-note-main b { overflow-wrap: anywhere; }
body.play .p-note-main small { color: var(--p-muted); font-weight: 700; }
@media (max-width: 720px) { body.play .p-note { grid-template-columns: minmax(0, 1fr) auto; } body.play .p-note > .p-row { grid-column: 1 / -1; } }
body.play .p-lucky { margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; } body.play .p-lucky p { margin: 0; }
body.play .p-lucky-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
body.play .p-backlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; margin-bottom: 6px; }

/* ---- phone first: every target 44 px or more (Brief 3 §5.3), nothing told only on hover */
body.play .p-switch { width: 58px; height: 44px; border: 0; background: transparent; }
body.play .p-switch::before { content: ""; position: absolute; left: 2px; right: 2px; top: 7px; height: 30px; border: var(--p-border); border-radius: 999px; background: var(--p-surface); box-sizing: border-box; }
body.play .p-switch.on { background: transparent; } body.play .p-switch.on::before { background: var(--p-blue); }
body.play .p-switch span { top: 12px; left: 7px; z-index: 1; } body.play .p-switch.on span { left: 31px; }
body.play .lc-marks { display: none; }
@media (max-width: 720px) {
  body.play .p-tabs .p-nav li { display: flex; } body.play .p-tabs .p-nav a { width: 100%; }
  body.play .p-brand { min-height: 44px; }
  body.play .p-btn-sm, body.play .p-chipbtn, body.play .p-toc-a { min-height: 44px; }
  body.play input:not([type=radio]):not([type=checkbox]):not([type=hidden]), body.play select { min-height: 44px; }
  body.play footer a, body.play #theme { display: inline-flex; align-items: center; min-height: 44px; }
  body.play .btn { min-height: 44px; } body.play #cal-prev, body.play #cal-next { min-width: 44px; }
  body.play .lrow .links a, body.play #all-link a { display: inline-flex; align-items: center; min-height: 44px; }
  body.play .lc-lec { display: none; } body.play .lc-marks { display: flex; gap: 2px; flex-wrap: wrap; }   /* the list below links each one */
  body.play .p-lab { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
}
@media (max-width: 720px) {
  body.play footer a, body.play #theme, body.play .p-chipbtn, body.play .lrow .links a { min-width: 44px; justify-content: center; }
  body.play .p-wrap > .p-small > a:only-child, body.play .p-blk .p-small > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
  body.play .p-why summary, body.play .p-why-ready summary, body.play .p-waiting summary { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 720px) {
  body.play .p-fbar-in { flex-wrap: nowrap; padding: 10px 16px; gap: 10px; }
  body.play .p-fprog { flex: 1 1 auto; } body.play .p-fprog-l span:first-child { overflow: hidden; text-overflow: clip; }
}
body.play .p-nograde { margin: 0 0 14px; }

/* ---- the logged-out app (experience brief v2 §2): what you could press, greyed, with a lock, one line and Unlock */
body.play .p-locked { position: relative; }
body.play .p-locked > :not(.p-lockveil) { filter: grayscale(1); opacity: .35; user-select: none; }
body.play .p-lockveil { position: absolute; inset: 0; z-index: 3; padding: 12px; box-sizing: border-box; border-radius: inherit; background: color-mix(in oklab, var(--p-ink) 7%, transparent); }
body.play .p-lockveil-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: var(--p-border); border-radius: var(--p-r-tile);
  background: var(--p-surface); box-shadow: var(--p-drop-sm); }
body.play .p-lockveil-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--p-cream); border: var(--p-border); display: inline-flex; align-items: center; justify-content: center; color: var(--p-ink); box-sizing: border-box; }
body.play .p-lockveil-t { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.play .p-lockveil-t b { font-family: var(--p-display); font-size: 16px; } body.play .p-lockveil-t small { font-weight: 700; font-size: 13px; color: var(--p-muted); line-height: 1.35; }
body.play .p-lockveil .p-btn { flex: none; }
body.play .p-locked { min-height: 128px; }
body.play .p-locked.p-wtab, body.play .p-locked.p-btn { min-height: 0; }
body.play .p-demo-tag { background: var(--p-gold); }
@media (max-width: 720px) {
  body.play .p-hud .p-demo-tag { display: none; }
  body.play .p-hud .p-demo-in, body.play .p-hud .p-demo-go { min-height: 44px; }
}
body.play .p-locked-sm { filter: grayscale(1); opacity: .45; }
@media (max-width: 720px) { body.play .p-fbar .p-demo-in, body.play .p-fbar .p-demo-go { min-height: 44px; padding: 0 12px; } }
body.play #v-auth .small a { white-space: nowrap; }          /* a link never breaks across lines in the fine print */
body.play .p-lockveil.is-quiet { display: flex; justify-content: flex-end; align-items: flex-start; }
body.play .p-locked:has(> .p-lockveil.is-quiet) { min-height: 0; }
body.play .p-rcond .p-chip { white-space: normal; text-align: left; }      /* a long status wraps rather than spill */

/* ---- experience brief v2 §3: a guideline that differs from the lecture is said inline, plainly labelled */
body.play .p-note-html .callout-drift .callout-icon { display: none; }
body.play .p-note-html .callout-drift .callout-body::before { content: "Current guidance"; display: block; font-family: var(--p-display); font-weight: 700;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--p-blue-ink); margin-bottom: 2px; }

/* ---- skills first (experience brief v2 §4): each body system's readiness and its three skills; XP a quiet record */
body.play .p-skills { display: grid; gap: 6px; }
body.play .p-skill { display: grid; grid-template-columns: minmax(96px, auto) 1fr 44px; gap: 10px; align-items: center; }
body.play .p-skill-name { font-weight: 700; font-size: 14px; } body.play .p-skill-name small { font-weight: 800; color: var(--p-muted); margin-left: 2px; }
body.play .p-skill b { font-family: var(--p-display); text-align: right; }
body.play .p-systems { display: flex; flex-direction: column; gap: 14px; }
body.play .p-system { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--p-line); }
body.play .p-system:first-of-type { border-top: 0; padding-top: 0; }
body.play .p-system-top { display: flex; align-items: center; gap: 14px; }
body.play .p-system-top .p-pring { width: 72px; height: 72px; } body.play .p-system-top .p-pring::before { width: 50px; height: 50px; }
body.play .p-system-top .p-pring b { font-size: 16px; }
body.play .p-system-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } body.play .p-system-main b { font-family: var(--p-display); font-size: 18px; }
body.play .p-system-main small { font-weight: 700; color: var(--p-muted); }
body.play .p-ready .p-skills { margin: -2px 0 2px; }
body.play .p-xprules { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
body.play .p-xprules b { display: inline-block; min-width: 76px; font-family: var(--p-display); }

/* ---- exam dates and targets (experience brief v2 §5) */
body.play .p-coming { display: flex; flex-direction: column; gap: 10px; }
body.play .p-exams { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.play .p-exam { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: var(--p-r-tile); background: var(--p-surface); }
body.play .p-exam-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
body.play .p-exam-main b { font-family: var(--p-display); font-size: 17px; } body.play .p-exam-main small { font-weight: 700; font-size: 13px; }
body.play .p-cap { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
body.play .p-cap select, body.play .p-examf select, body.play .p-examf input { min-height: 44px; border: 1px solid var(--p-line); border-radius: 10px; padding: 0 10px; font: inherit; background: var(--p-surface); color: var(--p-ink); }
body.play .p-examf { border-style: solid; }

/* ---- Home: what's wrong and what to do (experience brief v2 §6) */
body.play .p-more, body.play .p-weakblk { display: flex; flex-direction: column; gap: 8px; }
body.play .p-act2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--p-line); border-radius: var(--p-r-tile); background: var(--p-surface); }
body.play .p-act2-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
body.play .p-act2-main b { font-family: var(--p-display); font-size: 17px; } body.play .p-act2-main small { font-weight: 700; font-size: 13px; color: var(--p-muted); line-height: 1.4; }
body.play .p-behind-list { margin: 6px 0 4px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
body.play .p-behind-list b { font-family: var(--p-display); font-size: 18px; }

/* ---- Practise: choose without overwhelm (experience brief v2 §7) */
body.play .p-presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
body.play .p-picker { display: flex; flex-direction: column; gap: 14px; }
body.play .p-pickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
body.play .p-pickgrid label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 14px; }
body.play .p-pickgrid small { font-weight: 700; color: var(--p-muted); }
body.play .p-pickgrid select { min-height: 44px; width: 100%; border: var(--p-border); border-radius: 12px; padding: 0 10px; font: inherit; font-weight: 700; background: var(--p-surface); color: var(--p-ink); box-sizing: border-box; }
body.play .p-pickgrid select:disabled { opacity: .55; }
body.play .p-pickrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
body.play .p-pickrow .p-seg { margin: 0; }
body.play .p-pickrow small { flex-basis: 100%; font-weight: 700; }
body.play .p-pickgo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--p-line); padding-top: 12px; }
body.play .p-tablewrap { overflow-x: auto; }
body.play .p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.play .p-table th, body.play .p-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--p-line); white-space: nowrap; }
body.play .p-table th[scope="row"] { white-space: normal; font-weight: 800; }
body.play .p-table thead th { font-weight: 800; color: var(--p-muted); font-size: 13px; }
@media (max-width: 600px) { body.play .p-presets .p-btn { flex: 1 1 calc(50% - 10px); } body.play .p-pickgo .p-btn { width: 100%; } }
body.play .p-pickgrid .p-nograde { grid-column: 1 / -1; margin: 0; }

/* ---- the question screen (experience brief v2 §8): cross out, highlight, why I missed it, how others answered */
body.play .p-optrow { display: flex; align-items: stretch; gap: 8px; }
body.play .p-optrow > .p-opt { flex: 1 1 auto; min-width: 0; }
body.play .p-strike { flex: none; width: 44px; min-height: 44px; border: var(--p-border); border-radius: 14px; background: var(--p-surface); color: var(--p-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
body.play .p-strike[aria-pressed="true"] { background: var(--p-ink); color: var(--p-cream); border-color: var(--p-ink); }
body.play .p-optrow.is-struck .p-opt { opacity: .55; }
body.play .p-optrow.is-struck .p-opt-t { text-decoration: line-through; text-decoration-thickness: 2px; }
body.play .p-opt { -webkit-touch-callout: none; }
body.play mark.p-hlt { background: var(--p-gold); color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; }
body.play .p-tools-hint { margin: -4px 0 0; }
body.play .p-whyrow { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--p-line); }
body.play .p-why-done { margin: 10px 0 0; font-weight: 700; color: var(--p-muted); }
body.play .p-deciding { margin: 6px 0 0; padding: 8px 12px; border-left: 4px solid var(--p-ink); background: var(--p-cream); border-radius: 0 10px 10px 0; }
body.play .p-others { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--p-line); }
body.play .p-otherrow { display: grid; grid-template-columns: 22px 1fr 40px; gap: 8px; align-items: center; }
body.play .p-otherrow small { font-weight: 800; text-align: right; } body.play .p-otherrow.is-key b { color: var(--p-green-ink); }
body.play .p-otherrow.is-key .p-bar > span { background: var(--p-green-strong); }
body.play .p-fbar .p-demo-in, body.play .p-fbar .p-demo-go { white-space: nowrap; flex: none; }
@media (max-width: 420px) { body.play .p-fbar .p-fprog-l span:first-child { display: none; } body.play .p-fbar .p-fbar-in { gap: 8px; } }

/* ---- Learn: active recall (experience brief v2 §9) */
body.play .p-recall-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: var(--p-border); border-radius: var(--p-r-tile); background: var(--p-cream); }
body.play .p-recall-offer > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; }
body.play .p-recall-offer small { font-weight: 700; color: var(--p-muted); }
body.play .p-recall { display: flex; flex-direction: column; gap: 8px; }
body.play .p-recall-text { width: 100%; min-height: 160px; box-sizing: border-box; border: var(--p-border); border-radius: 12px; padding: 12px; font: inherit; font-size: 17px; line-height: 1.55; background: var(--p-surface); color: var(--p-ink); resize: vertical; }
body.play .p-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
body.play .p-cmp-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--p-line); border-radius: var(--p-r-tile); background: var(--p-surface); }
body.play .p-cmp-text { white-space: pre-wrap; font-size: 16px; line-height: 1.55; }
body.play mark.p-miss { background: var(--p-gold); color: inherit; border-radius: 3px; padding: 0 1px; }
body.play mark.p-hit { background: transparent; color: inherit; text-decoration: underline; text-decoration-color: var(--p-green-strong); text-decoration-thickness: 3px; text-underline-offset: 3px; }
body.play .p-concepts { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
body.play .p-concepts p { margin: 0; }
body.play .p-rates3 .p-rate { min-height: 52px; }
body.play .p-recall-line { margin: 0; }
body.play .p-lsum { display: flex; flex-direction: column; gap: 8px; }
body.play .p-lsum p { margin: 0; }
body.play .p-recall-offer .p-linkbtn, body.play .p-recall .p-linkbtn, body.play .p-recall-line .p-linkbtn { min-height: 44px; display: inline-flex; align-items: center; }

/* owner 2026-10-12: the late-night line, wherever XP shows */
.p-night { margin: 8px 0 12px; }
