:root {
  --midnight: #10131C;
  --amber: #F2B544;
  --paper: #EDE8DF;
  --muted: rgba(237, 232, 223, 0.66);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--paper);
  background: var(--midnight);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--midnight); }
.screen {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); text-align: center; max-width: 480px; margin: 0 auto;
}
.screen[hidden] { display: none; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; margin: 8px 0 0; }
h2 { font-size: 22px; font-weight: 600; margin: 8px 0 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.disclosure { font-size: 15px; line-height: 1.5; color: var(--paper); margin: 0; }
.hint { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.elapsed { font-variant-numeric: tabular-nums; font-size: 17px; color: var(--amber); margin: 0; }
.actions { display: flex; gap: 16px; margin-top: 24px; width: 100%; justify-content: center; }
button {
  font: inherit; font-size: 17px; font-weight: 600; min-height: 56px; min-width: 128px; padding: 0 24px;
  border-radius: 28px; border: 0; cursor: pointer;
}
button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.primary { background: var(--amber); color: var(--midnight); }
.ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(237, 232, 223, 0.4); }
.ghost[aria-pressed="true"] { background: rgba(237, 232, 223, 0.14); }
.end { background: var(--paper); color: var(--midnight); }
.orb {
  --level: 0; position: relative; width: 168px; height: 168px; border-radius: 50%; margin-bottom: 16px;
  background: radial-gradient(circle at 50% 45%, var(--amber) 0%, rgba(242, 181, 68, 0.35) 55%, rgba(242, 181, 68, 0) 72%);
}
.orb.live { transform: scale(calc(1 + var(--level) * 0.22)); transition: transform 90ms linear; }
.orb.ringing::before, .orb.ringing::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(242, 181, 68, 0.5);
  animation: ring 2.4s ease-out infinite;
}
.orb.ringing::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb.ringing::before, .orb.ringing::after { animation: none; } .orb.live { transition: none; } }
.status { padding: 24px; max-width: 900px; margin: 0 auto; line-height: 1.5; }
.status a { color: var(--amber); }
.status table { border-collapse: collapse; width: 100%; font-size: 13px; }
.status td, .status th { border-bottom: 1px solid rgba(237, 232, 223, 0.2); padding: 6px; text-align: left; vertical-align: top; }
.switches { border: 1px solid rgba(237, 232, 223, 0.3); border-radius: 12px; padding: 10px 14px; margin: 8px 0; text-align: left; }
.switches label { display: block; padding: 6px 0; }
