:root{color-scheme:dark;--bg: #0b1410;--surface: #14241c;--surface-2: #1d3328;--text: #f2f7f4;--muted: #9bb3a6;--accent: #2fd673;--accent-text: #04220f;--amber: #ffb627;--red: #ff4d4d;--radius: 14px}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior:none}button,input{font:inherit;color:inherit}button{cursor:pointer;border:none;touch-action:manipulation}.app{min-height:100dvh;display:flex;flex-direction:column;gap:16px;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-width:1200px;margin:0 auto}.bar{display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{font-weight:700;color:var(--muted);letter-spacing:.02em}.icon-button{background:var(--surface);border-radius:999px;padding:10px 16px;min-height:44px}.icon-button[aria-pressed=true]{background:var(--red);color:#fff}.clock-area{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0}.clock{font-size:min(30vw,52dvh);font-weight:800;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.03em;transition:color .3s}.status{margin-top:8px;font-size:clamp(1rem,3.5vw,1.6rem);color:var(--muted);text-transform:uppercase;letter-spacing:.15em}[data-phase=last-two] .clock{color:var(--amber)}[data-phase=last-minute] .clock{color:var(--red)}[data-phase=finished] .clock{color:var(--red);animation:flash .8s steps(1) infinite}[data-phase=finished] .status{color:var(--text);font-weight:700}[data-state=paused] .clock{animation:pulse 1.6s ease-in-out infinite}@keyframes flash{50%{opacity:.15}}@keyframes pulse{50%{opacity:.4}}.setup{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px}.presets{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.chip{background:var(--surface);border-radius:999px;padding:10px 18px;min-height:44px;font-weight:600}.chip.selected{background:var(--accent);color:var(--accent-text)}.custom{display:flex;align-items:flex-end;gap:6px}.custom label{display:flex;flex-direction:column;gap:4px;font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.custom input{width:4.5em;min-height:44px;padding:6px 10px;font-size:1.3rem;text-align:center;background:var(--surface);border:2px solid var(--surface-2);border-radius:10px}.custom input:focus{outline:none;border-color:var(--accent)}.colon{font-size:1.5rem;padding-bottom:8px}.controls{display:flex;gap:12px;justify-content:center}.controls button{flex:1;max-width:420px;min-height:72px;border-radius:var(--radius);font-size:clamp(1.2rem,4vw,1.8rem);font-weight:800;text-transform:uppercase;letter-spacing:.05em}.primary{background:var(--accent);color:var(--accent-text)}.primary.pause{background:var(--amber);color:#2a1a00}.secondary{background:var(--surface-2)}button:focus-visible{outline:3px solid var(--text);outline-offset:2px}button:active{transform:scale(.98)}@media(orientation:landscape)and (max-height:500px){.app{gap:8px}.clock{font-size:min(24vw,48dvh)}.controls button{min-height:56px}}
