:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;background:#000;color:#f5f5f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100dvh;background:#000}.stopwatch{width:min(100%,500px);min-height:100dvh;margin:auto;padding:calc(env(safe-area-inset-top) + 34px) 26px calc(env(safe-area-inset-bottom) + 24px);display:flex;flex-direction:column}.header{display:flex;justify-content:space-between;align-items:center}.eyebrow{display:block;color:#797979;font-size:9px;font-weight:650;letter-spacing:.22em;margin-bottom:8px}h1{font-size:18px;letter-spacing:.06em;margin:0;font-weight:600}.status{font-size:11px;letter-spacing:.05em;color:#888;display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;border-radius:50%;background:#737373}.status.running .status-dot{background:#61c77e;box-shadow:0 0 12px #61c77e80}.display{text-align:center;padding:clamp(88px,17vh,160px) 0 clamp(50px,9vh,90px)}.display-label{color:#777;font-size:11px;letter-spacing:.3em;margin:0 0 17px 4px}.time{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:clamp(57px,15.5vw,88px);font-weight:200;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.065em;white-space:nowrap}.hint{font-size:12px;color:#696969;letter-spacing:.08em;margin:22px 0 0}.controls{display:flex;align-items:center;justify-content:space-between;padding:0 4px 35px}.round{height:82px;width:82px;border-radius:50%;border:3px solid #000;outline:1px solid transparent;font:inherit;font-size:17px;cursor:pointer;transition:background .2s,transform .15s,outline-color .2s}.round:active{transform:scale(.95)}.round:focus-visible{outline:2px solid #fff;outline-offset:4px}.secondary{background:#292929;color:#f0f0f0;outline-color:#292929}.secondary:disabled{color:#747474;background:#1a1a1a;outline-color:#1a1a1a;cursor:default}.primary{color:#61d384;background:#102b18;outline-color:#102b18}.primary.running{color:#f05b60;background:#351112;outline-color:#351112}.control-dots{display:flex;gap:7px}.control-dots i{width:4px;height:4px;background:#3d3d3d;border-radius:50%}.control-dots i:first-child{background:#aaa}.laps{border-top:1px solid #282828;flex:1}.laps-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 0 15px}.laps-heading h2{font-size:12px;font-weight:500;color:#a2a2a2;letter-spacing:.1em;margin:0}.laps-heading span{color:#686868;font-size:11px}.empty{text-align:center;padding:31px 0 55px;color:#666}.empty-mark{font-size:21px;color:#4e4e4e}.empty p{font-size:13px;color:#909090;margin:12px 0 9px;letter-spacing:.04em}.empty span:last-child{font-size:11px;color:#555}.lap-list{list-style:none;padding:0;margin:0;max-height:36vh;overflow:auto}.lap-list li{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #252525;padding:17px 0;font-size:15px;font-variant-numeric:tabular-nums}.lap-list li.fast{color:#68cf83}.lap-list li.slow{color:#ef6268}.lap-list .live{color:#999}footer{display:flex;justify-content:space-between;border-top:1px solid #1e1e1e;padding-top:21px;color:#555;font-size:10px;letter-spacing:.1em}footer span:last-child{font-size:6px;color:#555}@media(max-height:700px){.display{padding:60px 0 44px}.empty{padding:20px 0 35px}}@media(max-width:350px){.stopwatch{padding-left:20px;padding-right:20px}.round{width:72px;height:72px}.time{font-size:16vw}}

/* The time is the focus; the light moves only while the watch is running. */
.stopwatch{width:min(100%,720px);container-type:inline-size}
.display{position:relative;isolation:isolate;overflow:hidden;padding:clamp(95px,17vh,170px) 0 clamp(72px,11vh,110px)}
.display::before{content:"";position:absolute;z-index:-1;inset:10% 3%;border-radius:50%;background:radial-gradient(ellipse,rgba(106,176,145,.12),transparent 67%);opacity:0;transform:scale(.8);transition:opacity 1s ease}
.display.running::before{opacity:1;animation:soft-breathe 6s ease-in-out infinite alternate}
.time{font-size:clamp(56px,20vw,140px);font-size:clamp(56px,21cqw,140px);letter-spacing:-.065em;transition:text-shadow 1s ease}
.time.long-time{font-size:clamp(46px,18cqw,120px)}
.display.running .time{text-shadow:0 0 36px rgba(194,238,216,.16)}
.display-label{margin-bottom:23px}.hint{margin-top:27px}
@keyframes soft-breathe{from{transform:scale(.8);opacity:.42}to{transform:scale(1.2);opacity:1}}
@media(max-height:700px){.display{padding:65px 0 56px}}
@media(max-width:350px){.time{font-size:21cqw}.time.long-time{font-size:18cqw}}
@media(prefers-reduced-motion:reduce){.display.running::before{animation:none;transform:none}.round,.time,.display::before{transition:none}}

.countdown{font-size:clamp(100px,27cqw,180px);font-weight:200;line-height:.78;font-variant-numeric:tabular-nums;color:#f4f8f5;text-shadow:0 0 48px rgba(144,225,178,.3)}
.countdown[hidden],.time[hidden]{display:none}
.display.preparing::before{opacity:.85;transform:scale(1);background:radial-gradient(ellipse,rgba(106,176,145,.22),transparent 67%)}
.prepare-controls{text-align:center;margin:-10px 0 35px}
.prepare-button{border:1px solid #434d45;border-radius:999px;background:#101713;color:#c6e3d0;padding:12px 21px;font:inherit;font-size:13px;letter-spacing:.04em;cursor:pointer;transition:background .2s,border-color .2s}
.prepare-button span{font-size:16px;margin-right:4px}.prepare-button small{font-size:10px;color:#77917f;margin-left:7px}.prepare-button:hover:not(:disabled){background:#1b2b20;border-color:#7caa8b}.prepare-button:focus-visible{outline:2px solid #fff;outline-offset:4px}.prepare-button:disabled{color:#666;border-color:#242424;background:#111;cursor:default}.round:disabled{cursor:default}
