:root {
  color-scheme: dark;
  --bg: #071426;
  --surface: rgba(13, 32, 54, 0.78);
  --surface-strong: #102b47;
  --line: rgba(150, 190, 220, 0.22);
  --text: #f3f8fc;
  --muted: #9bb0c2;
  --cyan: #54d8dc;
  --cyan-dark: #0a7c84;
  --gold: #ffc857;
  --danger: #ff7373;
  --success: #69df9c;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(25, 94, 113, 0.2), transparent 34rem),
    linear-gradient(145deg, #06101f 0%, #091b31 56%, #071426 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

button, select { font: inherit; }
button { touch-action: manipulation; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one { top: -16rem; right: -12rem; background: #46e4dc; }
.ambient-two { bottom: -18rem; left: -12rem; background: #236bb8; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(84, 216, 220, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 18px rgba(84, 216, 220, 0.12);
}

.brand-mark::before,
.brand-mark i,
.brand-mark b {
  content: "";
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.brand-mark::before { width: 23px; height: 23px; opacity: 0.75; }
.brand-mark i { width: 7px; height: 7px; background: var(--cyan); }
.brand-mark b { width: 35px; height: 14px; transform: rotate(-28deg); opacity: 0.35; }

.brand strong { display: block; font-size: 1rem; letter-spacing: 0.04em; }
.brand small { display: block; margin-top: 2px; color: var(--cyan); font-size: 0.67rem; letter-spacing: 0.2em; }

.institution-link {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  text-decoration: none;
}

.institution-link:hover { color: var(--cyan); text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.source-badge {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.icon-button,
.round-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button { width: 44px; height: 44px; border-radius: 50%; font-weight: 800; }
.round-button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.45rem; line-height: 1; }
.icon-button:hover, .round-button:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }

.game-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 4px auto 0;
}

.control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(7, 20, 38, 0.62);
  backdrop-filter: blur(16px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.2rem, 3vw, 1.55rem); letter-spacing: 0.02em; }
h2 { margin-bottom: 0; font-size: 1rem; }

.control-group { min-width: min(100%, 300px); }
.control-group label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.78rem; }
.control-group-inline {
  width: min(100%, 540px);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 190px;
  align-items: end;
  gap: 10px;
}
.category-field { min-width: 0; }

.red-white-entry {
  width: 100%;
  min-height: 45px;
  margin-top: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 35px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  background: linear-gradient(90deg, rgba(173,37,52,.9) 0 49%, rgba(245,239,222,.96) 51% 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  text-align: left;
}

.red-white-entry > span { grid-row: 1 / 3; display: flex; gap: 3px; }
.red-white-entry i, .red-white-entry b { width: 13px; height: 27px; border-radius: 999px; }
.red-white-entry i { background: #ff5665; }
.red-white-entry b { background: #fff; border: 1px solid #c8c0ac; }
.red-white-entry strong, .red-white-entry small { text-shadow: 0 1px 6px rgba(0,0,0,.72); }
.red-white-entry strong { font-size: .9rem; }
.red-white-entry small { font-size: .61rem; letter-spacing: .13em; }
.red-white-entry:hover { transform: translateY(-1px); filter: brightness(1.07); }

.match-scoreboard {
  position: sticky;
  top: 8px;
  z-index: 500;
  margin: 6px 0 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(110px,1fr) minmax(190px,1.3fr) minmax(110px,1fr);
  gap: 10px;
  background: rgba(7,20,38,.94);
  box-shadow: 0 16px 42px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}

.match-scoreboard[hidden] { display: none; }
.team-score { min-height: 60px; padding: 7px 14px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.team-score span { font-weight: 800; }
.team-score strong { font-size: 1.65rem; line-height: 1; }
.team-score-red { background: linear-gradient(135deg,#8e1f31,#cf394d); color: #fff; }
.team-score-white { border: 2px solid #d8cfb9; background: #f7f2e8; color: #15283a; }
.turn-status { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 4px 8px; text-align: center; }
.turn-status span { grid-column: 1 / 2; color: var(--muted); font-size: .72rem; }
.turn-status strong { grid-column: 1 / 2; font-size: 1rem; }
.countdown { grid-column: 2; grid-row: 1 / 3; min-width: 74px; color: var(--cyan); font-size: 1.55rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.countdown.warning { color: var(--gold); }
.countdown.danger { color: var(--danger); animation: timerPulse .65s ease-in-out infinite alternate; }
@keyframes timerPulse { to { transform: scale(1.12); text-shadow: 0 0 16px rgba(255,115,115,.75); } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(2,9,17,.82);
  backdrop-filter: blur(12px);
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(620px,100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(84,216,220,.3);
  border-radius: 24px;
  background: linear-gradient(150deg,#102d49,#07182b 72%);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
}
.modal-card h2 { margin: 0 0 12px; font-size: clamp(1.7rem,5vw,2.45rem); }
.modal-lead { color: #cad8e3; line-height: 1.75; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-size: 1.4rem; }
.rule-list { margin: 20px 0; padding-left: 1.45rem; color: #dce7ef; line-height: 1.75; }
.rule-list li + li { margin-top: 5px; }
.match-category-field { margin: 22px 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.match-category-field label { display: block; margin-bottom: 8px; color: var(--cyan); font-size: .78rem; font-weight: 800; }
.match-category-field p { min-height: 1.4em; margin: 8px 2px 0; color: var(--muted); font-size: .74rem; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.button-large { min-width: 190px; min-height: 54px; }
.ready-card { width: min(470px,100%); text-align: center; }
.ready-team-badge { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #a82539; color: #fff; box-shadow: 0 0 0 10px rgba(168,37,57,.14); font-size: 2rem; font-weight: 900; }
.ready-team-badge.white { border: 3px solid #d9cfb8; background: #f7f2e8; color: #172c3e; box-shadow: 0 0 0 10px rgba(247,242,232,.1); }
.ready-card .button { margin-top: 8px; }
.result-backdrop { background: rgba(2,9,17,.9); }
.result-card { width: min(560px,100%); text-align: center; overflow: visible; }
.result-trophy { margin: -5px 0 8px; font-size: 5rem; filter: drop-shadow(0 10px 16px rgba(255,200,87,.3)); }
.final-score { margin: 24px 0 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.final-score > div { min-height: 102px; padding: 14px; border-radius: 18px; display: grid; place-items: center; }
.final-score span { font-weight: 800; }
.final-score strong { font-size: 2.5rem; }
.final-red { background: linear-gradient(135deg,#8e1f31,#cf394d); color: #fff; }
.final-white { border: 2px solid #d8cfb9; background: #f7f2e8; color: #15283a; }
.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -30px; width: 10px; height: 18px; animation: confettiFall var(--fall,3s) linear var(--delay,0s) forwards; }
@keyframes confettiFall { to { transform: translate3d(var(--drift,0),110vh,0) rotate(760deg); } }
.web-version { color: #6f8ca3; }
.match-active .control-strip { opacity: .58; }
.match-active .red-white-entry { pointer-events: none; }
.match-active #categorySelect { pointer-events: none; }
.match-active .game-actions #resetButton { display: none; }
.match-waiting .candidate-panel,
.match-waiting .play-section { visibility: hidden; }
.error-text { color: #ffc1c1 !important; }

select {
  width: 100%;
  min-height: 45px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(84, 216, 220, 0.32);
  border-radius: 12px;
  appearance: none;
  background: var(--surface-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2354d8dc' stroke-width='2'%3E%3Cpath d='m4 7 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: var(--text);
}

.candidate-panel {
  padding: 10px 18px 11px;
  border: 1px solid var(--line);
  border-top: 0;
  background: linear-gradient(90deg, rgba(16, 43, 71, 0.96), rgba(11, 32, 55, 0.94));
  box-shadow: var(--shadow);
}

.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.candidate-panel .section-kicker { display: none; }
.candidate-nav { display: flex; align-items: center; gap: 8px; }
.candidate-nav span { margin-right: 4px; color: var(--muted); font-size: 0.78rem; }

.candidate-rail {
  display: flex;
  gap: 10px;
  min-height: 44px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(84,216,220,.45) transparent;
  padding: 2px 2px 4px;
}

.candidate-chip,
.selected-chip {
  border: 1px solid rgba(166, 207, 226, 0.28);
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.candidate-chip {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 13px;
  background: rgba(255,255,255,0.055);
  scroll-snap-align: start;
  white-space: nowrap;
}

.candidate-chip:hover,
.candidate-chip:focus-visible { border-color: var(--cyan); background: rgba(84,216,220,.1); transform: translateY(-2px); }

.play-section {
  padding: 9px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-meta {
  width: min(700px, 100%);
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
}

.answer-ring {
  position: relative;
  width: min(700px, 100%);
  height: 300px;
  border: 1px solid rgba(84, 216, 220, 0.31);
  border-radius: 76px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(13,40,65,.56), rgba(6,20,38,.2));
  box-shadow: inset 0 0 80px rgba(40, 139, 151, 0.08), 0 28px 80px rgba(0,0,0,.22);
  isolation: isolate;
}

.answer-ring.drag-over { border-color: var(--cyan); box-shadow: inset 0 0 80px rgba(84,216,220,.12), 0 0 0 4px rgba(84,216,220,.08); }

.orbit-line { position: absolute; inset: 22px; border: 1px dashed rgba(84,216,220,.18); border-radius: 58px; pointer-events: none; }
.orbit-line-inner { inset: 66px 128px; border-radius: 999px; border-style: solid; opacity: .58; }

.target-card {
  z-index: 2;
  width: 160px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(84,216,220,.56);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #174a62, #0b263f 72%);
  color: var(--text);
  box-shadow: 0 0 0 10px rgba(84,216,220,.035), 0 16px 45px rgba(0,0,0,.32);
}

.target-card small { display: block; color: var(--cyan); font-size: .68rem; letter-spacing: .14em; }
.target-card strong { display: block; margin: 5px 0 4px; font-size: clamp(1.25rem, 4vw, 1.75rem); }
.target-card span { display: block; color: var(--muted); font-size: .76rem; }

.selected-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.selected-chip {
  position: absolute;
  width: 86px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #123a55;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  font-size: .82rem;
  line-height: 1.15;
  pointer-events: auto;
}

.selected-chip:hover { border-color: var(--gold); transform: scale(1.04); }
.selected-chip.correct { border-color: var(--success); background: rgba(31,106,72,.92); }
.selected-chip.wrong { border-color: var(--danger); background: rgba(112,42,50,.92); }
.candidate-chip.missing { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.drop-hint {
  position: absolute;
  bottom: 16px;
  color: rgba(155,176,194,.56);
  font-size: .7rem;
  letter-spacing: .12em;
  pointer-events: none;
}

.feedback {
  width: min(700px, 100%);
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.feedback:empty { display: none; }

.feedback.success { color: var(--success); border-color: rgba(105,223,156,.28); background: rgba(105,223,156,.07); }
.feedback.error { color: #ffc1c1; border-color: rgba(255,115,115,.25); background: rgba(255,115,115,.07); }

.answer-map-panel {
  width: min(840px, 100%);
  margin: 4px 0 22px;
  padding: 20px;
  border: 1px solid rgba(84,216,220,.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(13,40,65,.82), rgba(6,20,38,.72));
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.answer-map-panel[hidden] { display: none; }
.answer-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.answer-map-heading h2 { font-size: 1.08rem; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; color: var(--muted); font-size: .76rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend b { font-weight: 600; }
.map-legend i { width: 11px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.legend-target { background: var(--gold); }
.legend-correct { background: #42d6c4; }
.legend-wrong { background: var(--danger); }

.answer-map {
  width: 100%;
  height: 450px;
  border: 1px solid rgba(166,207,226,.22);
  border-radius: 16px;
  overflow: hidden;
  background: #08192a;
}

.map-source { margin: 9px 2px 0; color: var(--muted); font-size: .7rem; text-align: right; }
.map-source a { color: inherit; text-underline-offset: 3px; }
.leaflet-container { font-family: inherit; background: #08192a; }
.leaflet-control-zoom a { background: #102b47; color: var(--text); border-color: var(--line); }
.leaflet-control-zoom a:hover { background: #17435f; color: var(--cyan); }
.leaflet-control-attribution { background: rgba(7,20,38,.78) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--cyan); }
.p124-map-label {
  width: auto !important;
  height: auto !important;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: rgba(7,20,38,.86);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.p124-map-lake-label {
  width: max-content !important;
  height: auto !important;
  color: #d9f6ff;
  font-size: .68rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(3, 22, 35, .95);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.game-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: 7px; }
.button { min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 800; cursor: pointer; transition: 160ms ease; }
.button-primary { border: 1px solid var(--cyan); background: var(--cyan); color: #062128; box-shadow: 0 10px 26px rgba(84,216,220,.18); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.instruction { max-width: 650px; margin: 8px auto 0; color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: center; }

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: 20px 0 28px;
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

@media (max-width: 660px) {
  .site-header { width: min(100% - 22px, 1080px); min-height: 72px; }
  .header-identity { flex: 1; gap: 10px; }
  .brand { flex: 0 0 auto; }
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: .9rem; }
  .institution-link { max-width: 145px; padding-left: 10px; font-size: .68rem; line-height: 1.35; }
  .source-badge { display: none; }
  .game-shell { width: min(100% - 18px, 1080px); margin-top: 4px; }
  .control-strip { align-items: stretch; flex-direction: column; gap: 18px; padding: 20px 17px; }
  .control-group { min-width: 100%; }
  .control-group-inline { width: 100%; display: block; }
  .red-white-entry { width: 100%; min-height: 49px; margin-top: 10px; padding: 7px 14px; grid-template-columns: 42px 1fr; column-gap: 10px; }
  .red-white-entry i, .red-white-entry b { width: 16px; height: 31px; }
  .match-scoreboard { top: 4px; grid-template-columns: 1fr 1.15fr 1fr; gap: 5px; padding: 6px; border-radius: 15px; }
  .team-score { min-height: 62px; padding: 7px 8px; flex-direction: column; justify-content: center; gap: 2px; }
  .team-score span { font-size: .72rem; }
  .team-score strong { font-size: 1.45rem; }
  .turn-status { grid-template-columns: 1fr; padding: 2px; }
  .turn-status span, .turn-status strong { grid-column: 1; }
  .turn-status strong { font-size: .78rem; }
  .countdown { grid-column: 1; grid-row: auto; min-width: 0; font-size: 1.2rem; }
  .candidate-panel { padding: 17px 14px 18px; }
  .candidate-panel .section-kicker { display: block; }
  .panel-heading { align-items: end; }
  .candidate-nav span { display: none; }
  .candidate-chip { min-width: 84px; padding-inline: 13px; }
  .play-section { padding-top: 19px; }
  .answer-ring { height: 360px; border-radius: 68px; }
  .orbit-line { inset: 26px 18px; border-radius: 52px; }
  .orbit-line-inner { inset: 92px 70px; border-radius: 999px; }
  .target-card { width: 142px; min-height: 118px; padding: 14px; }
  .selected-chip { width: 72px; min-height: 36px; padding: 5px; font-size: .72rem; }
  .game-actions { padding: 0 5px; }
  .button { flex: 1 1 100px; padding-inline: 13px; }
  .answer-map-panel { padding: 15px; border-radius: 18px; }
  .answer-map-heading { align-items: flex-start; flex-direction: column; }
  .map-legend { justify-content: flex-start; }
  .answer-map { height: 370px; }
  .p124-map-label { padding: 3px 5px; font-size: .64rem; }
  .modal-backdrop { padding: 11px; }
  .modal-card { max-height: calc(100vh - 22px); padding: 24px 18px; border-radius: 19px; }
  .modal-close { top: 9px; right: 9px; }
  .modal-actions .button { flex: 1 1 145px; }
  .result-trophy { font-size: 4rem; }
  .final-score { gap: 7px; }
  .final-score > div { min-height: 88px; padding: 9px; }
  .final-score strong { font-size: 2rem; }
}

@media (max-width: 420px) {
  .site-header { gap: 8px; }
  .brand { gap: 0; }
  .brand-mark { display: none; }
  .brand strong { font-size: .8rem; }
  .brand small { font-size: .58rem; letter-spacing: .14em; }
  .institution-link { max-width: 112px; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .countdown.danger, .confetti-piece { animation: none !important; }
}
