* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #14181f; color: #f2f2f2;
  padding: env(safe-area-inset-top) 1rem env(safe-area-inset-bottom);
}
main { max-width: 40rem; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
section { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
section[hidden] { display: none; }
h1 { font-size: 2.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; margin: .5rem 0 0; }
p { margin: .25rem 0; font-size: 1.1rem; line-height: 1.4; }
.lead { font-size: 1.3rem; margin-bottom: 1rem; }

button {
  font: inherit; font-size: 1.1rem; color: inherit;
  background: #2a3240; border: 2px solid #3d4757; border-radius: .75rem;
  padding: .8rem 1.2rem; min-width: 6rem; cursor: pointer;
}
button.big { font-size: 1.4rem; padding: 1rem 2rem; background: #2f7d5b; border-color: #3fa577; }
/* Clear focus ring for the TV remote later */
button:focus-visible { outline: 4px solid #ffd24a; outline-offset: 3px; }

.pic {
  width: 100%; aspect-ratio: 4 / 3; max-height: 35vh;
  display: flex; align-items: center; justify-content: center;
  background: #222a36; border: 2px dashed #4a5568; border-radius: 1rem;
  color: #9aa5b5; font-size: 1.2rem; padding: 1rem;
}
.side { font-size: 1.3rem; font-weight: 700; color: #ffd24a; min-height: 1.5em; }
.count { font-size: 6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: .5rem 0; }
.next { color: #9aa5b5; }
.controls { display: flex; gap: .75rem; margin-top: 1rem; }

/* Changeover looks different from the hold */
body.change .count { color: #7ab8ff; }
body.paused .count { opacity: .4; }
