/* =============================================================
   theme-time.css — Time Quest (warm amber / teal / cream on deep navy)
   Prompt 2D — pairs with shared/core.css + shared/components.css
   ============================================================= */

/* Google Fonts CDN removed — fonts self-hosted via shared/fonts.css */

/* ── Theme tokens ───────────────────────────────────────────── */
:root {
  --theme-font-display:  'Fredoka One', cursive;
  --theme-font-body:     'Nunito', sans-serif;

  --theme-bg-dark:       #0c1a2e;
  --theme-text:          #ffffff;
  --theme-text-dim:      rgba(255,255,255,0.55);

  --theme-accent:        #f59e0b;   /* amber */
  --theme-accent-dark:   #d97706;
  --theme-accent-light:  #fcd34d;
  --theme-highlight:     #14b8a6;   /* teal */

  --theme-border:        rgba(245,158,11,0.25);
  --theme-border-active: rgba(245,158,11,0.6);

  --theme-card-bg:       rgba(245,158,11,0.07);
  --theme-panel-bg:      rgba(20,184,166,0.08);

  --theme-btn-shadow:    #78350f;
  --theme-title-shadow:  #78350f;
}

/* ── Background ─────────────────────────────────────────────── */
body {
  background-color:  #0c1a2e;
  background-image:  linear-gradient(135deg, #0c1a2e 0%, #0f2040 50%, #102040 100%);
  background-attachment: fixed;
}

/* ── Game title ─────────────────────────────────────────────── */
.game-title {
  text-shadow: 0 0 24px rgba(245,158,11,0.4), 3px 3px 0 #78350f;
}

/* ── Question category chip ─────────────────────────────────── */
/* Hidden — the level badge at the top of the quiz screen is enough */
.question-category { display: none; }

/* ── Stage card borders / hover glows ───────────────────────── */
.stage-card.s1 { border-color: rgba(245,158,11,0.4); }
.stage-card.s1:hover {
  border-color: #f59e0b;
  box-shadow:   0 12px 40px rgba(245,158,11,0.25);
}
.stage-card.s2 { border-color: rgba(20,184,166,0.4); }
.stage-card.s2:hover {
  border-color: #14b8a6;
  box-shadow:   0 12px 40px rgba(20,184,166,0.25);
}
.stage-card.s3 { border-color: rgba(252,211,77,0.4); }
.stage-card.s3:hover {
  border-color: #fcd34d;
  box-shadow:   0 12px 40px rgba(252,211,77,0.3);
}

/* ── Stage "Play" buttons ───────────────────────────────────── */
.btn-stage.s1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 0 #78350f;
}
.btn-stage.s2 {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  box-shadow: 0 4px 0 #065f46;
}
.btn-stage.s3 {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 4px 0 #78350f;
  color:      #1c1400;  /* dark text for contrast on gold */
}

/* ── Floating clock atmosphere ──────────────────────────────── */
#time-floaters {
  position:       fixed;
  inset:          0;
  pointer-events: none;
  z-index:        0;
  overflow:       hidden;
}
.floater {
  position:   absolute;
  font-size:  1.8rem;
  opacity:    0.12;
  animation:  timeFloat var(--fd, 4s) ease-in-out infinite alternate;
}
@keyframes timeFloat {
  from { transform: translateY(0)     rotate(0deg); }
  to   { transform: translateY(-18px) rotate(8deg); }
}

/* ── Question text inside renderQuestion ────────────────────── */
.q-text {
  font-size:     clamp(1rem, 3vw, 1.2rem);
  font-weight:   800;
  color:         #ffffff;
  margin-bottom: 0.75rem;
  line-height:   1.4;
  text-align:    center;
}

/* ── Big clock display (format: "read") ─────────────────────── */
.clock-display {
  display:          flex;
  justify-content:  center;
  margin-bottom:    0.5rem;
}

/* ── Dual-clock layout (format: "dual") ─────────────────────── */
.dual-clocks {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             1.5rem;
  margin:          0.5rem 0;
}
.dual-arrow {
  font-size:   2rem;
  color:       #f59e0b;
  flex-shrink: 0;
  line-height: 1;
}
@media (max-width: 380px) {
  .dual-clocks { gap: 0.75rem; }
}

/* ── Answer buttons containing SVG clocks (format: "set") ───── */
/* SVG returned by formatAnswerText sits inside .ans-text.       */
/* display:block + margin:auto centres the clock within the btn. */
.answer-btn .ans-text > svg {
  display:        block;
  margin:         0 auto;
  pointer-events: none;
}
