:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-strong: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --green: #0b6f55;
  --green-dark: #064f3d;
  --red: #cf3f4a;
  --yellow: #f0c84b;
  --blue: #2f74bd;
  --plum: #3f3442;
  --lavender: #ead7ff;
  --lavender-strong: #dfc0ff;
  --font-sans: "Apercu Pro", "Apercu", "Inter", "SF Pro Text", "SF Pro SC",
    "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-kerning: normal;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 600;
  min-height: 42px;
  padding: 0 14px;
}

button:hover {
  background: var(--green-dark);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(47, 116, 189, 0.35);
  outline-offset: 2px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: min(390px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
  background: #fbfcfb;
  padding: 22px;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 180ms ease;
  box-shadow: 24px 0 52px rgba(27, 42, 34, 0.16);
}

.app-shell.admin-open .sidebar {
  transform: translateX(0);
}

.brand-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.admin-close {
  margin-top: auto;
}

.desk-photo {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow:empty {
  display: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

#stage-title:empty {
  display: none;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

.panel,
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

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

.small-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 10px;
  white-space: nowrap;
}

.status-pill.accent {
  background: #fff2bd;
  color: #5f4a00;
}

.stack-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.stack-form label,
.import-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--green-dark);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--green);
  background: var(--surface-strong);
  color: var(--green-dark);
}

.danger-button {
  border: 1px solid rgba(207, 63, 74, 0.35);
  background: white;
  color: var(--red);
}

.danger-button:hover {
  background: #fff0f1;
  color: var(--red);
}

.progress-summary {
  display: grid;
  gap: 12px;
}

.summary-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-cell {
  min-height: 70px;
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 10px;
}

.summary-number {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
}

.summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.summary-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.summary-level-cell {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.summary-level-count {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
}

.summary-level-label {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
}

.panel-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.main-area {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 42px;
}

#stage-title {
  font-family: var(--font-sans);
  font-size: 2.45rem;
  font-weight: 700;
  line-height: 1.08;
}

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

.top-actions {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.top-icon-button,
.top-actions .report-tools .secondary-button.icon-button,
.top-actions .delete-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  border: 1px solid rgba(63, 52, 66, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--plum);
  padding: 0;
  box-shadow: 0 10px 24px rgba(63, 52, 66, 0.08);
}

.top-icon-button:hover,
.top-actions .report-tools .secondary-button.icon-button:hover,
.top-actions .delete-card-button:hover {
  border-color: rgba(63, 52, 66, 0.28);
  background: #f6eefc;
  color: var(--plum);
}

.top-icon-button svg,
.top-actions .report-tools .secondary-button.icon-button svg,
.top-actions .delete-card-button svg {
  width: 16px;
  height: 16px;
}

.top-card-tools {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.top-actions .delete-card-button:hover {
  border-color: rgba(190, 45, 55, 0.28);
  background: #fff1f3;
  color: #a7343e;
}

.top-actions .report-tools {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.top-actions .report-tools[aria-label="卡片反馈"] {
  position: relative;
  flex-direction: column;
  align-items: flex-end;
}

.top-actions .report-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 40px));
  box-shadow: 0 22px 48px rgba(63, 52, 66, 0.16);
}

.daily-progress-strip {
  display: grid;
  gap: 8px;
  margin: -6px auto 2px;
  width: min(760px, 100%);
}

.daily-progress-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  min-height: 24px;
}

.daily-progress-label {
  justify-self: center;
  color: #48c900;
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.1;
}

.daily-progress-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.daily-progress-track {
  position: relative;
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #dededf;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.08);
}

.daily-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, #58df08 0%, #35c800 100%);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.28),
    0 0 18px rgba(68, 207, 0, 0.2);
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sentence-strip {
  position: relative;
  border-left: 4px solid rgba(11, 111, 85, 0.62);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.045);
  padding: 30px 74px 30px 28px;
  border-radius: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  width: 42px;
  padding: 0;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.sentence-audio-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 36px;
  min-width: 36px;
  width: 36px;
  border-radius: 999px;
  opacity: 0.78;
}

.sentence-audio-button:hover,
.sentence-audio-button:focus-visible {
  opacity: 1;
}

.sentence-strip p {
  margin: 0;
  color: #1d1d1f;
  font-size: 1.33rem;
  font-weight: 400;
  line-height: 1.62;
}

.practice-board {
  min-height: 460px;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 30px;
}

.level-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}

.level-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #eaf2fb;
  color: #174f88;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0 10px;
  white-space: nowrap;
}

.level-intro {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.55;
}

.answer-review {
  display: grid;
  gap: 24px;
}

.review-details {
  display: grid;
  gap: 12px;
}

.review-controls {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.review-side-left {
  justify-self: start;
}

.review-side-right {
  justify-self: end;
}

.review-continue-button {
  width: 132px;
  min-width: 132px;
  min-height: 54px;
  border: 1px solid rgba(63, 52, 66, 0.12);
  border-radius: 8px;
  background: var(--lavender);
  color: var(--plum);
  box-shadow: 0 14px 30px rgba(63, 52, 66, 0.12);
}

.review-continue-button:hover {
  border-color: rgba(63, 52, 66, 0.2);
  background: var(--lavender-strong);
  color: var(--plum);
}

.review-continue-button svg {
  width: 28px;
  height: 28px;
}

.task-list {
  display: grid;
  gap: 18px;
}

.task-block {
  display: grid;
  gap: 26px;
}

.task-title {
  font-weight: 700;
}

.task-question {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.48rem;
  font-weight: 650;
  line-height: 1.4;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice {
  display: grid;
  grid-template-columns: auto 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid rgba(210, 210, 215, 0.82);
  border-radius: 8px;
  background: #ffffff;
  padding: 15px 16px;
  cursor: pointer;
  font-size: 1.07rem;
  font-weight: 400;
  line-height: 1.45;
}

.choice:hover {
  border-color: rgba(11, 111, 85, 0.48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--green-dark);
  font-weight: 700;
}

.answer-input {
  max-width: 520px;
}

.submit-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 52px;
  border: 1px solid rgba(63, 52, 66, 0.12);
  border-radius: 8px;
  background: var(--lavender);
  color: var(--plum);
  box-shadow: 0 14px 30px rgba(63, 52, 66, 0.12);
}

.submit-button:hover {
  border-color: rgba(63, 52, 66, 0.2);
  background: var(--lavender-strong);
  color: var(--plum);
}

.submit-button svg {
  width: 25px;
  height: 25px;
  transform: translateY(2px);
}

.report-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.report-tools.compact {
  width: auto;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.review-side-right .report-tools.compact {
  align-items: flex-end;
}

.report-panel {
  width: min(420px, 100%);
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
}

.report-tools[aria-label="卡片反馈"] {
  flex-direction: column;
  align-items: flex-end;
}

.report-tools .secondary-button.icon-button {
  align-self: flex-end;
}

.report-form {
  margin-top: 0;
}

.report-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feedback-box {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 16px;
}

.feedback-box.correct {
  border-color: rgba(22, 116, 86, 0.45);
  background: #f1faf5;
}

.feedback-box.wrong {
  border-color: rgba(207, 63, 74, 0.45);
  background: #fff6f6;
}

.feedback-title {
  margin: 0 0 5px;
  font-weight: 900;
}

#feedback-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feedback-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-line {
  border-left: 4px solid var(--blue);
  padding: 8px 10px;
  background: #f4f9ff;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 1.02rem;
}

.answer-review .detail-line {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-left: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.045);
  padding: 18px 20px;
  color: #1d1d1f;
  font-size: 1.08rem;
  line-height: 1.68;
}

.answer-review .detail-line:first-child {
  border-color: rgba(11, 111, 85, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.review-detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.answer-review .detail-line:first-child .review-detail-label {
  color: var(--green-dark);
}

.review-detail-body {
  margin: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--muted);
  text-align: center;
}

.empty-state-complete {
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 44px 20px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6efff 100%);
  box-shadow: 0 18px 40px rgba(63, 52, 66, 0.12);
}

.empty-icon .thumbs-svg {
  width: 78px;
  height: 78px;
}

.empty-title,
.empty-note {
  margin: 0;
}

.empty-title {
  color: var(--plum);
  font-size: 1.72rem;
  font-weight: 750;
  line-height: 1.18;
}

.empty-note {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.continue-extra-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 184px;
  min-height: 54px;
  margin-top: 10px;
  border: 1px solid rgba(146, 102, 184, 0.28);
  background: var(--lavender);
  color: var(--plum);
  box-shadow: 0 18px 38px rgba(146, 102, 184, 0.18);
}

.continue-extra-button:hover {
  background: var(--lavender-strong);
  color: var(--plum);
}

.continue-extra-button svg {
  width: 23px;
  height: 23px;
}

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

.celebration-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}

.correct-check-layer {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.correct-check-pop {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(67, 210, 0, 0.18);
  animation: correct-check-pop 920ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.correct-check-pop svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.correct-check-circle {
  fill: #d8ffc0;
  stroke: #58cc02;
  stroke-width: 5;
  transform-origin: center;
  animation: correct-check-circle 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.correct-check-path {
  fill: none;
  stroke: #43c000;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
  animation: correct-check-draw 420ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.celebration-flower {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.14));
  animation: flower-rise 1450ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.flower-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flower-level-2 {
  width: 116px;
  height: 116px;
}

.flower-level-4 {
  width: 112px;
  height: 112px;
}

.flower-level-5 {
  width: 120px;
  height: 120px;
}

.thumbs-pop {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 24px 28px rgba(63, 52, 66, 0.14));
  animation: thumbs-pop 1450ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.thumbs-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.thumb-spark {
  fill: none;
  stroke: #ff8a00;
  stroke-width: 5;
  stroke-linecap: round;
  transform-origin: center;
  animation: thumb-spark 860ms ease-out infinite alternate;
}

.spark-two {
  stroke: #ff2d8d;
  animation-delay: 110ms;
}

.spark-three {
  stroke: #ffcc00;
  animation-delay: 220ms;
}

.confetti-burst {
  position: relative;
  width: 1px;
  height: 1px;
}

.confetti-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 15px;
  border-radius: 3px;
  background: var(--c);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  animation: confetti-pop 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--d) forwards;
}

.confetti-piece:nth-child(3n) {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.confetti-piece:nth-child(4n) {
  width: 7px;
  height: 19px;
  border-radius: 999px;
}

.confetti-flower {
  position: absolute;
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.13));
  animation: confetti-flower-pop 1650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flower-rise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.54) rotate(-8deg);
  }

  18% {
    opacity: 1;
    transform: translateY(0) scale(1.06) rotate(3deg);
  }

  62% {
    opacity: 1;
    transform: translateY(-18px) scale(1) rotate(-2deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-72px) scale(1.08) rotate(8deg);
  }
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

@keyframes confetti-flower-pop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-12deg);
  }

  16% {
    opacity: 1;
    transform: scale(1.08) rotate(4deg);
  }

  72% {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-34px) scale(1.05) rotate(8deg);
  }
}

@keyframes correct-check-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.52);
  }

  18% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }

  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-28px) scale(0.92);
  }
}

@keyframes correct-check-circle {
  0% {
    transform: scale(0.84);
  }

  45% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes correct-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes thumbs-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.46) rotate(-10deg);
  }

  18% {
    opacity: 1;
    transform: translateY(0) scale(1.1) rotate(5deg);
  }

  42% {
    opacity: 1;
    transform: translateY(-6px) scale(0.98) rotate(-3deg);
  }

  72% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02) rotate(2deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-54px) scale(1.05) rotate(8deg);
  }
}

@keyframes thumb-spark {
  from {
    opacity: 0.55;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-layer {
    display: none;
  }

  .correct-check-layer {
    display: none;
  }

  .thumb-spark {
    animation: none;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 0;
  }

  .main-area {
    padding: 20px;
  }

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

@media (max-width: 560px) {
  .brand-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .desk-photo {
    width: 64px;
    height: 64px;
  }

  .topbar,
  .level-header {
    display: grid;
  }

  .topbar {
    justify-items: end;
  }

  .review-controls {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .review-side-left,
  .review-side-right {
    justify-self: center;
  }

  .review-continue-button {
    width: min(180px, 100%);
    min-width: 132px;
  }

  .status-pills {
    justify-content: flex-start;
  }

  .practice-board {
    padding: 18px;
  }

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

  .summary-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
