/* Playful practice (design "FluentPlex Playful Practice"): the games (playful/show, playful_round_controller.js) and the
   word pictures (Playful::Pictures), in the page's theme: pictures colored by role (a accent, g green, p peach, o gold,
   k ink, s sand). Tiles and places are 56px or more; no timers; feedback that never shames. */

.playful, .practice--playful, .pp-sheet { --pp-a: var(--clay); --pp-g: var(--green); --pp-p: var(--peach); --pp-o: var(--gold); --pp-k: var(--ink); --pp-s: var(--sand); }

/* ---- word pictures ---- */
.pp-pic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--pp-s); border-radius: 22%; overflow: hidden; aspect-ratio: 1; }
.pp-pic svg { width: 86%; height: 86%; }
.pp-pic .a { fill: var(--pp-a); } .pp-pic .g { fill: var(--pp-g); } .pp-pic .p { fill: var(--pp-p); }
.pp-pic .o { fill: var(--pp-o); } .pp-pic .k { fill: var(--pp-k); } .pp-pic .s { fill: var(--pp-s); }
.pp-pic .la, .pp-pic .lg, .pp-pic .lp, .pp-pic .lo, .pp-pic .lk, .pp-pic .ls { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pp-pic .sa, .pp-pic .sg, .pp-pic .sp, .pp-pic .so, .pp-pic .sk, .pp-pic .ss { stroke-linecap: round; stroke-linejoin: round; }
.pp-pic .la, .pp-pic .sa { stroke: var(--pp-a); } .pp-pic .lg, .pp-pic .sg { stroke: var(--pp-g); } .pp-pic .lp, .pp-pic .sp { stroke: var(--pp-p); }
.pp-pic .lo, .pp-pic .so { stroke: var(--pp-o); } .pp-pic .lk, .pp-pic .sk { stroke: var(--pp-k); } .pp-pic .ls, .pp-pic .ss { stroke: var(--pp-s); }

/* ---- the game screen ---- */
.playful { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 18px; padding-block: 8px 40px; }
.playful__head { display: flex; align-items: center; gap: 14px; }
.playful__close { flex: none; width: 56px; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; text-decoration: none; }
.playful__close:hover { border-color: var(--ink); text-decoration: none; }
.playful__title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.playful__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 4vw, 32px); line-height: 1; }
.playful__progress { display: flex; gap: 5px; }
.playful__seg { flex: 1; height: 8px; border-radius: 999px; background: var(--line); }
.playful__seg.is-done { background: var(--green); }
.playful__seg.is-now { background: var(--clay); flex: 2; }
.playful__sound { flex: none; min-height: 56px; min-width: 56px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--green); background: var(--green-soft);
  color: var(--green-deep, var(--green)); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.playful__sound .playful__sound-x { display: none; }
.playful__sound.is-off { border-color: var(--line); background: var(--card); color: var(--text-muted); }
.playful__sound.is-off .playful__sound-wave { display: none; }
.playful__sound.is-off .playful__sound-x { display: inline; }
@media (max-width: 600px) { .playful__sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .playful__sound { padding: 0; justify-content: center; } }

.playful__main { display: flex; flex-direction: column; gap: 18px; outline: none; }
.playful__prompt { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 5vw, 48px); padding: 22px; border-radius: 22px;
  background: var(--card); border: 1.5px solid var(--line); flex-wrap: wrap; text-align: center; }
.playful__prompt:has(> .playful__ask:only-child) { background: none; border: 0; padding: 0; justify-content: flex-start; text-align: start; }
.playful__picture { width: clamp(100px, 22vw, 150px); }
.playful__prompt-side { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 320px; }
.playful__prompt-word { font-size: clamp(44px, 9vw, 64px); line-height: 1.1; }
.playful__listen { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--clay); color: var(--text-on-accent, #fff);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 color-mix(in srgb, var(--clay) 70%, #000); }
.playful__listen svg { width: 34px; height: 34px; }
.playful__listen:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--clay) 70%, #000); }
.playful__listen--sm { width: 52px; height: 52px; box-shadow: 0 3px 0 color-mix(in srgb, var(--clay) 70%, #000); }
.playful__listen--sm svg { width: 24px; height: 24px; }
.playful__meaning { margin: 0; font-family: var(--font-serif); font-size: 22px; line-height: 1.25; }
.playful__ask { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.45; }
.playful__wave { display: inline-block; width: 30px; height: 18px; background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 7px); border-radius: 2px; }

/* slots (build, order) */
.playful__board { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.playful__slots { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.playful__slots--build:dir(rtl) { gap: 0; }
.playful__slot { position: relative; min-width: clamp(64px, 14vw, 92px); height: clamp(72px, 15vw, 96px); padding: 0 12px; border-radius: 16px; border: 2.5px dashed var(--line-strong, var(--line));
  background: transparent; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.playful__slots--build:dir(rtl) .playful__slot { border-radius: 0; margin-inline-start: -2.5px; }
.playful__slots--build:dir(rtl) .playful__slot:first-child { border-start-start-radius: 16px; border-end-start-radius: 16px; margin-inline-start: 0; }
.playful__slots--build:dir(rtl) .playful__slot:last-child { border-start-end-radius: 16px; border-end-end-radius: 16px; }
.playful__slot-text { font-size: clamp(32px, 7vw, 46px); line-height: 1.1; font-weight: 600; }
.playful__slots--order .playful__slot-text { font-size: clamp(22px, 5vw, 30px); }
.playful__pinyin { position: absolute; top: -26px; font-size: 15px; color: var(--text-muted); font-weight: 600; }
.playful__slots--build:has(.playful__pinyin) { margin-top: 26px; }
.playful__slot.is-right, .playful__zone.is-right { border: 2.5px solid var(--green); background: var(--card); }
.is-choosing .playful__slot:not(.is-right), .is-choosing .playful__zone:not(.is-right), .is-choosing .playful__basket,
.playful__slot.is-over, .playful__zone.is-over, .playful__basket.is-over { border-color: var(--clay); background: var(--clay-soft); box-shadow: 0 0 0 5px color-mix(in srgb, var(--clay) 18%, transparent); }
.playful__slot.is-hint, .playful__zone.is-hint, .playful__tile.is-hint, .playful__tone.is-hint, .playful__basket.is-hint { border-color: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 35%, transparent); animation: pp-pulse 1.4s ease-in-out infinite; }
.is-bouncing { animation: pp-bounce .55s ease-out; }

/* the tray of tiles */
.playful__tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 16px; border-radius: 22px; background: var(--sand); }
.playful__tile { min-width: 64px; min-height: 64px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 28px; font-weight: 700; line-height: 1; touch-action: none; user-select: none; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 var(--line); transition: transform .12s; }
.playful__tile .playful__tile-text { font-size: inherit; }
/* Latin letters and words in the interface's bold sans, as the design sets Turkish (its letters ç ğ ı ö ş ü). */
.playful .ar:is(:lang(tr), :lang(en)), .pp-practice .ar:is(:lang(tr), :lang(en)) { font-family: inherit; font-weight: 700; }
.playful__tile:hover:not(:disabled) { transform: translateY(-2px); }
.playful__tile.is-selected { border-color: var(--clay); box-shadow: 0 4px 0 var(--clay), 0 0 0 4px var(--clay-soft); transform: translateY(-4px); }
.playful__tile.is-used, .playful__tile.is-lifted { border-style: dashed; background: transparent; box-shadow: none; color: transparent; }
.playful__tile.is-used .playful__tile-text, .playful__tile.is-lifted .playful__tile-text { opacity: .3; color: var(--ink); }
.playful__tile.is-back { animation: pp-back .45s ease-out; }
.playful__ghost { position: fixed; top: 0; left: 0; z-index: 50; pointer-events: none; margin: 0; border-color: var(--clay); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .35); }

/* match */
.playful__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
@media (max-width: 600px) { .playful__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.playful__card { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); }
.playful__card:has(.is-right) { border-color: var(--green); }
.playful__card .pp-pic { width: 100%; }
.playful__wordcard { aspect-ratio: 1; border-radius: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 18% 22%, var(--line) 0 3px, transparent 4px), radial-gradient(circle at 82% 30%, var(--peach) 0 3px, transparent 4px),
              radial-gradient(circle at 26% 80%, var(--peach) 0 3px, transparent 4px), var(--sand); }
.playful__wordcard-meaning { font-family: var(--font-serif); font-size: 24px; }
.playful__zone { min-height: 60px; border-radius: 14px; border: 2.5px dashed var(--line-strong, var(--line)); background: transparent; font-size: 22px; font-weight: 700; color: var(--ink); }

/* sound: the basket */
.playful__basket { position: relative; width: min(100%, 300px); padding: 8px; border: 2.5px solid transparent; border-radius: 22px; background: transparent; }
.playful__basket-art { width: 100%; height: auto; display: block; }
.pp-basket { fill: var(--peach); } .pp-basket-rim { fill: var(--clay); } .pp-basket-line { stroke: color-mix(in srgb, #fff 55%, var(--peach)); }
.playful__basket-letter { position: absolute; inset: 20% 0 0; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 700; color: var(--ink); }
.playful__basket.is-right { border-color: var(--green); }

/* tones */
.playful__tones { width: 100%; padding: 16px; border-radius: 20px; border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.playful__tones.is-right { border-color: var(--green); }
.playful__tones-head { display: flex; align-items: baseline; gap: 10px; }
.playful__tones-char { font-size: 36px; }
.playful__tones-base { font-size: 20px; font-weight: 700; }
.playful__tones-state { margin-inline-start: auto; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.playful__tones.is-right .playful__tones-state { color: var(--green); }
.playful__tones-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.playful__tone { min-height: 72px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); box-shadow: 0 4px 0 var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.playful__tone.is-right { border-color: var(--green); background: var(--green-soft); }
.playful__tone-mark { display: block; width: 26px; height: 12px; border-top: 3px solid var(--ink); }
.playful__tone-mark--2 { border-top: 0; height: 3px; background: var(--ink); transform: rotate(-24deg); }
.playful__tone-mark--3 { border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 14px 14px; }
.playful__tone-mark--4 { border-top: 0; height: 3px; background: var(--ink); transform: rotate(24deg); }

/* feedback */
.playful__status { margin: 0; min-height: 1.5em; text-align: center; font-size: 17px; font-weight: 700; color: var(--text-muted); }
.playful__status.is-right { color: var(--green); }
.playful__status.is-hint { color: var(--ink); }
.playful__streak { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; }
.playful__streak::before { content: "★"; }
.playful__spark { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; pointer-events: none; animation: pp-burst 1.1s ease-out forwards; }
.playful__spark svg { width: 100%; height: 100%; fill: var(--gold); }
.playful__help { margin: 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.playful__done { display: flex; flex-direction: column; gap: 14px; }
.playful__built { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding: 20px; border-radius: 22px; border: 2.5px solid var(--green);
  background: var(--green-soft); box-shadow: inset 0 0 0 4px var(--card); }
.playful__built-word { font-size: clamp(48px, 10vw, 72px); line-height: 1.2; }
.playful__built-meaning { flex-basis: 100%; margin: 0; text-align: center; font-weight: 700; color: var(--green); }
.playful__built-meaning::before { content: "✓ "; }
.playful__again { display: inline-flex; align-items: center; gap: 8px; }
.playful__again svg { width: 20px; height: 20px; }
.playful__next { min-height: 60px; font-size: 18px; border-radius: 18px; }

/* the end of the round */
.playful__end { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; text-align: center; }
.playful__sky { position: relative; width: min(100%, 360px); height: 200px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--peach) 40%, transparent) 0%, transparent 65%); }
.playful__stars { display: flex; align-items: flex-end; gap: 10px; }
.playful__star { width: 64px; height: 64px; animation: pp-pop .5s ease-out both; }
.playful__star:nth-child(2) { width: 84px; height: 84px; }
.playful__star svg { width: 100%; height: 100%; fill: var(--line); stroke: var(--line-strong, var(--line)); stroke-width: 1.2; }
.playful__star.is-on svg { fill: var(--gold); stroke: var(--ink); }
.playful__sky.is-calm .playful__star { animation: none; }
.playful__orbit { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--peach); }
.playful__orbit--diamond { border-radius: 2px; transform: rotate(45deg); background: var(--green); }
.playful__end-title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(36px, 7vw, 56px); outline: none; }
.playful__end-line { margin: 0; color: var(--text-muted); font-size: 17px; }
.playful__learned { width: 100%; padding: 16px; border-radius: 22px; text-align: start; }
.playful__learned-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.playful__learned-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.playful__learned-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--sand); }
.playful__learned-item--sentence { grid-column: 1 / -1; }
.playful__learned-pic { width: 44px; height: 44px; flex: none; }
.playful__learned-listen { border: 0; border-radius: 12px; background: var(--card); color: var(--clay); display: inline-flex; align-items: center; justify-content: center; }
.playful__learned-listen svg { width: 20px; height: 20px; }
.playful__learned-text { display: flex; flex-direction: column; min-width: 0; }
.playful__learned-word { font-size: 22px; line-height: 1.3; }
.playful__learned-meaning { font-size: 13px; color: var(--text-muted); }
.playful__end-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .playful__end-actions { grid-template-columns: 1fr; } }
.playful__end-actions .btn { min-height: 60px; font-size: 18px; border-radius: 18px; justify-content: center; }
.playful__confetti { position: fixed; inset: 0 0 auto; height: 0; pointer-events: none; z-index: 40; }
.playful__piece { position: absolute; top: 0; width: 12px; height: 12px; animation: pp-fall 3.2s ease-in forwards; }
.playful__piece svg { width: 18px; height: 18px; fill: currentColor; }
.playful__piece--dot { border-radius: 50%; background: currentColor; }
.playful__piece--square { background: currentColor; border-radius: 2px; }
.playful__piece--diamond { background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.playful__piece--triangle { width: 0; height: 0; border-inline: 7px solid transparent; border-bottom: 12px solid currentColor; }
.playful__piece--c0 { color: var(--clay); } .playful__piece--c1 { color: var(--green); } .playful__piece--c2 { color: var(--peach); } .playful__piece--c3 { color: var(--gold); }

@keyframes pp-bounce { 0% { transform: translateY(-14px) scale(1.06); } 18% { transform: translateY(0) scale(.95); } 30% { transform: translateY(-4px) scale(1.02); } 45%, 100% { transform: none; } }
@keyframes pp-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--gold) 45%, transparent); } }
@keyframes pp-back { 0% { transform: translateY(-20px) rotate(-6deg); } 45% { transform: translateY(2px) rotate(1deg); } 60%, 100% { transform: none; } }
@keyframes pp-burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; } 100% { opacity: 0; } }
@keyframes pp-fall { 0% { transform: translate(0, -30px) rotate(0); opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx), var(--fall)) rotate(var(--rot)); opacity: 0; } }
@keyframes pp-pop { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.14); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .playful *, .playful *::before, .playful *::after, .playful__ghost { animation: none !important; transition: none !important; }
}

/* ---- Practice in the playful style (practice/playful) ---- */
.pp-practice { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.pp-practice__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pp-practice__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 7vw, 56px); line-height: 1; }
.pp-practice__lead { margin: 8px 0 0; color: var(--text-muted); }
.pp-practice__switch { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; }
.pp-trainer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 28px; border-radius: 24px; background: var(--ink); color: var(--text-on-dark, #fff); }
.pp-trainer__kicker { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.pp-trainer__title { margin: 6px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 4vw, 32px); }
.pp-trainer__play { min-height: 60px; padding: 0 30px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.pp-trainer__play:hover { color: var(--ink); text-decoration: none; filter: brightness(1.05); }
.pp-games { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .pp-games { grid-template-columns: 1fr; } }
.pp-game { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 24px; }
.pp-game--build { background: color-mix(in srgb, var(--clay) 12%, var(--card)); }
.pp-game--order { background: color-mix(in srgb, var(--green) 14%, var(--card)); }
.pp-game--match { background: color-mix(in srgb, var(--gold) 22%, var(--card)); }
.pp-game--sound { background: var(--sand); }
.pp-game__preview { min-height: 96px; margin-bottom: 8px; padding: 14px; border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; gap: 8px; }
.pp-game__row { display: inline-flex; gap: 8px; }
.pp-game__pic { width: 64px; }
.pp-game__tile { min-width: 44px; height: 46px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); box-shadow: 0 3px 0 var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.pp-game__tile.is-placed { border-color: var(--green); }
.pp-game__tile--word { font-size: 18px; }
.pp-game__arrow { color: var(--text-muted); }
.pp-game__listen { width: 56px; height: 56px; border-radius: 50%; background: var(--clay); color: var(--text-on-accent, #fff); display: inline-flex; align-items: center; justify-content: center; }
.pp-game__name { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.pp-game__what { margin: 0; font-size: 15px; color: var(--text-body); }
.pp-game__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pp-game__meta { display: flex; flex-direction: column; gap: 4px; }
.pp-game__stars { font-size: 18px; letter-spacing: 2px; color: var(--line-strong, var(--line)); }
.pp-game__stars .is-on { color: var(--gold); }
.pp-game__count { font-size: 13px; color: var(--text-muted); }
.pp-game__play { min-width: 76px; min-height: 56px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--text-on-dark, #fff); font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pp-game__play:hover { color: var(--text-on-dark, #fff); text-decoration: none; filter: brightness(1.2); }

/* ---- Practice style in Profile (profiles/_practice_style) ---- */
.pp-settings__locked { font-size: 14px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.pp-settings__celebrations { border: 0; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pp-settings__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 16px; background: var(--sand); }
.pp-settings__choice { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; padding: 8px; border-radius: 12px; cursor: pointer; text-align: center; }
.pp-settings__choice:has(:checked) { background: var(--ink); color: var(--text-on-dark, #fff); }
.pp-settings__choice:has(:focus-visible) { outline: 3px solid var(--clay); outline-offset: 2px; }
.pp-settings__choice-name { font-weight: 700; }
.pp-settings__choice-desc { font-size: 12px; opacity: .8; }
.pp-settings__note { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--sand); font-size: 14px; }

/* ---- a class's playful practice (teach/classrooms/_playful) ---- */
.pp-class { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 2px solid var(--green); border-radius: 24px; }
.pp-class__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pp-class__title { margin: 0; font-size: 19px; font-weight: 700; }
.pp-class__desc { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.pp-class__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .pp-class__options { grid-template-columns: 1fr; } }
.pp-class__option { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 16px; background: var(--sand); }
.pp-class__option-name { display: block; font-weight: 700; }
.pp-class__option-desc { display: block; font-size: 13px; color: var(--text-muted); }
.pp-class__switch { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.pp-class__state { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.pp-class__note { margin: 0; font-size: 13px; color: var(--text-muted); }
.pp-week { padding: 18px; border-radius: 22px; }
.pp-week__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.pp-week__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pp-week__table th, .pp-week__table td { padding: 10px 0; border-top: 1px solid var(--line); text-align: start; }
.pp-week__table th { font-weight: 700; padding-inline-end: 12px; }
.pp-week__table td { color: var(--text-body); }
.pp-week__stars { text-align: end !important; font-weight: 700; white-space: nowrap; }
.pp-week__stars span { color: var(--gold); }

/* the course's progress (practice/playful) */
.pp-course { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); }
.pp-course__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pp-course__kicker { flex-basis: 100%; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); }
.pp-course__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 26px; }
.pp-course__learned { color: var(--text-muted); font-size: 15px; }
.pp-course__bar { height: 12px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.pp-course__bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }

/* Admin → Playful course */
.pp-admin__stages { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 12px; }
.pp-admin__stage { min-width: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); text-align: center; text-decoration: none; }
.pp-admin__stage.is-current { background: var(--ink); color: var(--paper); }
.pp-admin__pic { width: 56px; }
.pp-admin__word { font-size: 22px; }
.pp-admin__meanings { font-size: 13px; color: var(--text-muted); }
.pp-admin tr.is-hidden td { opacity: .45; text-decoration: line-through; }
