/* Small controls, open landscape. */
.intro,body.water .intro{top:98px;left:32px;max-width:none;display:flex;gap:14px;align-items:center;padding:8px 12px;background:#12232a85;border:1px solid #ffffff20;border-radius:8px;backdrop-filter:blur(9px)}
.intro h1{font:400 16px 'Noto Sans KR',sans-serif;letter-spacing:0;margin:0;line-height:1.5}.intro-copy,.intro .eyebrow,.sound-hint,.place-caption,.places>.eyebrow{display:none!important}.sound-start{margin:0;min-height:36px;padding:6px 10px;font-size:13px;background:transparent}.places{top:98px;right:32px;left:auto;bottom:auto;width:auto}.places #place-options{display:flex;flex-direction:row;gap:4px;padding:4px;border:1px solid #ffffff20;border-radius:8px;background:#12232a85;backdrop-filter:blur(9px)}.place-button{width:auto;min-height:40px;padding:9px 12px;font-size:14px;background:transparent;border:1px solid transparent;border-radius:5px;gap:7px}.place-button svg{width:18px}.place-button[aria-pressed=true]{background:#e8dfc9;color:#1b3034;border-color:#e8dfc9}.place-button[aria-pressed=true]:after{display:none}.welcome-line{font-size:13px;color:#eee;white-space:nowrap;text-shadow:0 1px 6px #000}.brand span{letter-spacing:0;font-size:25px}.bottom-ui{bottom:50px}.packet{pointer-events:none}.packet small,.packet-brand,#packet-step{display:none}footer{justify-content:flex-end}#water-hint{display:none}.brand{gap:8px}
@media(max-width:1000px){.welcome-line{display:none}.intro{left:20px}.places{right:20px}.place-button{padding:9px}}
@media(max-width:650px){.topbar{padding:15px 12px}.brand span{font-size:20px}.brand>svg{display:none}.mode-switch button{font-size:14px;padding:8px 10px}.intro,body.water .intro{left:12px;top:75px;padding:4px 8px;gap:9px}.intro h1{font-size:14px}.sound-start{font-size:12px;min-height:32px;padding:4px 6px}.places{top:128px;left:12px;right:12px;bottom:auto;width:auto}.places #place-options{justify-content:space-between}.place-button{flex:1;font-size:13px;padding:8px 5px;gap:5px}.place-button svg{width:16px}.bottom-ui{bottom:36px}#ritual-panel{top:75px;padding:14px;width:calc(100vw - 24px)}#ritual-panel h2{font-size:17px}#ritual-description{font-size:13px;margin-bottom:10px}.ritual-active .bottom-ui{bottom:28px}.roast-scale{margin-top:10px}#roast-label{margin:8px 0}.packet{top:46%}}
/* A compact sequential meter at the lower right, clear of the action dock. */
#throw-settings{position:fixed;right:24px;bottom:168px;width:280px;max-width:calc(100vw - 24px);z-index:6;margin:0;border:1px solid #d5e6e733;border-radius:12px;background:#10222deb;backdrop-filter:blur(14px);padding:0 12px;color:#edf1e7}
#throw-settings summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:8px;font-size:14px;list-style:none}
#throw-settings summary::-webkit-details-marker{display:none}
#throw-settings summary:after{content:'+';margin-left:auto;font-size:20px}
#throw-settings[open] summary:after{content:'−'}
#throw-settings summary span{font-size:12px;color:#bccbd0}
.timing-legend{display:flex;align-items:center;gap:10px;font-size:12px;color:#b7c9c9;padding:0 0 9px;flex-wrap:nowrap}
.timing-legend span{display:inline-flex;align-items:center;gap:5px}.timing-legend span:last-child{margin-left:auto;color:#e7dbac}
.timing-legend i{width:12px;height:8px;background:#719e8c;border-radius:2px}.timing-legend .perfect-key{background:#f4cd73;width:4px}
.timing-grid{display:block;padding:0 0 10px}
.timing-gauge{border:1px solid #b9d6d51c;border-radius:8px;padding:9px 10px 7px;background:#d5eeee06;transition:border-color .15s,background .15s}
.timing-gauge.active{cursor:pointer;background:#d1e4dc10;border-color:#cfe2d1b3;box-shadow:0 0 0 1px #cfe2d111}
.timing-label{display:flex;align-items:center;justify-content:space-between;font-size:14px;gap:4px}.timing-label output{font-size:12px;color:#92aaa9;font-variant-numeric:tabular-nums}.active .timing-label output{color:#e9ecda}
.timing-track{position:relative;height:14px;margin:17px 0 10px;background:linear-gradient(#07151e,#243b44);border-radius:4px;box-shadow:inset 0 1px 3px #0005;isolation:isolate}
.timing-track:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#c1dad013 calc(10% - 1px) 10%);border-radius:4px}
.timing-band{position:absolute;left:var(--target);transform:translateX(-50%);height:100%;pointer-events:none}
.good-band{width:var(--good-width);background:#729e86b3;border-top:1px solid #b5d2b0;border-bottom:1px solid #b5d2b0}
.perfect-band{width:var(--perfect-width);background:#f2cd79;box-shadow:0 0 10px #f2cd7944}
.timing-pointer{position:absolute;left:var(--position);top:-7px;width:3px;height:28px;transform:translateX(-50%);background:#f9faf0;border-radius:2px;box-shadow:0 0 0 2px #14242d,0 0 7px #ecf9e97a;z-index:2;opacity:.3}
.timing-pointer:before{content:'';position:absolute;top:-3px;left:-3px;width:9px;height:5px;background:#f9faf0;border-radius:2px}
.active .timing-pointer,.locked .timing-pointer{opacity:1}
.timing-verdict{font-size:12px;min-height:18px;color:#8da7a7;text-align:center}.active .timing-verdict{color:#eef1da}.locked .timing-verdict{color:#b5d8b4}.perfect .timing-verdict{color:#f2cd79}.missed .timing-verdict{color:#d6ad96}
.throw-bottom{display:flex;align-items:center;gap:8px;padding-bottom:8px}
#throw-result{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.throw-bottom button{padding:9px 17px;min-height:44px;border-radius:6px;background:#e8dfc9;color:#1c3037;font-size:14px;touch-action:manipulation}
#timing-action{flex:1;min-width:0;font-weight:500}#timing-action.stop-action{background:#f2cd79}#timing-action:disabled{opacity:.5}
#timing-reset{background:#ffffff0a;color:#c3d3d1;border:1px solid #ffffff1c}
.throw-help{font-size:12px;color:#aebfc0;margin:0 0 9px;text-align:right}.focused #throw-settings{visibility:hidden}
#stone-throw-panel{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#10222ddf;backdrop-filter:blur(12px);border:1px solid #d5e6e72b;border-radius:8px;margin-bottom:12px;font-size:13px;color:#d9e4df}
#stone-throw-panel[hidden]{display:none}#stone-drag-label{flex:1}.stone-power-track{width:130px;height:7px;background:#ffffff1c;border-radius:4px;overflow:hidden}.stone-power-track i{display:block;width:0%;height:100%;background:linear-gradient(90deg,#7fa89d,#e7df9d);border-radius:4px}#stone-power-value{width:34px;text-align:right;font-variant-numeric:tabular-nums;color:#eee4bc}.dragging .stone-power-track{box-shadow:0 0 8px #b9dab52b}
#throw-settings[data-phase="flight"] .timing-legend,#throw-settings[data-phase="finished"] .timing-legend{display:none}
@media(max-width:650px){
 #throw-settings{right:12px;width:264px;padding:0 12px;margin:0;max-height:calc(100dvh - 200px);overflow:auto}
 .timing-grid{display:block}.timing-legend{gap:8px}.timing-legend span:last-child{margin-left:auto}
 #throw-settings summary span{font-size:12px}.throw-help{display:none}
 #stone-throw-panel{flex-wrap:wrap;gap:7px;padding:10px 12px}#stone-drag-label{flex-basis:100%;font-size:13px}.stone-power-track{flex:1}
}

/* Compact controls and a small, optional Pomodoro panel. */
.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}
.intro,body.water .intro{gap:9px;padding:4px 8px 4px 12px}
#start-sound{padding:0;margin:0;width:36px;min-width:36px;height:36px;min-height:36px;border:0;background:transparent}
.places{z-index:7;width:auto;left:auto;right:32px}
#place-toggle{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;background:#12232acd;border:1px solid #ffffff26;backdrop-filter:blur(14px);border-radius:8px;font-size:14px}
#place-toggle>svg{width:18px;height:18px}#place-toggle .chevron{width:14px;height:14px;transition:transform .2s}#place-toggle[aria-expanded=true] .chevron{transform:rotate(180deg)}
.places #place-options{position:absolute;top:calc(100% + 7px);right:0;display:flex;flex-direction:column;min-width:170px;gap:3px;padding:5px;background:#10232cf5;box-shadow:0 12px 32px #0003}
.places .place-button{width:100%;flex:none;justify-content:flex-start;padding:10px 12px;min-height:44px;font-size:14px}
.top-actions{gap:12px}.welcome-line{margin-right:4px}#timer-toggle.active{background:#e8dfc922;color:#f0dfb9}
#timer-status{position:fixed;top:100px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 14px;border:1px solid #ffffff2b;border-radius:25px;background:#12232abd;backdrop-filter:blur(14px);font-size:14px;z-index:7}
#timer-status b{font-variant-numeric:tabular-nums;font-weight:400;letter-spacing:1px}
#pomodoro-panel{position:fixed;top:86px;right:32px;width:304px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 110px);overflow:auto;z-index:15;padding:20px;background:#10232df5;color:#eef0e5;border:1px solid #ffffff2c;border-radius:14px;box-shadow:0 16px 50px #0004;backdrop-filter:blur(20px)}
.timer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.timer-heading h2{margin:0;font-size:18px;font-weight:500}.timer-heading .icon-button{font-size:24px;margin:-8px -8px -8px 0}
.timer-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.timer-fields label{font-size:14px;color:#c4d3d3}.timer-input{display:flex;align-items:center;gap:5px;margin-top:8px;border:1px solid #ffffff30;background:#ffffff06;padding:10px;border-radius:7px}.timer-input input{width:100%;min-width:0;background:transparent;border:0;color:#fff;font:400 20px 'Noto Sans KR',sans-serif;outline-offset:4px}.timer-input input:disabled{color:#a4b6ba}.timer-input span{font-size:14px}
.timer-readout{text-align:center;padding:20px 0}.timer-readout>span{display:block;font-size:14px;color:#b5c9c9}.timer-readout output{display:block;font-size:42px;line-height:1.4;font-weight:300;letter-spacing:2px;font-variant-numeric:tabular-nums}
.timer-buttons{display:flex;gap:8px}.timer-buttons button{min-height:44px;border-radius:7px;font-size:15px;padding:10px 16px}#timer-primary{flex:1;background:#e8dfc9;color:#21353b}#timer-stop{background:#ffffff12;color:#d3ddda}
#timer-preview{display:block;margin:14px auto 0;background:transparent;text-decoration:underline;text-underline-offset:4px;color:#c9dad7;font-size:14px;min-height:32px}.timer-note{margin:12px 0 0;font-size:12px;color:#a9bbbe;text-align:center;line-height:1.6}.timer-note+.timer-note{margin-top:3px}
.pomodoro-active #actions,.pomodoro-active .dock-divider,.pomodoro-active .status-row,.pomodoro-active #fuel-track,.pomodoro-active #stone-throw-panel,.pomodoro-active #throw-settings{display:none!important}
.pomodoro-active .bottom-ui{width:auto}.pomodoro-active .control-dock{padding:8px 14px}.pomodoro-active .audio-controls{margin:0}.pomodoro-active #world{cursor:default}
.focused #timer-status,.focused #pomodoro-panel{display:none!important}
@media(max-width:1000px){.welcome-line{display:none}}
@media(max-width:650px){
 .places{left:auto;right:12px;top:75px;bottom:auto}.places #place-options{min-width:155px}.intro,body.water .intro{max-width:calc(100vw - 172px);top:75px}
 .topbar{padding:14px 12px}.brand span{font-size:18px}.mode-switch{position:static;transform:none;margin-left:auto;margin-right:6px}.mode-switch button{padding:7px 9px;font-size:13px;gap:5px}.mode-switch svg{width:16px}.top-actions{gap:0}.top-actions .icon-button{width:36px;min-width:36px;min-height:38px}.brand>svg{display:none}
 #timer-status{top:130px;min-height:36px;font-size:13px;padding:6px 12px}#pomodoro-panel{right:12px;top:120px;max-height:calc(100dvh - 136px);padding:18px}
 #place-toggle{gap:6px;padding:8px 10px;min-height:42px;font-size:13px}.places .place-button{font-size:14px}
}

/* Banner rails stay outside the controls; fullscreen restores the whole viewport. */
body{--ad-top:0px;--ad-bottom:0px;--edge-left:max(12px,env(safe-area-inset-left,0px));--edge-right:max(12px,env(safe-area-inset-right,0px))}
body.has-ads{--ad-top:calc(110px + env(safe-area-inset-top,0px));--ad-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.ad-strip{position:fixed;left:0;right:0;bottom:0;height:var(--ad-bottom);z-index:11;display:flex;align-items:center;justify-content:center;gap:12px;padding:9px 16px calc(9px + env(safe-area-inset-bottom,0px));background:#0c161c;border-top:1px solid #ffffff20}
.ad-strip-top{top:0;bottom:auto;height:var(--ad-top);padding:calc(9px + env(safe-area-inset-top,0px)) 16px 9px;border-top:0;border-bottom:1px solid #ffffff20}
.ad-label{flex:none;color:#a7b4b9;font-size:11px;line-height:1;letter-spacing:.08em}.ad-slot{width:min(728px,calc(100% - 40px));height:90px;flex:none;overflow:hidden;border:1px dashed #62767d70;border-radius:5px;background:#ffffff02}.ad-slot[data-ad-state="filled"]{border-color:transparent;background:transparent}
.has-ads .topbar{top:var(--ad-top)}
.has-ads .intro,.has-ads.water .intro,.has-ads .places{top:calc(var(--ad-top) + 98px)}
.has-ads #timer-status{top:calc(var(--ad-top) + 100px)}
.has-ads #pomodoro-panel{top:calc(var(--ad-top) + 86px);max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 106px)}
.has-ads #ritual-panel{top:calc(var(--ad-top) + 110px);max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 130px);overflow:auto}
.has-ads .bottom-ui,.has-ads.ritual-active .bottom-ui{bottom:calc(var(--ad-bottom) + 50px)}
.has-ads footer{bottom:calc(var(--ad-bottom) + 16px)}.has-ads #toast{bottom:calc(var(--ad-bottom) + 190px)}
.has-ads #exit-focus{bottom:calc(var(--ad-bottom) + 20px)}
body.has-ads.focused,:root:fullscreen body.has-ads{--ad-top:0px;--ad-bottom:0px}
.focused .ad-strip,:fullscreen .ad-strip{display:none!important}
.focused #exit-focus{bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:16}
.focused #toast{display:none}
@media(max-width:750px){
 body.has-ads{--ad-top:calc(66px + env(safe-area-inset-top,0px));--ad-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
 .ad-strip{padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));gap:8px}.ad-strip-top{padding:calc(7px + env(safe-area-inset-top,0px)) 10px 7px}.ad-slot{width:min(320px,calc(100% - 34px));height:50px}
 .has-ads .intro,.has-ads.water .intro,.has-ads .places{top:calc(var(--ad-top) + 75px)}
 .has-ads #timer-status{top:calc(var(--ad-top) + 130px)}
 .has-ads #pomodoro-panel{top:calc(var(--ad-top) + 120px);max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 136px)}
 .has-ads #ritual-panel{top:calc(var(--ad-top) + 75px);max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 95px)}
 .has-ads .bottom-ui,.has-ads.ritual-active .bottom-ui{bottom:calc(var(--ad-bottom) + 36px)}
 .has-ads footer{bottom:calc(var(--ad-bottom) + 12px)}.has-ads #toast{bottom:calc(var(--ad-bottom) + 240px)}
}
@media(orientation:landscape) and (max-height:600px){
 body.has-ads{--ad-top:calc(54px + env(safe-area-inset-top,0px));--ad-bottom:calc(54px + env(safe-area-inset-bottom,0px))}
 .ad-strip{padding:1px var(--edge-right) calc(1px + env(safe-area-inset-bottom,0px)) var(--edge-left);gap:8px}.ad-strip-top{padding:calc(1px + env(safe-area-inset-top,0px)) var(--edge-right) 1px var(--edge-left)}.ad-slot{height:50px;width:min(320px,calc(100% - 34px))}
 .topbar{padding:4px var(--edge-right) 4px var(--edge-left)}.brand span{font-size:18px}.brand>svg{display:none}.top-actions{gap:2px}.welcome-line{display:none}.mode-switch{position:absolute;left:50%;transform:translateX(-50%);margin:0;padding:3px}.mode-switch button{padding:6px 12px;font-size:13px;gap:5px}.top-actions .icon-button{width:36px;min-width:36px;height:36px;min-height:36px}
 .intro,body.water .intro,.has-ads .intro,.has-ads.water .intro{top:calc(var(--ad-top) + 48px);left:var(--edge-left);padding:2px 6px 2px 10px;max-width:none;gap:6px}.intro h1{font-size:13px}#start-sound{width:30px;min-width:30px;height:30px;min-height:30px}
 .places,.has-ads .places{top:calc(var(--ad-top) + 48px);right:var(--edge-right);left:auto}#place-toggle{min-height:34px;font-size:12px;padding:6px 9px}.places #place-options{min-width:145px;max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 92px);overflow:auto}.places .place-button{min-height:36px;padding:7px 10px;font-size:13px}
 .bottom-ui,.has-ads .bottom-ui,.has-ads.ritual-active .bottom-ui{bottom:calc(var(--ad-bottom) + 10px);width:min(760px,calc(100vw - var(--edge-left) - var(--edge-right)))}
 .status-row,footer{display:none}.control-dock{padding:5px 9px;flex-wrap:nowrap;gap:8px}.action-buttons{width:auto;justify-content:flex-start}.action-button{font-size:12px;min-height:38px;padding:7px 10px;gap:6px;flex:none}.action-button svg{width:18px;height:18px}.dock-divider{display:block;height:24px}.audio-controls{height:34px;margin:0;gap:5px}.audio-controls .icon-button{min-width:34px;width:34px;min-height:34px;height:34px}input[type=range]{width:65px}
 #stone-throw-panel{margin-bottom:6px;padding:5px 10px;flex-wrap:nowrap;gap:8px;font-size:12px}#stone-drag-label{flex-basis:auto;font-size:12px}.stone-power-track{width:100px;flex:none}
 #throw-settings{right:var(--edge-right);width:240px;padding:0 8px;max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 130px);overflow:auto}#throw-settings summary{min-height:26px;font-size:12px}#throw-settings summary span{font-size:10px}.timing-legend,.throw-help,.timing-verdict{display:none}.timing-gauge{padding:4px 7px}.timing-grid{padding-bottom:5px}.timing-label{font-size:12px}.timing-label output{font-size:10px}.timing-track{height:10px;margin:8px 0 5px}.timing-pointer{height:22px;top:-6px}.throw-bottom{gap:6px;padding-bottom:6px}.throw-bottom button{font-size:12px;min-height:34px;padding:5px 11px}
 #timer-status,.has-ads #timer-status{top:calc(var(--ad-top) + 48px);min-height:32px;font-size:12px;padding:5px 12px}
 #pomodoro-panel,.has-ads #pomodoro-panel{top:calc(var(--ad-top) + 45px);right:var(--edge-right);width:440px;max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 55px);padding:12px 16px}.timer-heading{margin-bottom:8px}.timer-heading h2{font-size:16px}.timer-heading .icon-button{min-height:30px;height:30px}.timer-fields{gap:8px}.timer-fields label{font-size:12px}.timer-input{padding:7px;margin-top:5px}.timer-input input{font-size:18px}#pomodoro-form{display:grid;grid-template-columns:1.2fr 1fr;gap:8px}.timer-readout{padding:0}.timer-readout output{font-size:32px}.timer-readout>span{font-size:12px}.timer-buttons{grid-column:1/-1}.timer-buttons button{min-height:36px;padding:7px 12px;font-size:13px}#timer-preview{min-height:24px;font-size:12px;margin-top:6px}.timer-note{display:none}
 #ritual-panel,.has-ads #ritual-panel{top:calc(var(--ad-top) + 44px);left:var(--edge-left);width:275px;max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 54px);padding:12px 16px;overflow:auto}.ritual-eyebrow{display:none}#ritual-panel h2{font-size:16px;margin:0 0 6px}#ritual-description{font-size:12px;min-height:0;margin:0 0 8px}#ritual-actions button{min-height:34px;padding:6px 10px;font-size:12px}
 .pomodoro-active .bottom-ui,.has-ads.pomodoro-active .bottom-ui{width:auto}.pomodoro-active .control-dock{padding:3px 12px}
 #toast,.has-ads #toast{bottom:calc(var(--ad-bottom) + 70px);font-size:12px;padding:8px 14px}.focused #exit-focus{bottom:max(12px,env(safe-area-inset-bottom,0px));padding:8px 14px}
}

/* Shared place menu, including the fire/water switch in fullscreen. */
#place-menu{position:absolute;top:calc(100% + 7px);right:0;min-width:170px;padding:5px;border:1px solid #ffffff26;border-radius:10px;background:#10232cf5;box-shadow:0 12px 32px #0004;backdrop-filter:blur(14px);max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 150px);overflow:auto}
.places #place-options{position:static;min-width:0;padding:0;border:0;box-shadow:none;background:none;backdrop-filter:none;max-height:none;overflow:visible}
#focus-mode-slot:empty{display:none}
/* Fullscreen keeps controls available in one quiet, compact toolbar. */
#focus-controls{position:fixed;z-index:16;left:50%;bottom:max(16px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:max-content;max-width:calc(100vw - var(--edge-left) - var(--edge-right))}
#focus-toolbar{display:flex;align-items:center;gap:4px;padding:5px 7px;border:1px solid #ffffff26;border-radius:14px;background:#10232bb3;box-shadow:0 3px 20px #0002;backdrop-filter:blur(14px);opacity:.68;transition:opacity .2s}
#focus-controls:hover #focus-toolbar,#focus-controls:focus-within #focus-toolbar,#focus-controls.actions-open #focus-toolbar{opacity:1}
#focus-toolbar .icon-button{width:42px;min-width:42px;height:42px;min-height:42px;padding:9px;background:transparent;border:0;border-radius:8px;color:#edf3ec}
#focus-toolbar #exit-focus{position:static;transform:none;opacity:1;margin:0}
#focus-actions-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 10px;border-radius:8px;background:#ffffff0b;color:#edf3ec;font-size:14px;white-space:nowrap}
#focus-actions-toggle svg{width:18px;height:18px}
#focus-actions-toggle[aria-expanded=true]{background:#e8dfc9;color:#18323a}
#focus-actions-toggle:disabled{opacity:.35;cursor:default}
.focused #focus-toolbar .places{position:relative;inset:auto;width:auto;visibility:visible;opacity:1;transform:none}
#focus-toolbar #place-toggle{min-height:42px;padding:8px 10px;background:transparent;border:0;backdrop-filter:none;font-size:14px}
#focus-toolbar #place-toggle .chevron{display:none}
#focus-toolbar #place-menu{top:auto;bottom:calc(100% + 14px);right:0;width:195px;max-height:calc(100dvh - 95px)}
#focus-mode-slot .mode-switch{position:static;transform:none;display:flex;width:100%;margin:0 0 5px;padding:3px;gap:3px;border-radius:7px;background:#ffffff0a}
#focus-mode-slot .mode-switch button{flex:1;justify-content:center;padding:8px 6px;font-size:14px;gap:5px}
#focus-action-menu{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);padding:7px;border:1px solid #ffffff29;border-radius:12px;background:#10232de8;box-shadow:0 8px 32px #0003;backdrop-filter:blur(14px);width:max-content;max-width:calc(100vw - var(--edge-left) - var(--edge-right))}
#focus-action-menu #actions{display:flex;gap:5px;width:auto;justify-content:center}
#focus-action-menu .action-button{flex:none;min-height:44px;font-size:14px;padding:9px 12px}
.focused main{visibility:visible;opacity:1;pointer-events:none}
.focused .intro,.focused .scene-label,.focused .control-dock,.focused .status-row,.focused #fuel-track{display:none}
.focused #ritual-panel,.focused #packet,.focused #throw-settings{visibility:visible;opacity:1}
.focused #ritual-panel,.focused #throw-settings{pointer-events:auto}
.focused #ritual-panel{top:max(20px,env(safe-area-inset-top,0px));max-height:calc(100dvh - 110px)}
.focused .bottom-ui,.has-ads.focused .bottom-ui,.has-ads.focused.ritual-active .bottom-ui{bottom:88px;width:min(460px,calc(100vw - 24px));pointer-events:none}
.focused #stone-throw-panel{margin:0}
.focused #throw-settings{max-height:calc(100dvh - 110px)}
.focused #pomodoro-panel:not([hidden]){display:block!important;top:max(20px,env(safe-area-inset-top,0px));max-height:calc(100dvh - 110px)}
.focused #timer-status:not([hidden]){display:flex!important;top:max(20px,env(safe-area-inset-top,0px))}
.focused #toast{display:block;bottom:90px;z-index:20}
@media(max-width:650px){
 #focus-toolbar{gap:0;padding:4px}#focus-toolbar .icon-button{width:40px;min-width:40px;height:42px}
 #focus-toolbar #place-toggle{gap:5px;padding:8px;font-size:13px}#focus-actions-toggle{padding:8px;font-size:13px}
 #focus-action-menu{padding:5px}#focus-action-menu .action-button{padding:8px;font-size:13px;gap:5px}#focus-action-menu .action-button svg{width:18px;height:18px}
 .focused #ritual-panel{left:12px;width:calc(100vw - 24px)}
}
@media(orientation:landscape) and (max-height:600px){
 #place-menu{max-height:calc(100dvh - var(--ad-top) - var(--ad-bottom) - 92px)}
 #focus-controls{bottom:max(10px,env(safe-area-inset-bottom,0px))}
 #focus-toolbar{padding:3px 5px}#focus-toolbar .icon-button,#focus-actions-toggle,#focus-toolbar #place-toggle{height:38px;min-height:38px}
 .focused #ritual-panel{left:var(--edge-left);width:275px}
 .focused #pomodoro-panel:not([hidden]){top:12px;max-height:calc(100dvh - 80px)}
 .focused #timer-status:not([hidden]){top:12px}.focused #toast{bottom:72px}
 .focused #throw-settings{max-height:calc(100dvh - 85px)}
}
/* The scene itself remains clickable; only panels and their controls intercept input. */
.focused #ritual-panel *,.focused #throw-settings *,.focused #focus-toolbar .places,.focused #focus-toolbar .places *{pointer-events:auto}
body.focused .intro{display:none}
@media(max-width:650px){#focus-toolbar .icon-button{width:36px;min-width:36px;padding:8px}}
