:root{color-scheme:dark;font:18px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;--bg: #111418;--text: #f2f4f6;--muted: #9aa5b1;--accent: #2f7de1;--warn: #f5b301}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;margin:0;background:var(--bg);color:var(--text)}body{touch-action:manipulation;-webkit-user-select:none;user-select:none;overscroll-behavior:none}main{height:100dvh;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}.message{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:16px}.message p{margin:0;max-width:28em}.muted{color:var(--muted)}.big-number{font-size:clamp(64px,24vw,120px);font-weight:700;letter-spacing:.08em;font-variant-numeric:tabular-nums}#screen-clicker{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}.top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}#label{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#time{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}.buttons{display:grid;grid-template-rows:2fr 1fr;gap:10px;min-height:0}.buttons button{min-height:64px;font-size:28px;font-weight:700;border:0;border-radius:16px;color:#fff}#next{background:var(--accent)}#back{background:#39424e}.buttons button:active{filter:brightness(1.25)}button:disabled{opacity:.35}@media(orientation:landscape){.buttons{grid-template-rows:1fr;grid-template-columns:1fr 2fr}#back{order:-1}}.bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px}#status{color:var(--warn);font-size:15px}#warn{color:var(--warn);font-weight:600}#tick{color:#3ecf8e;font-weight:700}#end{background:none;color:var(--muted);border:1px solid #39424e;border-radius:10px;padding:8px 12px;font:inherit;font-size:15px;white-space:nowrap;margin-left:auto}#confirm-end{position:fixed;inset:0;background:#000c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}#confirm-end div{display:flex;gap:12px}#confirm-end button{min-height:52px;padding:0 20px;border:0;border-radius:12px;font:inherit;font-weight:600;color:#fff;background:#39424e}#end-yes{background:#c0392b!important}.time-screen{height:100%;display:flex;flex-direction:column;gap:18px;padding:8px 4px}.time-top{text-align:center}.time-top p{margin:0 0 6px}.time-top h1{margin:0;font-size:24px;line-height:1.25;font-weight:700}.stepper{display:grid;grid-template-columns:64px 1fr 64px;align-items:center;gap:8px;margin-top:auto}.stepper button{height:64px;border:0;border-radius:16px;background:#2a323c;color:var(--text);font-size:30px}.stepper button:active{filter:brightness(1.3)}.stepper output{text-align:center;font-size:30px;font-weight:700;font-variant-numeric:tabular-nums}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:auto}.presets button{min-height:52px;border:1px solid #39424e;border-radius:12px;background:transparent;color:var(--text);font:inherit;font-size:15px}.presets button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);font-weight:600}.time-status{margin:0 0 8px;min-height:1.2em;text-align:center;color:var(--warn);font-size:15px}.start{width:100%;min-height:64px;border:0;border-radius:16px;background:var(--accent);color:#fff;font:inherit;font-size:22px;font-weight:700}@media(orientation:landscape)and (max-height:500px){.time-screen{gap:8px;padding:0}.time-top h1{font-size:18px}.time-top p{display:none}.stepper{margin-top:0}.stepper button{height:48px}.stepper output{font-size:22px}.presets{grid-template-columns:repeat(6,1fr);margin-bottom:0}.presets button{min-height:40px;font-size:13px}.start{min-height:48px;font-size:18px}}#screen-clicker{grid-template-rows:auto auto minmax(0,1fr) auto}.slide-open{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border:1px solid #39424e;border-radius:14px;background:#1a2028;color:var(--text);font:inherit;font-size:17px;font-weight:600}.slide-open svg{width:22px;height:22px}.slide-open:active,.more:active{background:#222a34}.slide-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:8px}.more{display:flex;align-items:center;justify-content:center;min-height:52px;padding:0;border:1px solid #39424e;border-radius:14px;background:#1a2028;color:var(--text)}.more[aria-expanded=true]{background:#2f3946;border-color:#4a5563}.more svg{width:24px;height:24px}.more-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:5;min-width:min(240px,100%);display:grid;padding:6px;gap:4px;border-radius:14px;background:#222a34;border:1px solid #39424e;box-shadow:0 12px 32px #0000008c}.more-menu button{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:17px;font-weight:600;text-align:left}.more-menu button:active,.more-menu button:focus-visible{background:#2f3946;outline:none}.more-menu svg{width:22px;height:22px;color:var(--muted)}svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}svg .filled{fill:currentColor;stroke:none}.slide-screen{height:100%;display:grid;gap:8px;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"bar" "stage" "panel"}.slide-bar{grid-area:bar;display:flex;justify-content:space-between;align-items:center;gap:8px}.slide-screen button{font:inherit;font-size:15px;color:var(--text);border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.slide-screen button svg{width:20px;height:20px;flex:none}.slide-close{min-height:44px;padding:0 12px 0 6px;background:transparent;font-weight:600!important}.tools{display:flex;padding:3px;border-radius:13px;background:#1a2028}.tools button{min-height:38px;padding:0 12px;background:transparent;color:var(--muted)!important}.tools button[aria-pressed=true]{background:#2f3946;color:var(--text)!important}#tool-laser[aria-pressed=true] svg{color:#ff453a}.stage{grid-area:stage;position:relative;overflow:hidden;border-radius:10px;background:#07090b}.stage img,.stage canvas{position:absolute;display:block}.stage img{object-fit:fill;transition:opacity .2s}.stage.dim img,.stage.dim canvas{opacity:.45}.stage canvas{touch-action:none;cursor:crosshair}.laser-dot{position:absolute;left:0;top:0;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:#ff3b30;pointer-events:none;box-shadow:0 0 0 4px #ff3b304d,0 0 18px 6px #ff3b308c}.stage-msg{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--muted);pointer-events:none}.stage-msg p{margin:0}.stage-msg button{pointer-events:auto;min-height:44px;padding:0 18px;background:var(--accent)!important;font-weight:600!important}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid #39424e;border-top-color:var(--text);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.slide-panel{grid-area:panel;display:grid;gap:8px}.colors{display:flex;justify-content:space-between;gap:6px}.swatch{flex:1;height:38px;max-width:54px;border-radius:50%!important;padding:0;background:transparent!important;position:relative}.swatch:after{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #ffffff40;aspect-ratio:1;margin:auto;width:26px;height:26px}.swatch[aria-pressed=true]:before{content:"";position:absolute;margin:auto;inset:0;width:36px;height:36px;border-radius:50%;box-shadow:0 0 0 2px var(--text)}.edit{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.edit button{min-height:44px;background:#1a2028}.edit button:active,.slide-nav button:active{filter:brightness(1.3)}.slide-nav{display:grid;grid-template-columns:1fr 2fr;gap:8px}.slide-nav button{min-height:52px;font-size:18px!important;font-weight:700!important}#slide-next{background:var(--accent)}#slide-back{background:#39424e}.slide-status{margin:0;min-height:1.2em;color:var(--warn);font-size:14px;text-align:center}.slide-status:empty{display:none}@media(orientation:landscape){main:has(#screen-slide:not([hidden])){padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.slide-screen{grid-template-columns:minmax(0,1fr) 176px;grid-template-rows:auto minmax(0,1fr);grid-template-areas:"stage bar" "stage panel";gap:6px 8px}.slide-bar{flex-direction:column;align-items:stretch;gap:6px}.slide-close{justify-content:flex-start!important;min-height:36px}.tools button{flex:1;padding:0 6px;font-size:14px!important}.slide-panel{align-content:space-between;gap:6px}.colors{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;justify-items:center}.swatch{width:40px;height:34px;flex:none}.edit{gap:4px}.edit button{min-height:40px;flex-direction:column;gap:0;font-size:11px!important;padding:2px 0}.slide-nav{grid-template-columns:1fr;gap:6px}.slide-nav button{min-height:44px}#slide-back{order:2}}
