/* 靜態頁的遊戲版外觀（task-50），與 src/game/theme-game.css 同一套「貼紙手帳」：
   暖白紙、藏青線條、奶油黃／薄荷綠／天空藍、番茄紅重點色。只在 <html data-theme="game"> 生效。
   靜態頁只換外觀；問答在互動版，這裡只有「開始問答」連結。 */

html[data-theme='game'] {
  --font-sans: 'Huninn', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --paper: #fbf8f2;
  --surface: #fffdf9;
  --ink: #2d3142;
  --ink-2: #474b5c;
  --muted: #6a6d7b;
  --line: #2d3142;
  --accent: #c8432b;
  --action: #2d3142;
  --game-sun: #ffe39a;
  --game-mint: #cdeedd;
  --game-sky: #d7eafb;
  --game-shadow: #e3d7c4;
  --radius: 14px;
}

html[data-theme='game'] .site-header,
html[data-theme='game'] header:not(.site-header) {
  border-top: 0;
  border-bottom: 2px solid var(--ink);
  background: var(--game-sun);
  box-shadow: 0 3px 0 var(--ink);
}
html[data-theme='game'] header:not(.site-header) { max-width: none; padding-bottom: 0.75rem; }
html[data-theme='game'] .theme-toggle { color: var(--ink); }
html[data-theme='game'] .theme-switch { border: 2px solid var(--ink); }
html[data-theme='game'] .theme-switch::after { top: 0; left: 0; }
html[data-theme='game'] .guide-link {
  padding: 2px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--game-shadow);
  text-decoration: none;
}
html[data-theme='game'] .footer-links a { color: var(--ink); }

/* 「開始問答」：一顆番茄紅貼紙按鈕，連到互動版直接出第一題 */
html[data-theme='game'] .quiz-start-row {
  display: block;
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}
html[data-theme='game'] .quiz-start {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 120ms, box-shadow 120ms;
}
html[data-theme='game'] .quiz-start:hover { box-shadow: 0 6px 0 var(--ink); transform: translateY(-2px); }

/* 卡片與按鈕：粗框、淡沙色硬陰影 */
html[data-theme='game'] :is(.county-race, .interactive-link, .no-records, .mailbox) {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--game-shadow);
}
html[data-theme='game'] .interactive-link { background: var(--game-sky); color: var(--ink); }
html[data-theme='game'] .statement { padding-bottom: 0.5rem; border-bottom: 2px dashed var(--game-shadow); }
html[data-theme='game'] .badge-gov { color: var(--accent); }
html[data-theme='game'] h1 { font-weight: 800; }

/* 進場：正文依序彈進來 */
html[data-theme='game'] main.text-page > * { animation: game-pop-in 480ms cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
html[data-theme='game'] main.text-page > :nth-child(2) { animation-delay: 60ms; }
html[data-theme='game'] main.text-page > :nth-child(n + 3) { animation-delay: 120ms; }
@keyframes game-pop-in {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  70% { opacity: 1; transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme='game'] *,
  html[data-theme='game'] *::before,
  html[data-theme='game'] *::after {
    animation: none !important;
    transition: none !important;
  }
}
