/* ============================================================
   Timeless Mini - item styles
   The big clock, and the start / pause / game-over screens
   that sit over the stage.
   ============================================================ */

/* ---- HUD: wave | CLOCK | best ---- */
.tm-hud { align-items: flex-start; z-index: 3; }
.tm-hud > div { white-space: nowrap; }

.tm-clock {
  border: 1px solid var(--line-bright);
  padding: .1rem .7rem !important;
  transition: color .15s, border-color .15s;
}
.tm-clock output {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--amber);
}
.tm-clock.is-low { border-color: var(--hot); }
.tm-clock.is-low output { color: var(--hot); animation: tm-pulse 1s ease-in-out infinite; }
.tm-clock.is-hit output { color: var(--hot); }
.tm-clock.is-gain output { color: var(--green); }

@keyframes tm-pulse { 50% { opacity: .55; } }

/* ---- overlay screens ---- */
.tm-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 4.5rem 1.2rem 1.2rem;
  text-align: center;
  background: rgba(7, 7, 12, .9);
  touch-action: manipulation;
}
.tm-screen h2 {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  margin: 0;
}
.tm-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.tm-hint {
  margin: 0;
  font-size: .88rem;
  color: var(--text-dim);
}

.tm-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
}
.tm-rules li {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .9rem;
}
.tm-bad  { color: var(--hot); font-weight: 600; }
.tm-good { color: var(--green); font-weight: 600; }

.tm-big {
  min-width: 11rem;
  min-height: 56px;
  font-size: 1.15rem;
}

.tm-stats {
  display: flex;
  gap: .5rem;
  margin: 0;
}
.tm-stats > div {
  min-width: 5.2rem;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.tm-stats dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tm-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.tm-steam {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 .5rem;
  text-decoration: underline;
  text-underline-offset: .15em;
}
