:root {
  --bg: #f3f6fb; --panel: #ffffff; --fg: #1d2433; --muted: #5f6b80; --ring: #dbe3ef;
  --accent: #e8436c; --good: #14935a; --bad: #d23b3b; --hl: #ffd84d;
  color-scheme: light;
}

.block { box-shadow: 0 2px 10px rgba(30, 50, 90, .07); border: 1px solid var(--ring); }
.block.good { background: #effaf4; border-color: #bfe8d2; }
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #eaf2ff 0%, #f7f3ff 55%, #fff6ef 100%) fixed var(--bg); color: var(--fg); font: 18px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 18px 60px; display: grid; gap: 22px; justify-items: center; text-align: center; }
h1 { margin: 0; font-size: 28px; }
.hint { margin: 0; color: var(--muted); }
.mic { display: grid; place-items: center; gap: 10px; width: 180px; height: 180px; border-radius: 50%; border: 0;
  background: var(--panel); color: var(--fg); font: 600 20px system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 0 0 6px var(--ring), 0 8px 24px rgba(30,50,90,.12); transition: transform .15s, box-shadow .15s; }
.mic:hover { transform: scale(1.03); }
.mic:focus-visible { outline: 3px solid var(--hl); outline-offset: 6px; }
.mic .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); }
.mic.on { box-shadow: 0 0 0 6px var(--accent); animation: pulse 1.2s infinite; }
.mic.on .dot { border-radius: 10px; }
.mic:disabled { opacity: .5; cursor: wait; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(232, 67, 108, .25); } }
.levels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.levels-label { width: 100%; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.levels button { display: grid; gap: 0; min-width: 64px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--ring);
  background: var(--panel); color: var(--fg); font: 700 18px system-ui, sans-serif; cursor: pointer; }
.levels button small { font-weight: 500; font-size: 11px; color: var(--muted); }
.levels button[aria-checked="true"] { border-color: var(--accent); background: #fff0f4; }
.levels button[aria-checked="true"] small { color: var(--accent); }
.levels button:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.out { width: 100%; display: grid; gap: 14px; text-align: left; }
.block { background: var(--panel); border-radius: 14px; padding: 16px 18px; }
.block h2 { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.block p { margin: 0; }
.said .err { color: var(--bad); text-decoration: line-through; }
.good h2 { color: var(--good); }
.fixed { font-size: 26px; line-height: 1.4; font-weight: 600; }
.fixed span { border-radius: 6px; padding: 0 2px; transition: background .1s, color .1s; }
.fixed span.now { background: var(--hl); color: #111; }
.fixed span.new { text-decoration: underline 2px var(--good); text-underline-offset: 4px; }
.again { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 0; }
.why { color: var(--fg); }
.status { margin: 0; min-height: 1.5em; color: var(--fg); font-size: 20px; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .mic.on { animation: none; } }
