/* Nexodyne play engine — mobile-first, works on phone, tablet and computer. */
@font-face { font-family: 'Orbitron Variablefont Wght'; src: url('../fonts/Orbitron-VariableFont_wght.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

:root {
  --navy: #282858; --yellow: #fedb71; --mint: #75c5a8; --mint-light: #bfffe6; --coral: #fb7d7e; --lavender: #e9d9ff;
  --paper: #f5f5f0; --ink: #1a1a1a; --muted: #4a4a68; --track: #fedb71;
  --edge: 2px solid var(--navy); --lift: 4px 4px 0 var(--navy);
  --display: 'Orbitron Variablefont Wght', Orbitron, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font-family: Geist, Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

.px-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.px-top { display: flex; align-items: center; gap: 12px; padding: 12px 0 8px; }
.px-back, .px-help, .px-sound { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: var(--edge); border-radius: 14px; background: #fff; color: var(--navy); text-decoration: none; font-size: 20px; font-weight: 700; box-shadow: 3px 3px 0 var(--navy); }
.px-top-title { flex: 1; min-width: 0; text-align: center; display: grid; }
/* The game or quiz name shows whole: up to two balanced lines instead of ending in "…" (all 86 names fit from 280px up) */
.px-top-game { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; color: var(--navy); text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.px-top-level { font-size: 13px; color: var(--muted); min-height: 16px; }
@media (max-width: 479px) { .px-top { gap: 8px; } }
@media (max-width: 359px) { .px-top { gap: 6px; } .px-top-game { font-size: 16px; } }
/* Narrowest phones: the buttons on one row, the name under them */
@media (max-width: 319px) { .px-top { flex-wrap: wrap; row-gap: 6px; } .px-top > .px-back { margin-right: auto; } .px-top > .px-top-title { order: 9; flex-basis: 100%; } }
.px-progress { display: flex; gap: 6px; justify-content: center; min-height: 10px; margin: 4px 0 10px; }
.px-progress span { width: 22px; height: 8px; border-radius: 999px; background: #dcdce6; }
.px-progress .is-done { background: var(--mint); }
.px-progress .is-now { background: var(--navy); }

.px-stage { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.px-loading { text-align: center; color: var(--muted); margin-top: 40px; }
.px-card { background: #fff; border: var(--edge); border-radius: 24px; box-shadow: 6px 6px 0 var(--navy); padding: 22px 20px; }
.px-intro { text-align: center; }
.px-intro-icon { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 24px; border: var(--edge); box-shadow: var(--lift); display: grid; place-items: center; color: var(--navy); }
.px-title { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 28px; line-height: 1.15; margin: 4px 0 6px; }
.px-meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.px-howto { font-size: 17px; line-height: 1.55; margin: 0 0 14px; color: var(--ink); }
.px-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.px-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.px-chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: var(--edge); background: #fff; color: var(--navy); font-weight: 700; font-size: 16px; cursor: pointer; }
.px-chip.is-on { background: var(--navy); color: var(--yellow); }
.px-select { width: 100%; min-height: 48px; border: var(--edge); border-radius: 14px; padding: 10px 14px; font: 600 16px Geist, Inter, sans-serif; color: var(--navy); background: #fff; }
.px-links { margin: 16px 0 0; text-align: center; font-size: 15px; }
.px-links a { color: var(--navy); font-weight: 700; }

.px-btn { min-height: 52px; padding: 14px 22px; border-radius: 999px; border: var(--edge); background: #fff; color: var(--navy); font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: var(--lift); transition: transform 0.08s, box-shadow 0.08s; }
.px-btn.is-primary { background: var(--navy); color: var(--yellow); }
.px-btn.is-small { min-height: 44px; padding: 8px 16px; font-size: 15px; display: block; margin: 0 auto; }
.px-btn:active, .px-key:active, .px-choice:active, .px-tile:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }
.px-start { width: 100%; margin-top: 20px; font-size: 19px; }
.px-actions { display: grid; gap: 10px; margin-top: 18px; }

/* Question area */
.px-question { text-align: center; padding: 10px 0 4px; }
.px-sum { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 13vw, 72px); color: var(--navy); letter-spacing: 0.02em; line-height: 1.1; }
.px-who { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: var(--yellow); }
.px-who.is-grownup { background: var(--lavender); color: var(--navy); border: 2px solid var(--navy); }
.px-display { margin: 6px auto 0; min-width: 160px; max-width: 260px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--navy); background: #fff; border: var(--edge); border-radius: 18px; padding: 8px 16px; }
.px-display.is-empty { color: #b8b8c8; }
.px-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.px-key { min-height: 64px; border-radius: 18px; border: var(--edge); background: #fff; box-shadow: var(--lift); font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--navy); cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; }
.px-key.is-ok { background: var(--mint); }
.px-key.is-del { background: var(--paper); font-size: 24px; }
.px-hint-btn { align-self: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 2px dashed var(--navy); background: transparent; color: var(--navy); font-weight: 700; cursor: pointer; }
.px-explain { background: var(--mint-light); border: var(--edge); border-radius: 18px; padding: 14px 16px; font-size: 17px; line-height: 1.5; text-align: center; }
.px-explain strong { font-family: var(--display); font-size: 24px; color: var(--navy); }

/* Choices */
.px-choices { display: grid; gap: 12px; }
.px-choices.cols-2 { grid-template-columns: 1fr 1fr; }
.px-choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
.px-choices.cols-4 { grid-template-columns: repeat(4, 1fr); }
.px-choice { min-height: 64px; padding: 12px; border-radius: 18px; border: var(--edge); background: #fff; box-shadow: var(--lift); font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; }
.px-choice .px-big { display: block; font-size: 44px; line-height: 1.1; }

/* Pictures (dots, ten-frames, arrays, jars, coins, tiles) */
.px-visual { display: flex; justify-content: center; }
.px-frames { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.px-frame { display: grid; grid-template-columns: repeat(5, 22px); gap: 4px; padding: 6px; border: 2px solid var(--navy); border-radius: 10px; background: #fff; }
.px-frame span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfd0dc; }
.px-frame .is-a { background: var(--navy); border-color: var(--navy); }
.px-frame .is-b { background: var(--coral); border-color: var(--coral); }
.px-frame .is-x { background: repeating-linear-gradient(45deg, #fff 0 4px, var(--coral) 4px 6px); border-color: var(--coral); }
.px-array { display: grid; gap: 6px; justify-content: center; }
.px-array-row { display: flex; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--paper); }
.px-array-row span { width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }

.px-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.px-tile { min-height: 96px; border-radius: 22px; border: var(--edge); background: #fff; box-shadow: var(--lift); font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--navy); cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; display: grid; place-items: center; }
.px-tile.is-picked { background: var(--yellow); }
.px-tile.is-used { visibility: hidden; }
.px-tile.is-goal { background: var(--mint); }
.px-ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.px-op { min-height: 60px; border-radius: 16px; border: var(--edge); background: var(--lavender); box-shadow: var(--lift); font-size: 30px; font-weight: 800; color: var(--navy); cursor: pointer; }
.px-op.is-picked { background: var(--navy); color: var(--yellow); }
.px-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.px-train { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; font-size: 40px; }
.px-car { min-width: 58px; height: 64px; padding: 0 6px; display: grid; place-items: center; background: #fff; border: var(--edge); border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); }
.px-car.is-gap { background: var(--yellow); border-style: dashed; }
.px-car.is-emoji { font-family: inherit; font-size: 36px; }

.px-coins { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px; }
.px-coin { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy); box-shadow: 2px 2px 0 var(--navy); }
.px-coin.is-gone { background: transparent; border-style: dashed; box-shadow: none; opacity: 0.4; }

.px-jar { width: 230px; max-width: 70vw; }
.px-dice { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.px-die { width: 86px; height: 86px; display: grid; place-items: center; font-size: 46px; background: #fff; border: var(--edge); border-radius: 20px; box-shadow: var(--lift); }
.px-big-text { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 9vw, 44px); color: var(--navy); text-align: center; line-height: 1.2; }
.px-timer { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 20vw, 96px); text-align: center; color: var(--navy); }
.px-breath { width: 200px; height: 200px; margin: 10px auto; border-radius: 50%; background: var(--mint-light); border: var(--edge); display: grid; place-items: center; font-weight: 700; color: var(--navy); font-size: 20px; transform: scale(0.7); transition: transform 4s ease-in-out; }
.px-breath.is-in { transform: scale(1); }
.px-rule { background: var(--paper); border: var(--edge); border-radius: 18px; padding: 14px 16px; font-size: 18px; line-height: 1.5; text-align: center; }
.px-rule strong { color: var(--navy); }
.px-cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.px-flip { min-height: 92px; border-radius: 14px; border: var(--edge); background: #fff; box-shadow: var(--lift); font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; padding: 8px; }
.px-flip.is-picked { background: var(--yellow); }

/* Summary */
.px-summary { text-align: center; }
.px-score { font-family: var(--display); font-weight: 700; font-size: 56px; color: var(--navy); }
.px-ask { background: var(--paper); border-radius: 16px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }
.px-rate .px-chip { flex: 1; min-width: 92px; }
.px-next { min-height: 20px; font-weight: 700; color: var(--navy); margin: 10px 0 0; }

/* Feedback toast: only the quizzes page (js/quiz-engine.js) still uses it; the games show the verdict in the page */
.px-toast { position: fixed; left: 50%; top: 84px; max-width: calc(100% - 32px); text-align: center; transform: translate(-50%, -12px); opacity: 0; visibility: hidden; padding: 12px 22px; border-radius: 999px; border: var(--edge); font-weight: 800; font-size: 18px; box-shadow: var(--lift); transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s; z-index: 20; pointer-events: none; }
.px-toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.px-toast.is-ok { background: var(--mint); color: var(--navy); }
.px-toast.is-no { background: var(--coral); color: var(--navy); }
.px-shake { animation: px-shake 0.35s; }
@keyframes px-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; }
@media (min-width: 720px) {
  .px-app { padding-top: 12px; }
  .px-key { min-height: 72px; }
}
/* ===================================================================================
   Library v2: pieces used by the newer games
   =================================================================================== */
.px-timer-sm { font-size: clamp(36px, 12vw, 56px); }
.px-timer.is-up { color: #b42318; }
.px-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; line-height: 1.5; }
.px-steps li { background: #fff; border: var(--edge); border-radius: 14px; padding: 10px 14px; }
.px-choice.is-picked { background: var(--yellow); }

/* Number Hunt */
.px-target { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 18vw, 88px); color: var(--navy); text-align: center; line-height: 1; }
.px-hunt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.px-hunt.is-big { grid-template-columns: repeat(5, 1fr); }
.px-hunt-cell { min-height: 60px; border-radius: 16px; border: var(--edge); background: #fff; box-shadow: var(--lift); font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--navy); cursor: pointer; transition: background-color 0.2s, transform 0.08s, box-shadow 0.08s; }
.px-hunt-cell.is-found { background: var(--mint); }
.px-hunt-cell.is-wrong { background: var(--coral); animation: px-shake 0.35s; }

/* Shop Keeper */
.px-shop-item { display: flex; align-items: center; justify-content: center; gap: 14px; }
.px-shop-emoji { font-size: 72px; line-height: 1; }
.px-tag { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--navy); background: var(--yellow); border: var(--edge); border-radius: 10px 10px 10px 26px; padding: 6px 18px 6px 22px; box-shadow: var(--lift); }
.px-tray { min-height: 72px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 10px; border: 2px dashed #9a9ab5; border-radius: 18px; background: #fff; }
.px-tray-empty { color: #9a9ab5; font-weight: 700; }
.px-tray-total { text-align: center; margin: -6px 0 0; font-weight: 700; color: var(--navy); min-height: 20px; }
.px-purse { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.px-money { width: 58px; height: 58px; border-radius: 50%; border: var(--edge); background: #dfe3ea; box-shadow: var(--lift); font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); cursor: pointer; }
.px-money.is-copper { background: #e7b07a; }
.px-tray .px-money { width: 46px; height: 46px; font-size: 16px; box-shadow: 2px 2px 0 var(--navy); }

/* Pizza Fractions */
.px-pizza { display: block; max-width: 100%; height: auto; }
.px-pizza.is-tap path { cursor: pointer; }
.px-pizza.is-tap path:focus-visible { outline: none; stroke-width: 5; }
.px-pizza-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.px-choice .px-pizza { margin: 0 auto 6px; }
.px-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; font-family: var(--display); font-weight: 700; }
.px-frac span:first-child { border-bottom: 0.09em solid currentColor; padding: 0 0.14em 0.06em; }
.px-frac span:last-child { padding-top: 0.06em; }

/* Bars (dice rolls, feeds) */
.px-bars { display: grid; gap: 8px; background: #fff; border: var(--edge); border-radius: 18px; padding: 12px 14px; }
.px-bars-title { margin: 0; font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.px-bar-row { display: grid; grid-template-columns: 110px 1fr 54px; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.px-bar { height: 16px; border-radius: 999px; background: #e6e6ee; overflow: hidden; }
.px-bar-fill { display: block; height: 100%; background: var(--mint); border-radius: 999px; transition: width 0.6s ease; }
.px-bar-fill.is-b { background: var(--coral); }
.px-bar-num { text-align: right; font-variant-numeric: tabular-nums; }

/* Secret Sort */
.px-shape { display: inline-block; vertical-align: middle; }
.px-sortboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.px-sortbox { border: var(--edge); border-radius: 18px; padding: 8px 10px 10px; min-height: 110px; }
.px-sortbox.is-yes { background: #e3f5ee; }
.px-sortbox.is-no { background: #ffe6e3; }
.px-sortbox-label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.px-sortbox-items { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* Logic Grid */
.px-clues { margin: 0; font-size: 18px; line-height: 1.5; background: var(--paper); border: var(--edge); border-radius: 18px; padding: 12px 14px 12px 36px; }
.px-lgrid-wrap { overflow-x: auto; }
.px-lgrid { border-collapse: separate; border-spacing: 6px; margin: 0 auto; }
.px-lgrid th { font-size: 14px; font-weight: 700; color: var(--navy); padding: 4px; text-align: center; }
.px-lgrid th[scope="row"] { text-align: right; padding-right: 8px; }
.px-lcell { width: 58px; height: 52px; border-radius: 12px; border: var(--edge); background: #fff; font-size: 26px; font-weight: 800; color: var(--navy); cursor: pointer; }
.px-lcell.is-no { background: #ffe6e3; color: #b42318; }
.px-lcell.is-yes { background: var(--mint); }

/* Rhymes, reading and words */
.px-pic { display: grid; justify-items: center; gap: 4px; padding: 14px 22px; background: #fff; border: var(--edge); border-radius: 20px; box-shadow: var(--lift); }
.px-pic .px-big { font-size: 64px; line-height: 1.1; }
.px-word { display: block; font-size: 18px; font-weight: 700; color: var(--navy); }
.px-draw { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.px-read { background: #fff; border: var(--edge); border-radius: 20px; padding: 16px 18px; box-shadow: var(--lift); }
.px-read h2 { font-family: var(--display); color: var(--navy); font-size: 22px; margin: 0 0 8px; }
.px-read p { font-size: 19px; line-height: 1.65; margin: 0; }
.px-built { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 10vw, 46px); color: var(--navy); text-align: center; background: #fff; border: var(--edge); border-radius: 18px; padding: 10px 14px; overflow-wrap: anywhere; }
.px-wb-row { display: grid; gap: 6px; }
.px-chain { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.px-chain-link { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 2px solid #c9c9d8; color: #6b6b85; background: #fff; }
.px-chain-link.is-done { border-color: var(--navy); background: var(--mint-light); color: var(--navy); }
.px-chain-link.is-now { border-color: var(--navy); background: var(--navy); color: var(--yellow); }
.px-order { display: grid; gap: 10px; }
.px-order-item { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; border: var(--edge); background: #fff; box-shadow: var(--lift); font-size: 17px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.px-order-item.is-picked { background: var(--mint-light); }
.px-order-num { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed #9a9ab5; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--navy); }
.px-order-item.is-picked .px-order-num { border-style: solid; border-color: var(--navy); background: var(--yellow); }
.px-peel { display: grid; gap: 8px; background: #fff; border: var(--edge); border-radius: 18px; padding: 14px 16px; }
.px-peel p { margin: 0; font-size: 17px; line-height: 1.5; }
.px-peel-tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; }

/* Focus & Memory */
.px-memtray { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: #e9c79a; border: var(--edge); border-radius: 24px; box-shadow: var(--lift); }
.px-memtray.is-big { grid-template-columns: repeat(5, 1fr); }
.px-memtray-item { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(28px, 9vw, 44px); background: #fff7ea; border-radius: 16px; }
.px-memtray-item.is-gap { background: rgba(255, 255, 255, 0.35); border: 2px dashed rgba(40, 40, 88, 0.35); }
.px-swatch { padding: 0 8px; border-radius: 8px; color: #fff !important; }
.px-swatch.is-green { background: #1f9d55; }
.px-swatch.is-red { background: #d93a3f; }
.px-go { display: block; width: min(70vw, 280px); aspect-ratio: 1; margin: 6px auto; border-radius: 50%; border: 4px solid var(--navy); background: #f0f0f4; cursor: pointer; touch-action: manipulation; transition: background-color 0.08s, box-shadow 0.15s; }
.px-go.is-green { background: #30c46c; }
.px-go.is-red { background: #e5484d; }
.px-go.is-tapped { box-shadow: 0 0 0 12px rgba(40, 40, 88, 0.18); }
.px-span { width: min(60vw, 220px); aspect-ratio: 1; margin: 10px auto; display: grid; place-items: center; border-radius: 28px; border: var(--edge); background: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(80px, 26vw, 128px); color: var(--navy); transition: background-color 0.15s; }
.px-span.is-on { background: var(--yellow); }
.px-change { display: grid; gap: 8px; padding: 10px; background: #fff; border: var(--edge); border-radius: 20px; }
.px-change-cell { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(22px, 8vw, 40px); border-radius: 12px; background: var(--paper); border: 2px solid transparent; padding: 0; line-height: 1; }
button.px-change-cell { cursor: pointer; }
.px-change-cell.is-answer { border: 3px solid #1f9d55; background: var(--mint-light); }
.px-change-cell.is-wrong { border: 3px solid #e5484d; }
.px-blink { height: 260px; border-radius: 20px; background: var(--navy); }
.px-patch { width: 160px; height: 110px; margin: 10px auto; border-radius: 20px; border: var(--edge); }
.px-stroop { text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(54px, 18vw, 92px); letter-spacing: 0.04em; -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; padding: 10px 0; }
.px-stroop.is-underlined { text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 10px; text-decoration-color: var(--navy); }
.px-ink { display: flex; align-items: center; justify-content: center; gap: 10px; }
.px-ink-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--navy); flex: none; }
.px-checklist { margin: 0; padding: 14px 16px 14px 36px; background: #fff; border: var(--edge); border-radius: 18px; font-size: 17px; line-height: 1.6; }
.px-stage.is-dim { background: #1b1b3d; border-radius: 24px; padding: 18px; }
.px-stage.is-dim .px-timer, .px-stage.is-dim .px-howto { color: #e9e9f5; }
.px-tallies { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.px-tally { display: grid; gap: 4px; justify-items: center; padding: 16px 10px; border-radius: 20px; border: 2px solid #4a4a7a; background: #26264f; color: #e9e9f5; font-weight: 700; cursor: pointer; }
.px-tally strong { font-family: var(--display); font-size: 40px; color: var(--yellow); }
.px-linkbtn { background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px; }
.px-stage.is-dim .px-linkbtn { color: #b8b8d8; }

/* Character */
.px-face { text-align: center; font-size: clamp(96px, 30vw, 140px); line-height: 1.1; }
.px-helps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.px-helps li { background: var(--lavender); border-radius: 14px; padding: 10px 14px; font-size: 16px; font-weight: 600; color: var(--navy); }
.px-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.px-ladder li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 2px solid #c9c9d8; border-radius: 14px; font-size: 16px; }
.px-ladder li.is-done { border-color: var(--navy); background: var(--mint-light); }
.px-ladder li.is-now { border-color: var(--navy); background: var(--yellow); font-weight: 700; }
.px-ladder-rung { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-weight: 800; }
.px-circles { position: relative; width: 230px; height: 116px; margin: 0 auto; }
.px-circles span:first-child { position: absolute; inset: 0; border: 2px dashed #9a9ab5; border-radius: 50%; display: grid; justify-items: center; align-items: start; padding-top: 9px; font-size: 11px; font-weight: 700; color: #6b6b85; text-transform: uppercase; letter-spacing: 0.06em; }
.px-circles span:last-child { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 110px; height: 56px; border-radius: 50%; background: var(--mint); border: var(--edge); display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--navy); text-transform: uppercase; text-align: center; line-height: 1.1; padding: 4px; }
.px-prompts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.px-prompts li { background: #fff; border: var(--edge); border-radius: 14px; padding: 12px 14px; font-size: 18px; font-weight: 600; color: var(--navy); }
.px-exhibit { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.25; text-align: center; color: var(--navy); background: #fff; border: 6px double var(--navy); border-radius: 6px; padding: 22px 16px; box-shadow: var(--lift); }
.px-ab { display: grid; gap: 10px; }
.px-ab span { background: #fff; border: var(--edge); border-radius: 14px; padding: 12px 14px; font-size: 18px; }
.px-ab strong { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.px-input { width: 100%; min-height: 50px; border: var(--edge); border-radius: 14px; padding: 10px 14px; font: 500 17px Geist, Inter, sans-serif; color: var(--ink); background: #fff; margin-bottom: 4px; }
.px-print-card { background: #fff; border: var(--edge); border-radius: 20px; padding: 18px 20px; box-shadow: var(--lift); display: grid; gap: 8px; }
.px-print-card h2 { font-family: var(--display); color: var(--navy); font-size: 24px; margin: 0 0 4px; }
.px-print-card p { margin: 0; font-size: 16px; line-height: 1.5; }
.px-print-sign { margin-top: 10px !important; padding-top: 14px; border-top: 2px dashed #c9c9d8; }

/* Media Smart */
.px-post { background: #fff; border: var(--edge); border-radius: 20px; padding: 12px 14px; box-shadow: var(--lift); }
.px-post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.px-post-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); display: grid; place-items: center; font-size: 18px; }
.px-post-who { font-weight: 800; color: var(--navy); }
.px-post-pic { font-size: 56px; text-align: center; background: var(--paper); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.px-post-text { margin: 0; font-size: 18px; line-height: 1.45; }
.px-headline { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(22px, 6.5vw, 30px); line-height: 1.25; color: var(--ink); background: #fff; border: var(--edge); border-left-width: 8px; border-radius: 14px; padding: 14px 16px; }
.px-feed { display: grid; gap: 10px; }
.px-feed-post { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 18px; border: var(--edge); background: #fff; box-shadow: var(--lift); cursor: pointer; color: var(--ink); }
.px-feed-post strong { display: block; font-size: 17px; line-height: 1.3; }
.px-feed-post small { font-size: 13px; color: var(--muted); font-weight: 700; }
.px-feed-post.is-drama { background: #fff3f2; }
.px-feed-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; font-size: 28px; }
.px-feed-post:active, .px-order-item:active, .px-hunt-cell:active, .px-money:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }

/* Games from the book (js/games/wisdom.js) */
.px-book { margin: -4px 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.px-book em { font-style: normal; font-weight: 700; color: var(--navy); }
.px-compass { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 8px; margin: 6px 0; text-align: center; }
.px-compass-n { grid-column: 1 / -1; justify-self: center; }
.px-compass-n, .px-compass-w, .px-compass-e { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--navy); background: var(--yellow); border: var(--edge); border-radius: 999px; padding: 8px 12px; }
.px-compass-c { width: 60px; height: 60px; border-radius: 50%; border: var(--edge); background: #fff; display: grid; place-items: center; color: var(--navy); }
.px-box { position: relative; width: 200px; height: 200px; margin: 24px auto 12px; background: var(--mint-light); border-radius: 6px; }
.px-box-side { position: absolute; background: #c9c9d8; border-radius: 999px; transition: background-color 0.4s ease; }
.px-box-side.is-left { left: -4px; top: -4px; bottom: -4px; width: 8px; }
.px-box-side.is-right { right: -4px; top: -4px; bottom: -4px; width: 8px; }
.px-box-side.is-top { top: -4px; left: -4px; right: -4px; height: 8px; }
.px-box-side.is-bottom { bottom: -4px; left: -4px; right: -4px; height: 8px; }
.px-box-side.is-on { background: var(--navy); }
.px-box-dot { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--navy); transition: transform 4s linear; z-index: 1; }
.px-box-dot.at-tl { transform: translate(0, 0); }
.px-box-dot.at-tr { transform: translate(200px, 0); }
.px-box-dot.at-br { transform: translate(200px, 200px); }
.px-box-dot.at-bl { transform: translate(0, 200px); }
.px-box-text { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; color: var(--navy); }
.px-box-text strong { font-family: var(--display); font-size: 19px; }
.px-box-count { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; font-size: 46px; line-height: 1; min-height: 46px; }
.px-jars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.px-jar-btn { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px 16px 28px 28px; border: var(--edge); background: #fff; box-shadow: var(--lift); color: var(--navy); cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; }
.px-jar-emoji { font-size: 32px; line-height: 1.15; }
.px-jar-name { font-weight: 800; font-size: 15px; }
.px-jar-count { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; font-size: 30px; line-height: 1.1; }
.px-stand { display: flex; align-items: center; gap: 14px; background: #fff; border: var(--edge); border-radius: 18px; padding: 12px 16px; box-shadow: var(--lift); }
.px-stand-sky { font-size: 46px; line-height: 1; }
.px-stand strong { display: block; font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; font-size: 20px; color: var(--navy); }
.px-stand small { font-size: 14px; font-weight: 700; color: var(--muted); }
.px-ledger { margin: 0; padding: 12px 16px; background: #fff; border: var(--edge); border-radius: 18px; display: grid; gap: 8px; font-size: 17px; }
.px-ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.px-ledger dt { font-weight: 700; color: var(--navy); }
.px-ledger dd { margin: 0; font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.px-quest { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.px-quest span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c9c9d8; background: #fff; display: grid; place-items: center; font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; font-size: 14px; color: var(--navy); }
.px-quest .is-done { background: var(--mint); border-color: var(--navy); }
.px-quest .is-now { background: var(--yellow); border-color: var(--navy); }
textarea.px-input { min-height: 120px; line-height: 1.5; resize: vertical; }
.px-mission { font-size: 20px !important; line-height: 1.5 !important; font-weight: 600; color: var(--navy); }
.px-jar-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }
/* Right or wrong, shown in the page (never on top of the content) */
.px-verdict { align-self: center; width: fit-content; max-width: 100%; margin: 0 auto; padding: 8px 18px; border-radius: 999px; border: var(--edge); box-shadow: var(--lift); font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--navy); text-align: center; animation: px-verdict-in 0.25s ease; }
.px-verdict.is-ok { background: var(--mint); }
.px-verdict.is-no { background: var(--coral); }
@keyframes px-verdict-in { from { opacity: 0; transform: translateY(4px); } }
.px-choices.is-done .px-choice { cursor: default; }
.px-choices.is-done .px-choice:not(.is-picked) { opacity: 0.5; }
.px-note.is-warn { color: #b42318; font-weight: 700; font-size: 15px; }
/* Long explanation titles and anything with numbers: the plain typeface */
.px-explain strong.is-plain { display: block; font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.35; }
.px-big-text.is-num { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; }

@media (max-width: 380px) {
  .px-hunt.is-big { grid-template-columns: repeat(4, 1fr); }
  .px-lcell { width: 48px; height: 46px; }
  .px-bar-row { grid-template-columns: 84px 1fr 46px; }
  .px-money { width: 52px; height: 52px; }
}

/* Print: only the plan or ladder card */
@media print {
  .px-top, .px-progress, .px-actions, .px-links, .px-btn, .px-toast, .px-sound, .px-read-btn { display: none !important; }
  .px-app { max-width: none; padding: 0; }
  .px-print-card { box-shadow: none; border-width: 1.5px; font-size: 13pt; }
}

/* Numbers children read use a plain, familiar typeface: the display font draws 7, 2 and 0 in unusual ways. */
.px-sum, .px-display, .px-key, .px-tile, .px-car, .px-target, .px-hunt-cell, .px-span, .px-frac, .px-tag, .px-money, .px-tally strong { font-family: Geist, Inter, system-ui, sans-serif; font-weight: 800; }

/* "Reduce motion" on the device: nothing moves, but colours and fades still ease,
   and the breathing guide brightens and dims instead of growing and shrinking. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, box-shadow, opacity !important; }
  .px-breath, .px-breath.is-in { transform: none; }
  .px-breath { transition-duration: 4s !important; transition-timing-function: ease-in-out !important; }
  .px-breath.is-in { background: #75c5a8; box-shadow: 0 0 0 16px rgba(117, 197, 168, .28); }
  .px-box-dot { display: none; } /* the box edges light up instead */
  .px-toast, .px-toast.is-show { transform: translate(-50%, 0); }
}

/* ===================================================================================
   Play engine v3 (2026-10-15): verdicts in the page, sound button, stars, family week
   =================================================================================== */
.px-sound { cursor: pointer; padding: 0; }
.px-sound[aria-pressed="false"] { background: var(--paper); color: var(--muted); }
.px-top-title { order: 0; }
/* the question just answered stays above the explanation, greyed out */
.px-asked { display: flex; flex-direction: column; gap: 12px; opacity: 0.62; pointer-events: none; }
.px-asked .px-actions, .px-asked .px-pad, .px-asked .px-hint-btn, .px-asked > .px-btn, .px-asked .px-read-btn, .px-asked .px-warn { display: none; }
.px-asked .px-choice.is-picked, .px-asked .px-choice.is-answer { opacity: 1; }
.px-verdict { scroll-margin: 16px; }
.px-verdict.is-no { background: #ffd6d2; }
/* the answer picked: green when right, red when wrong; the right one gets a green ring */
.px-choice:disabled { cursor: default; color: var(--navy); }
.px-choice.is-right { background: var(--mint); animation: px-pop 0.32s ease; }
.px-choice.is-wrong { background: #ffd6d2; border-color: #b42318; animation: px-shake 0.35s; }
.px-choice.is-answer { background: var(--mint-light); box-shadow: 0 0 0 4px #1f9d55, var(--lift); }
.px-choices.is-done .px-choice.is-answer { opacity: 1; }
.px-display.is-ok { background: var(--mint); }
.px-display.is-no { background: #ffd6d2; border-color: #b42318; }
@keyframes px-pop { 50% { transform: scale(1.06); } }
.px-warn { text-align: center; margin: 0; }

/* start screen: level and players fold away */
.px-more { margin-top: 14px; border: 2px solid #d6d6e2; border-radius: 16px; background: var(--paper); text-align: left; }
.px-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15px; }
.px-more summary::-webkit-details-marker { display: none; }
.px-more-change { flex: none; text-decoration: underline; font-size: 14px; }
.px-more[open] .px-more-change { visibility: hidden; }
.px-more-body { padding: 0 14px 14px; text-align: center; }
.px-more-body .px-label:first-child { margin-top: 4px; }
.px-levels .px-chip { font-size: 15px; min-height: 44px; }
.px-again { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 4px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* stars */
.px-stars-row { display: inline-flex; gap: 6px; align-items: center; }
.px-star { fill: #e3e3ec; stroke: #b9b9ca; stroke-width: 1.5; }
.px-star.is-on { fill: var(--yellow); stroke: var(--navy); }
.px-summary-head { position: relative; display: grid; place-items: center; min-height: 92px; overflow: hidden; margin: -6px -8px 0; }
.px-summary-head .px-star { opacity: 0; transform: scale(0.4); animation: px-star-in 0.42s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.px-summary-head .px-star:nth-child(1) { animation-delay: 0.35s; }
.px-summary-head .px-star:nth-child(2) { animation-delay: 0.5s; }
.px-summary-head .px-star:nth-child(3) { animation-delay: 0.65s; }
.px-summary-head .px-star:nth-child(2) { width: 64px; height: 64px; }
@keyframes px-star-in { to { opacity: 1; transform: none; } }
@keyframes px-fade-in { to { opacity: 1; } }
.px-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.px-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: px-burst 0.9s ease-out 0.8s forwards; }
.px-burst i:nth-child(even) { border-radius: 50%; }
@keyframes px-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(0.6); } }
.px-best { display: inline-block; margin: 0 auto 8px; padding: 4px 14px; border-radius: 999px; background: var(--navy); color: var(--yellow); font-weight: 800; font-size: 15px; }

/* summary: next game, member note */
.px-next-game { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; text-align: left; }
.px-next-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--navy); display: grid; place-items: center; color: var(--navy); }
a.px-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.px-links .px-linkbtn { padding: 0; font-size: inherit; color: var(--navy); }
.px-member-note { margin-top: 18px; max-width: 34em; margin-left: auto; margin-right: auto; padding: 14px 16px; border-radius: 16px; background: var(--lavender); text-align: center; font-size: 15px; line-height: 1.5; color: var(--navy); }
.px-member-note p { margin: 0; }
.px-member-note p + p { margin-top: 6px; font-weight: 700; }
.px-member-note a { color: var(--navy); }
.px-price { margin: 10px 0 0; font-weight: 700; color: var(--navy); font-size: 15px; }
.px-lock .px-label { margin-top: 18px; }

/* family week (js/nx-progress.js) */
.px-week-box { margin-top: 18px; }
.nx-week { padding: 12px 14px; border: 2px solid #d6d6e2; border-radius: 16px; background: #fff; text-align: center; }
.nx-week-title { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nx-week-days { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.nx-week-days li { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c9c9d8; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #8a8aa3; background: #fff; }
.nx-week-days li.is-done { background: var(--mint); border-color: var(--navy); color: var(--navy); }
.nx-week-days li.is-today { box-shadow: 0 0 0 3px var(--yellow); }
.nx-week-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-week-line { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.nx-week-goal { margin-left: 4px; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--navy); background: var(--paper); font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; }

/* read aloud */
.px-read-btn { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; }

/* coin, dice and spinners on the prompt-card games */
.px-coin-big { width: 120px; height: 120px; margin: 6px auto; border-radius: 50%; border: 3px solid var(--navy); background: var(--yellow); box-shadow: var(--lift); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--navy); text-align: center; line-height: 1.1; padding: 8px; }
.px-coin-big.is-spin { animation: px-coinflip 0.18s linear infinite; }
@keyframes px-coinflip { 50% { transform: scaleX(0.08); } }
.px-die.is-roll { animation: px-roll 0.12s linear infinite; }
@keyframes px-roll { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.px-tally-line { text-align: center; font-weight: 700; color: var(--navy); margin: 0; }
.px-timer-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.px-timer-row .px-timer { font-size: clamp(34px, 11vw, 48px); }

/* Pattern Train: the cars roll in one by one; the gap fills with the answer */
.px-train .px-car { animation: px-car-in 0.35s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes px-car-in { from { opacity: 0; transform: translateX(-14px); } }
.px-car.is-filled { background: var(--mint); border-style: solid; animation: px-pop 0.32s ease; }
/* 20 Questions: the numbers still possible, as a bar */
.px-range { margin: 0 auto; width: min(100%, 360px); }
.px-range-track { position: relative; height: 16px; border-radius: 999px; background: #e6e6ee; border: 2px solid var(--navy); overflow: hidden; }
.px-range-fill { position: absolute; top: 0; bottom: 0; background: var(--mint); transition: left 0.4s ease, width 0.4s ease; }
.px-range-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
/* the right card or cell gets the same green ring as a right choice */
.px-flip.is-answer, .px-lcell.is-answer { box-shadow: 0 0 0 4px #1f9d55, var(--lift); }
.px-lcell.is-answer { background: var(--mint); }
/* Secret Sort: the shape drops into its box */
.px-sort-new { display: inline-flex; animation: px-drop 0.4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes px-drop { from { opacity: 0; transform: translateY(-18px) scale(1.3); } }
/* Stop & Go: one short line under the circle */
.px-go-note { min-height: 1.5em; margin: 0; text-align: center; font-weight: 800; font-size: 18px; color: var(--muted); }
.px-go-note.is-no { color: #b42318; }
/* Because Chains: the five steps on one screen, ticked off in order */
.px-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.px-check { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid #c9c9d8; background: #fff; color: var(--navy); font-size: 16px; line-height: 1.4; cursor: pointer; }
.px-check strong { display: block; font-size: 17px; }
.px-check:disabled { cursor: default; color: var(--navy); }
.px-check:disabled:not(.is-done) { color: #55557a; background: var(--paper); }
.px-check.is-now { border: var(--edge); box-shadow: var(--lift); background: var(--yellow); }
.px-check.is-done { border-color: var(--navy); background: var(--mint-light); }
.px-check-box { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 8px; border: 2px solid var(--navy); background: #fff; display: grid; place-items: center; }
.px-check.is-done .px-check-box::after { content: "✓"; font-weight: 800; color: var(--navy); }
/* the next step after a grown-up's verdict */
.px-follow { text-align: center; font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  /* nothing moves: the stars and the confetti fade in instead */
  .px-summary-head .px-star { transform: none; animation: px-fade-in 0.5s ease forwards !important; }
  .px-summary-head .px-star:nth-child(1) { animation-delay: 0.3s !important; }
  .px-summary-head .px-star:nth-child(2) { animation-delay: 0.6s !important; }
  .px-summary-head .px-star:nth-child(3) { animation-delay: 0.9s !important; }
  .px-burst { display: none; }
  .px-summary-head.is-party::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(254, 219, 113, 0.6), rgba(254, 219, 113, 0) 65%); opacity: 0; animation: px-fade-in 0.8s ease 1s forwards !important; }
  .px-summary-head .px-stars-row { position: relative; }
  .px-coin-big.is-spin { opacity: 0.6; }
}
