/* ==========================================================================
   Smart Pronunciation Tester — Crisp Sky & Cobalt Classroom Theme
   Plain CSS (zero build step, zero framework dependencies)
   ========================================================================== */

:root {
  /* 60% Dominant Neutral Canvas */
  --bg-canvas: #f4f8fd;
  --bg-canvas-accent: #e6f0fc;

  /* 30% Structural Surfaces & Typography */
  --surface-card: #ffffff;
  --surface-subtle: #f8fbff;
  --border-subtle: #dce6f2;
  --border-strong: #c4d5ea;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* 10% Action & Semantic Accents */
  --cobalt-600: #2563eb;
  --cobalt-700: #1d4ed8;
  --cobalt-100: #dbeafe;
  --cobalt-50: #eff6ff;
  --sky-600: #0284c7;

  /* Semantic Feedback (always paired with icon + text) */
  --success-bg: #ecfdf5;
  --success-border: #86efac;
  --success-ink: #047857;
  --success-accent: #059669;

  --error-bg: #fef2f2;
  --error-border: #fca5a5;
  --error-ink: #b91c1c;
  --error-accent: #dc2626;

  --warning-bg: #fffbeb;
  --warning-border: #fcd34d;
  --warning-ink: #92400e;

  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii & Elevation (single-elevation depth) */
  --radius-card: 20px;
  --radius-control: 12px;
  --radius-inner: 14px;
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 10px 24px rgba(37, 99, 235, 0.09), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.28);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-screen: 240ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 90% 420px at 50% -120px, var(--bg-canvas-accent), transparent 72%),
    var(--bg-canvas);
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.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;
}

/* ==========================================================================
   Layout Shell & Global Header
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--cobalt-600);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  flex: 1;
}

.site-footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Screen Transitions
   ========================================================================== */

.screen {
  width: 100%;
}

.screen.is-entering {
  animation: screenEnter var(--dur-screen) var(--ease-out-expo) both;
}

@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-wrap: balance;
}

.screen-subtitle {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

.card-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  text-wrap: balance;
}

.surface-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease,
    opacity var(--dur-fast) ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-lg {
  min-height: 52px;
  padding: 13px 28px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--cobalt-600);
  color: #ffffff;
  border-color: var(--cobalt-600);
}

.btn-primary:hover:not(:disabled) {
  background: var(--cobalt-700);
  border-color: var(--cobalt-700);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--cobalt-50);
  border-color: var(--cobalt-600);
  color: var(--cobalt-700);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-header-nav {
  min-height: 42px;
  padding: 9px 16px;
  background: var(--cobalt-50);
  color: var(--cobalt-700);
  border-color: var(--cobalt-100);
  font-size: 0.925rem;
}

.btn-header-nav:hover:not(:disabled) {
  background: var(--cobalt-100);
  border-color: #bfdbfe;
}

.btn-header-nav.is-active {
  background: var(--cobalt-600);
  color: #ffffff;
  border-color: var(--cobalt-600);
}

.action-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.action-row-centered {
  justify-content: center;
}

/* ==========================================================================
   Setup / Profile Screen
   ========================================================================== */

.setup-layout {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.setup-intro {
  text-align: left;
}

.welcome-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.welcome-meta {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sky-600);
}

.welcome-note {
  color: var(--text-secondary);
  font-size: 0.975rem;
}

.form-card-header {
  margin-bottom: 22px;
}

.form-card-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 1rem;
  transition:
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease,
    background-color var(--dur-fast) ease;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:hover,
.form-select:hover {
  border-color: #94b2d8;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--cobalt-600);
  box-shadow: var(--shadow-focus);
}

.form-input.is-invalid {
  border-color: var(--error-accent);
  background: var(--error-bg);
}

.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error-ink);
}

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

/* ==========================================================================
   Alert Banners
   ========================================================================== */

.alert-banner {
  margin-bottom: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-ink);
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-ink);
}

.alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-body {
  flex: 1;
  min-width: 0;
}

.alert-title {
  font-weight: 700;
  font-size: 0.975rem;
}

.alert-text {
  margin-top: 4px;
  font-size: 0.925rem;
  line-height: 1.5;
}

.alert-dismiss {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) ease;
}

.alert-dismiss:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Game Screen & Word Cards
   ========================================================================== */

.game-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
}

.game-heading-group {
  max-width: 56ch;
}

.game-instruction {
  margin-top: 6px;
  font-size: 0.975rem;
  color: var(--text-secondary);
}

.status-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.status-player {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.status-metric {
  white-space: nowrap;
}

.status-metric-score {
  font-weight: 700;
  color: var(--cobalt-700);
}

.status-sep {
  color: var(--border-strong);
}

.progress-track {
  margin-top: 18px;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--border-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky-600), var(--cobalt-600));
  transition: width 280ms var(--ease-out-expo);
}

.word-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
  gap: 18px;
}

.word-card {
  position: relative;
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 176px;
  transition:
    transform var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) ease,
    background-color 200ms ease,
    box-shadow var(--dur-fast) ease;
}

.word-card--idle:hover {
  border-color: var(--cobalt-600);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.word-card--listening {
  border-color: var(--cobalt-600);
  background: var(--cobalt-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), var(--shadow-card);
}

.word-card--correct {
  border-color: var(--success-border);
  background: var(--success-bg);
}

.word-card--incorrect {
  border-color: var(--error-border);
  background: var(--error-bg);
}

.word-card--disabled {
  opacity: 0.72;
}

.word-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.word-label-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.word-index {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.word-text-btn {
  background: transparent;
  border: none;
  padding: 4px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  word-break: break-word;
  border-radius: 8px;
  transition: color var(--dur-fast) ease;
}

.word-text-btn:hover:not(:disabled) {
  color: var(--cobalt-700);
}

.word-text-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.word-text-btn:disabled {
  cursor: default;
}

/* Generous >= 56x56px microphone touch target */
.mic-btn {
  position: relative;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  border: 1.5px solid var(--cobalt-100);
  background: var(--cobalt-50);
  color: var(--cobalt-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.mic-btn svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
}

.mic-btn:hover:not(:disabled) {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
  color: #ffffff;
  transform: scale(1.05);
}

.mic-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.mic-btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.mic-btn:disabled {
  cursor: not-allowed;
}

.word-card--listening .mic-btn {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
  color: #ffffff;
}

.word-card--listening .mic-btn::before,
.word-card--listening .mic-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.55);
  animation: micWave 1.4s var(--ease-out-expo) infinite;
  pointer-events: none;
}

.word-card--listening .mic-btn::after {
  animation-delay: 0.5s;
}

@keyframes micWave {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

.word-card--correct .mic-btn {
  background: var(--success-accent);
  border-color: var(--success-accent);
  color: #ffffff;
  opacity: 1;
}

.word-card--incorrect .mic-btn {
  background: var(--error-accent);
  border-color: var(--error-accent);
  color: #ffffff;
  opacity: 1;
}

.word-card--disabled .mic-btn {
  background: #f1f5f9;
  border-color: var(--border-subtle);
  color: #94a3b8;
}

.word-card-status {
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-size: 0.925rem;
  line-height: 1.4;
}

.status-line-idle {
  color: var(--text-muted);
}

.status-line-retry {
  color: var(--warning-ink);
  font-weight: 500;
}

.status-line-listening {
  color: var(--cobalt-700);
  font-weight: 600;
}

.status-line-correct {
  color: var(--success-ink);
  font-weight: 600;
}

.status-line-incorrect {
  color: var(--error-ink);
  font-weight: 600;
}

.status-line-heard {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.game-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.game-footer-hint {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.game-footer-hint.is-ready {
  color: var(--success-ink);
  font-weight: 600;
}

/* ==========================================================================
   Results Screen
   ========================================================================== */

.results-summary-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 36px 28px;
}

.results-player-meta {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--sky-600);
}

.results-score-headline {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.results-encouragement {
  margin: 12px auto 0;
  max-width: 50ch;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Leaderboard Table (Scrolls horizontally inside card on narrow phones)
   ========================================================================== */

.standalone-top {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.standalone-heading-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-card {
  padding: 26px;
}

.leaderboard-card-header {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-inner);
  border: 1px solid var(--border-subtle);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.leaderboard-table thead th {
  background: var(--surface-subtle);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tbody tr {
  transition: background-color var(--dur-fast) ease;
}

.leaderboard-table tbody tr:hover {
  background: var(--surface-subtle);
}

.leaderboard-table tbody tr.row--highlighted {
  background: var(--cobalt-50);
}

.leaderboard-table tbody tr.row--highlighted td {
  color: var(--text-primary);
  font-weight: 600;
}

.col-rank {
  width: 64px;
  font-weight: 700;
  color: var(--text-secondary);
}

.col-name {
  font-weight: 600;
  color: var(--text-primary);
}

.you-marker {
  margin-left: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cobalt-700);
}

.col-score {
  font-weight: 700;
  color: var(--cobalt-700);
}

.col-date {
  color: var(--text-muted);
}

.empty-leaderboard {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-inner);
  background: var(--surface-subtle);
}

.empty-leaderboard-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-leaderboard-text {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Adjustments (Tablet & Mobile Phone)
   ========================================================================== */

@media (max-width: 768px) {
  .main-content {
    padding: 26px 18px 40px;
  }

  .header-inner {
    padding: 12px 18px;
  }

  .status-bar {
    align-items: flex-start;
  }

  .surface-card {
    padding: 22px;
  }

  .leaderboard-card {
    padding: 20px;
  }

  .game-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-mark svg {
    width: 17px;
    height: 17px;
  }

  .site-title {
    font-size: 1.02rem;
  }

  .btn-header-nav {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .main-content {
    padding: 20px 14px 34px;
  }

  .surface-card {
    padding: 18px;
    border-radius: 16px;
  }

  .leaderboard-card {
    padding: 16px;
  }

  .word-card {
    padding: 18px;
    min-height: 158px;
    border-radius: 16px;
  }

  .word-text-btn {
    font-size: 1.55rem;
  }

  .results-summary-card {
    padding: 26px 18px;
  }

  .action-row .btn,
  .form-actions .btn {
    flex: 1 1 auto;
  }

  /* Compact table spacing so Rank/Name/Standard/School show cleanly at 375px
     and Score/Date are a short horizontal swipe inside the card */
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 11px 10px;
    font-size: 0.88rem;
  }

  .col-rank {
    width: 46px;
  }
}

/* ==========================================================================
   Reduced Motion Compliance
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .screen.is-entering,
  .word-card--listening .mic-btn::before,
  .word-card--listening .mic-btn::after {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
