:root { --bg: #0b0f14; --card: #0f1520; --text: #e6eef8; --subtle: #9fb3c8; --accent: #79c0ff; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; background: radial-gradient(1200px 800px at 20% -10%, #12202f 0%, #0b0f14 40%), radial-gradient(900px 600px at 80% 110%, #1a2740 0%, #0b0f14 40%); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji"; } .app { min-height: 100%; display: grid; place-items: center; padding: 24px; } .card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 28px 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-width: 720px; width: 100%; text-align: center; container-type: inline-size; position: relative; isolation: isolate; } .h1 { margin: 0 0 8px 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--text); } .subtle { margin: 0 0 24px 0; color: var(--subtle); font-size: 14px; } .clock { font-variant-numeric: tabular-nums; letter-spacing: 1px; /* slightly lighter spacing for smaller size */ font-weight: 700; font-size: clamp(20px, 5vw, 36px); /* smaller now */ line-height: 1.1; } .date { margin-top: 12px; color: var(--accent); font-weight: 600; font-size: clamp(14px, 2.5vw, 18px); } .footer { margin-top: 20px; color: var(--subtle); font-size: 12px; } kbd { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; } .timer { margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 2px; font-weight: 700; font-size: clamp(40px, 10vw, 90px); line-height: 1.05; white-space: nowrap; } .timer-block { display: grid; gap: 16px; justify-items: center; text-align: center; width: 100%; } .timer-meta { display: grid; gap: 4px; } .timer-status { margin-top: 23px; color: var(--subtle); font-size: 12px; } .timer-sep { white-space: nowrap; } .timer-season { color: var(--subtle); font-weight: 600; font-size: clamp(12px, 2vw, 14px); } .timer-episode { color: var(--text); font-weight: 700; font-size: clamp(14px, 3vw, 18px); } .timer-toprow { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; } .pill { padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; border: 1px solid rgba(255,255,255,0.15); } .pill.running { background: rgba(0,255,128,0.12); } .pill.waiting { background: rgba(255,255,0,0.10); } .pill.ended { background: rgba(255,0,0,0.10); } .timer-now { display: inline-flex; gap: 8px; align-items: baseline; } .timer-now .muted { color: var(--subtle); font-size: 12px; } .timer-now .now-digits { font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(14px, 2.5vw, 18px); } .timer-hero { width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 0.15em; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; letter-spacing: 0.5px; font-weight: 800; font-size: clamp(24px, 13cqw, 88px); line-height: 1.05; } .timer-hero .hero-sep { white-space: nowrap; } .hero-sep { white-space: nowrap; font-size: 0.8em; } .hero-number.elapsed { font-size: 1em; } .hero-number.total { font-size: 0.66em; opacity: 0.9; } .timer-hero.has-hours { letter-spacing: 0.25px; font-size: clamp(22px, 10.5cqw, 80px); } .timer-hero.has-hours .hero-number.total { font-size: 0.6em; } .timer-hero.has-hours .hero-sep { font-size: 0.72em; } /* Progress bar */ .progress { position: relative; width: min(100%, 640px); height: 8px; margin-inline: auto; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10); border-radius: 999px; overflow: hidden; } .progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width 200ms linear; } .progress-fill.waiting { width: 0%; } .progress-fill.ended { width: 100%; } .timer-status { color: var(--subtle); font-size: 12px; margin-top: -4px; } .countdown-overlay { position: absolute; inset: 0; z-index: 999; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(2px); pointer-events: none; } .countdown-wrap { text-align: center; color: var(--text); text-shadow: 0 6px 24px rgba(0,0,0,0.45); animation: pop 180ms ease-out; } .countdown-number { font-variant-numeric: tabular-nums; font-weight: 900; letter-spacing: 2px; line-height: 0.95; text-shadow: 0 8px 28px rgba(0,0,0,0.55); font-size: clamp(48px, 26cqw, 220px); } .countdown-label { margin-bottom: 8px; font-size: clamp(12px, 2.2cqw, 22px); font-weight: 700; color: var(--subtle); } .card:has(.countdown-overlay) .timer-meta, .card:has(.countdown-overlay) .timer-toprow, .card:has(.countdown-overlay) .timer-hero, .card:has(.countdown-overlay) .progress, .card:has(.countdown-overlay) .timer-status { filter: blur(1px) brightness(0.85); } .footer a { text-decoration: underline; } @keyframes pop { from { transform: scale(0.98); opacity: 0.0; } to { transform: scale(1); opacity: 1.0; } } @media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } .countdown-wrap {animation: none;} } @container (max-width: 420px) { .timer-hero { font-size: clamp(22px, 11cqw, 72px); letter-spacing: 0.25px; } .hero-number.total, .hero-sep { font-size: 0.62em; } } @container (max-width: 360px) { .timer-hero { font-size: clamp(20px, 10cqw, 64px); letter-spacing: 0; } } @supports not (container-type: inline-size) { .timer-hero { font-size: clamp(28px, 8vw, 96px); } }