/* ── TIMER SCREEN ── */
#screen-timer { flex-direction: column; }

/* ── APP LAYOUT ── */
#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  flex: 1;
  min-height: 0;
  padding: 0 0 clamp(0.8rem, 3dvh, 2rem);
  margin: 0 auto;
}

#round-info {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--secondary-color);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

/* Timer block — centré par défaut, monte en mode alerte, masqué en fin */
#timer-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#app.state-alert #timer-block {
  flex: none;
  justify-content: flex-start;
  padding-top: 8rem;
}
#app.state-end #timer-block { display: none; }

/* ── TIMER DISPLAY ── */
#timer-display {
  font-family: 'G7 Segment7 S5', monospace;
  font-size: clamp(4rem, min(25vw, 25dvh), 18rem);
  color: var(--main-color);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow:
    0 0 30px color-mix(in srgb, var(--main-color) 65%, transparent),
    0 0 50px color-mix(in srgb, var(--main-color) 40%, transparent),
    0 0 120px color-mix(in srgb, var(--main-color) 15%, transparent);
  transition: color 0.3s, text-shadow 0.3s;
  font-variant-numeric: tabular-nums;
}
#timer-display.alert {
  color: var(--alert-color);
  text-shadow:
    0 0 30px color-mix(in srgb, var(--alert-color) 70%, transparent),
    0 0 50px color-mix(in srgb, var(--alert-color) 50%, transparent),
    0 0 120px color-mix(in srgb, var(--alert-color) 20%, transparent);
  animation: pulse 0.5s ease-in-out infinite alternate;
}
#timer-display.finished {
  color: var(--secondary-color);
  text-shadow: none;
  animation: none;
}

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.015); }
}

/* ── ROUND DOTS ── */
#round-dots {
  display: flex;
  gap: 0.7rem;
  margin: clamp(0.5rem, 2dvh, 1.5rem) 0;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  transition: background 0.3s;
}
.dot.done   { background: var(--secondary-color); }
.dot.active { background: var(--main-color); box-shadow: 0 0 8px color-mix(in srgb, var(--main-color) 65%, transparent); }


/* ── CONTROLS ── */
#controls {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: auto;
}
