/* 재질 (2026-11-02, from the lab experiment of 2026-11-01): depth and finish the settings cannot give.
   Colors follow the chosen theme and timer color (var(--bg)/var(--accent)); nothing is fixed.
   Heat: the dial repaints ~20-25 times a second while running, so no CSS/SVG filter sits on
   anything that changes. The disc and its shadow live on .dial-wrap::before, painted once. */
:root{
 --m-glow:color-mix(in srgb,var(--bg) 93%,#fff);
 --m-edge:color-mix(in srgb,var(--bg) 82%,#000);
 --m-disc:color-mix(in srgb,var(--bg) 95%,#fff);
 --m-disc-shadow:0 34px 70px -18px #000000b0,0 10px 24px -10px #0000007a;
 --m-disc-light:inset 0 1px 0 #ffffff12,inset 0 -18px 40px -24px #00000066;
 --m-groove:color-mix(in srgb,var(--bg) 90%,#000);
 --m-raise:0 10px 26px -14px #000000b0,inset 0 1px 0 #ffffff12;
 --m-field:color-mix(in srgb,var(--bg) 96%,#fff);
}
:root[data-theme=light]{
 --m-glow:color-mix(in srgb,var(--bg) 40%,#fff);
 --m-edge:color-mix(in srgb,var(--bg) 92%,#7a6656);
 --m-disc:color-mix(in srgb,var(--bg) 35%,#fff);
 --m-disc-shadow:0 30px 60px -20px #5a46354d,0 8px 20px -10px #5a463533;
 --m-disc-light:inset 0 1px 0 #ffffff,inset 0 -16px 36px -26px #5a463526;
 --m-groove:color-mix(in srgb,var(--bg) 88%,#5a4635);
 --m-raise:0 10px 24px -16px #5a463566,inset 0 1px 0 #ffffffcc;
 --m-field:color-mix(in srgb,var(--bg) 45%,#fff);
}
@media(prefers-color-scheme:light){:root:not([data-theme]){
 --m-glow:color-mix(in srgb,var(--bg) 40%,#fff);
 --m-edge:color-mix(in srgb,var(--bg) 92%,#7a6656);
 --m-disc:color-mix(in srgb,var(--bg) 35%,#fff);
 --m-disc-shadow:0 30px 60px -20px #5a46354d,0 8px 20px -10px #5a463533;
 --m-disc-light:inset 0 1px 0 #ffffff,inset 0 -16px 36px -26px #5a463526;
 --m-groove:color-mix(in srgb,var(--bg) 88%,#5a4635);
 --m-raise:0 10px 24px -16px #5a463566,inset 0 1px 0 #ffffffcc;
 --m-field:color-mix(in srgb,var(--bg) 45%,#fff);
}}

/* A soft pool of light behind the clock; a photo background keeps its own look. */
body:not([data-photo-background=true]){background:radial-gradient(120% 85% at 50% 30%,var(--m-glow) 0%,var(--bg) 50%,var(--m-edge) 100%) fixed}

/* Ring dial: a raised disc under a recessed groove. Ring r=226 of 600 plus half the 18 stroke. */
body[data-clock=ring] .dial-wrap::before{content:"";position:absolute;inset:10.83%;border-radius:50%;background:var(--m-disc);box-shadow:var(--m-disc-shadow),var(--m-disc-light);pointer-events:none;z-index:-1;transform:scale(var(--face-scale,1));transition:transform 200ms ease}
/* Classic and minimal dials: the same disc under the pie (r=226 of 600). Both discs shrink with the face
   when hour layers appear (focus.js sets --face-scale next to the dial-face transform). */
body[data-clock=classic] .dial-wrap::before,body[data-clock=minimal] .dial-wrap::before{content:"";position:absolute;inset:12.33%;border-radius:50%;background:var(--m-disc);box-shadow:var(--m-disc-shadow),var(--m-disc-light);pointer-events:none;z-index:-1;transform:scale(var(--face-scale,1));transition:transform 200ms ease}
body[data-photo-face=true] .dial-wrap::before{display:none}
body[data-clock=ring] #ring-track{stroke:var(--m-groove);stroke-width:18}
body[data-clock=ring] #ring-fill{stroke-width:18}
body[data-clock=ring] .seconds-track{--seconds-track-opacity:.1}

/* Seconds bead: a smooth tapered comet (focus.js builds it once) and a faint halo. No filters. */
.seconds-comet{fill:var(--seconds-tail,var(--accent));stroke:none}
.seconds-halo{fill:var(--seconds-tail,var(--accent));opacity:.22}

/* Numerals: lighter and calmer. */
.time-button{font-weight:300;letter-spacing:-.045em}

/* Controls read as one set: quiet raised surfaces instead of bare outlines. */
.timer-action{box-shadow:var(--m-raise)}
body[data-running=true] .timer-action{box-shadow:none}
html .tai-ask{background:var(--m-field);border-color:transparent;box-shadow:var(--m-raise)}
