:root {
  color-scheme: light;
  --bg: #fafbfc;
  --surface: #ffffff;
  --ink: #181b20;
  --muted: #56616d;
  --line: #e1e6ec;
  --line-strong: #ccd5de;
  --accent: #2a5d88;
  --accent-ink: #1c4569;
  --accent-wash: #edf3f8;
  --accent-line: #92abc2;
  --button-top: #285781;
  --button-bottom: #163a5f;
  --button-edge: #163a5f;
  --button-ink: #ffffff;
  --glass: rgb(248 252 255 / 72%);
  --glass-edge: rgb(50 79 109 / 16%);
  --reflection: rgb(251 254 255 / 92%);
  --shadow: rgb(21 42 63 / 9%);
  --ambient: rgb(207 223 237 / 26%);
  --good: #256246;
  --good-wash: #edf7f0;
  --bad: #8b3f2b;
  --bad-wash: #fcf0ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101215;
  --surface: #181c21;
  --ink: #edf0f4;
  --muted: #aeb8c4;
  --line: #2e3741;
  --line-strong: #465464;
  --accent: #83add2;
  --accent-ink: #adcae4;
  --accent-wash: #1b2836;
  --accent-line: #537492;
  --button-top: #315c84;
  --button-bottom: #1c3d5e;
  --button-edge: #557a9d;
  --button-ink: #f8fbff;
  --glass: rgb(31 40 50 / 70%);
  --glass-edge: rgb(173 200 227 / 22%);
  --reflection: rgb(182 213 243 / 14%);
  --shadow: rgb(0 0 0 / 40%);
  --ambient: rgb(43 74 107 / 23%);
  --good: #9ed7b3;
  --good-wash: #19291f;
  --bad: #f2ac9b;
  --bad-wash: #30201e;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

[data-mood="indicativo"] { --mood-ink: #244f77; --mood-wash: #eaf1f9; }
[data-mood="subjuntivo"] { --mood-ink: #2c625a; --mood-wash: #e8f2ef; }
[data-mood="imperativo"] { --mood-ink: #765632; --mood-wash: #f3eee5; }
[data-theme="dark"] [data-mood="indicativo"] { --mood-ink: #b6d1eb; --mood-wash: #1b2c3e; }
[data-theme="dark"] [data-mood="subjuntivo"] { --mood-ink: #a5d2c6; --mood-wash: #1b2e2a; }
[data-theme="dark"] [data-mood="imperativo"] { --mood-ink: #dfc39e; --mood-wash: #30281f; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: radial-gradient(ellipse 55rem 34rem at 50% -13rem, var(--ambient), transparent 90%), var(--bg);
  color: var(--ink);
  transition: background-color 180ms ease, color 180ms ease;
}

button, input, textarea, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .72; }
button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
p, h1, dl, dd { margin: 0; }

:focus-visible,
.preset input:focus-visible + .preset-body,
.chip input:focus-visible + span,
.segments input:focus-visible + span,
.appearance-menu label:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.topbar {
  width: min(100% - 3rem, 78rem);
  min-height: 5.5rem;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -.05em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding-bottom: .16rem;
  border-radius: .68rem;
  background: linear-gradient(145deg, var(--button-top), var(--button-bottom));
  color: var(--button-ink);
  box-shadow: inset 0 1px 0 var(--reflection), 0 3px 6px var(--shadow);
  font-size: 1.55rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}

.toolbar { position: relative; display: flex; align-items: center; gap: .55rem; z-index: 1; }

.glass {
  background: linear-gradient(140deg, var(--reflection), transparent 65%), var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--reflection), 0 3px 10px var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.settings-button, .theme-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 2rem;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.settings-button { gap: .55rem; padding-inline: .9rem 1rem; font-size: .875rem; font-weight: 600; }
.theme-button { width: 2.75rem; }
.info-mark {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .69rem;
  font-weight: 650;
  line-height: 1;
}
.icon-moon, [data-theme="dark"] .icon-sun { display: none !important; }
[data-theme="dark"] .icon-moon { display: inline-block !important; }

.appearance-menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  width: 10.5rem;
  padding: .45rem;
  border-radius: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px var(--shadow);
}

.appearance-menu legend { position: absolute; clip-path: inset(50%); }
.appearance-menu label {
  position: relative;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: .68rem;
  border-radius: .7rem;
  cursor: pointer;
}

.appearance-menu label:hover, .appearance-menu label:has(input:checked) { background: var(--accent-wash); }
.appearance-menu input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-check { visibility: hidden; color: var(--accent-ink); }
.appearance-menu input:checked ~ .theme-check { visibility: visible; }

.icon { position: relative; display: inline-block; color: inherit; width: 1.125rem; height: 1.125rem; flex: none; }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-bolt::before {
  inset: 0;
  background: currentColor;
  clip-path: polygon(55% 0, 12% 55%, 46% 55%, 37% 100%, 90% 39%, 55% 39%, 65% 0);
}
.icon-lines::before {
  width: .94rem;
  height: .72rem;
  top: .35rem;
  left: .09rem;
  background: repeating-linear-gradient(to bottom, currentColor 0 1.5px, transparent 1.5px 4.5px);
}
.icon-lines::after { top: 0; left: .09rem; width: .61rem; border-top: 1.5px solid; }
.icon-branch::before { top: .13rem; bottom: .13rem; left: .25rem; width: .5rem; border: 1.5px solid; border-right: 0; border-radius: .36rem 0 0 .36rem; }
.icon-branch::after { top: .05rem; right: .08rem; width: .33rem; height: .33rem; border-radius: 50%; background: currentColor; box-shadow: 0 .69rem 0 currentColor, -.8rem .35rem 0 currentColor; }
.icon-tune::before { inset: .21rem .02rem; border-block: 1.5px solid; }
.icon-tune::after { top: .08rem; left: .26rem; width: .35rem; height: .35rem; border-radius: 50%; background: currentColor; box-shadow: .35rem .6rem 0 currentColor; }
.icon-sun::before { inset: .29rem; border: 1.5px solid; border-radius: 50%; }
.icon-sun::after {
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) center top / 1.5px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 1.5px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 2px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 2px 1.5px no-repeat;
}
.icon-moon::before { inset: .08rem .23rem .18rem .08rem; border-radius: 50%; box-shadow: -.21rem .2rem 0 0 currentColor; }

main { min-width: 0; }
.setup {
  width: min(100% - 3rem, 48rem);
  margin: clamp(3rem, 10vh, 7rem) auto 4rem;
}

.setup-heading { text-align: center; margin-bottom: clamp(1.75rem, 5vw, 2.6rem); }
.setup-heading h1 {
  font-size: clamp(2.25rem, 7vw, 4.15rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.043em;
  text-wrap: balance;
}
.setup-heading p { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.45; }

.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.preset { min-width: 0; cursor: pointer; }
.preset-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 100%;
  min-height: 8rem;
  padding: .85rem .9rem .9rem;
  border: 1px solid var(--line);
  border-radius: 1.17rem;
  background: var(--surface);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.preset input:checked + .preset-body {
  background: var(--accent-wash);
  border-color: var(--accent-line);
  box-shadow: 0 5px 14px var(--shadow), inset 0 1px 0 var(--reflection);
}
.preset-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
  border-radius: .75rem;
  background: var(--accent-wash);
  color: var(--accent);
}
.preset input:checked + .preset-body .preset-icon { background: var(--surface); box-shadow: 0 2px 5px var(--shadow); }
.preset[data-mood] .preset-body .preset-icon { color: var(--mood-ink); background: var(--mood-wash); }
.preset-indicator {
  position: absolute;
  top: 1.1rem;
  right: .9rem;
  width: .9rem;
  height: .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.preset input:checked + .preset-body .preset-indicator { border: .24rem solid var(--accent); background: var(--surface); }
.preset-title { font-size: 1rem; font-weight: 660; letter-spacing: -.025em; }
.preset-description { margin-top: .32rem; color: var(--muted); font-size: .855rem; line-height: 1.35; }

.setup-actions { margin: 1.75rem auto 0; text-align: center; }
.answer-modes legend { margin: 0 auto .55rem; font-size: .875rem; font-weight: 630; }
.segments {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .15rem;
  padding: .23rem;
  border-radius: 1rem;
}
.segments label { cursor: pointer; }
.segments label > span {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding-inline: .82rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 570;
  transition: background-color 140ms ease;
}
.segments input:checked + span {
  color: var(--accent-ink);
  border-color: var(--glass-edge);
  background: var(--accent-wash);
  box-shadow: inset 0 1px 0 var(--reflection), 0 2px 6px var(--shadow);
}

.field-hint { margin-top: .48rem; color: var(--muted); font-size: .85rem; line-height: 1.45; overflow-wrap: anywhere; }
.mode-hint { min-height: 1.5rem; margin-top: .64rem; }
.primary {
  border: 1px solid var(--button-edge);
  border-radius: .95rem;
  min-height: 3.15rem;
  padding: .8rem 1.1rem;
  color: var(--button-ink);
  background: linear-gradient(170deg, var(--button-top), var(--button-bottom));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%), 0 5px 13px var(--shadow);
  font-weight: 650;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.start-button { display: block; width: min(100%, 14.5rem); margin: 1.25rem auto 0; }
.primary:active:not(:disabled), .settings-button:active, .theme-button:active { transform: scale(.98); }

.setup-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .5rem;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .85rem;
}

.new-session {
  min-height: 2.75rem;
  padding: .35rem .5rem;
  border: 0;
  border-radius: .6rem;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .17em;
}

.dialog-card {
  width: min(100% - 2rem, 25rem);
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.2rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 15px 50px var(--shadow);
}
.dialog-card::backdrop { background: rgb(15 25 36 / 38%); }
.dialog-card h2 { margin: 0 0 .55rem; font-size: 1.18rem; }
.dialog-card p { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.dialog-card a { color: var(--accent-ink); text-underline-offset: .16em; }
.dialog-card .creator { margin-bottom: .65rem; color: var(--ink); font-weight: 600; }
.about-license { margin-top: .6rem; }
.about-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .9rem;
}
.feedback-form { display: grid; gap: .55rem; margin-top: 1rem; }
.feedback-form label { font-size: .9rem; font-weight: 620; }
.feedback-form label small { margin-inline-start: .35rem; color: var(--muted); font-weight: 450; }
.feedback-form .select-wrap { justify-self: start; margin-bottom: .4rem; max-width: 100%; }
.feedback-form select { max-width: 100%; }
.feedback-form .dialog-actions { margin-top: .25rem; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .55rem; margin-top: 1.05rem; }
.dialog-button {
  min-height: 3rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: .85rem;
  background: var(--surface);
}

.custom-options {
  margin-top: 1.9rem;
  padding: 1.55rem 0 1.75rem;
  border-block: 1px solid var(--line);
}
.custom-section + .custom-section { margin-top: 1.5rem; }
.custom-section legend, .field-label { margin-bottom: .65rem; font-size: 1rem; font-weight: 650; }
.tense-groups { border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.tense-group + .tense-group { border-top: 1px solid var(--line); }
.tense-group summary {
  display: flex;
  align-items: center;
  min-height: 2.95rem;
  gap: .55rem;
  padding: .45rem .9rem;
  border-radius: .85rem;
  font-size: .92rem;
  font-weight: 630;
}
.mood-label { color: var(--mood-ink); }
.imperative-option { padding: .35rem .85rem; }
.imperative-option .chip { display: inline-block; }
.imperative-option .chip span { border-color: transparent; color: var(--mood-ink); font-weight: 600; }
.imperative-option .chip input:checked + span { background: var(--mood-wash); color: var(--mood-ink); }
.tense-count { margin-left: auto; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.chevron { width: .48rem; height: .48rem; margin: 0 .2rem .2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tense-group[open] .chevron { transform: rotate(225deg); margin-bottom: -.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.tense-chips { padding: .1rem .85rem .8rem; }
.chip { cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: .72rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
}
.chip span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; flex: none; border: 1px solid var(--line-strong); border-radius: .22rem; }
.chip input:checked + span { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-line); }
.chip input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent-wash);
}

.verb-types { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.2rem; }
.select-label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted); }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap .chevron { position: absolute; right: .65rem; pointer-events: none; }
select {
  appearance: none;
  min-height: 2.75rem;
  padding: .45rem 2rem .45rem .7rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: .72rem;
  color: var(--ink);
  font-size: .95rem;
}
.field-label { display: flex; align-items: baseline; gap: .6rem; }
.field-label span { color: var(--muted); font-size: .82rem; font-weight: 450; }
textarea, #answer-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: .9rem;
  padding: .75rem .9rem;
  color: var(--ink);
  line-height: 1.5;
}
textarea { display: block; resize: vertical; min-height: 4.85rem; }
textarea::placeholder, #answer-input::placeholder { color: var(--muted); opacity: 1; }
.verb-validation { color: var(--good); }
#verb-unknown, .form-error { color: var(--bad); }
.form-error { margin-top: .9rem; font-size: .92rem; line-height: 1.45; }

.practice {
  width: min(100% - 3rem, 32rem);
  margin: clamp(3.5rem, 12vh, 7.5rem) auto 3rem;
  text-align: center;
}
.prompt { margin-bottom: 1.65rem; }
.question-grammar {
  display: inline-grid;
  justify-items: center;
  gap: .3rem;
  max-width: 100%;
  color: var(--mood-ink, var(--accent-ink));
}
.question-mood:not(:empty) {
  padding: .35rem .75rem;
  border-radius: 2rem;
  background: var(--mood-wash, var(--accent-wash));
  font-weight: 680;
  font-size: .875rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.question-grammar[data-mood="imperativo"] .question-mood { font-size: 1rem; }
.question-tense { color: var(--ink); font-size: 1.12rem; font-weight: 650; line-height: 1.25; text-wrap: balance; }
#question-verb {
  margin-top: .65rem;
  font-size: clamp(2rem, 9vw, 5.65rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
#question-verb:empty { min-height: 1.05em; }
#question-verb.long-verb { font-size: clamp(1.9rem, 8vw, 3.9rem); }
.question-person { min-height: 1.4em; margin-top: .5rem; font-size: clamp(1.2rem, 3.5vw, 1.55rem); color: var(--muted); letter-spacing: -.035em; }
.answer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .52rem; }
#answer-input { min-height: 3.35rem; font-size: 1.125rem; }
#answer-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#answer-input[aria-readonly="true"] { caret-color: transparent; }
#answer-form[aria-busy="true"] #answer-input { background: var(--bg); }
.answer-button { display: flex; align-items: center; justify-content: center; gap: .55rem; min-width: 6.4rem; }
.answer-button kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.27rem;
  height: 1.25rem;
  border: 1px solid currentColor;
  border-radius: .3rem;
  opacity: .78;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1;
}
.answer-row[data-result="correct"] #answer-input { border-color: var(--good); }
.answer-row[data-result="wrong"] #answer-input { border-color: var(--bad); }
.feedback {
  margin-top: .8rem;
  padding: .77rem .9rem;
  border-radius: .9rem;
  background: var(--good-wash);
  color: var(--good);
  text-align: left;
  animation: feedback-in 140ms ease-out both;
}
.feedback[data-result="wrong"] { background: var(--bad-wash); color: var(--bad); }
.feedback-heading { display: flex; align-items: baseline; gap: .47rem; font-size: .935rem; font-weight: 650; line-height: 1.35; }
.correct-form { margin-top: .47rem; color: var(--ink); font-size: 1.15rem; font-weight: 650; overflow-wrap: anywhere; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .7rem; }
.comparison dt { margin-bottom: .17rem; color: var(--muted); font-size: .8rem; }
.comparison dd { color: var(--ink); font-size: 1.04rem; font-weight: 620; white-space: pre-wrap; overflow-wrap: anywhere; }
.comparison mark { color: inherit; background: transparent; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .19em; }
.comparison > div:first-child mark { text-decoration-color: var(--bad); }
.feedback-translation {
  margin-top: .62rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.feedback-translation strong { font-weight: 620; }
.feedback-example { margin-top: .72rem; color: var(--muted); font-size: .86rem; line-height: 1.43; }
.feedback-example span { display: block; font-size: .8rem; font-weight: 620; }
.score { margin-top: 1.15rem; color: var(--accent-ink); font-size: .86rem; font-variant-numeric: tabular-nums; }
#review-count { color: var(--muted); }
.score-details { margin-top: .32rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.noscript { padding: 1.15rem; text-align: center; color: var(--muted); font-size: .8rem; }

@keyframes feedback-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
  .preset:hover .preset-body { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: 0 6px 18px var(--shadow); }
  .primary:hover:not(:disabled) { filter: brightness(1.08); }
  .settings-button:hover, .theme-button:hover { transform: translateY(-1px); border-color: var(--accent-line); box-shadow: inset 0 1px 0 var(--reflection), 0 5px 14px var(--shadow); }
  .chip:hover span, .segments label:hover span { border-color: var(--accent-line); }
  .new-session:hover, .dialog-button:hover { color: var(--accent-ink); background: var(--accent-wash); }
}

@media (max-width: 46rem) {
  .setup { width: min(100% - 2.25rem, 34rem); }
  .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
}

@media (max-width: 30rem) {
  .topbar { width: calc(100% - 2rem); min-height: 4.4rem; }
  .setup { margin-block: 2.1rem 2.75rem; }
  .setup-heading p { margin-top: .7rem; }
  .preset-body { min-height: 7.15rem; padding: .68rem .72rem .75rem; }
  .preset-icon { margin-bottom: .5rem; }
  .preset-indicator { top: .95rem; right: .75rem; }
  .preset-description { font-size: .82rem; }
  .setup-actions { margin-top: 1.25rem; }
  .practice { width: calc(100% - 2rem); margin-block: 2.5rem 2rem; }
  .prompt { margin-bottom: 1.2rem; }
  .answer-button { min-width: 4.65rem; padding-inline: .75rem; }
  .answer-button kbd { display: none; }
}

@media (pointer: coarse) {
  .answer-button kbd { display: none; }
}

@media (max-width: 30rem) {
  .settings-button { width: 2.75rem; padding: 0; }
  .settings-button span:last-child { display: none; }
}

@media (max-height: 32rem) {
  .practice { margin-top: 1.25rem; }
  .prompt { margin-bottom: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
