/* Sunset glass. Large targets, a single primary action, readable supporting detail. */
:root{--bg:#121313;--panel:#202121;--muted:#b5b4ad;--accent:#ffd36c;--line:#ffffff19;--sunset:linear-gradient(112deg,#ffe58a 0%,#ffbd69 42%,#ff655b 100%);color-scheme:dark}
body{color:#f7f5ec;background:radial-gradient(ellipse at 3% 0%,#ffcf6b13,transparent 42%),radial-gradient(ellipse at 95% 35%,#ff655b0c,transparent 42%),#121313;background-attachment:fixed;font-size:15px;line-height:1.45}
button,a,input,summary{-webkit-tap-highlight-color:transparent}button{transition:transform .18s cubic-bezier(.2,.8,.2,1),background .18s,box-shadow .18s}button:active{transform:scale(.97)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffe08a;outline-offset:4px}button:disabled{opacity:.45;cursor:default}button svg{flex-shrink:0}
header{max-width:1016px;min-height:80px;padding:calc(env(safe-area-inset-top,0px) + 20px) max(24px,env(safe-area-inset-right,0px)) 18px max(24px,env(safe-area-inset-left,0px))}
.brand{font-size:24px;letter-spacing:-1.1px;color:#f7f5ec}.brand>svg{width:34px;height:31px;color:#ffd36c;margin-right:8px}
.profile-button,.share{min-height:44px;border-color:#ffffff20;background:#ffffff04;color:#e6e5dd;font-size:13px}.profile-button>span:first-child{background:#ffcf6b15;color:#ffe08a}.profile-button>span:last-child{max-width:85px}.header-actions{gap:8px}
main{width:min(100% - 32px,480px);margin:8px auto 32px}.intro{margin:5px 0 24px}.intro h1{font-size:36px;line-height:1.15;letter-spacing:-1.5px;font-weight:700;margin:0 0 12px}.intro h1 span{background:var(--sunset);background-clip:text;-webkit-background-clip:text;color:transparent}.intro p{font-size:14px;color:var(--muted);max-width:300px;margin:auto}.in-room .intro{display:none}
.room-launch{gap:10px;margin-bottom:16px}.room-launch button{min-height:56px;padding:0 18px;font-size:15px;font-weight:600;border-radius:16px;background:#ffffff06;border-color:#ffffff21;color:#f7f5ec}.room-launch button:first-child{background:#ffdc8110;border-color:#ffdc8138;color:#ffe3a2}.room-launch button span{font-size:22px}
.room-strip{padding:12px 18px;margin-bottom:14px;gap:12px;border:1px solid #ffcf6b30;border-radius:20px;background:linear-gradient(120deg,#ffe08a0c,#ff655b08);backdrop-filter:blur(20px)}
.room-code-block{gap:0}.room-code-block .room-label{font-size:10px;color:#c3c0b5;letter-spacing:1.3px;font-weight:500}.room-code-block strong{font-size:29px;letter-spacing:3px;color:#ffe1a0}.room-code-block>button{min-height:42px}.room-share-actions{gap:5px}.room-share-actions>button{min-height:44px;border-color:#ffffff22;background:#ffffff06;color:#f3eddc;font-size:12px;padding:8px 12px;border-radius:12px}.room-share-actions .connection{font-size:11px;color:#c5c8bc}.connection>span:first-child{width:6px;height:6px;background:#abda9e}
.timer-panel{position:relative;isolation:isolate;overflow:hidden;border:1px solid #ffffff20;border-radius:28px;padding:20px;background:linear-gradient(145deg,#ffffff09,#ffffff02),#1c1e1de0;box-shadow:0 20px 70px #0003,inset 0 1px #ffffff06;backdrop-filter:blur(24px)}
.timer-panel::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 50% 15%,#ffd36c09,transparent 60%);opacity:.7;transition:opacity .6s}
.panel-top{gap:12px;min-height:38px}.tag{font-size:11px;letter-spacing:1.3px;font-weight:600;color:#c8c8bb}.sound{min-height:38px;padding:6px 10px;border:1px solid #ffffff16;border-radius:30px;font-size:12px;color:#dedfd2;gap:7px;background:#ffffff03}.sound svg{width:16px;height:16px}.sound-needed{color:#ffe19a;border-color:#ffdb7d30;background:#ffdb7d08}
.dial{width:248px;max-width:100%;margin:4px auto 1px}.ring{overflow:visible}.ring circle{stroke-width:4}.ring-track{stroke:#ffffff0c}#progress{stroke:url(#sunset-ring);stroke-width:5;filter:drop-shadow(0 0 7px #ffaf4b18);transition:stroke-dashoffset .18s linear}
.dial-content{padding-bottom:0}.mascot{width:61px;height:52px;color:#ffcf6b;margin:0 0 1px}.mascot>svg{filter:drop-shadow(0 5px 9px #ffba5e15)}
#time{font:500 69px/1.1 Manrope,sans-serif;letter-spacing:-3.5px;font-variant-numeric:tabular-nums;color:#fff5d7;text-shadow:0 2px 20px #ffca5c0b}.timer-label{font-size:12px;letter-spacing:.2px;color:#c8c8bb;margin-top:10px}.timer-caption{font-size:13px;line-height:1.5;color:#c4c2b8;min-height:42px;margin:0 4px 12px;max-width:100%;text-wrap:pretty}
.timer-panel>.drink{height:68px;border-radius:18px;gap:14px;background:var(--sunset);color:#2b2118;font:800 25px Manrope,sans-serif;box-shadow:0 7px 24px #ff9c4c13,inset 0 1px #fff5;position:relative}.timer-panel>.drink:hover{background:var(--sunset);box-shadow:0 8px 28px #ff9c4c28}.timer-panel>.drink .plus{font-size:28px;font-weight:500}.timer-panel>.drink:active{transform:scale(.97);box-shadow:0 1px 8px #ff9c4c20}
.timer-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.timer-controls button{min-height:48px;height:auto;border:1px solid #ffffff20;background:#ffffff05;color:#e8e8dc;border-radius:13px;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:10px}.timer-controls .start{width:100%}.timer-controls .reset-control>span:first-child{font-size:21px;line-height:1}.timer-controls:has(.reset-control[hidden]){grid-template-columns:1fr}.timer-controls .start:disabled{opacity:.65;font-size:13px}.elapsed{display:flex;flex-direction:row;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:7px;margin:13px 0 0}.elapsed>span{font-size:12px;letter-spacing:0;color:#bdbeb2}.elapsed strong{font:600 13px Manrope,sans-serif;letter-spacing:.4px;color:#f0eedf;font-variant-numeric:tabular-nums}.elapsed small{font-size:11px;color:#93998e}.elapsed small::before{content:'· ';}
.sound-repair{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #ffffff12;margin-top:16px;padding-top:14px}.sound-repair>div{display:flex;flex-direction:column;gap:3px;min-width:0}.sound-repair strong{font-size:12px;font-weight:500;color:#d4d6c9}.sound-repair>div>span{font-size:11px;line-height:1.5;color:#a9afa2}.sound-repair button{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;background:#ffffff07;color:#e9e9dc;border:1px solid #ffffff23;border-radius:12px;font-size:12px;padding:8px 11px}.sound-repair svg{width:15px;height:15px}.sound-repair.needs-repair strong{color:#ffe0a1}.sound-repair.needs-repair button{background:#ffdf8012;border-color:#ffdf8045;color:#ffe4a7}.sound-repair.needs-repair{border-top-color:#ffdf8022}
.count-panel{padding:20px 18px 8px;border:1px solid #ffffff18;border-radius:23px;margin-top:14px;background:#ffffff03}.stat-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0}.stat{display:flex;flex-direction:column;gap:5px;text-align:center}.stat+.stat{border-left:1px solid #ffffff14}.stat strong{font:600 32px/1.1 Manrope,sans-serif;font-variant-numeric:tabular-nums;color:#f6f1dd;letter-spacing:-1px}.stat:first-child strong{color:#ffe19a}.stat>span{font-size:12px;color:#bfc4b7;white-space:nowrap}.stats-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:17px;border-top:1px solid #ffffff12;padding-top:4px}.stats-actions details{flex:1;min-width:0}.stats-actions summary{cursor:pointer;font-size:12px;color:#adb5a7;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}.stats-actions summary::after{content:'+';font-size:16px}.stats-actions details[open] summary::after{content:'−'}.stats-actions details p{font-size:12px;line-height:1.65;color:#c0c6b9;margin:0 0 12px}.undo{min-height:44px;flex-shrink:0;font-size:20px;color:#d4dccb;padding:7px 0 7px 8px}.undo span{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.flock-panel{background:#ffffff02;border-color:#ffffff18;border-radius:23px;margin-top:16px;padding:18px}.flock-heading h2{font-size:16px;font-weight:600}.flock-heading h2 span{font-size:12px;color:#b0b7a8}.flock-heading>button{font-size:12px;min-height:44px;color:#d4b5a6}.flock-panel li{min-height:56px;gap:10px}.avatar{width:34px;height:34px;font-size:13px;background:#ffdb7b11;color:#ffdfa0}.player-name{font-size:14px}.player-role{font-size:11px;color:#aeb6a5}.player-score{font-size:13px;color:#e1e4d3}.player-offline{opacity:.65}#hostNote{font-size:12px;color:#b1b9aa}.profile-strip{background:#ffffff03;border:1px solid #ffffff14;border-radius:16px;padding:14px 16px;margin-top:16px;color:#dedfce;font-size:13px;align-items:flex-start;flex-direction:column;gap:4px}.profile-strip>span:last-child{font-size:12px;color:#acb5a3;max-width:none;text-align:left}
.push-alerts{padding:20px 4px 0}.push-alerts button{font-size:13px;background:#ffffff06;border-color:#ffffff25;color:#e9e8d9;min-height:48px;border-radius:14px}.push-alerts p{font-size:12px;color:#b3baaa;margin:10px 0}.install-row{margin:24px 0 20px}.install-row button{font-size:13px;color:#dbdecd;border-color:#ffffff23}.install-row p{font-size:12px;line-height:1.6;color:#a9b29f}footer{margin:24px 0 14px}footer svg{color:#b4bd9c}footer p{font-size:12px;color:#d6ddc8}footer p span{color:#aeb8a0}.device-note{font-size:11px;line-height:1.7;color:#9fa994;max-width:360px;margin:14px auto 24px}
/* Shared controls keep the same legible, warm palette. */
dialog{background:#222520f5;color:#f4f4e8;border-color:#ffffff26;border-radius:25px;box-shadow:0 30px 100px #0008;backdrop-filter:blur(28px);padding:24px}dialog::backdrop{background:#090c09b3;backdrop-filter:blur(9px)}dialog p{color:#c5cbbc;font-size:14px}dialog label{font-size:13px;color:#d4d8c9}dialog input{background:#151813;border-color:#515849;color:#f4f5e6;border-radius:12px}dialog button{font-size:14px;border-color:#ffffff25;color:#e6e9d9}.primary-action,#confirmReset,.danger-action{background:var(--sunset);color:#292318;font-size:15px}.fine-print{font-size:12px!important;color:#b3bca7!important}.form-error{font-size:13px!important;color:#ffb4a2!important}.close-dialog{min-height:44px;width:44px;flex-basis:44px!important;color:#d5ddc7}.text-action{font-size:13px;min-height:44px}.joining-as,.qr-instruction{font-size:13px;color:#cbd2bf}.guest-name-details summary{font-size:12px;min-height:44px;display:flex;align-items:center}.join-divider{font-size:12px;color:#aeb9a1}.scan-qr{font-size:15px;background:#ffdc7a0c;border-color:#ffdc7a44;color:#ffe5aa}.qr-image-label{font-size:12px;line-height:44px;min-height:44px;color:#c3ccba}.invite-code{color:#ffdc83;font-size:36px}.qr-instruction strong{color:#eef1df}.auth-tabs{background:#151813}.auth-tabs button{color:#b5c0a8;font-size:14px}.auth-tabs button[aria-pressed=true]{background:#3b4333;color:#f5edc9}.profile-avatar{background:#ffdc7b15;color:#ffdf8c;border-color:#ffdc7b30}.lifetime-stats{background:#171c15;border-color:#ffffff20}.lifetime-stats strong{color:#ffdd87}.lifetime-stats span,.profile-since,.history-number{color:#c2cdb5}.profile-settings summary,.history-session strong{font-size:14px}.history-session span,.history-heading>span{font-size:12px;color:#aebca0}.profile-identity p{font-size:13px;color:#c0cbb4}.profile-settings .secondary-action{min-height:48px}.sync-note{font-size:12px!important}.password-hint{font-size:12px!important;color:#bac4af!important}
#toast{background:#f8eac4;color:#252719;border:1px solid #fff8;box-shadow:0 12px 50px #0006;max-width:calc(100% - 32px);font-size:14px;line-height:1.5;padding:14px 18px}#friendToast{background:#283023f2;border-color:#ffe4a647}#friendToastTitle{font-size:14px;color:#f3f4df}#friendToastCopy{font-size:12px;color:#c0cfb4}
.almost-quack #progress{filter:drop-shadow(0 0 9px #ffce6b55)}.quacking .timer-panel::before{opacity:1;background:radial-gradient(ellipse at 50% 25%,#ffd36c18,transparent 65%)}.quacking #time{color:#ffe094}.quacking .timer-caption{color:#ffe2a6}.mascot.happy .duck-character{animation:club-hop .7s cubic-bezier(.2,.8,.25,1) 1}.mascot.quack .duck-character{animation:club-hop .7s cubic-bezier(.2,.8,.25,1) 2}@keyframes club-hop{0%,100%{transform:translateY(0) rotate(0)}30%{transform:translateY(-7px) rotate(-8deg)}65%{transform:translateY(-2px) rotate(5deg)}}
@media(min-width:900px){header{padding-top:28px;padding-bottom:24px}.intro h1{font-size:42px}.intro{margin-bottom:28px}main{margin-top:10px}.timer-panel{padding:24px}.dial{width:270px}#time{font-size:76px}.timer-caption{font-size:14px}.sound-repair strong{font-size:13px}.sound-repair>div>span{font-size:12px}.sound-repair button{font-size:13px}}
@media(max-width:500px){header{padding-top:calc(env(safe-area-inset-top,0px) + 14px);padding-bottom:16px;min-height:0;padding-left:max(18px,env(safe-area-inset-left,0px));padding-right:max(18px,env(safe-area-inset-right,0px))}.brand{font-size:22px}.brand>svg{width:30px;margin-right:6px}.profile-button{font-size:12px;padding:7px 10px}.header-actions .share{min-width:44px;justify-content:center}.profile-button>span:last-child{max-width:65px}main{margin-top:2px}.intro{margin:5px 0 20px}.intro h1{font-size:32px}.intro p{font-size:13px}.timer-panel{padding:16px;border-radius:25px}.dial{width:218px;margin-top:2px}.mascot{width:53px;height:46px}#time{font-size:62px}.timer-label{font-size:12px}.timer-caption{min-height:38px;margin-bottom:10px;font-size:12px}.timer-panel>.drink{height:64px;font-size:25px}.room-code-block strong{font-size:27px;letter-spacing:2.5px}.room-strip{padding:10px 15px}.room-code-block .room-label{font-size:10px}.room-share-actions .connection{font-size:11px}.room-share-actions>button{font-size:12px}.count-panel{padding:18px 12px 6px}.stat strong{font-size:30px}.stat>span{font-size:11px}.sound-repair{gap:8px;margin-top:13px;padding-top:12px}.sound-repair button{padding:8px 10px}.sound-repair strong{font-size:12px}.sound-repair>div>span{font-size:11px}.profile-strip{font-size:13px}.profile-strip>span:last-child{font-size:12px;max-width:none;text-align:left}}
@media(max-width:359px){main{width:calc(100% - 24px)}header{padding-left:14px;padding-right:14px}.brand{font-size:20px}.brand>svg{width:25px}.profile-button{padding:7px}.profile-button>span:first-child{display:none}.room-code-block strong{font-size:23px}.room-share-actions>button{font-size:11px;padding:8px}.timer-panel{padding:14px}.stat>span{font-size:10px}.sound-repair button svg{display:none}.sound-repair button{font-size:12px}.sound-repair>div>span{font-size:10px}.sound-repair strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.timer-controls:has(.start[hidden]){display:none}.host-timer-note{text-align:center;font-size:12px;color:#aeb7a4;margin:13px 0 0}.host-timer-note:not([hidden])+.elapsed{margin-top:5px}

.drink.just-logged{animation:logged-confirm .4s cubic-bezier(.2,.8,.2,1)}@keyframes logged-confirm{0%{transform:scale(.97)}55%{transform:scale(1.015)}100%{transform:scale(1)}}
@media(min-width:360px) and (max-width:500px){.stat>span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.drink.just-logged{animation:none}}

/* Sunny's expression follows your own log for the current timer minute. */
.mascot{transition:color .5s ease,filter .5s ease}.mascot[data-mood=content]{color:#a8e797}.mascot[data-mood=grumpy]{color:#ff7568}.mascot[data-mood=waiting]{color:#b5b4ad}.duck-eye-smile,.duck-brow{display:none}.mascot[data-mood=content] .duck-eye-dot{display:none}.mascot[data-mood=content] .duck-eye-smile,.mascot[data-mood=grumpy] .duck-brow{display:block}.duck-paused .mascot[data-mood] .duck-eyes{transform:none;animation:none}.duck-mood{font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.1px;margin-top:7px;color:#ffab9f;transition:color .4s}.duck-mood::before{content:'●';font-size:7px;vertical-align:2px;margin-right:6px}.duck-mood[data-mood=content]{color:#b7e6a8}.duck-mood[data-mood=waiting]{color:#b5b4ad}.dial-content .timer-label{margin-top:6px}.mascot[data-mood=grumpy] .duck-wing{transform:rotate(-7deg);transform-origin:34px 43px}.duck-wing{transition:transform .5s}
@media(prefers-reduced-motion:reduce){.mascot,.duck-mood,.duck-wing{transition:none}}
