[hidden] { display: none !important; }

/* ============================== CSS Variables ============================== */
:root {
  /* ─── ベース：嶺北の深夜藍・インディゴ ─── */
  --c-bg:             #0e1624;
  --c-surface:        #19253a;
  --c-surface-glass:  rgba(25, 37, 58, 0.82);
  --c-rail:           #2a3d58;

  /* ─── テキスト ─── */
  --c-text:           #e8edf4;
  --c-text-sub:       #8fa3c0;
  --c-text-dim:       #6e8fab; /* L_NEW-Fix2: 背景#0e1624に対しWCAG AA(4.5+:1) 確保 */

  /* ─── 速度インジケーター3色 ─── */
  --c-brake-red:      #f04040;
  --c-brake-yellow:   #f0b400;
  --c-brake-green:   #22c55e;

  /* ─── 停車フィードバック5段階 ─── */
  --c-pitari:         #22c55e;
  --c-close:          #84d97a;
  --c-near:           #f0b400;
  --c-overshoot:      #f97316;
  --c-miss:           #f04040;

  /* ─── 電車色・信号 ─── */
  --c-train-red:      #d63b3b;
  --c-train-cream:    #f5f0e0;
  --c-train-stripe:   #1a6fb0;
  --c-signal-green:   #00d084;
  --c-signal-amber:   #f5a623;
  --c-rail-rust:      #8b5a2b;

  /* ─── 田園・景色カラー ─── */
  --c-sky-dusk:       #1e3a6e;
  --c-sky-dawn:       #2d5fa0;
  --c-mountain:       #1a3520;
  --c-field-green:    #2d5e2a;
  --c-river-blue:     #3b7fbf;
  --c-fog-white:      rgba(240, 245, 255, 0.85);

  /* ─── ゴール ─── */
  --c-gold:           #f5c842;
  --c-gold-dim:       #a07a10;
  --c-stamp-done:     #f5c842;
  --c-stamp-empty:    #2a3d58;

  /* ─── CTA ─── */
  --c-cta-bg:         #1a6fb0;
  --c-cta-hover:      #2486d0;
  --c-cta-text:       #ffffff;

  /* ─── サイズ ─── */
  --gap-xs:   4px;
  --gap-sm:   8px;
  --gap-md:   16px;
  --gap-lg:   24px;
  --gap-xl:   40px;

  --h-topbar:    52px;
  --h-button:    56px;

  --max-w-game:  960px;
  --max-w-card:  480px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  /* ─── タイポ ─── */
  --fs-xl: clamp(48px, 9vw, 64px);
  --fs-lg: clamp(22px, 4vw, 28px);
  --fs-md: 20px;
  --fs-body: 15px;
  --fs-sm: 12px;
  --fs-micro: 10px;
}

/* ============================== Reset ============================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-weight: 400;
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.65;
  min-height: 100svh;
  overflow-x: hidden;
}
button { font-family: inherit; }
canvas { display: block; max-width: 100%; height: auto; }

/* ============================== Screen 基本 ============================== */
.screen {
  position: relative;
  min-height: 100svh;
  width: 100%;
}

/* ============================== HERO ============================== */
.screen-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--gap-lg) var(--gap-md);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(14,22,36,0.3) 0%, rgba(14,22,36,0.6) 60%, rgba(14,22,36,0.95) 100%),
    url('https://images.pexels.com/photos/35497307/pexels-photo-35497307.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-grad {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(30,58,110,0.4) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.hero-sub {
  font-weight: 700;
  font-size: clamp(15px, 3vw, 18px);
  color: var(--c-text);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero-preview {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(14,22,36,0.55);
  border: 1px solid rgba(138,163,192,0.2);
  border-radius: var(--radius-lg);
  padding: var(--gap-sm);
  backdrop-filter: blur(4px);
}

#heroCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.hero-guide {
  font-size: var(--fs-body);
  color: var(--c-text);
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.hero-meta {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  margin: 0;
  letter-spacing: 0.1em;
}

.hero-disclaimer {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  margin: var(--gap-md) 0 0;
  line-height: 1.6;
}

.resume-banner {
  width: 100%;
  background: var(--c-surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(138,163,192,0.25);
  border-radius: var(--radius-md);
  padding: var(--gap-sm) var(--gap-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
}

.resume-text {
  font-size: var(--fs-body);
  margin: 0;
  color: var(--c-text);
}

/* ============================== Button ============================== */
.btn-primary {
  height: var(--h-button);
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--c-cta-bg);
  color: var(--c-cta-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 111, 176, 0.4);
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
}
.btn-primary:hover { background-color: var(--c-cta-hover); box-shadow: 0 6px 24px rgba(26,111,176,0.5); }
.btn-primary:focus-visible { outline: 3px solid var(--c-brake-green); outline-offset: 2px; }
.btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(26,111,176,0.3); }

.btn-secondary {
  height: 44px;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent;
  color: var(--c-text);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(138,163,192,0.35);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover { background-color: rgba(138,163,192,0.1); border-color: rgba(138,163,192,0.6); }
.btn-secondary:focus-visible { outline: 3px solid var(--c-brake-green); outline-offset: 2px; }

.btn-text {
  background: none;
  border: none;
  color: var(--c-text-sub);
  font-family: inherit;
  font-size: var(--fs-body);
  cursor: pointer;
  padding: var(--gap-xs) var(--gap-sm);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-text:hover { color: var(--c-text); }
.btn-text:focus-visible { outline: 2px solid var(--c-brake-green); outline-offset: 2px; }

.icon-btn {
  /* L_NEW-Fix5: タッチガイドライン 44px 準拠 */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(138,163,192,0.3);
  color: var(--c-text);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: rgba(138,163,192,0.1); }
.icon-btn:focus-visible { outline: 2px solid var(--c-brake-green); outline-offset: 2px; }
.icon-close {
  position: absolute;
  top: var(--gap-sm);
  right: var(--gap-sm);
}

/* ============================== GAME ============================== */
.screen-game {
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
}

.station-bar {
  height: var(--h-topbar);
  background: var(--c-surface-glass);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(138, 163, 192, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-md);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  max-width: var(--max-w-game);
  margin-left: auto;
  margin-right: auto;
}

.station-info {
  display: flex;
  align-items: baseline;
  gap: var(--gap-sm);
  overflow: hidden;
}

.station-num {
  font-weight: 900;
  font-size: 13px;
  color: var(--c-train-stripe);
  background: rgba(26,111,176,0.15);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.station-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--c-text);
  white-space: nowrap;
}

.station-reading {
  font-size: 12px;
  color: var(--c-text-sub);
  white-space: nowrap;
}

.station-difficult {
  font-size: 11px;
  color: var(--c-gold);
  background: rgba(245,200,66,0.15);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  flex-shrink: 0;
}

.station-stats {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}

.stat-score, .stat-progress {
  font-size: 12px;
  color: var(--c-text-sub);
  white-space: nowrap;
}
.stat-score strong, .stat-progress strong {
  color: var(--c-text);
  font-weight: 900;
  font-size: 16px;
}

.game-stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--max-w-game);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  background-color: #060a14;
  overflow: hidden;
  border-radius: 0;
}

.game-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* L_NEW-test-player改善1: 0.33→0.45（PCビュー背景写真が薄すぎ指摘対応）。L16 凍結値範囲外だが test-player 実機指摘を優先 */
  opacity: 0.45;
  filter: blur(6px);
  z-index: 0;
  transition: background-image 0.5s ease;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

/* ピタリ緑フラッシュ */
.overlay-flash {
  position: absolute;
  inset: 0;
  background-color: var(--c-pitari);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
  /* L_NEW-Fix7: JS から --flash-peak を上書きして prefers-reduced-motion 対応 */
  --flash-peak: 0.35;
}
.overlay-flash.flashing {
  animation: pitariFlash 0.4s ease-out;
}
@keyframes pitariFlash {
  0%   { opacity: 0; }
  20%  { opacity: var(--flash-peak, 0.35); }
  100% { opacity: 0; }
}

/* プレステージテキスト（難読駅停車前） */
.overlay-prestige {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 6;
  font-weight: 700;
  color: var(--c-gold);
  font-size: clamp(16px, 3.5vw, 22px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 16px rgba(245,200,66,0.5);
  pointer-events: none;
  animation: prestigeFade 1.6s ease-out;
}
@keyframes prestigeFade {
  0%   { opacity: 0; transform: translateY(-10px); }
  20%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* 停車結果テキスト */
.overlay-result {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 7;
  pointer-events: none;
  animation: resultIn 1.4s ease-out;
}
.overlay-result.miss { color: var(--c-overshoot); }
.overlay-result.near { color: var(--c-near); }
.overlay-result.close { color: var(--c-close); }
.overlay-result.pitari { color: var(--c-pitari); }

.result-cm {
  font-weight: 900;
  font-size: var(--fs-xl);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8), 0 0 24px currentColor;
  letter-spacing: -0.02em;
}
.result-label {
  font-weight: 900;
  font-size: var(--fs-lg);
  margin-top: var(--gap-xs);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.result-sub {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--c-text);
  margin-top: var(--gap-xs);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.result-points {
  font-weight: 900;
  font-size: var(--fs-lg);
  color: var(--c-gold);
  margin-top: var(--gap-sm);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
@keyframes resultIn {
  0%   { opacity: 0; transform: scale(0.8); }
  15%  { opacity: 1; transform: scale(1.05); }
  25%  { transform: scale(1); }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

/* フェーズ切替予告 */
.overlay-phase {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 6;
  font-weight: 900;
  color: var(--c-signal-amber);
  font-size: clamp(18px, 4vw, 26px);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 16px rgba(245,166,35,0.5);
  pointer-events: none;
  animation: prestigeFade 1.8s ease-out;
}

/* ============================== Popup ============================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--gap-md);
  animation: popupFadeIn 0.25s ease-out;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid rgba(138,163,192,0.2);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg) var(--gap-md);
  width: 100%;
  max-width: var(--max-w-card);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  text-align: center;
  animation: popupCardIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popupCardIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-name {
  font-weight: 900;
  font-size: 28px;
  margin: 0 0 var(--gap-xs);
  color: var(--c-text);
}
.popup-kana {
  font-size: 15px;
  color: var(--c-text-sub);
  margin: 0 0 var(--gap-md);
  letter-spacing: 0.05em;
}
.popup-bonus {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dim));
  color: #1a1a1a;
  font-weight: 900;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--gap-md);
  box-shadow: 0 4px 12px rgba(245,200,66,0.4);
}
.popup-trivia {
  font-size: var(--fs-body);
  color: var(--c-text);
  margin: 0 0 var(--gap-sm);
  line-height: 1.7;
}
.popup-driver {
  font-size: 13px;
  color: var(--c-text-sub);
  margin: 0 0 var(--gap-md);
  font-style: italic;
  border-left: 2px solid var(--c-train-stripe);
  padding-left: var(--gap-sm);
  text-align: left;
}
.popup-timer {
  width: 100%;
  height: 4px;
  background: rgba(138,163,192,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--gap-md);
}
.popup-timer-bar {
  height: 100%;
  background: var(--c-brake-green);
  width: 100%;
  transform-origin: left center;
  animation: timerFill 3s linear forwards;
}
@keyframes timerFill {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* マイルストーン */
.popup-milestone .milestone-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: var(--gap-sm);
}
.milestone-title {
  font-weight: 900;
  font-size: 32px;
  margin: 0 0 var(--gap-sm);
  color: var(--c-gold);
  text-shadow: 0 2px 12px rgba(245,200,66,0.3);
}
.milestone-message {
  font-size: var(--fs-body);
  color: var(--c-text);
  margin: 0 0 var(--gap-md);
}
.milestone-progress {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(138,163,192,0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--gap-xs);
}
.milestone-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-train-stripe), var(--c-gold));
  width: 0%;
  transition: width 0.6s ease-out;
}
.milestone-route {
  font-size: 11px;
  color: var(--c-text-sub);
  margin: 0 0 var(--gap-xs);
  letter-spacing: 0.05em;
}
.milestone-remaining {
  font-size: var(--fs-body);
  color: var(--c-text);
  font-weight: 700;
  margin: 0 0 var(--gap-md);
}

.retry-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

/* ============================== RESULT / MAP ============================== */
.screen-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gap-lg) var(--gap-md);
  overflow-x: hidden;
}
.result-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/13859325/pexels-photo-13859325.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}
.result-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,22,36,0.5) 0%, rgba(14,22,36,0.85) 50%, rgba(14,22,36,0.97) 100%);
  z-index: 1;
  pointer-events: none;
}
.result-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}
.result-title {
  font-weight: 900;
  font-size: clamp(28px, 6vw, 36px);
  margin: 0;
  color: var(--c-gold);
  text-shadow: 0 2px 16px rgba(245,200,66,0.4), 0 4px 24px rgba(0,0,0,0.7);
}
.result-stats {
  font-size: var(--fs-body);
  color: var(--c-text);
  margin: 0;
  line-height: 1.9;
}
.result-stats strong {
  font-weight: 900;
  font-size: 22px;
  color: var(--c-gold);
}
.result-ranks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap-sm);
  margin: var(--gap-xs) 0;
}
.rank-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--c-surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: var(--gap-sm) var(--gap-md);
  min-width: 140px;
}
.rank-badge-title {
  font-weight: 900;
  font-size: 14px;
  color: var(--c-gold);
  margin-bottom: 2px;
}
.rank-badge-desc {
  font-size: 11px;
  color: var(--c-text-sub);
  line-height: 1.4;
  text-align: center;
}

#mapCanvas {
  width: 100%;
  max-width: 600px;
  /* L_NEW-Fix4: L0 CSS 予防ルール（max-width 要素には margin: 0 auto 必修）遵守 */
  margin-left: auto;
  margin-right: auto;
  display: block;
  height: auto;
  background: linear-gradient(180deg, rgba(30,58,110,0.15) 0%, rgba(14,22,36,0.4) 100%);
  border: 1px solid rgba(138,163,192,0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  cursor: pointer;
}

.map-hint {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  margin: 0;
}

.share-box {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  background: var(--c-surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(138,163,192,0.25);
  border-radius: var(--radius-md);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}
.share-text {
  font-family: 'Noto Sans JP', monospace;
  font-size: 13px;
  color: var(--c-text);
  margin: 0;
  line-height: 1.7;
  text-align: center;
  word-break: break-word;
}
.share-toast {
  font-size: 12px;
  color: var(--c-brake-green);
  font-weight: 700;
  margin: 0;
}

.result-disclaimer {
  font-size: 11px;
  color: var(--c-text-sub);
  margin: var(--gap-sm) 0;
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Spot popup */
.spot-detail {
  font-size: var(--fs-body);
  color: var(--c-text);
  margin: var(--gap-sm) 0;
  font-weight: 700;
  line-height: 1.6;
}

.about-disclaimer {
  font-size: 11px;
  color: var(--c-text-sub);
  margin: var(--gap-md) 0 var(--gap-sm);
  line-height: 1.7;
  text-align: left;
}
.about-credit {
  font-size: 12px;
  color: var(--c-text-sub);
  margin: 0 0 var(--gap-md);
}

/* ============================== Footer ============================== */
.site-footer {
  background: var(--c-bg);
  padding: var(--gap-lg) var(--gap-md);
  text-align: center;
  border-top: 1px solid rgba(138,163,192,0.1);
}
.site-footer p {
  font-size: 11px;
  color: var(--c-text-dim);
  margin: 0;
  line-height: 1.7;
}

/* ============================== PC レイアウト調整 ============================== */
@media (min-width: 1024px) {
  .hero-inner {
    max-width: 720px;
    gap: var(--gap-lg);
  }
  .hero-preview {
    max-width: 480px;
  }
  .game-stage {
    border-radius: var(--radius-md);
    margin-top: var(--gap-sm);
  }
  .station-bar {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .result-inner {
    max-width: 720px;
  }
  .popup-card {
    max-width: 520px;
  }
}

/* ============================== prefers-reduced-motion ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .overlay-flash.flashing { animation: none; opacity: 0.3; }
}
