/* Concentration exercises: the landing page, the introduction layer and the full-screen session runner.
   Tokens come from app.css. */

/* ---- landing: one column ---- */
.ex-page { max-width: 720px; margin: 0 auto; }
.ex-page .page-head { display: block; margin-bottom: 1.25rem; }
.ex-progress { margin: 0 0 1.5rem; }
.ex-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-2); }
.ex-progress-row strong { color: var(--text); font-weight: 600; }
.ex-progress-bar { position: relative; height: 12px; border-radius: 999px; background: var(--bg-card); overflow: hidden; }
.ex-progress-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent) 0%, #60a5fa 100%); transition: width 0.4s; }

.session-card { padding: 1.75rem; }
.session-card .eyebrow { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.session-card h2 { font-size: 1.7rem; margin: 0 0 0.25rem; }
.session-card .lead { color: var(--text-2); margin: 0 0 1.1rem; }
.blockrow { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.blockrow:last-of-type { border-bottom: 1px solid var(--border); }
.blockrow .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; flex: none; }
.blockrow.a .dot { background: var(--accent-tint); color: var(--accent); }
.blockrow.b .dot { background: var(--amber-tint); color: #a05a00; }
.blockrow.c .dot { background: #f1eaff; color: #5b3fa0; }
.blockrow .name { font-weight: 600; }
.blockrow .rule { font-size: 0.85rem; color: var(--text-3); }
.blockrow .state { margin-inline-start: auto; flex: none; font-size: 0.8rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 0.3rem; }
.blockrow .state svg { width: 16px; height: 16px; }
.blockrow.done .state { color: var(--green); }
.blockrow.next .state { color: var(--accent); font-weight: 600; }
.blockrow.done .name { color: var(--text-2); }
.session-card .cta { margin-top: 1.25rem; }
.session-card .cta .btn { width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; justify-content: center; }
.session-card .cta .btn svg { width: 18px; height: 18px; }
.session-card .cta .cta-note { display: block; text-align: center; margin-top: 0.7rem; font-size: 0.88rem; color: var(--text-3); }
.session-card.locked { background: var(--bg-card); border-color: transparent; box-shadow: none; }
.session-card.doneday { background: var(--green-tint); border-color: transparent; box-shadow: none; }

.sessions-wrap { margin-top: 1.25rem; }
.sessions-wrap summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-md); background: var(--bg-card); font-weight: 600; font-size: 0.95rem; }
.sessions-wrap summary::-webkit-details-marker { display: none; }
.sessions-wrap summary .small { font-weight: 400; }
.sessions-wrap summary svg { width: 16px; height: 16px; transition: transform 0.2s; }
.sessions-wrap[open] summary svg { transform: rotate(180deg); }
.sessions { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 0.5rem; }
.sessions th { text-align: start; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); font-weight: 700; }
.sessions td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sessions th:first-child, .sessions td:first-child { width: 3.5rem; }
.sessions td:nth-child(2), .sessions td:nth-child(3) { white-space: nowrap; }
.sessions tr.is-today td { background: var(--amber-tint); }
.sessions tr.future td { color: var(--text-3); }
.sessions .codes { font-size: 0.8rem; color: var(--text-3); }
.sessions .ok { color: var(--green); display: inline-flex; align-items: center; gap: 0.25rem; }
.sessions .ok svg { width: 14px; height: 14px; }
.help-link { text-align: center; margin-top: 1.5rem; font-size: 0.88rem; }
.help-link a { color: var(--text-3); }
.help-link svg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; }

/* ---- introduction layer (reuses .onb from app.css) ---- */
.onb-layer { position: fixed; inset: 0; z-index: 90; overflow: auto; background: #fff; display: none; }
.onb-layer.open { display: block; }
.onb-layer .onb { min-height: 100%; }
.onb-art.ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; width: min(360px, 80vw); aspect-ratio: auto; margin-bottom: 2rem; }
.onb-art.ex > div { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; position: relative; overflow: hidden; }
.onb-art.ex .t1 { background: var(--accent-tint); color: var(--accent); }
.onb-art.ex .t2 { background: var(--amber-tint); color: #b45309; }
.onb-art.ex .t3 { background: #f1eaff; color: #6d28d9; }
.onb-art.ex svg { width: 42%; height: 42%; }
.onb-art.ex small { position: absolute; bottom: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.onb-tip .feature-icon.b { background: var(--amber-tint); color: #b45309; }
.onb-tip .feature-icon.c { background: #f1eaff; color: #6d28d9; }
.onb-name .field label { font-weight: 600; }

/* ---- practitioner card ---- */
.ex-cells { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ex-cell { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; background: var(--bg-card); color: var(--text-3); border: 1px solid transparent; }
.ex-cell.done { background: var(--accent); color: #fff; }
.ex-cell.skipped { background: #fff; border-color: var(--border-strong); color: var(--text-2); }
.ex-cell.unlocked, .ex-cell.open { background: var(--amber-tint); color: #a05a00; }
.ex-legend { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-inline-end: 0.3rem; background: var(--bg-card); }
.ex-legend.done { background: var(--accent); } .ex-legend.skipped { background: #fff; border: 1px solid var(--border-strong); } .ex-legend.unlocked { background: var(--amber-tint); border: 1px solid #f3d9a4; }

/* ---- session runner ---- */
body.exercise-shell { overflow: hidden; }
.flow { position: fixed; inset: 0; z-index: 100; background: #fff; display: none; flex-direction: column; }
.flow.open { display: flex; }
.flow-head { height: 56px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; border-bottom: 1px solid var(--border); }
.flow-head .blocks { display: flex; gap: 0.35rem; }
.flow-head .blocks i { width: 26px; height: 6px; border-radius: 999px; background: var(--bg-card); }
.flow-head .blocks i.on { background: var(--accent); } .flow-head .blocks i.b.on { background: var(--amber); } .flow-head .blocks i.c.on { background: #7c3aed; }
.flow-head .close { border: 0; background: transparent; cursor: pointer; padding: 0.4rem; border-radius: 8px; color: var(--text-2); }
.flow-head .close svg { width: 20px; height: 20px; }
.flow-head small { color: var(--text-3); }
.stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 1.25rem; text-align: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; position: relative; overflow: hidden; }
.stage > div { width: 100%; max-width: 560px; }
.stage h2 { font-size: 1.9rem; margin: 0 0 0.5rem; }
.stage .lead { max-width: 30ch; margin: 0 auto 1.4rem; font-size: 1.1rem; color: var(--text-2); }
.stage .btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.stage .code { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.stage .code.b { background: var(--amber-tint); color: #a05a00; } .stage .code.c { background: #f1eaff; color: #5b3fa0; }
.stage.flash { background: var(--bg-card); }
.stage .pick { display: grid; gap: 0.6rem; max-width: 340px; margin: 0 auto; }
.stage .note { position: absolute; bottom: 1rem; inset-inline: 0; font-size: 0.85rem; color: var(--text-3); }
.star { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.cmp { display: inline-grid; grid-template-columns: auto auto auto; gap: 0.4rem 1rem; text-align: start; margin: 0.5rem auto 1.4rem; font-size: 0.95rem; }
.cmp span:nth-child(3n) { color: var(--green); font-weight: 600; }
.cmp .h { color: var(--text-3); font-size: 0.8rem; font-weight: 400; }
.leave { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(21,22,28,0.35); padding: 1.25rem; }
.leave[hidden] { display: none; }
.leave-card { width: 100%; max-width: 380px; background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); display: grid; gap: 0.5rem; }
.leave-card h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.leave-card p { margin: 0 0 0.6rem; }

/* A1 */
.a1-stim { width: min(60vw, 260px); height: min(60vw, 260px); margin: 0 auto; border-radius: 50%; background: var(--bg-card); transition: background 0.08s, border-radius 0.08s; }
.a1-stim.go { background: #16a34a; } .a1-stim.nogo { background: #dc2626; } .a1-stim.square { border-radius: 14%; }
.a1-stim.hidden-cue { background: var(--bg-card); }
.a1-stim { position: relative; }   /* red is a plain red circle for every band: colour alone is the signal */
.a1-stim.hint { box-shadow: 0 0 0 6px #fff, 0 0 0 11px var(--accent); }
.ex-chart-axis { display: flex; justify-content: space-between; font-size: 0.7rem; margin-top: 0.15rem; }
.ex-better { color: var(--green); } .ex-worse { color: #a05a00; }
.ex-calm { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.5rem 0; }
.ex-calm-big { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.ex-moves td.num, .ex-moves th.num { text-align: end; width: 6.5rem; }

/* B2: a white board seen slightly from above, raised tiles; blue ones to remember, red ones to skip */
.b2-board { position: relative; width: min(88vw, 420px); aspect-ratio: 1; margin: 0.5rem auto 0; border-radius: 26px; background: linear-gradient(165deg, #ffffff, #eef2f9); border: 1px solid var(--border); box-shadow: 0 24px 44px rgba(15,23,42,0.12); transform: perspective(1100px) rotateX(14deg); transform-origin: 50% 100%; }
.b2-block { position: absolute; width: 22%; height: 22%; border: 0; border-radius: 20%; background: linear-gradient(160deg, #ffffff, #e3e9f4); box-shadow: 0 7px 0 #c4cddf, 0 11px 16px rgba(15,23,42,0.16), inset 0 1px 0 #fff; transition: background 0.1s, transform 0.1s, box-shadow 0.1s; cursor: pointer; }
.b2-block.lit { background: radial-gradient(circle at 38% 32%, #dbeafe, #3b82f6 55%, #1d4ed8); box-shadow: 0 7px 0 #1e3a8a, 0 11px 16px rgba(15,23,42,0.2), 0 0 30px rgba(59,130,246,0.55); transform: scale(1.05); }
.b2-block.red { background: radial-gradient(circle at 38% 32%, #fee2e2, #ef4444 55%, #b91c1c); box-shadow: 0 7px 0 #7f1d1d, 0 11px 16px rgba(15,23,42,0.2), 0 0 30px rgba(239,68,68,0.55); transform: scale(1.05); }
.b2-block.tapped { background: radial-gradient(circle at 38% 32%, #dbeafe, #3b82f6 55%, #1d4ed8); transform: translateY(5px); box-shadow: 0 2px 0 #1e3a8a, 0 4px 8px rgba(15,23,42,0.2); }
.b2-board.locked .b2-block { pointer-events: none; }
/* C1, C5: the breathing ring (ModulysaKit.breath) */
.c1-label { margin-top: 1.25rem; font-size: 1.3rem; font-weight: 600; min-height: 1.6em; }
.c1-count { color: var(--text-3); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---- step 2 games ---- */
.obj { display: inline-block; width: 100%; height: 100%; object-fit: contain; }
.obj.emoji { font-size: 2.2rem; line-height: 1; display: grid; place-items: center; }
.stage .note.hand { color: var(--accent); font-weight: 600; }
.cmp .h { color: var(--text-3); font-size: 0.8rem; font-weight: 400; }
/* A2 */
.a2-field { position: relative; width: min(88vw, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; background: var(--bg-card); }
.a2-field i { position: absolute; width: 7%; height: 7%; border-radius: 50%; transform: translate(-50%, -50%); background: var(--accent); }
.a2-field i.red { background: #dc2626; } .a2-field i.green { background: #16a34a; } .a2-field i.yellow { background: #f59e0b; }
.a2-answers { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1.25rem; min-height: 52px; }
.a2-answers .btn { min-width: 64px; font-size: 1.2rem; }
/* A3 */
.a3-grid { display: grid; gap: 6px; width: min(88vw, 420px); aspect-ratio: 1; margin: 0 auto; }
.a3-cell { border: 0; border-radius: 12px; background: var(--bg-card); cursor: pointer; display: grid; place-items: center; padding: 8%; }
.a3-cell svg { width: 100%; height: 100%; }
/* A4 */
.a4-box { position: relative; width: min(88vw, 480px); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; background: var(--bg-card); overflow: hidden; }
.a4-ball { position: absolute; width: 11%; height: 11%; border: 0; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); cursor: pointer; transition: box-shadow 0.15s; }
.a4-ball.mark { background: var(--amber); box-shadow: 0 0 0 6px var(--amber-tint); }
.a4-ball.picked { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent); }
.a4-ball.reveal { background: #16a34a; }
/* A5 */
.a5-ear { width: min(50vw, 200px); height: min(50vw, 200px); margin: 0 auto; border-radius: 50%; background: var(--bg-card); color: var(--text-3); display: grid; place-items: center; transition: background 0.1s; }
.a5-ear svg { width: 45%; height: 45%; }
.a5-ear.flash { background: var(--amber-tint); }
/* A6 */
.a6 { width: 100%; max-width: 760px !important; }
.a6-prompt { display: flex; align-items: center; gap: 0.9rem; justify-content: center; min-height: 76px; margin-bottom: 0.75rem; text-align: start; }
.a6-cut { width: 72px; height: 72px; border-radius: 12px; border: 2px solid var(--accent); background-repeat: no-repeat; background-color: #fff; flex: none; }
.a6-scene { position: relative; width: 100%; border-radius: 14px; overflow: hidden; touch-action: manipulation; }
.a6-scene img { display: block; width: 100%; height: auto; }
.a6-hit { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 4px solid #16a34a; background: rgba(22,163,74,0.25); transform: translate(-50%, -50%); pointer-events: none; }
/* B1 Copy me: the pond. Pads and the frog are positioned in fractions of the pond; the frog moves with transforms. */
.b1-pond { position: relative; width: min(92vw, 520px); aspect-ratio: 4 / 3; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #8fd0f0; box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,0.45); }
.b1-water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.b1-water .wave { opacity: 0.22; animation: b1drift 16s linear infinite; }
.b1-water .wave.w2 { opacity: 0.16; animation-duration: 23s; animation-direction: reverse; }
@keyframes b1drift { to { transform: translateX(-400px); } }
.b1-pad { position: absolute; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; transition: transform 0.12s, filter 0.12s; }
.b1-pond.six .b1-pad { width: 19.5%; }
.b1-pad svg { width: 100%; height: 100%; display: block; overflow: visible; }
.b1-pad.lit { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.14) saturate(1.1); }
.b1-pad .ripple { position: absolute; inset: -8%; border-radius: 50%; border: 3px solid rgba(255,255,255,0.85); opacity: 0; transform: scale(0.8); pointer-events: none; }
.b1-pad.lit .ripple { animation: b1ripple 0.7s ease-out; }
@keyframes b1ripple { 0% { opacity: 0.9; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.4); } }
.b1-frog { position: absolute; left: 0; top: 0; width: 15%; aspect-ratio: 1; margin: -7.5% 0 0 -7.5%; pointer-events: none; z-index: 2; filter: drop-shadow(0 7px 5px rgba(10,40,60,0.28)); will-change: transform; }
.b1-frog svg { width: 100%; height: 100%; display: block; overflow: visible; }
.b1-pond.locked .b1-pad { pointer-events: none; }
.b1-pad.hint { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--accent) !important; }
/* B3 Listen and remember: a phone keypad, 1–9 then 0, left to right in every language; the typed digits above it. */
.b3-entry { min-height: 2rem; margin: 0 0 0.8rem; text-align: center; font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: 0.1em; color: var(--text-1); }
.b3-pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(80vw, 300px); margin: 0 auto; }
.b3-pad { height: 64px; border-radius: 16px; background: var(--bg-card); border: 2px solid var(--border-strong); font: inherit; font-size: 1.6rem; font-weight: 600; color: var(--text-1); cursor: pointer; transition: background 0.1s, transform 0.1s; }
.b3-pad.zero { grid-column: 2; }
.b3-pad.tapped { background: var(--accent-tint); border-color: var(--accent); }
.b3-pad.said { border-color: var(--accent); }
.b3-pads.locked .b3-pad { pointer-events: none; }
/* B4 */
.b4-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: min(90vw, 480px); min-height: 120px; margin: 0 auto; }
.b4-item { width: 86px; height: 86px; border-radius: 16px; background: var(--bg-card); display: grid; place-items: center; padding: 10px; }
.b4-item.gone { background: transparent; border: 2px dashed var(--border-strong); }
.b4-grid.pick .b4-item { cursor: pointer; border: 2px solid transparent; }
.b4-item.marked { border-color: var(--accent); background: var(--accent-tint); }
.b4-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1rem; min-height: 72px; }
.b4-opt { width: 72px; height: 72px; border: 2px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; padding: 8px; }
.b4-opt .obj.emoji { font-size: 1.8rem; }
/* B5 */
.b5-grid { display: grid; gap: 8px; width: min(90vw, 440px); margin: 0 auto; }
.b5-card { position: relative; aspect-ratio: 1; border: 0; border-radius: 14px; background: transparent; cursor: pointer; perspective: 600px; padding: 0; }
.b5-card .back, .b5-card .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; transition: transform 0.25s; display: grid; place-items: center; padding: 10%; }
.b5-card .back { background: var(--accent); }
.b5-card .face { background: var(--bg-card); transform: rotateY(180deg); }
.b5-card.open .back, .b5-card.done .back { transform: rotateY(180deg); }
.b5-card.open .face, .b5-card.done .face { transform: rotateY(0); }
.b5-card.done .face { background: var(--green-tint); }
.b5-blank { aspect-ratio: 1; }
.b5-card.miss .face { background: #fee2e2; }
/* C2 */
.c2-calm { width: min(50vw, 220px); height: min(50vw, 220px); margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ede9fe, #c4b5fd); opacity: 0.8; transition: transform 0.4s; }
.c2-calm.pulse { transform: scale(1.08); }
/* C3, C4 */
.c3-area, .c4-area { position: relative; width: min(88vw, 480px); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; background: var(--bg-card); touch-action: none; overflow: hidden; }
.c4-area svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c3-dot, .c4-guide { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 10px var(--accent-tint); transition: background 0.2s; }
.c4-guide { background: #7c3aed; box-shadow: 0 0 0 10px #f1eaff, 0 0 24px #c4b5fd; }
.c3-dot.on, .c4-guide.on { background: #16a34a; box-shadow: 0 0 0 10px var(--green-tint); }
.c4-guide.wait { opacity: 0.6; }
.a6-ring { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--accent); transform: translate(-50%, -50%); pointer-events: none; animation: hintPulse 0.9s ease-in-out infinite; }
/* ---- the guided first round ---- */
.hint { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--accent) !important; animation: hintPulse 0.9s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes hintPulse { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 13px var(--accent-tint); } }
.demo-hand { position: absolute; font-size: 2.4rem; line-height: 1; transform: translate(-35%, 15%); pointer-events: none; z-index: 3; animation: handBob 0.9s ease-in-out infinite; }
@keyframes handBob { 50% { transform: translate(-35%, 28%); } }
.demo-banner { position: absolute; top: 0.75rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; padding: 0.45rem 1rem; border-radius: 999px; background: var(--amber-tint); color: #a05a00; font-weight: 600; font-size: 0.95rem; z-index: 4; }
.demo-banner.off { display: none; }
.game-lead { position: absolute; top: 0.9rem; inset-inline: 1rem; margin: 0; text-align: center; font-size: 1.1rem; color: var(--text-2); z-index: 3; pointer-events: none; transition: opacity 0.8s; }
.game-lead.fade { opacity: 0; }
.stage:has(.game-lead) .demo-banner { top: 3.4rem; }
.a1-stim.yellow { background: #f59e0b; }
.stage .btn-row.center { justify-content: center; }
/* C5 */
.c5-count { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin-top: 1rem; transition: transform 0.15s; }
.c5-count.tick { transform: scale(1.15); }
/* ---- admin: scenes ---- */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.scene-card { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; color: inherit; }
.scene-card:hover { box-shadow: var(--shadow-md); }
.scene-thumb { aspect-ratio: 4 / 3; background: var(--bg-card); }
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-meta { padding: 0.75rem 0.9rem; display: grid; gap: 0.3rem; }
.scene-tool { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .scene-tool { grid-template-columns: 1fr; } }
.scene-canvas { position: relative; user-select: none; touch-action: none; cursor: crosshair; }
.scene-canvas img { display: block; width: 100%; height: auto; border-radius: 10px; }
.tbox { position: absolute; border: 2px solid #16a34a; background: rgba(22,163,74,0.15); border-radius: 4px; pointer-events: none; }
.tbox span { position: absolute; top: -10px; left: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.tbox.small { border-color: #dc2626; background: rgba(220,38,38,0.12); } .tbox.small span { background: #dc2626; }
.tbox.ghost { border-style: dashed; border-color: var(--accent); background: rgba(37,99,235,0.1); }
.target-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.4rem; counter-reset: t; }
.target-list li { display: flex; align-items: center; gap: 0.5rem; counter-increment: t; }
.target-list li::before { content: counter(t); min-width: 22px; height: 22px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.target-list .input { min-height: 36px; padding: 0.3rem 0.6rem; }

/* ---- practitioner statistics ---- */
.ex-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 1.25rem; }
@media (max-width: 700px) { .ex-charts { grid-template-columns: 1fr; } }
.ex-chart-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; margin-bottom: 0.3rem; }
.ex-chart svg { display: block; overflow: visible; }
.ex-chart-foot { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; margin-top: 0.3rem; font-size: 0.9rem; }
.ex-chart-empty { padding: 0.9rem 0; border-top: 1px dashed var(--border); }
.ex-count strong { font-family: var(--font-display); font-size: 1.8rem; }
.tiny { font-size: 0.78rem; }

/* ---------------------------------------------------------- admin: game cards --- */
.game-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.game-head > .btn-row { flex: none; }
.game-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.game-filter .pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.game-filter .pill { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); cursor: pointer; }
.game-filter .pill:hover { border-color: var(--accent); color: var(--accent); }
.game-filter .pill.on { background: var(--text); border-color: var(--text); color: #fff; }
.game-filter .pill.ta.on { background: var(--accent); border-color: var(--accent); }
.game-filter .pill.tb.on { background: #b45309; border-color: #b45309; }
.game-filter .pill.tc.on { background: #6d28d9; border-color: #6d28d9; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--text); transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s; }
a.game-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.game-card.off { opacity: 0.6; }
.game-card[hidden] { display: none; }
.game-thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.game-thumb svg { width: 100%; height: 100%; display: block; }
.game-thumb .soft { opacity: 0.28; }
.game-thumb.ta { background: var(--accent-tint); color: var(--accent); }
.game-thumb.tb { background: var(--amber-tint); color: #b45309; }
.game-thumb.tc { background: #f1eaff; color: #6d28d9; }
.game-body { padding: 0.9rem 1rem 1rem; display: grid; gap: 0.3rem; }
.game-body .card-title { margin: 0; font-size: 1.05rem; }
.game-body p { margin: 0; }
.game-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.game-top .code { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text-3); }
.game-top .anchor { font-size: 0.78rem; color: var(--text-3); }
.game-top .track-pill { margin-inline-start: auto; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.game-top .track-pill.ta { background: var(--accent-tint); color: var(--accent); }
.game-top .track-pill.tb { background: var(--amber-tint); color: #b45309; }
.game-top .track-pill.tc { background: #f1eaff; color: #6d28d9; }

/* ---- time left: a thin bar under the header for the attention and memory blocks ---- */
.time-bar { height: 3px; flex: none; background: var(--bg-card); }
.time-bar[hidden] { display: none; }
.time-bar span { display: block; height: 100%; width: 100%; background: var(--accent); }
.time-bar.b span { background: var(--amber); } .time-bar.c span { background: #7c3aed; }

/* ---- the breathing ring (C1, C5) ---- */
.breath { display: grid; justify-items: center; gap: 0.85rem; }
.breath-ring { position: relative; width: min(72vw, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.breath-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.breath-ring .rail { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.breath-ring .left { fill: none; stroke: #7c3aed; stroke-width: 3; stroke-linecap: round; opacity: 0.55; }
.breath-glow { position: absolute; width: 62%; height: 62%; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,0.38), rgba(124,58,237,0) 68%); transform: scale(0.85); opacity: 0.35; transition: transform linear, opacity linear; filter: blur(8px); }
.breath-disc { position: relative; width: 62%; height: 62%; border-radius: 50%; background: radial-gradient(circle at 36% 34%, #ede9fe, #a78bfa 45%, #6d28d9); box-shadow: 0 18px 48px rgba(109,40,217,0.28), inset 0 0 0 12px rgba(255,255,255,0.3); transform: scale(0.55); transition: transform linear; display: grid; place-items: center; }
.breath.faded .breath-disc, .breath.faded .breath-glow { opacity: 0.22; }
.breath-num { position: absolute; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.25); z-index: 2; }
.breath.faded .breath-num { color: #5b3fa0; text-shadow: none; }
.breath-num.tick { animation: breathTick 0.3s ease-out; }
@keyframes breathTick { 50% { transform: scale(1.18); } }
.breath-label { font-size: 1.35rem; font-weight: 600; min-height: 1.6em; }
.breath-bar { width: min(58vw, 240px); height: 6px; border-radius: 999px; background: var(--bg-card); overflow: hidden; }
.breath-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #7c3aed); }
.breath-sub { color: var(--text-3); font-size: 0.9rem; min-height: 1.2em; }

/* ---- A7 Middle arrow, A8 Opposite arrows ---- */
.fl-row { display: flex; justify-content: center; align-items: center; gap: 1.1rem; min-height: 100px; margin: 2.5rem 0 1.5rem; }
.fl-row.tight { gap: 0.4rem; }
.fl-row svg { width: 48px; height: 48px; color: var(--text); flex: none; }
.dir-btns { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1rem; min-height: 80px; }
.dir-btn { width: 78px; height: 78px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--accent), #7c3aed); box-shadow: var(--shadow-md); display: grid; place-items: center; transition: transform 0.1s, filter 0.1s; }
.dir-btn:active { transform: scale(0.94); filter: brightness(1.1); }
.dir-btn svg { width: 32px; height: 32px; }
.op-field { position: relative; width: min(88vw, 440px); height: min(60vw, 250px); margin: 2rem auto 0; border-radius: 20px; background: var(--bg-card); }
.op-arrow { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%); color: var(--accent); opacity: 0; transition: opacity 0.05s; }
.op-arrow svg { width: 100%; height: 100%; }
