* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: Inter, sans-serif; background: #030307; color: #fff; }
body { margin: 0; min-width: 280px; }
#canvas-container { position: fixed; inset: 0; z-index: 1; cursor: grab; touch-action: pan-y; }
#canvas-container:active { cursor: grabbing; }
canvas { display: block; width: 100%; height: 100%; }
.glass-panel { background: rgba(10,12,22,.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 25px 50px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.1); }
.ambient-glow { position: fixed; width: min(500px,100vw); height: 500px; border-radius: 50%; background: radial-gradient(circle,rgba(0,242,254,.08),rgba(139,92,246,.04) 50%,transparent 70%); pointer-events: none; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(50px); }
.ui-layer { position: relative; z-index: 10; pointer-events: none; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px; }
main { width: 100%; max-width: 448px; text-align: center; }
.countdown { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 32px; }
.time { border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; }
.time > span:first-child { font: 700 24px 'Space Grotesk',sans-serif; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
#cd-seconds { color: #22d3ee; }
.unit { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; margin-top: 2px; }
.form-panel { pointer-events: auto; padding: 8px; border-radius: 16px; transition: border-color .3s,box-shadow .3s; }
.form-panel:focus-within { border-color: #22d3ee99; box-shadow: 0 0 30px rgba(0,242,254,.2); }
form { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.email-field { position: relative; flex: 1; width: 100%; min-width: 0; }
.email-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
input { width: 100%; background: transparent; color: white; border: 0; font: 400 12px Inter,sans-serif; padding: 12px 16px 12px 44px; border-radius: 12px; min-height: 44px; }
input::placeholder { color: #94a3b8; opacity: 1; }
input:focus { outline: none; }
button { width: 100%; border: 0; min-height: 44px; padding: 12px 20px; border-radius: 12px; font: 500 12px Inter,sans-serif; color: #020617; background: linear-gradient(to right,#22d3ee,#a78bfa); box-shadow: 0 0 15px rgba(0,242,254,.3); cursor: pointer; transition: filter .3s,transform .3s; }
button:hover { filter: brightness(1.15); }
button:active { transform: scale(.95); }
button:focus-visible, a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
a { pointer-events: auto; color: #22d3ee; }
#toast { position: fixed; top: 24px; right: 24px; z-index: 50; max-width: min(384px,calc(100vw - 48px)); padding: 16px 20px; border-radius: 16px; border-left: 4px solid #22d3ee; font-size: 14px; }
#toast p { font-size: 12px; color: #cbd5e1; margin: 4px 0 0; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(min-width:640px) { .ui-layer { padding: 40px; } .time { padding: 16px; } .time > span:first-child { font-size: 30px; } .form-panel, input, button { border-radius: 999px; } form { flex-direction: row; } input,button { font-size: 14px; } button { width: auto; flex-shrink: 0; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; } }
