.timer-section{padding:60px 0 34px}
.timer-page .site-header.is-scrolled::before,.timer-page .site-header.menu-open::before{background:rgba(13,13,13,.96)!important;box-shadow:0 10px 30px rgba(0,0,0,.28)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.timer-page .sv-about-cta .button,.timer-page .sv-about-cta .button .button-text{gap:8px}
.timer-container{width:min(100%,var(--max));margin:auto;padding:0 20px}
.timer-heading{max-width:860px;margin-bottom:32px}
.timer-heading h2{margin:0;font-size:clamp(32px,4vw,52px);line-height:1.08}
.timer-heading>p:last-child{color:var(--muted);font-size:20px;line-height:1.5}
.timer-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);gap:24px;align-items:stretch}
.timer-settings{padding:28px;border:1px solid #ddd;border-radius:14px;background:var(--soft);min-width:0}
.timer-settings h3{margin:0 0 18px;font-size:24px}
.timer-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#e5e5e5;border-radius:10px;margin-bottom:28px}
.timer-mode-switch button{border:0;border-radius:7px;padding:12px 6px;font:700 15px/1.2 Outfit,Arial,sans-serif;background:transparent;color:var(--muted);cursor:pointer}
.timer-mode-switch [aria-pressed=true]{background:#111;color:white;box-shadow:0 3px 8px #0002}
.timer-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.timer-fields label{display:grid;gap:7px;font-size:13px;font-weight:700}
.timer-fields input{width:100%;min-width:0;border:1px solid #ccc;border-radius:8px;background:#fff;color:#121212;padding:12px 5px;text-align:center;font:600 25px/1.2 Outfit,Arial,sans-serif;font-variant-numeric:tabular-nums}
.timer-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:14px 0}
.timer-presets button{padding:9px 2px;border:1px solid #ccc;border-radius:7px;font:600 13px Outfit,Arial,sans-serif;background:#fff;color:#222;cursor:pointer}
.timer-presets button:hover{border-color:var(--orange);background:#fff1e7}
.timer-settings input:disabled,.timer-presets button:disabled{opacity:.55;cursor:not-allowed}
.timer-settings p{font-size:15px;line-height:1.5;color:var(--muted)}
.timer-settings fieldset{border:0;border-top:1px solid #ccc;padding:22px 0 0;margin:24px 0 0;min-width:0}
.timer-settings legend{float:left;width:100%;font-size:16px;font-weight:700;margin-bottom:14px}
.timer-option{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.4;margin:10px 0;clear:both;cursor:pointer}
.timer-option input{flex:0 0 auto;accent-color:var(--orange);width:18px;height:18px;margin:1px 0 0}
.timer-option small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:3px}
.timer-settings .timer-motion-note{font-size:13px;margin:14px 0 0}
.timer-stage{--timer-accent:#ff7b21;position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:520px;border:1px solid #ffffff15;border-radius:14px;padding:26px;background:radial-gradient(ellipse at 50% 130%,#6b290c88,transparent 65%),#0c1016;color:#fff;overflow:hidden;box-shadow:0 20px 50px #0002}
.timer-stage::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px transparent;pointer-events:none;z-index:-1;transition:box-shadow .4s}
.timer-stage-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:2}
.timer-stage-top>span{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;letter-spacing:.16em;color:#fda667}
.timer-stage-top>span i{font-size:17px}
.timer-control{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #ffffff35;border-radius:9px;background:#ffffff0b;color:#fff;padding:13px 20px;font:700 16px/1.2 Outfit,Arial,sans-serif;cursor:pointer;transition:background .2s,transform .2s;touch-action:manipulation}
.timer-control:hover{background:#ffffff19}
.timer-control:active{transform:translateY(1px)}
.timer-control.timer-primary{border-color:var(--orange);background:var(--orange);color:#fff;min-width:160px}
.timer-control.timer-primary:hover{background:#d95700}
.timer-control.timer-fullscreen{padding:10px 12px;font-size:13px}
.timer-face{position:relative;text-align:center;margin:auto 0;padding:44px 0;z-index:1}
.timer-phase{margin:0 0 14px;color:#cbd1dc;font-size:17px;letter-spacing:.03em;line-height:1.5}
.timer-readout{display:block;font-size:clamp(44px,6vw,92px);font-weight:600;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";line-height:1.1;letter-spacing:-.035em;color:#fff;text-shadow:0 0 55px #ff6a001a;white-space:nowrap}
.timer-units{display:grid;grid-template-columns:repeat(3,1fr);width:86%;max-width:490px;margin:14px auto 0;font-size:10px;letter-spacing:.2em;color:#939eaf;text-transform:uppercase}
.timer-progress-track{height:4px;max-width:460px;margin:32px auto 0;border-radius:4px;background:#ffffff18;overflow:hidden}
.timer-progress{height:100%;width:100%;background:var(--timer-accent);transform-origin:left;transition:transform .1s linear,background .4s}
.timer-fullscreen-logo{display:none}
.timer-stage-bottom{position:relative;z-index:2}
.timer-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.timer-audio-action{display:flex;justify-content:center}
.timer-audio-action .timer-control:not([hidden]){margin-top:14px;padding:9px 14px;font-size:13px}
.timer-keyboard{margin:20px 0 0;text-align:center;font-size:12px;line-height:1.8;color:#a3adbb}
.timer-keyboard kbd{border:1px solid #ffffff25;border-radius:4px;padding:2px 5px;font:inherit;color:#d4dae3;margin:0 2px}
.timer-status{margin:20px 0 0;min-height:24px;font-size:15px;color:var(--muted)}
.timer-status:empty{display:none}
.timer-details{margin-top:30px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.timer-details article{padding:24px;border:1px solid #00000014;border-radius:12px;background:var(--soft)}
.timer-detail-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:var(--orange);color:#fff;font-size:20px;margin-bottom:18px}
.timer-details h3{font-size:23px;line-height:1.15;margin:0 0 12px}
.timer-details p{font-size:16px;line-height:1.55;color:var(--muted);margin:0}
.timer-page main button:focus-visible,.timer-page main input:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.timer-page [hidden]{display:none!important}
.timer-stage.is-urgent{--timer-accent:#ff9c49}
.timer-stage.is-urgent::before{box-shadow:inset 0 0 0 2px #ff8c3b88,inset 0 -40px 100px #ff6a0019}
.timer-stage.is-final{--timer-accent:#ff714a}
.timer-stage.is-final .timer-readout{color:#ffae8e}
.timer-stage.has-effects.is-hit{animation:timer-shake .38s ease-out}
.timer-stage.has-effects.is-hit .timer-readout{animation:timer-beat .5s ease-out}
.timer-stage.has-effects.is-final.is-hit{animation-name:timer-shake-final}
.timer-stage[data-state=finished] .timer-phase{color:#ffb47e;font-size:26px;font-weight:700}
.timer-stage[data-state=finished]::before{box-shadow:inset 0 0 0 2px #ff6a00aa,inset 0 0 100px #ff6a0022}
.timer-stage.has-effects.is-celebrating .timer-face::after{content:"";position:absolute;inset:15%;border:2px solid #ff9a53;border-radius:50%;animation:timer-ripple 1.5s ease-out both;pointer-events:none}
.timer-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.timer-particles span{position:absolute;left:50%;top:65%;width:7px;height:13px;background:#ff8132;opacity:0;animation:timer-confetti 1.8s ease-out var(--delay) both}
.timer-particles span:nth-child(3n){background:#ffd1a0;border-radius:50%;width:8px;height:8px}
.timer-particles span:nth-child(3n + 1){background:#fff}
.timer-stage:fullscreen,.timer-stage.is-focus-mode{width:100%;height:100%;min-height:100%;max-width:none;border:0;border-radius:0;padding:clamp(18px,4vw,60px);background:radial-gradient(ellipse at 50% 130%,#3f2319 0%,#261c1a 32%,#15151a 62%,#0c1016 100%);background-size:100% 100%;background-repeat:no-repeat;background-origin:border-box;background-clip:border-box;box-shadow:none}
.timer-stage::backdrop{background:#0c1016}
/* Fine dithering breaks up visible color bands in the dark fullscreen gradient. */
.timer-stage:fullscreen::after,.timer-stage.is-focus-mode::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='noise' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");background-size:160px 160px;background-repeat:repeat}
.timer-stage.is-focus-mode{position:fixed;inset:0;z-index:2147483000;height:100dvh}
body.timer-focus-open{overflow:hidden}
.timer-stage:fullscreen .timer-readout,.timer-stage.is-focus-mode .timer-readout{font-size:clamp(52px,15vw,240px)}
.timer-stage:fullscreen .timer-phase,.timer-stage.is-focus-mode .timer-phase{font-size:clamp(18px,2.5vw,32px)}
.timer-stage:fullscreen .timer-units,.timer-stage.is-focus-mode .timer-units{max-width:1100px;font-size:clamp(10px,1.2vw,16px)}
.timer-stage:fullscreen .timer-progress-track,.timer-stage.is-focus-mode .timer-progress-track{max-width:1000px}
.timer-stage:fullscreen .timer-fullscreen-logo,.timer-stage.is-focus-mode .timer-fullscreen-logo{display:block;width:clamp(140px,15vw,220px);max-width:60%;height:auto;margin:32px auto 0}
html[data-theme=dark] .timer-settings,html[data-theme=dark] .timer-details article{background:#141b24;border-color:#ffffff20}
html[data-theme=dark] .timer-mode-switch{background:#090d12}
html[data-theme=dark] .timer-mode-switch [aria-pressed=true]{background:#e46a12;color:#fff}
html[data-theme=dark] .timer-mode-switch button{color:#cbd1dc}
html[data-theme=dark] .timer-presets button{background:#0c1016;color:#fff;border-color:#ffffff30}
html[data-theme=dark] .timer-settings fieldset{border-color:#ffffff30}
@keyframes timer-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-2px)}50%{transform:translateX(2px)}75%{transform:translateX(-1px)}}
@keyframes timer-shake-final{0%,100%{transform:translate(0)}20%{transform:translate(-4px,1px)}40%{transform:translate(4px,-1px)}60%{transform:translate(-3px,1px)}80%{transform:translate(2px)}}
@keyframes timer-beat{0%,100%{transform:scale(1)}30%{transform:scale(1.035)}}
@keyframes timer-ripple{from{transform:scale(.5);opacity:.8}to{transform:scale(2.8);opacity:0}}
@keyframes timer-confetti{0%{transform:translate(0,0) rotate(0);opacity:0}10%{opacity:1}80%{opacity:1}100%{transform:translate(var(--x),var(--y)) rotate(var(--spin));opacity:0}}
@media(max-width:1000px){.timer-workspace{grid-template-columns:280px minmax(0,1fr)}.timer-settings{padding:22px}.timer-stage{padding:22px}.timer-readout{font-size:clamp(40px,6.8vw,76px)}}
@media(max-width:760px){.timer-section{padding-top:36px}.timer-workspace{grid-template-columns:1fr}.timer-stage{min-height:420px}.timer-readout{font-size:clamp(44px,11vw,82px)}.timer-details{grid-template-columns:1fr}.timer-settings{padding:24px}.timer-mode-switch{max-width:420px}.timer-fields{max-width:420px}.timer-presets{max-width:420px}.timer-stage-top>span{font-size:10px;letter-spacing:.1em}}
@media(max-width:400px){.timer-container{padding:0 16px}.timer-stage{padding:18px 12px}.timer-control{padding:12px 15px;font-size:14px}.timer-control.timer-primary{min-width:140px}.timer-control.timer-fullscreen{font-size:12px;padding:9px}.timer-stage-top{gap:6px}.timer-readout{font-size:clamp(38px,11vw,46px)}}
@media(max-height:500px) and (orientation:landscape){.timer-stage:fullscreen,.timer-stage.is-focus-mode{padding:14px 24px}.timer-face{padding:10px 0}.timer-stage:fullscreen .timer-readout,.timer-stage.is-focus-mode .timer-readout{font-size:clamp(48px,15vh,100px)}.timer-keyboard{display:none}.timer-progress-track{margin-top:14px}.timer-phase{margin-bottom:6px}.timer-units{margin-top:6px}}
