.drill-view { display: grid; gap: 20px; }
.drill { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-col); gap: var(--col-gap); align-items: stretch; }
@media (max-width: 980px) { .drill { grid-template-columns: minmax(0, 1fr); } }
.stage { --glow: var(--glow-off); position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px clamp(12px, 2.5vw, 26px) 16px; border-radius: 22px; background: var(--stage-bg); transition: --glow .25s ease; }
.stage[data-fx="live"] { --glow: var(--ring); }
.stage[data-fx="hit"] { --glow: var(--good); }
.stage[data-fx="wrong"] { --glow: var(--bad); }
.stage[data-fx="slow"] { --glow: var(--warn); }
.stage-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.lbl { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.count { display: flex; align-items: baseline; gap: 8px; }
.count b { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.limit { display: flex; align-items: baseline; gap: 10px; }
.limit b { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ground); }
.stepper button { width: 32px; height: 30px; border: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 999px; }
.stepper button:hover { background: var(--raised); }
.stepper button:disabled { opacity: .3; cursor: default; background: transparent; }
.stepper output { min-width: 50px; text-align: center; font-family: var(--f-display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.progress-line { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.focus { display: contents; }
.arena { position: relative; width: min(376px, 100%); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.arena::before { content: ""; position: absolute; inset: 3.5%; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse 70% 46% at 50% 22%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 70%), radial-gradient(circle, transparent 58%, rgba(0, 0, 0, .32) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05), inset 0 -14px 34px -14px rgba(0, 0, 0, .7); }
.ring .timer { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--ring) 70%, transparent)); }
.ring .timer:is([data-mode="hit"], [data-mode="wrong"], [data-mode="slow"], [data-mode="low"]) { filter: none; }
.glow { position: absolute; inset: 4%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 32%, transparent) 0%, color-mix(in srgb, var(--glow) 10%, transparent) 62%, transparent 100%); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--ring-track); stroke-width: 6; }
.ring .ticks line { stroke: var(--tick); stroke-width: 1.5; }
.ring .ticks line.maj { stroke: var(--tick-maj); stroke-width: 2; }
.ring .timer { fill: none; stroke-width: 6; stroke: var(--ring); stroke-dasharray: 942.48 942.48; stroke-dashoffset: 0; transition: stroke .15s ease, opacity .2s ease; }
.ring .timer[data-mode="off"] { opacity: 0; }
.ring .timer[data-mode="low"] { stroke: var(--warn); }
.ring .timer[data-mode="hit"] { stroke: var(--good); }
.ring .timer[data-mode="wrong"] { stroke: var(--bad); }
.ring .timer[data-mode="slow"] { stroke: var(--warn); }
.prompt { position: relative; width: 56%; aspect-ratio: 1; display: grid; place-items: center; }
.prompt .ico { width: 100%; height: 100%; display: block; }
.prompt[data-state="attract"] .ico { opacity: .4; }
.prompt[data-state="hit"] .ico { animation: pop .24s ease-out; }
.prompt[data-state="wrong"] .ico { animation: shake .3s ease-in-out; }
.prompt[data-state="slow"] .ico { opacity: .3; transition: opacity .2s; }
.center-text { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(72px, 14vw, 128px); line-height: 1; pointer-events: none; text-shadow: 0 0 24px color-mix(in srgb, var(--ring) 50%, transparent); }
.center-text[data-size="word"] { font-size: clamp(40px, 7vw, 60px); letter-spacing: .06em; text-transform: uppercase; }
.center-text:empty { display: none; }
.prompt-name { min-height: 26px; margin-top: -6px; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6%); } 40% { transform: translateX(5%); } 60% { transform: translateX(-3%); } 80% { transform: translateX(2%); } }
.readout { display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 132px; text-align: center; }
.rd-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 8px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rd-tag.good { color: var(--good); }
.rd-tag.bad { color: var(--bad); }
.rd-tag.warn { color: var(--warn); }
.si { width: 14px; height: 14px; flex: none; }
.rd-main { font-family: var(--f-display); font-weight: 700; font-size: clamp(56px, 8vw, 84px); line-height: .86; }
.rd-main.text { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3em; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; letter-spacing: .02em; }
.rd-unit { margin-left: .15em; font-size: .34em; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.rd-cap { max-width: 60ch; font-size: 14px; color: var(--ink-2); }
.ii { display: inline-grid; place-items: center; }
.ii .ico { width: 1.5em; height: 1.5em; display: block; }
.recent { display: flex; justify-content: center; gap: 7px; min-height: 66px; margin-top: -4px; }
.recent .it { flex: none; display: grid; justify-items: center; gap: 4px; width: 46px; }
.recent .it .ico { width: 40px; height: 40px; }
.recent .it i { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--good); }
.recent .it.wrong i { background: var(--bad); }
.recent .it.slow i { background: var(--warn); }
.recent .it span { font-size: 12px; line-height: 1; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .recent .it:nth-last-child(n+7) { display: none; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.btn { border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); border-radius: 999px; padding: 9px 20px; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn:hover { border-color: var(--hover-line); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #1A0508; }
.link { border: 0; background: none; padding: 5px 0; margin-block: -5px; color: var(--accent-fg); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.link.danger { color: var(--bad); }
.hint { font-size: 13px; color: var(--ink-3); }
.notice { margin: 0; text-align: center; font-size: 13.5px; color: var(--warn); }
.hud { display: flex; flex-wrap: wrap; gap: 1px; margin-top: auto; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hud > div { flex: 1 1 96px; display: grid; justify-items: center; gap: 1px; background: var(--panel); padding: 8px 12px; text-align: center; }
.hud .k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hud .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.keys { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; color: var(--ink-3); }
kbd { font-family: var(--f-body); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-2); background: var(--panel); }
@media (hover: none) { .keys { display: none; } }
.summary { display: grid; gap: 18px; padding-block: 6px 2px; }
.sum-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-fg); }
.sum-hero { display: grid; justify-items: center; gap: 4px; text-align: center; }
.sum-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(76px, 12vw, 128px); line-height: .95; }
.sum-sub { color: var(--ink-2); }
.sum-delta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sum-delta.good { color: var(--good); }
.sum-delta.bad { color: var(--bad); }
.sum-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sum-stats > div { background: var(--panel); padding: 10px 14px; }
.sum-stats dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sum-stats dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-stats:not([data-cols="4"]) > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.sum-stats:not([data-cols="4"]) > :last-child:nth-child(3n + 2) { grid-column: span 2; }
.sum-stats[data-cols="4"] > :last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
.sum-stats[data-cols="4"] > :last-child:nth-child(4n + 2) { grid-column: span 3; }
.sum-stats[data-cols="4"] > :last-child:nth-child(4n + 3) { grid-column: span 2; }
#stage > .summary { margin-block: auto; }
.summary .sum-big { text-shadow: 0 0 34px color-mix(in srgb, var(--accent-fg) 35%, transparent); }
.sum-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sum-cols h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sum-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.save { font-size: 13px; color: var(--ink-3); }
.save[data-state="failed"] { color: var(--bad); }
.sum-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 600px) {
  .sum-cols { grid-template-columns: minmax(0, 1fr); }
  .sum-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sum-stats:is([data-cols="4"], :not([data-cols="4"])) > :last-child:nth-child(n) { grid-column: auto; }
  .sum-stats:is([data-cols="4"], :not([data-cols="4"])) > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
}
.nl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nl li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.nl .ico { width: 28px; height: 28px; flex: none; display: block; }
.nl .arrow { color: var(--ink-3); }
.nl .mt { flex: 1; min-width: 0; }
.nl .mc { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { margin: 0; font-size: 13.5px; color: var(--ink-3); }
