:root {
  --bg: #0a0a0c;
  --card: #141417;
  --ink: #f4f2ee;
  --soft: rgba(244, 242, 238, 0.54);
  --line: rgba(244, 242, 238, 0.1);
  --accent: #ff7a59;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.ot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(344px, 100%); padding: 14px 16px 12px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, #ffffff), var(--card) 40%); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 40px 60px -36px rgba(0, 0, 0, 0.9), 0 30px 70px -44px color-mix(in srgb, var(--accent) 55%, transparent); }
.ot__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.ot__head strong { font-size: 13px; font-weight: 680; color: var(--soft); white-space: nowrap; }
.ot__when { position: relative; display: grid; grid-template-columns: auto auto; height: 30px; padding: 3px; border-radius: 15px; background: rgba(0, 0, 0, 0.36); box-shadow: inset 0 0 0 1px var(--line); }
.ot__when button { position: relative; z-index: 1; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.500px; font-weight: 680; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.ot__when button[aria-selected="true"] { color: var(--ink); }
.ot__when button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.ot__pill { position: absolute; left: 0; top: 3px; width: 60px; height: 24px; border-radius: 12px; background: rgba(244, 242, 238, 0.13); box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.12); }

.ot__sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: -4px; }
.ot__sum strong { font-size: 36px; line-height: 40px; font-weight: 760; font-stretch: 90%; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot__chip { display: block; height: 22px; margin-bottom: 7px; padding: 0 9px; border-radius: 11px; overflow: hidden; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 11px; line-height: 22px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot__chip span { display: block; }

.ot__chart { position: relative; height: min(150px, 36vh); }
.ot__chart svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.ot__limit { stroke: rgba(244, 242, 238, 0.34); stroke-width: 1; stroke-dasharray: 3 4; }
.ot__limlab { fill: var(--soft); font-size: 10px; font-weight: 660; text-anchor: end; dominant-baseline: central; }
.ot__base { fill: rgba(244, 242, 238, 0.22); }
.ot__over { fill: var(--accent); }
.ot__day { fill: var(--soft); font-size: 10.500px; font-weight: 660; text-anchor: middle; }
.ot__hits { position: absolute; inset: 0; display: flex; }
.ot__hits button { flex: 1 1 0; height: 100%; border-radius: 10px; }
.ot__hits button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

.ot__foot { height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 640; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ot__foot span { display: block; overflow: hidden; text-overflow: ellipsis; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #f4f2ee; stroke: #0a0a0c; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 6; }

@media (max-width: 350px) { .ot__sum strong { font-size: 31px; } .ot__foot { font-size: 11.500px; } }
@media (prefers-reduced-motion: reduce) { .ot__when button { transition: none; } }
