/* ==========================================================================
   UK English Practice — Elderly-Friendly, iPhone Safari PWA Stylesheet
   WCAG 2.1 AA high contrast | Base >= 20px | Headings >= 28px | Targets >= 56px
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-soft: #F2EFE9;
  --surface-tint: #EBF2FA;
  --text: #16212E;
  --text-muted: #465567;
  --border: #CBD5E1;
  --border-strong: #94A3B8;

  --primary: #13345B;
  --primary-hover: #0D2542;
  --primary-text: #FFFFFF;

  --accent: #B83232;
  --accent-soft: #FDF0F0;

  --success: #166534;
  --success-bg: #E7F6EC;
  --success-border: #86EFAC;

  --warn: #9A3412;
  --warn-bg: #FEF3E2;
  --warn-border: #FDBA74;

  --star: #B45309;
  --shadow: 0 3px 12px rgba(19, 52, 91, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --touch: 56px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

[data-theme="dark"] {
  --bg: #111827;
  --surface: #1E293B;
  --surface-soft: #263347;
  --surface-tint: #1B3352;
  --text: #F8FAFC;
  --text-muted: #CBD5E1;
  --border: #475569;
  --border-strong: #64748B;

  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-text: #FFFFFF;

  --accent: #F87171;
  --accent-soft: #3B1C1E;

  --success: #86EFAC;
  --success-bg: #143624;
  --success-border: #22C55E;

  --warn: #FDBA74;
  --warn-bg: #3D2510;
  --warn-border: #FB923C;

  --star: #FBBF24;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 20px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  -webkit-tap-highlight-color: rgba(19, 52, 91, 0.14);
}

body.text-large {
  font-size: 1.15rem;
}

body.text-xlarge {
  font-size: 1.3rem;
}

h1, h2, h3 {
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 1.5rem; /* >= 30px at 20px base */
}

h2 {
  font-size: 1.4rem; /* >= 28px at 20px base */
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 0.75rem;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

.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;
}

/* Top Navigation Bar (always visible, respects iPhone notch) */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary);
  color: var(--primary-text);
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.top-bar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  min-height: var(--touch);
  min-width: 84px;
  padding: 6px 12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  outline: 3px solid #FBBF24;
  outline-offset: 2px;
}

.nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.nav-btn-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.nav-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.nav-btn-text small {
  font-size: 0.68rem;
  opacity: 0.92;
}

.top-bar-title {
  text-align: center;
  overflow: hidden;
}

.top-bar-title .title-zh {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-title .title-en {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Offline notice */
.offline-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 2px solid var(--warn-border);
  padding: 12px 16px;
  text-align: center;
  font-size: 0.92rem;
}

/* Main Content Area */
.app-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px calc(16px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(16px + var(--safe-left));
}

/* Reusable Cards */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-soft {
  background: var(--surface-soft);
  border-color: var(--border);
}

.card-tint {
  background: var(--surface-tint);
  border-color: #93C5FD;
}

[data-theme="dark"] .card-tint {
  border-color: #3B82F6;
}

.card-success {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.card-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

/* Accessible Buttons (all >= 56px tall) */
.btn {
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s ease, background-color 0.15s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid #D97706;
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-soft);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-success {
  background: var(--success);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-success {
  color: #0B1F14;
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-block {
  width: 100%;
}

.btn-stack {
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
}

.btn-stack .sub {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.9;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-row > .btn {
  flex: 1 1 140px;
}

/* Profile Bar & Controls on Home */
.profile-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-switch {
  display: flex;
  gap: 8px;
}

.pill-btn {
  min-height: var(--touch);
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Daily Goal & Quick Actions */
.goal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 2px solid var(--warn-border);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.quick-tile {
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.quick-tile:focus-visible {
  outline: 3px solid #D97706;
  outline-offset: 2px;
}

.quick-tile .tile-icon {
  font-size: 1.55rem;
  line-height: 1.1;
}

.quick-tile .tile-zh {
  font-size: 1.02rem;
  font-weight: 800;
}

.quick-tile .tile-en {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Scenario Tiles Grid */
.section-heading {
  margin: 18px 0 12px;
}

.section-heading h2 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.section-heading p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.scenario-tile {
  min-height: 120px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  border-left: 8px solid var(--tile-accent, var(--primary));
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}

.scenario-tile:hover {
  border-color: var(--primary);
}

.scenario-tile:focus-visible {
  outline: 3px solid #D97706;
  outline-offset: 2px;
}

.scenario-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scenario-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.done-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.scenario-title-zh {
  font-size: 1.15rem;
  font-weight: 800;
}

.scenario-title-en {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

[data-theme="dark"] .scenario-title-en {
  color: #93C5FD;
}

.scenario-short {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Scenario 4-Step Activity Cards */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-btn {
  width: 100%;
  min-height: 82px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.activity-btn:hover {
  border-color: var(--primary);
}

.activity-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-step-num.completed {
  background: var(--success);
}

.activity-btn-body {
  flex: 1;
}

.activity-btn-body strong {
  display: block;
  font-size: 1.1rem;
}

.activity-btn-body span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Phrase Cards */
.phrase-en-large {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 10px;
}

.phrase-zh-large {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tip-box {
  background: var(--surface-tint);
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.94rem;
}

.star-btn {
  min-width: var(--touch);
  min-height: var(--touch);
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  font-size: 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-btn.is-fav {
  background: var(--warn-bg);
  border-color: var(--star);
}

/* Speech & Microphone Controls */
.mic-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.mic-btn {
  min-width: 220px;
  min-height: 76px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 3px solid var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(19, 52, 91, 0.25);
}

.mic-btn.is-listening {
  background: var(--accent);
  border-color: var(--accent);
  animation: micPulse 1.3s ease-in-out infinite;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 50, 50, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(184, 50, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 50, 50, 0); }
}

.speed-toggle {
  display: inline-flex;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.speed-toggle button {
  min-height: 48px;
  padding: 6px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.speed-toggle button.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Role-Play Chat Bubbles */
.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.bubble {
  border-radius: var(--radius);
  padding: 16px;
  border: 2px solid var(--border);
  max-width: 96%;
}

.bubble-ai {
  align-self: flex-start;
  background: var(--surface);
  border-left: 6px solid var(--primary);
}

.bubble-user {
  align-self: flex-end;
  background: var(--surface-tint);
  border-color: #93C5FD;
}

.bubble-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bubble-en {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.bubble-zh {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.98rem;
  color: var(--text-muted);
}

.feedback-card {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  border: 2px solid var(--success-border);
  font-size: 0.94rem;
}

.feedback-tip {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(22, 101, 52, 0.25);
  color: var(--text);
}

/* Suggestion & Option Cards */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.option-btn {
  flex: 1;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-tint);
}

.option-btn.is-correct {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--text);
}

.option-btn.is-wrong {
  background: var(--warn-bg);
  border-color: var(--warn);
}

.option-btn .opt-en {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.option-btn .opt-zh {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Pronunciation Word Highlights */
.word-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.word-chip {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  border: 2px solid transparent;
}

.word-chip.word-match {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.word-chip.word-retry {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-border);
}

.stars-display {
  font-size: 2rem;
  letter-spacing: 6px;
  margin: 8px 0;
}

/* Matching Game Grid */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.match-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card {
  min-height: 68px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.match-card.selected {
  border-color: var(--primary);
  background: var(--surface-tint);
  box-shadow: 0 0 0 3px rgba(19, 52, 91, 0.22);
}

.match-card.matched {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
  opacity: 0.78;
}

/* Forms & Textareas */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: 3px solid #D97706;
  outline-offset: 1px;
  border-color: var(--primary);
}

/* Thinking Animation */
.thinking-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-tint);
  border: 2px solid #93C5FD;
  margin: 10px 0;
}

.thinking-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.thinking-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.1s infinite ease-in-out both;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.16s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.55); opacity: 0.45; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* Celebration Animation */
.celebration-box {
  text-align: center;
  padding: 26px 18px;
  position: relative;
  overflow: hidden;
}

.confetti-burst {
  font-size: 2.6rem;
  animation: popIn 0.55s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  75% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* Full-screen Overlay (Show to Staff & Modals) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left));
  overflow-y: auto;
}

.staff-sheet {
  width: 100%;
  max-width: 740px;
  min-height: 75dvh;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 24px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.staff-english {
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 900;
  line-height: 1.22;
  color: #0F172A;
  word-break: break-word;
}

.staff-zh-sub {
  font-size: 1.05rem;
  color: #475569;
  font-weight: 600;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 22px;
  border: 2px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Emergency 999 Banner */
.emergency-999 {
  background: #991B1B;
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.emergency-999 h2,
.emergency-999 p {
  color: #FFFFFF;
}

/* Toast Notification */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 300;
  width: min(92vw, 520px);
  pointer-events: none;
}

.toast {
  background: #111827;
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Loading Card */
.loading-card {
  text-align: center;
  padding: 40px 20px;
}

/* Progress Map */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.map-node {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-node.is-complete {
  background: var(--success-bg);
  border-color: var(--success-border);
}

/* Code editor textarea for Admin */
.code-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  min-height: 300px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .mic-btn.is-listening,
  .thinking-dots span,
  .confetti-burst {
    animation: none;
  }
}
