.ph-key:focus-visible,.ph-option:focus-visible{outline:3px solid var(--aqua);outline-offset:3px}.ph-question{text-align:center;flex-direction:column;align-items:center;gap:4px;animation:.25s ease-out both ui-rise;display:flex}.ph-prompt{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:clamp(4.5rem,24vw,7rem);font-weight:800;line-height:1.05}.ph-prompt[data-long=true]{font-size:clamp(2.4rem,12vw,4rem);line-height:1.3}.ph-hint{color:var(--muted);font-size:.95rem}.ph-slots{gap:8px;margin-top:12px;display:flex}.ph-slots span{border:2px solid var(--line);background:var(--surface);font-variant-numeric:tabular-nums;border-radius:14px;place-items:center;width:46px;height:58px;font-size:1.8rem;font-weight:800;display:grid}.ph-slots[data-state=right] span{border-color:var(--good);color:var(--good)}.ph-slots[data-state=wrong] span{border-color:var(--miss);color:var(--miss)}.ph-feedback{border-left:4px solid var(--miss);flex-direction:column;gap:10px;padding:16px 18px;animation:.25s ease-out both ui-rise;display:flex}.ph-feedback[data-correct=true]{border-left-color:var(--good)}.ph-feedback strong{color:var(--miss)}.ph-feedback[data-correct=true] strong{color:var(--good)}.ph-feedback p{color:var(--muted);font-size:.95rem}.ph-breakdown{flex-wrap:wrap;gap:4px;display:flex}.ph-seg{min-width:30px;color:var(--muted);border-radius:10px;flex-direction:column;align-items:center;padding:4px 6px;display:flex}.ph-seg[data-sound=true]{background:var(--surface-2);border:1px solid var(--gold);color:var(--text)}.ph-seg-text{font-size:1.3rem;font-weight:800}.ph-seg-digit{color:var(--gold);font-variant-numeric:tabular-nums;font-size:1.1rem;font-weight:800}.ph-seg[data-sound=false] .ph-seg-digit{color:var(--line)}.ph-keypad{grid-template-columns:repeat(3,1fr);gap:8px;width:100%;max-width:340px;margin:0 auto;display:grid}.ph-key{border:1px solid var(--line);background:var(--surface);min-height:60px;color:var(--text);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:16px;font-size:1.6rem;font-weight:800;transition:transform 80ms,background .15s}.ph-key:hover{background:var(--surface-2)}.ph-key:active{background:var(--gold);color:var(--on-accent);transform:scale(.94)}.ph-key--soft{color:var(--muted)}.ph-options{gap:8px;display:grid}.ph-option{border:1px solid var(--line);background:var(--surface);min-height:56px;color:var(--text);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:16px;padding:10px 16px;font-size:1.1rem;font-weight:700;transition:transform 80ms,background .15s}.ph-option[data-state=open]:hover{background:var(--surface-2)}.ph-option[data-state=open]:active{transform:scale(.98)}.ph-option[data-state=right]{border-color:var(--good);color:var(--good)}.ph-option[data-state=wrong]{border-color:var(--miss);color:var(--miss)}.ph-option[data-state=idle]{opacity:.45}.ph-glyph{font-size:clamp(3.5rem,18vw,5rem);line-height:1.1}.ph-pic{object-fit:contain;vertical-align:-.2em;border-radius:.12em;width:1.1em;height:1.1em;display:inline-block}.ph-pace{--ph-pace:var(--good);align-items:center;gap:10px;display:flex}.ph-pace[data-pace=steady]{--ph-pace:var(--gold)}.ph-pace[data-pace=slow]{--ph-pace:var(--miss)}.ph-pace-track{background:var(--line);border-radius:3px;flex:1;height:6px;overflow:hidden}.ph-pace-fill{background:var(--ph-pace);transform-origin:0;border-radius:3px;height:100%;transition:background .3s;display:block;transform:scaleX(0)}.ph-pace-now{font-variant-numeric:tabular-nums;min-width:5.4ch;color:var(--text);justify-content:flex-end;align-items:baseline;gap:3px;font-size:clamp(1.35rem,6vw,1.8rem);font-weight:800;line-height:1;display:flex}.ph-pace-unit{color:var(--muted);font-size:.55em;font-weight:700}.ph-pace[data-running=false] .ph-pace-now{color:var(--ph-pace)}.ph-pace-best{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted);flex:none;font-size:.85rem;font-weight:700}.ph-clock-switch[aria-pressed=false]{opacity:.4}.ph-switches{gap:6px;display:flex}@media (height<=720px) and (width<=600px){.ui-screen:has(.ph-question){gap:10px;padding-top:10px}.ph-prompt{font-size:clamp(3rem,17vw,4.2rem)}.ph-prompt[data-long=true]{font-size:clamp(1.9rem,9vw,2.6rem)}.ph-glyph{font-size:clamp(2.6rem,13vw,3.4rem)}.ph-hint{font-size:.85rem}.ph-slots{margin-top:6px}.ph-slots span{width:40px;height:46px;font-size:1.5rem}.ph-keypad{gap:6px}.ph-key{min-height:46px;font-size:1.4rem}.ph-options{gap:6px}.ph-option{min-height:48px;padding:8px 14px;font-size:1.02rem}}.ph-drawn{justify-items:center;margin:4px 0 10px;display:grid}.ph-drawn svg{width:min(180px,46vw);height:auto}
