:root {
  color-scheme: light;
  --ink: #173042;
  --muted: #5a6e79;
  --paper: #fffdf8;
  --surface: #ffffff;
  --blue: #176b87;
  --blue-dark: #104d63;
  --coral: #f06b55;
  --yellow: #f5c451;
  --green: #42a66c;
  --red: #c43d4c;
  --line: #d8e2e5;
  font-family: Inter, ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 107, 135, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 107, 135, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1040px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 44px) 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.active-player {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 170px;
}

.active-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-player-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.compact-account-button {
  margin-left: -10px;
  font-size: 13px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: var(--coral);
  font-size: 14px;
}

.timer {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.timer-label {
  color: var(--muted);
  font-size: 14px;
}

#timer {
  min-width: 5ch;
  font-size: 22px;
  font-weight: 800;
}

.screen {
  min-height: calc(100vh - 132px);
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 84px);
}

.auth-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--yellow);
}

.auth-content {
  width: 100%;
  max-width: 440px;
}

.auth-content h1 {
  font-size: clamp(42px, 6vw, 64px);
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  font-weight: 800;
}

.profile-button:hover,
.profile-button.active {
  border-color: var(--blue);
  background: #edf7f8;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 18px;
}

.profile-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-note {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 18px 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.auth-form h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.auth-form label {
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.pin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.parent-entry {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-feedback {
  min-height: 24px;
  margin-top: 10px;
}

.start-screen {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.start-copy {
  max-width: 480px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.start-copy > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
}

.start-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--yellow);
}

.primary-button {
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  box-shadow: 0 4px 0 var(--blue-dark);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--blue-dark);
}

.primary-button:disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
  box-shadow: 0 4px 0 var(--blue-dark);
}

.primary-button:focus-visible,
input:focus-visible,
select:focus-visible,
.secondary-button:focus-visible,
.mission-type-button:focus-visible,
.mode-button:focus-visible,
.text-button:focus-visible,
.brand-button:focus-visible {
  outline: 4px solid rgba(245, 196, 81, 0.75);
  outline-offset: 3px;
}

.secondary-button {
  min-height: 46px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
}

.secondary-button:hover {
  background: #edf5f5;
}

.compact-button {
  min-height: 40px;
  padding: 7px 13px;
}

.mission-type-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.mission-type-button {
  min-height: 42px;
  padding: 7px 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
}

.mission-type-button.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.mode-picker {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  margin: 0 0 18px;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.mode-button {
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.mode-button.active {
  color: #fff;
  background: var(--coral);
}

.series-field {
  margin-bottom: 8px;
}

.series-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.series-field select {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.start-copy > p.mode-description {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.daily-reward {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.daily-reward-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.practice-screen {
  padding-top: 18px;
}

.practice-intro {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.practice-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.practice-table {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.practice-table h2 {
  margin: 0;
  padding: 12px 14px;
  color: #fff;
  background: var(--blue);
  font-size: 19px;
}

.practice-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
}

.practice-row label {
  font-weight: 800;
  text-align: right;
}

.practice-row input {
  width: 100%;
  min-height: 42px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.practice-row input.correct {
  border-color: var(--green);
  background: #eef9f2;
}

.practice-row input[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff3f4;
}

.practice-feedback {
  margin-top: 20px;
}

.practice-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.daily-reward-heading span,
.daily-reward-heading strong {
  display: block;
}

.daily-reward-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.daily-reward-heading strong {
  margin-top: 2px;
  color: var(--blue);
  font-size: 22px;
}

.hourglass-visual {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 78px;
}

.hourglass-visual > img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hourglass-reservoir {
  position: absolute;
  z-index: 1;
  right: 30%;
  bottom: 16%;
  left: 30%;
  height: 31%;
  overflow: hidden;
  border-radius: 4px 4px 11px 11px;
}

.sand-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  background: linear-gradient(#f8d56a, #d99b2b);
  transition: height 300ms ease;
}

.reward-goal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.reward-cooldown {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.sand-bags {
  display: flex;
  gap: 7px;
}

.sand-bag {
  display: block;
  width: 36px;
  height: 36px;
  opacity: 0.22;
  filter: grayscale(1);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.sand-bag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sand-bag.earned {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

.game-screen {
  padding-bottom: 20px;
}

.progress-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 auto 20px;
  width: min(760px, 100%);
}

.progress-row p {
  margin: 0;
  white-space: nowrap;
}

.game-mode-label {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 220ms ease;
}

.challenge {
  width: min(760px, 100%);
  margin: 0 auto;
}

.image-frame {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #e9f2f4;
  box-shadow: 10px 10px 0 var(--yellow);
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.text-prompt {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 18px;
  padding: clamp(28px, 7vw, 72px);
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--yellow);
  text-align: center;
}

.text-prompt span {
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-prompt strong {
  max-width: 26ch;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.25;
}

.answer-area {
  margin-top: 30px;
}

.answer-area label {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 800;
}

.answer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.answer-row input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 18px;
}

.answer-row input[aria-invalid="true"] {
  border-color: var(--red);
}

.revealed-answer {
  margin: 0 0 10px;
  padding: 11px 13px;
  border-left: 5px solid var(--yellow);
  color: var(--ink);
  background: #fff7d9;
  font-size: 17px;
}

.revealed-answer strong {
  color: var(--blue-dark);
  font-size: 20px;
}

.answer-help {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.text-button {
  min-height: 42px;
  padding: 7px 2px;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--coral);
}

.feedback {
  min-height: 28px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.feedback.success {
  color: var(--green);
}

.feedback.error {
  color: var(--red);
}

.dictation-screen {
  padding: 18px 0 40px;
}

.dictation-intro {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.dictation-audio-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.dictation-audio-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.dictation-audio-item strong {
  color: var(--coral);
  font-size: 17px;
}

.dictation-audio-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.audio-button {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  font-size: 13px;
}

.photo-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
  padding: 22px 0;
  border-top: 2px solid var(--line);
}

.photo-step h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.photo-step p {
  margin: 0;
  color: var(--muted);
}

.photo-button {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  text-align: center;
}

.dictation-photo-preview {
  grid-column: 1 / -1;
  width: min(520px, 100%);
  max-height: 440px;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.photo-step .feedback,
.photo-step > .primary-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.dictation-correction {
  width: min(780px, 100%);
}

.local-analysis-note {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-left: 6px solid var(--yellow);
  background: #fff8df;
}

.local-analysis-note strong {
  display: block;
  margin-bottom: 5px;
}

.local-analysis-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dictation-correction-list {
  display: grid;
  gap: 14px;
}

.dictation-correction-item {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.dictation-correction-item label {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-weight: 800;
}

.dictation-expected {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.dictation-correction-item textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  resize: vertical;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

.dictation-correction-item textarea.correct {
  border-color: var(--green);
  background: #eef9f2;
}

.dictation-correction-item textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff3f4;
}

.field-feedback {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

textarea:focus-visible,
.photo-button:focus-within {
  outline: 4px solid rgba(245, 196, 81, 0.75);
  outline-offset: 3px;
}

.finish-screen {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.finish-screen h1 {
  color: var(--blue);
}

.finish-screen > p:not(.eyebrow, .final-time, .record-message, .reward-message) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.final-time {
  margin: 8px 0 4px;
  color: var(--coral);
  font-size: clamp(58px, 12vw, 104px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.record-message {
  min-height: 24px;
  margin: 8px 0 26px;
  color: var(--green);
  font-weight: 800;
}

.reward-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--coral);
  font-size: 18px;
  font-weight: 900;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin: 4px 0 10px;
}

.result-stat {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.result-stat span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.result-stat strong {
  color: var(--coral);
  font-size: clamp(34px, 7vw, 58px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.finish-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-screen {
  padding-bottom: 36px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.summary-item {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
}

.summary-item span {
  display: block;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.summary-item strong {
  color: var(--blue);
  font-size: 38px;
  line-height: 1;
}

.stats-section {
  margin-top: 34px;
}

.stats-section h2,
.empty-state h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.history-list {
  border-top: 1px solid var(--line);
}

.history-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(260px, 1.3fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.history-meta strong,
.history-meta span {
  display: block;
}

.history-meta span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.history-measures {
  display: grid;
  gap: 8px;
}

.history-measure {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.history-track {
  height: 9px;
  overflow: hidden;
  border-radius: 5px;
  background: #dfe8e9;
}

.history-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.time-bar {
  background: var(--blue);
}

.error-bar {
  background: var(--coral);
}

.empty-state {
  max-width: 560px;
  margin: 80px auto;
  padding: 26px;
  border-left: 6px solid var(--yellow);
  background: var(--surface);
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 18px;
  top: -24px;
  border-radius: 2px;
  animation: fall 2.8s ease-in forwards;
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), calc(100vh + 60px), 0) rotate(620deg);
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-top: 14px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .active-player {
    max-width: 110px;
  }

  .compact-account-button {
    margin-left: -4px;
  }

  .compact-button {
    padding: 7px 10px;
    font-size: 13px;
  }

  .brand > span:last-child {
    max-width: 130px;
    line-height: 1.05;
  }

  .start-screen {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 24px;
  }

  .auth-screen {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
  }

  .auth-image {
    width: min(440px, calc(100% - 10px));
    margin: 0 auto;
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .auth-content {
    max-width: none;
  }

  .start-copy {
    order: 2;
  }

  .start-image {
    width: min(440px, calc(100% - 10px));
    margin: 0 auto;
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .image-frame {
    aspect-ratio: 1;
    box-shadow: 7px 7px 0 var(--yellow);
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .practice-tables-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .summary-item span {
    min-height: 0;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dictation-audio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-step {
    grid-template-columns: 1fr;
  }

  .photo-step .feedback,
  .photo-step > .primary-button,
  .dictation-photo-preview {
    grid-column: 1;
  }
}

@media (max-width: 430px) {
  .dictation-audio-list {
    grid-template-columns: 1fr;
  }

  .dictation-audio-item {
    min-height: 0;
  }
}

@media (max-width: 470px) {
  .timer-label {
    display: none;
  }

  .answer-row {
    grid-template-columns: 1fr;
  }

  .answer-row .primary-button {
    width: 100%;
  }

  .brand > span:last-child {
    display: none;
  }

  .topbar-actions .active-player {
    display: none;
  }

  .profile-list {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-stat {
    padding: 14px 8px;
  }

  .result-stat strong {
    font-size: 34px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading .eyebrow {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
