/* 中本カップ麺タイマー — 本体サイトと同じ「火」のデザイントークン */
:root {
  --red: #e60012;
  --red-deep: #a3000d;
  --ember: #ff7a1a;
  --gold: #ffc93c;
  --bg: #161110;
  --surface: #221c1a;
  --text: #fff6f0;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: radial-gradient(900px 400px at 80% -10%, rgba(230, 0, 18, 0.22), transparent 65%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.7;
}

.timer-page {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.2rem, 4vw, 2.5rem) 1rem;
  text-align: center;
}

.timer-page h1 {
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 1.2rem;
}

.timer-page img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(230, 0, 18, 0.28);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.2rem;
}

.timer-page p {
  margin-bottom: 1.2rem;
}

.fire-button {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  padding: .9rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red-deep), var(--red) 55%, var(--ember));
  box-shadow: 0 6px 24px rgba(230, 0, 18, 0.45);
  transition: filter .2s, translate .2s;
  border: none;
  cursor: pointer;
}
.fire-button:hover { filter: brightness(1.12); translate: 0 -2px; }

.back-link { color: var(--gold); font-weight: 700; }

/* カウントダウン表示 */
.countdown {
  font-size: clamp(2.4rem, 2rem + 4vw, 4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  text-shadow: 0 0 24px rgba(230, 0, 18, 0.4);
  margin-bottom: .6rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

/* ---- テトリス盤面のレスポンシブ対応 ---- */
.wrapper-container {
  justify-content: center;
  padding-bottom: 2rem;
}

@media (max-width: 480px) {
  .tetris-container {
    flex-direction: column;
    align-items: center;
  }
  .tetris-panel-container {
    width: 100%;
    padding: 10px;
  }
  .tetris-panel-container-padding {
    min-height: 120px;
  }
}
