/* Speaking practice screen (speak-practice.js). Colours from the theme tokens in u1.css, so light and dark both work. */
.sp-mic{color:var(--ink);background:var(--paper);border-color:var(--rule)}
.sp-mic:focus-visible,.spk button:focus-visible,.spk select:focus-visible{outline:2px solid var(--ai);outline-offset:2px}
.spk{margin:10px 0 14px;padding:10px 12px;border:1px solid var(--rule);border-left:3px solid var(--ai);border-radius:6px;background:var(--slip);color:var(--ink);font-family:var(--ui);font-size:15px;text-indent:0}
.spk-pick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.spk-pick[hidden]{display:none}
.spk-pick-l{font-size:14px;color:var(--muted)}
.spk-ch{flex:1 1 200px;min-width:0;max-width:100%;min-height:44px;font:inherit;font-size:15px;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:6px;padding:0 8px}
.spk-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.spk-head{font-weight:600;margin-right:auto}.spk-count{font-size:13px;color:var(--muted)}
.spk-nav{min-width:44px;min-height:44px;border:1px solid var(--rule);border-radius:22px;background:var(--paper);color:var(--ink);font:inherit;font-size:20px;line-height:1;cursor:pointer}
.spk-nav:disabled{opacity:.4;cursor:default}
.spk-sent{margin:8px 0;font-family:var(--jp);font-size:22px;line-height:2.1;overflow-wrap:anywhere}
.spk-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.spk-rec{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--rule);border-radius:22px;font:inherit;cursor:pointer}
.spk-rec:disabled{opacity:.6;cursor:progress}
.spk-rec[aria-pressed="true"]{background:#a02020;color:#fff;border-color:#a02020}
.spk-listen{min-height:44px}
.spk-msg{font-size:14px;color:var(--muted);flex:1 1 100%}
.spk .sp-result{background:var(--paper);border-color:var(--rule);color:var(--ink)}
.spk .sp-label,.spk .sp-note{color:var(--muted);opacity:1}
.spk-acts{display:flex;gap:8px;flex-wrap:wrap}.spk-acts .btn{min-height:44px}
.spk-cancel{min-height:44px}.spk-cancel[hidden]{display:none}
/* per-word marks on the result card (Japanese, by sound; also the onboarding step): right words green, the others underlined */
.sp-w.sp-ok{color:var(--good,#2f7a4f)}
.sp-w.sp-miss{text-decoration:underline wavy var(--bad,#a3413a);text-decoration-thickness:1.5px;text-underline-offset:4px}
.sp-legend{margin:4px 0 0;font-size:12px;color:var(--muted)}
/* feedback, speaking practice only: CSS animations on a few elements, gone after 1.5 s (speak-practice.js FX_MS), never in the way */
.spk-out{position:relative}
.spk-out .sp-w.sp-ok{animation:spk-glow 1s ease-out 1}
@keyframes spk-glow{0%{text-shadow:0 0 0 transparent}40%{text-shadow:0 0 8px var(--good,#2f7a4f)}100%{text-shadow:0 0 0 transparent}}
.spk-fx{position:absolute;top:-8px;right:0;width:96px;height:96px;pointer-events:none;z-index:2;animation:spk-fade .3s 1.2s ease-in forwards}
.spk-fox{position:absolute;left:12px;top:12px;width:72px;height:72px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.spk-fx-win .spk-fox{animation:spk-pop .45s cubic-bezier(.2,1.5,.4,1) both,spk-wink .35s .55s ease-in-out 1}
.spk-fx-huh .spk-fox{animation:spk-tilt .9s ease-in-out both}
.spk-q{position:absolute;right:0;top:0;min-width:26px;height:26px;border-radius:13px;background:var(--paper);color:var(--ink);border:1px solid var(--rule);font:600 17px/24px var(--ui);text-align:center;animation:spk-pop .3s .2s both}
.spk-burst i{position:absolute;left:45px;top:45px;width:6px;height:6px;border-radius:50%;background:#e0b45c;animation:spk-spark .8s ease-out both}
.spk-burst i:nth-child(2n){background:#c0392b}.spk-burst i:nth-child(3n){background:#7cc79a}
.spk-burst i:nth-child(1){--a:0deg}.spk-burst i:nth-child(2){--a:45deg}.spk-burst i:nth-child(3){--a:90deg}.spk-burst i:nth-child(4){--a:135deg}
.spk-burst i:nth-child(5){--a:180deg}.spk-burst i:nth-child(6){--a:225deg}.spk-burst i:nth-child(7){--a:270deg}.spk-burst i:nth-child(8){--a:315deg}
@keyframes spk-spark{0%{transform:rotate(var(--a)) translateX(0) scale(1);opacity:1}100%{transform:rotate(var(--a)) translateX(46px) scale(.3);opacity:0}}
@keyframes spk-pop{0%{transform:scale(.2) translateY(16px);opacity:0}100%{transform:none;opacity:1}}
@keyframes spk-wink{50%{transform:scale(1.06,.9) rotate(-7deg)}}
@keyframes spk-tilt{0%{opacity:0;transform:scale(.85)}20%{opacity:1;transform:rotate(-10deg)}50%{transform:rotate(8deg)}80%{transform:rotate(-4deg)}100%{transform:none}}
@keyframes spk-fade{to{opacity:0}}
/* reduced motion: no movement, just the static state (the glow colour, Kitsune and the "?" shown, then gone) */
@media (prefers-reduced-motion: reduce){.spk-out .sp-w.sp-ok,.spk-fx,.spk-fx *{animation:none!important}.spk-burst{display:none}}
