/* Chrono Dial — premium board-game clock; all visual changes scoped to #timer. */
#timer .sand-experience{max-width:770px;margin:0 auto}
#timer .sand-intro{text-align:center;margin:0 0 14px}
#timer .sand-intro h1{font-size:clamp(35px,7vw,55px);line-height:1.12;letter-spacing:-.045em;margin:7px 0 5px}
#timer .sand-intro h1 span{font-size:.6em;color:#f0cb90;text-shadow:0 0 20px #e9c27f77}
#timer .sand-intro>p{color:var(--mute);line-height:1.5;font-size:13px}
#timer .sand-shell{display:flex;flex-direction:column;gap:13px}
#timer .sand-panel{padding:clamp(12px,2.8vw,24px);border-radius:23px;position:relative;overflow:hidden;border:1px solid #c69b6170;background:radial-gradient(ellipse at 50% 42%,#253434 0%,#11232d 65%,#0b1823 100%);box-shadow:inset 0 1px #f6ddb120,0 18px 44px #0005;color:#fdf0d5}
#timer .sand-panelhead{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#e9d0a2;font-size:12px}
#timer .sand-panelhead>span{padding:7px 0}
#timer .sand-panelhead button{min-height:43px;border-radius:999px;padding:9px 13px;font-size:12px;border:1px solid #ebd5a54b;background:#fff7e010;color:#fff0c8}
#timer .sand-panelhead button[aria-pressed=false]{color:#a8bcc0;border-color:#ffffff35}
#timer .sand-stage{--chrono-tone:#f3d49a;--chrono-digit:#fff0cd;--chrono-glow:#e7ae6455;position:relative;isolation:isolate;width:min(100%,445px);aspect-ratio:1;margin:1px auto 9px;display:grid;place-items:center;color:var(--chrono-tone);touch-action:pan-y}
#timer .chrono-ambience{position:absolute;inset:-12%;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#e6ac5d28,transparent 65%);opacity:.8;transition:background .8s}
#timer .chrono-clock{position:relative;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 8px 20px #02090c88)}
#timer #chronoProgressRing,#timer #chronoGlowRing{stroke-dasharray:961.327;stroke-dashoffset:0}
#timer #chronoPointer{filter:drop-shadow(0 0 5px currentColor)}
#timer .chrono-sparks{fill:var(--chrono-tone);opacity:.58;transform-origin:210px 210px;animation:chronoStars 4s ease-in-out infinite alternate}
#timer .chrono-center{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);width:64%;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:7px;pointer-events:none}
#timer .chrono-brand{font-size:clamp(7px,1.55vw,11px);color:#deba7e;font-weight:750;letter-spacing:.21em}
#timer .chrono-digits{font:normal clamp(47px,12vw,87px)/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.055em;font-variant-numeric:tabular-nums;color:var(--chrono-digit);white-space:nowrap;text-shadow:0 2px 19px var(--chrono-glow),0 1px 1px #0008;transition:color .7s,text-shadow .7s}
#timer .chrono-phrase{font:normal clamp(15px,3.3vw,24px)/1.2 Georgia,serif;color:var(--chrono-tone);max-width:100%;text-wrap:balance;transition:color .6s}
#timer .chrono-center-rule{width:37%;height:1px;background:linear-gradient(90deg,transparent,#ddbb866b,transparent)}
#timer .chrono-subtext{font-size:clamp(9px,1.9vw,12px);line-height:1.3;color:#c6c3b6;max-width:95%;text-wrap:balance}
#timer .chrono-finale{pointer-events:none;position:absolute;inset:8%;border:2px solid transparent;border-radius:50%;z-index:3}
#timer .sand-stage[data-urgency=amber]{--chrono-tone:#ffce78;--chrono-digit:#ffe2a6;--chrono-glow:#ffa34b66}
#timer .sand-stage[data-urgency=orange]{--chrono-tone:#ff944d;--chrono-digit:#ffbc80;--chrono-glow:#ff8a3c90}
#timer .sand-stage[data-urgency=danger]{--chrono-tone:#ff5a4a;--chrono-digit:#ff6658;--chrono-glow:#ff392d90}
#timer .sand-stage[data-urgency=critical]{--chrono-tone:#ff463e;--chrono-digit:#ffe0c6;--chrono-glow:#ff2922c1}
#timer .sand-stage[data-urgency=done]{--chrono-tone:#ff6d53;--chrono-digit:#fff6ed;--chrono-glow:#ff453bd6}
#timer .sand-stage[data-urgency=orange] .chrono-ambience,#timer .sand-stage[data-urgency=danger] .chrono-ambience,#timer .sand-stage[data-urgency=critical] .chrono-ambience{background:radial-gradient(circle,#f15b312f,transparent 64%)}
#timer .sand-stage[data-state=running][data-urgency=critical] .chrono-digits{animation:chronoBreath 1s ease-in-out infinite}
#timer .sand-stage[data-urgency=done] .chrono-finale{animation:chronoFinish 1.35s ease-out both;border-color:#fff3d0bd}
#timer .sand-stage[data-state=paused] .chrono-sparks{animation-play-state:paused}
#timer .sand-stage[data-state=done] .chrono-sparks{animation-duration:.8s}
#timer .sand-stage[data-state=done] #chronoProgressRing{stroke-opacity:.65}
#timer .sand-progress{height:4px;background:#f5e6c01d;border-radius:99px;overflow:hidden;margin:0 5px 16px}
#timer .sand-progress span{height:100%;display:block;width:100%;border-radius:inherit;background:linear-gradient(90deg,#bd8354,#ffe6ab);box-shadow:0 0 8px #ffd69a7d}
#timer .sand-duration{padding:12px 13px;border:1px solid #fff1ce25;border-radius:15px;background:#ffffff0b}
#timer .sand-duration-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#bfced0;font-size:11px}
#timer .sand-duration-heading b{letter-spacing:.12em;color:#edcc95}
#timer .sand-adjust{display:grid;grid-template-columns:1fr 1fr 1.3fr 1fr 1fr;gap:5px;align-items:center;margin-top:10px}
#timer .sand-adjust button{min-height:49px;border-radius:10px;background:#f8eedc13;border:1px solid #eac99455;color:#f9e5c2;font-size:clamp(11px,2.15vw,14px);font-weight:700;padding:5px 2px}
#timer .sand-adjust button:disabled{opacity:.35;cursor:not-allowed}
#timer .sand-adjust button:active{transform:scale(.965)}
#timer .sand-adjust strong{text-align:center;font:normal clamp(19px,4vw,27px) Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff0ca}
#timer .sand-actions{display:grid;grid-template-columns:2fr 1fr;gap:9px;margin-top:11px}
#timer .sand-actions button{min-height:60px;border-radius:13px;border:1px solid transparent;font-size:16px;font-weight:750;transition:filter .15s,transform .15s}
#timer .sand-actions button:active{transform:scale(.98)}
#timer #sandPrimary{background:linear-gradient(125deg,#ffe7b0,#dba866);color:#2e2315;border-color:#ffe0a7;box-shadow:0 6px 18px #d6ab6a37}
#timer #sandPrimary:hover{filter:brightness(1.045)}
#timer #sandReset{background:#f4e9d70d;border-color:#f0d5a259;color:#f6e4c8}
#timer .sand-extras{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
#timer .sand-extras h2{font-size:30px;line-height:1.2;margin:6px 0}
#timer .sand-extras>p{line-height:1.6;color:var(--mute);font-size:12px}
#timer .sand-moods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 10px}
#timer .sand-moods button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:74px;padding:9px 5px;background:var(--panel2);border:1px solid var(--line);border-radius:11px;color:var(--ink);font-size:13px;font-weight:700;text-align:center}
#timer .sand-moods button small{font-size:10px;font-weight:450;color:var(--mute)}
#timer .sand-moods button[aria-pressed=true]{border-color:#d6aa6a;background:linear-gradient(140deg,#d8a75a32,transparent),var(--panel2);box-shadow:0 0 0 1px #dfb57640}
#timer .sand-hint{font-size:11px!important}
#timer .sand-usage{margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
#timer .sand-usage b{color:var(--gold);font-size:12px}
#timer .sand-usage p{font-size:12px;color:var(--mute);line-height:1.55;margin-top:4px}
#timer .sand-disclaimer{padding:4px 7px;color:var(--dim);font-size:11px;line-height:1.6;text-align:center}
.chrono-preview{background:radial-gradient(circle at 50% 50%,#18252e 0%,#101c27 75%)!important;position:relative}
.chrono-preview:before{content:"";width:106px;height:106px;position:absolute;border:6px solid #d9b77b;border-radius:50%;box-shadow:0 0 0 5px #d9a55a22,inset 0 0 18px #cf8b513f}
.chrono-preview span{position:relative;color:#ffe4a3;font:normal 27px Georgia,serif;text-shadow:0 0 10px #ffc56870}
.chrono-preview i{position:absolute;right:19%;top:17%;font-size:24px;color:#e8b976;font-style:normal}
@keyframes chronoStars{to{opacity:.22;transform:rotate(2deg)}}
@keyframes chronoBreath{50%{transform:scale(1.055);filter:brightness(1.2)}}
@keyframes chronoFinish{0%{opacity:1;transform:scale(.82);box-shadow:0 0 7px #fff4d4}100%{opacity:0;transform:scale(1.18);box-shadow:0 0 45px #ff5748}}

/* Final-ten countdown ceremony: one synced pulse per second, not a strobe. */
#timer .chrono-center{z-index:4}
#timer .sand-panel:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 82% 72% at 50% 48%,#ff473b48,#b8141e20 63%,transparent 98%);opacity:0;pointer-events:none;z-index:5;border-radius:inherit}
#timer .chrono-stage.chrono-hit .chrono-clock{animation:chronoDialBeat .48s cubic-bezier(.12,.72,.22,1) both}
#timer .chrono-stage.chrono-hit .chrono-digits{animation:chronoDigitBeat .50s ease-out both}
#timer .chrono-stage.chrono-hit #chronoGlowRing{animation:chronoRingBeat .55s ease-out both}
#timer .sand-panel.chrono-panel-hit:after{animation:chronoPanelFlash .68s ease-out both}
#timer .sand-panel.chrono-complete:after{animation:chronoPanelFinish 1.75s ease-out both}
#timer .sand-stage[data-urgency=critical] .chrono-digits{font-weight:600;text-shadow:0 0 16px #fff1c3b5,0 0 31px #ff322fb0}
#timer .sand-stage[data-urgency=done] .chrono-phrase{color:#fff5d7}
#timer .sand-stage[data-urgency=done] .chrono-digits{font-weight:600}
#timer .sand-stage[data-state=paused] .chrono-digits,
#timer .sand-stage[data-state=paused] .chrono-clock{animation-play-state:paused}
@keyframes chronoDialBeat{0%{filter:brightness(1)}28%{filter:brightness(1.6) drop-shadow(0 0 15px currentColor)}100%{filter:brightness(1)}}
@keyframes chronoDigitBeat{0%{transform:scale(1);filter:brightness(1)}27%{transform:scale(1.085);filter:brightness(1.65)}100%{transform:scale(1);filter:brightness(1)}}
@keyframes chronoRingBeat{0%{stroke-opacity:.23}32%{stroke-opacity:.85}100%{stroke-opacity:.3}}
@keyframes chronoPanelFlash{0%{opacity:0}22%{opacity:.38}100%{opacity:0}}
@keyframes chronoPanelFinish{0%{opacity:.02}18%{opacity:.66}42%{opacity:.18}69%{opacity:.39}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){
 #timer .chrono-stage.chrono-hit .chrono-clock,
 #timer .chrono-stage.chrono-hit .chrono-digits,
 #timer .chrono-stage.chrono-hit #chronoGlowRing,
 #timer .sand-panel.chrono-panel-hit:after,
 #timer .sand-panel.chrono-complete:after{animation:none!important}
}
@media(max-width:640px){
 #timer .sand-intro{margin-bottom:10px}
 #timer .sand-intro h1{font-size:clamp(35px,8vw,48px)}
 #timer .sand-intro>p{font-size:12px}
 #timer .sand-panel{padding:12px 10px 14px;border-radius:19px}
 #timer .sand-stage{width:min(100%,410px)}
 #timer .chrono-center{gap:5px}
 #timer .chrono-brand{letter-spacing:.15em}
 #timer .chrono-digits{font-size:clamp(49px,13vw,70px)}
 #timer .chrono-subtext{font-size:10px}
 #timer .sand-moods{grid-template-columns:repeat(2,minmax(0,1fr))}
 #timer .sand-extras{padding:14px}
}
@media(max-width:365px){#timer .sand-adjust{grid-template-columns:repeat(5,minmax(0,1fr))}#timer .sand-adjust strong{font-size:20px}#timer .chrono-digits{font-size:47px}}
@media(prefers-reduced-motion:reduce){
 #timer .chrono-sparks,#timer .chrono-digits,#timer .chrono-finale{animation:none!important}
 #timer .chrono-digits,#timer .chrono-phrase,#timer .sand-actions button{transition:none!important}
}
/* Retain the compact five-tab mobile navigation established by the previous release. */
@media(max-width:920px){.mobile-nav a{flex:1 1 0;min-width:0;white-space:nowrap}.mobile-nav{gap:0;padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}}
@media(max-width:370px){.mobile-nav a{font-size:9px;padding-inline:0}.mobile-nav b{font-size:19px}}
