/* === Darts 3D — Cartoon 3D Dartboard Game === */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg-deep: hsl(225, 45%, 6%);
  --bg-surface: hsl(225, 40%, 12%);
  --bg-surface-2: hsl(225, 35%, 18%);
  --bg-card: hsla(225, 40%, 16%, 0.92);

  --cartoon-red: hsl(0, 82%, 58%);
  --cartoon-red-dark: hsl(0, 82%, 44%);
  --cartoon-green: hsl(145, 78%, 42%);
  --cartoon-green-dark: hsl(145, 78%, 30%);
  --cartoon-gold: hsl(44, 96%, 52%);
  --cartoon-gold-dark: hsl(44, 96%, 40%);
  --cartoon-cyan: hsl(190, 90%, 55%);
  --cartoon-cyan-dark: hsl(190, 90%, 40%);
  --cartoon-purple: hsl(270, 78%, 60%);
  --cartoon-orange: hsl(28, 92%, 55%);

  --text-primary: hsl(220, 30%, 98%);
  --text-secondary: hsl(220, 20%, 78%);
  --text-muted: hsl(220, 15%, 60%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-glow-red: 0 0 24px hsla(0, 82%, 58%, 0.45);
  --shadow-glow-green: 0 0 24px hsla(145, 78%, 42%, 0.45);
  --shadow-glow-gold: 0 0 24px hsla(44, 96%, 52%, 0.45);

  --font-display: 'Fredoka One', cursive;
  --font-body: 'Nunito', system-ui, sans-serif;

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Layout ── */
.game-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
  padding: 28px;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

.screen.overlay {
  background: hsla(225, 45%, 6%, 0.88);
  backdrop-filter: blur(10px);
  z-index: 100;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* ── Start Screen ── */
.start-panel {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-logo {
  text-align: center;
  margin-bottom: 8px;
}

.logo-dart {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 0 20px var(--cartoon-gold));
  animation: bob 2.2s ease-in-out infinite;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--cartoon-gold) 0%, #fff 50%, var(--cartoon-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-top: 8px;
}

.logo-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.section-card {
  background: var(--bg-card);
  border: 2px solid hsla(220, 30%, 40%, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}

.section-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--cartoon-gold);
}

.name-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-2);
  border: 2px solid hsla(220, 30%, 40%, 0.3);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.name-input:focus {
  border-color: var(--cartoon-gold);
  box-shadow: 0 0 0 4px hsla(44, 96%, 52%, 0.18);
}

.controls-grid {
  display: grid;
  gap: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: hsla(225, 40%, 22%, 0.7);
  border-radius: var(--radius-sm);
}

.control-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.control-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.control-desc strong {
  color: var(--text-primary);
}

.controls-objective {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed hsla(220, 30%, 40%, 0.3);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bot-select h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--cartoon-cyan);
}

.bot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: hsla(225, 40%, 22%, 0.7);
  border-radius: var(--radius-full);
}

.bot-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 2px solid currentColor;
}

.bot-avatar.rookie { color: var(--cartoon-green); }
.bot-avatar.pro { color: var(--cartoon-cyan); }
.bot-avatar.champion { color: var(--cartoon-red); }

.bot-name {
  flex: 1;
  font-weight: 800;
  font-size: 1.05rem;
}

.bot-skill {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.start-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

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

.btn-start,
.throw-btn,
.btn-play-again,
.btn-menu-back,
.btn-menu,
.btn-resume {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  padding: 16px 28px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-bounce);
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.btn-start,
.throw-btn,
.btn-play-again,
.btn-resume {
  background: linear-gradient(135deg, var(--cartoon-green) 0%, var(--cartoon-green-dark) 100%);
  color: #fff;
  border-bottom: 4px solid hsl(145, 78%, 24%);
}

.btn-start:hover,
.throw-btn:hover,
.btn-play-again:hover,
.btn-resume:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow-green);
}

.btn-start:active,
.throw-btn:active,
.btn-play-again:active,
.btn-resume:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.btn-menu-back,
.btn-menu {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 2px solid hsla(220, 30%, 40%, 0.4);
}

.btn-menu:hover,
.btn-menu-back:hover {
  background: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-quit {
  color: var(--cartoon-red);
}

/* ── Game Screen ── */
#gameScreen {
  padding: 0;
  overflow: hidden;
}

#canvasContainer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#canvasContainer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Scoreboard */
.scoreboard {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 210px;
  background: hsla(225, 45%, 8%, 0.88);
  backdrop-filter: blur(8px);
  border: 2px solid hsla(220, 30%, 40%, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  z-index: 20;
  box-shadow: var(--shadow-md);
}

.scoreboard-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cartoon-gold);
  margin-bottom: 10px;
  text-align: center;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
  background: hsla(225, 35%, 20%, 0.6);
  transition: var(--transition);
}

.score-row.active {
  background: hsla(44, 96%, 52%, 0.18);
  border: 1px solid hsla(44, 96%, 52%, 0.4);
  transform: scale(1.02);
}

.score-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--bg-surface-2);
  border: 2px solid currentColor;
  flex-shrink: 0;
}

.score-info {
  flex: 1;
  min-width: 0;
}

.score-name {
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-skill {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.score-points {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cartoon-gold);
}

/* Round indicator */
.round-indicator {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: hsla(225, 45%, 8%, 0.88);
  backdrop-filter: blur(8px);
  border: 2px solid hsla(220, 30%, 40%, 0.25);
  border-radius: var(--radius-full);
  padding: 8px 22px;
  z-index: 20;
  box-shadow: var(--shadow-md);
}

.round-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.round-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
}

/* Turn banner */
.turn-banner {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: hsla(270, 78%, 60%, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  z-index: 20;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.turn-banner.visible {
  opacity: 1;
}

/* 3-bar overlay */
.bar-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 96vw);
  background: hsla(225, 45%, 8%, 0.94);
  backdrop-filter: blur(12px);
  border: 2px solid hsla(220, 30%, 40%, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 30;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bar-instruction {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cartoon-cyan);
  text-align: center;
  letter-spacing: 0.02em;
}

.bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-wrap {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-align: right;
}

.bar-track {
  position: relative;
  height: 32px;
  background: hsl(225, 35%, 22%);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid hsla(220, 30%, 40%, 0.35);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.bar-zone {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, hsla(145, 78%, 50%, 0.55), transparent);
  border-left: 2px solid hsla(145, 78%, 60%, 0.7);
  border-right: 2px solid hsla(145, 78%, 60%, 0.7);
}

.bar-marker {
  position: absolute;
  top: -3px;
  left: 0%;
  width: 14px;
  height: 28px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cartoon-gold) 0%, var(--cartoon-gold-dark) 100%);
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 10px hsla(44, 96%, 52%, 0.6);
  transition: left 0.05s linear;
}

.bar-status {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: left;
}

.bar-status.perfect {
  color: var(--cartoon-green);
}

.bar-status.good {
  color: var(--cartoon-gold);
}

.bar-status.miss {
  color: var(--cartoon-red);
}

.throw-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.15rem;
}

.throw-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Fuse / explosion */
.fuse-stage {
  position: absolute;
  top: 30%;
  right: 12%;
  width: 90px;
  height: 90px;
  z-index: 25;
  pointer-events: none;
}

.fuse-bomb {
  font-size: 3.5rem;
  line-height: 1;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: fuseShake 0.35s ease-in-out infinite;
}

.fuse-spark {
  position: absolute;
  top: 55%;
  left: 65%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cartoon-gold);
  box-shadow: 0 0 14px var(--cartoon-gold), 0 0 28px var(--cartoon-red);
  animation: sparkFlicker 0.12s ease-in-out infinite alternate;
}

@keyframes fuseShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2px, -2px) rotate(3deg); }
  50% { transform: translate(-2px, 1px) rotate(-2deg); }
  75% { transform: translate(1px, 2px) rotate(2deg); }
}

@keyframes sparkFlicker {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.3); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Result popup */
.result-popup {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  padding: 24px 44px;
  border-radius: var(--radius-xl);
  background: hsla(225, 45%, 8%, 0.95);
  border: 3px solid var(--cartoon-gold);
  box-shadow: var(--shadow-glow-gold), var(--shadow-lg);
  z-index: 40;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s var(--transition-bounce);
  pointer-events: none;
}

.result-popup.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.result-score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--cartoon-gold);
  line-height: 1;
}

.result-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Bot bars visualization */
.bot-bars {
  position: absolute;
  bottom: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 80vw);
  background: hsla(225, 45%, 8%, 0.92);
  border: 2px solid hsla(220, 30%, 40%, 0.28);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.bot-bars-title {
  text-align: center;
  font-family: var(--font-display);
  color: var(--cartoon-cyan);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.bot-bar {
  height: 10px;
  background: hsl(225, 35%, 22%);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid hsla(220, 30%, 40%, 0.35);
}

.bot-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cartoon-cyan), var(--cartoon-purple));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

/* Pause button */
.pause-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: hsla(225, 45%, 8%, 0.88);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pause-btn:hover {
  background: var(--bg-surface-2);
  transform: scale(1.08);
}

/* Pause panel */
.pause-panel,
.gameover-panel {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 2px solid hsla(220, 30%, 40%, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.pause-panel h2,
.gameover-panel h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cartoon-gold);
  margin-bottom: 18px;
}

.pause-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid hsla(220, 30%, 40%, 0.2);
  margin-bottom: 16px;
}

.toggle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid hsla(220, 30%, 40%, 0.4);
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--cartoon-green);
  color: #fff;
  border-color: var(--cartoon-green-dark);
}

.pause-actions,
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Game Over */
.result-banner {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--cartoon-gold);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px hsla(44, 96%, 52%, 0.35);
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 18px 0 24px;
  min-height: 140px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
}

.podium-avatar {
  font-size: 2.2rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.podium-name {
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 4px;
}

.podium-block {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: #fff;
  padding-top: 8px;
}

.podium-block.gold { height: 100px; background: linear-gradient(180deg, hsl(44, 96%, 58%), hsl(44, 96%, 42%)); }
.podium-block.silver { height: 72px; background: linear-gradient(180deg, hsl(210, 18%, 72%), hsl(210, 18%, 55%)); }
.podium-block.bronze { height: 56px; background: linear-gradient(180deg, hsl(28, 72%, 58%), hsl(28, 72%, 44%)); }

.podium-rank {
  font-size: 1.4rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: hsla(225, 40%, 22%, 0.7);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cartoon-gold);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .scoreboard {
    width: 170px;
    top: 10px;
    left: 10px;
    padding: 10px;
  }

  .score-row {
    padding: 6px 8px;
    gap: 8px;
  }

  .score-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .score-name {
    font-size: 0.78rem;
  }

  .score-skill {
    font-size: 0.65rem;
  }

  .score-points {
    font-size: 0.9rem;
  }

  .round-indicator {
    top: 10px;
    padding: 6px 16px;
  }

  .round-number {
    font-size: 1.1rem;
  }

  .bar-overlay {
    bottom: 12px;
    padding: 12px 14px;
  }

  .bar-wrap {
    grid-template-columns: 70px 1fr 60px;
    gap: 8px;
  }

  .bar-label,
  .bar-status {
    font-size: 0.7rem;
  }

  .bar-track {
    height: 18px;
  }

  .bar-marker {
    width: 12px;
    height: 24px;
    top: -3px;
  }

  .pause-btn {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .turn-banner {
    top: 64px;
    font-size: 0.9rem;
    padding: 6px 16px;
  }

  .result-popup {
    padding: 18px 32px;
  }

  .result-score {
    font-size: 2.6rem;
  }

  .fuse-stage {
    top: 26%;
    right: 4%;
    width: 70px;
    height: 70px;
  }

  .fuse-bomb {
    font-size: 2.6rem;
  }

  .bot-bars {
    bottom: 170px;
    width: min(320px, 86vw);
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 2.4rem;
  }

  .section-card {
    padding: 14px 16px;
  }

  .scoreboard {
    width: 150px;
  }

  .score-avatar {
    display: none;
  }

  .bar-wrap {
    grid-template-columns: 56px 1fr 50px;
  }

  .bar-label,
  .bar-status {
    font-size: 0.62rem;
  }

  .result-banner {
    font-size: 1.6rem;
  }

  .podium {
    gap: 8px;
  }

  .podium-place {
    width: 76px;
  }
}

/* ── Accessibility ── */
.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;
}

:focus-visible {
  outline: 3px solid var(--cartoon-cyan);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cartoon-cyan);
  outline-offset: 2px;
}

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