@font-face{font-family:Stack;src:url('/perfect-circle/fonts/ShortStack-Regular.ttf') format('truetype');font-display:swap}@font-face{font-family:Pixel;src:url('/perfect-circle/fonts/PressStart2P-Regular.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;min-height:100%;background:#111;color:#f8f8f8;font-family:Stack,'Comic Sans MS',cursive}body{overscroll-behavior:none}#game{position:relative;isolation:isolate;min-height:100dvh;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#080808 0,#101010 58%,#1c1c1c 100%)}.texture{position:absolute;inset:0;z-index:-1;background:url('/perfect-circle/texture.png');opacity:.055;pointer-events:none}.brand{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(15px,env(safe-area-inset-left));z-index:3}.brand img{display:block;width:145px;height:auto;filter:grayscale(1) invert(1)}.challenge{text-align:center;width:min(600px,100%);padding:76px 16px 48px}h1{font-size:clamp(23px,3vw,32px);font-weight:400;line-height:1.45;margin:0 0 14px}h1 strong{font-weight:900}.watch{position:relative;width:clamp(250px,43vh,360px);max-width:90vw;aspect-ratio:1;margin:auto}.dial{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.rim,.track,#progress{fill:none;stroke-width:2}.rim{stroke:#3c3c3c}.track{stroke:#222;stroke-width:8;stroke-dasharray:1 18.64}.ticks{stroke:#777;stroke-width:2;stroke-linecap:round}#progress{stroke:#f5f5f5;stroke-width:3;stroke-linecap:round;stroke-dasharray:0 100;transform:rotate(-90deg);transform-origin:center}.readout{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}.target{font:11px Pixel,monospace;color:#888;margin:0 0 25px}#time{font:clamp(27px,4.2vw,40px) Pixel,monospace;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff}.unit{font-size:13px;color:#777;margin-top:14px}.feedback{height:80px;display:flex;flex-direction:column;justify-content:center;gap:10px}#result{font-size:18px;margin:0;min-height:25px}#best{font-size:14px;margin:0;color:#aaa}.best-update #best{color:#72ff32}button{-webkit-tap-highlight-color:transparent;font:inherit;cursor:pointer;touch-action:manipulation}#action{width:91px;height:91px;border-radius:50%;border:0;background:#f5f5f5;color:#111;font:bold 19px Arial,sans-serif;box-shadow:0 0 0 7px #ffffff08;transition:transform .12s,box-shadow .12s;user-select:none;-webkit-user-select:none}#action:hover{box-shadow:0 0 0 10px #ffffff10}#action:active{transform:scale(.96)}button:focus-visible,a:focus-visible{outline:2px solid white;outline-offset:7px}.hint{font-size:12px;color:#888;margin:20px 0 0}#copy{font-size:13px;color:#bbb;border:0;background:none;padding:12px 20px 0;text-decoration:underline;text-underline-offset:4px}.credit{position:absolute;bottom:9px;right:14px;color:#777;font:10px Arial,sans-serif}[hidden]{display:none!important}body[data-state=running] #action{background:#e6e6e6}body[data-state=complete] #time{color:var(--result-color,#72ff32)}body[data-state=complete] #progress{stroke:var(--result-color,#72ff32)}body[data-perfect=true] #time{text-shadow:0 0 24px #72ff3280}body[data-perfect=true] .rim{stroke:#72ff32;stroke-width:3}@media(max-width:600px){.brand img{width:115px}.challenge{padding-top:78px;padding-bottom:38px}.watch{width:min(330px,83vw)}#time{font-size:32px}h1{font-size:23px}.target{font-size:10px}.feedback{height:78px}#result{font-size:16px}#action{height:84px;width:84px;font-size:18px}}@media(max-height:650px){.challenge{padding-top:60px;padding-bottom:28px}h1{font-size:21px;margin-bottom:4px}.watch{width:230px}.target{font-size:9px;margin-bottom:18px}#time{font-size:26px}.unit{font-size:11px;margin-top:9px}.feedback{height:64px}#result{font-size:14px}#best{font-size:12px}#action{height:67px;width:67px;font-size:16px}.hint{margin-top:14px;font-size:11px}}@media(max-height:440px) and (min-width:600px){.challenge{width:650px;display:grid;grid-template-columns:1fr 1fr;column-gap:35px;align-items:center;padding-top:60px;padding-bottom:16px}h1{grid-column:2;grid-row:1;margin:0}.watch{grid-column:1;grid-row:1/5;width:240px}.feedback{grid-column:2;grid-row:2}#action{grid-column:2;grid-row:3;margin:auto}.hint{grid-column:2;grid-row:4}#copy{grid-column:2;grid-row:5;padding-top:4px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
