:root{color-scheme:light;--ink:#264b49;--soft:#637b71;--paper:#fffcf4;--cream:#f7f1e6;--green:#31776c;--line:#dce4d7;--gold:#f4bd50;--pink:#e79b8e;font-family:ui-rounded,"SF Pro Rounded","Avenir Next","PingFang SC","Microsoft Yahei",system-ui,sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--cream);color:var(--ink)}button,a,input{touch-action:manipulation}button{font:inherit;color:inherit;border:1px solid var(--line);background:var(--paper);border-radius:16px;min-height:48px;padding:10px 17px;cursor:pointer;font-weight:700}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #cb8551;outline-offset:3px}[hidden]{display:none!important}header{height:88px;display:flex;align-items:center;gap:15px;padding:14px max(24px,env(safe-area-inset-right)) 12px max(24px,env(safe-area-inset-left));max-width:1500px;margin:auto}#home{flex:0 0 48px}.brand h1{font-size:24px;line-height:1.2;margin:0}.brand p{font-size:9px;letter-spacing:2.7px;margin:5px 0 0;color:var(--soft)}.header-tools{margin-left:auto;display:flex;gap:8px}.round{padding:0;width:46px;min-height:46px;border-radius:50%;font-size:22px}main{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;max-width:1360px;margin:0 auto;padding:0 24px 22px;align-items:center;min-height:0}.play-area{min-width:0;width:100%;max-width:calc((100dvh - 158px)*1.2);justify-self:center}#stageBox{position:relative;border:7px solid #fffcf4;border-radius:28px;overflow:hidden;box-shadow:0 8px 32px #3d514218;aspect-ratio:6/5;background:#dfeede}#stage{width:100%;height:100%;display:block;touch-action:none}.badge{position:absolute;left:15px;top:15px;pointer-events:none;color:#365e52;background:#fffdf1;padding:7px 10px;font-size:11px;border-radius:30px;font-weight:700}.badge.live{background:#d9f1dc}.badge.live::before{content:'● ';color:#338951}.badge.right{left:auto;right:15px;letter-spacing:1px}.scene-caption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:14px 9px 0}.scene-caption strong{font-size:17px}.scene-caption span{font-size:12px;color:var(--soft);text-align:right}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#96764e}.onboarding p{font-size:19px;line-height:1.7;margin:12px 0 24px}.main-controls{display:grid;gap:12px}.primary{background:var(--green);border-color:var(--green);color:#fffdf4}#camera{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px}.cam-icon{width:22px;height:16px;display:inline-block;border:2px solid currentColor;border-radius:4px;position:relative}.cam-icon::before{content:'';position:absolute;width:6px;height:6px;border:2px solid currentColor;border-radius:50%;left:4px;top:1px}.cam-icon::after{content:'';position:absolute;width:8px;height:4px;left:5px;top:-5px;background:currentColor;border-radius:2px}.shutter{min-height:86px;background:var(--gold);border-color:#efb543;display:flex;align-items:center;justify-content:center;gap:14px;font-size:18px}.shutter-dot{width:44px;height:44px;border:4px solid #fffdf4;border-radius:50%;box-shadow:inset 0 0 0 3px var(--gold);background:#fffdf4}.small-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.small-controls button{font-size:13px;padding:8px 6px}#status{font-size:13px;line-height:1.6;min-height:22px;color:#756343;margin:14px 0 8px}.privacy{font-size:11px;line-height:1.6;color:var(--soft);margin:10px 0}.scene-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.scene-nav button{border:0;width:48px;padding:0;font-size:23px}.scene-nav span{font-size:13px;font-weight:700}#cameraVideo{position:fixed;width:2px;height:2px;left:0;bottom:0;opacity:.001;pointer-events:none;z-index:-1}#countdown{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:clamp(90px,20vw,220px);font-weight:900;text-shadow:0 3px 10px #263d4466;pointer-events:none}#flash{position:absolute;inset:0;background:white;pointer-events:none;animation:flash .3s forwards}@keyframes flash{from{opacity:.8}to{opacity:0}}
.overlay{position:fixed;inset:0;background:#203e4266;z-index:30;display:flex;align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));overflow:auto}.sheet{background:var(--paper);border-radius:26px;padding:25px;max-height:100%;overflow:auto;width:min(100%,890px);box-shadow:0 20px 60px #1b363933}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet h2{font-size:26px;line-height:1.3;margin:7px 0 16px}.close{width:48px;padding:0;border-radius:50%;font-size:28px;flex:0 0 48px}.filters{display:flex;gap:8px;margin:12px 0 20px;flex-wrap:wrap}.filters button{min-height:44px;font-size:14px}.filters button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}#sceneGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.scene-card{padding:5px 5px 12px;border-radius:17px;overflow:hidden;text-align:left;min-width:0}.scene-card[aria-pressed=true]{outline:3px solid var(--green);outline-offset:1px}.scene-card canvas{width:100%;height:auto;border-radius:12px;display:block}.scene-card strong{display:block;font-size:12px;margin:9px 5px 2px}.scene-card small{font-size:10px;color:var(--soft);margin:0 5px}.adjust{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:max(22px,env(safe-area-inset-right));z-index:18;width:300px;background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 40px #203e4229;padding:18px}.adjust-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.adjust-title button{min-height:42px;background:var(--green);color:white;border:0;padding:7px 12px}.adjust p{font-size:12px;line-height:1.5;color:var(--soft);margin:10px 0}.adjust label:not(.check){display:grid;grid-template-columns:90px 1fr;align-items:center;gap:10px;font-size:12px;margin:10px 0}.adjust input[type=range]{width:100%;height:34px;accent-color:var(--green)}.person-buttons{display:flex;gap:6px}.person-buttons button{min-height:40px;padding:6px 10px;font-size:12px}.person-buttons button[aria-pressed=true]{background:#e0eddb;border-color:var(--green)}.adjust-actions{display:flex;gap:5px;flex-wrap:wrap}.adjust-actions button{font-size:11px;min-height:40px;padding:7px}.check{font-size:12px;display:flex;align-items:center;gap:8px;margin-top:12px;min-height:32px}.check input{width:20px;height:20px;accent-color:var(--green)}.photo-sheet{width:min(100%,680px);text-align:center}.photo-sheet>p{font-size:13px;line-height:1.6;color:var(--soft);margin:8px 0 14px}#photo{display:block;max-width:100%;width:auto;max-height:52dvh;margin:auto;border:7px solid #fff;box-shadow:0 3px 14px #344e4422;border-radius:6px;-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}.photo-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.photo-actions button{font-size:13px}.text-button{background:none;border:0;min-height:44px;padding:8px 16px;font-size:13px}.help-sheet{max-width:620px}.help-sheet li,.help-sheet p{font-size:14px;line-height:1.8;margin-bottom:10px}.help-sheet ol{padding-left:23px}#saveStatus{color:#926342}.adjusting #stage{cursor:move}.adjusting #cameraBadge{display:none}
@media(max-width:760px){header{height:74px;padding:10px 14px;gap:10px}.brand h1{font-size:18px}.brand p{font-size:8px;letter-spacing:1.6px}.round{width:42px;min-height:42px}.header-tools{gap:5px}main{display:flex;flex-direction:column;gap:13px;padding:0 12px max(18px,env(safe-area-inset-bottom))}.play-area{max-width:590px}.controls{width:100%;max-width:590px}.onboarding{display:none}#stageBox{border-width:5px;border-radius:22px}.scene-caption{margin:9px 4px 0;gap:6px}.scene-caption strong{font-size:14px}.scene-caption span{font-size:10px;max-width:55%}.main-controls{grid-template-columns:1fr 1fr;gap:8px}.shutter{min-height:62px;font-size:15px;gap:8px}.shutter-dot{width:32px;height:32px;border-width:3px}#camera{min-height:62px;font-size:13px;padding:8px;gap:8px}.small-controls{margin-top:8px}.small-controls button{min-height:44px}.privacy{font-size:10px;margin:6px 0;text-align:center}#status{margin:8px 0 4px;min-height:0;font-size:12px;text-align:center}.scene-nav{margin-top:6px;padding-top:6px}.scene-nav button{min-height:40px}.badge{font-size:9px;padding:6px 8px;left:10px;top:10px}.badge.right{right:10px}.sheet{padding:18px;border-radius:22px}.sheet h2{font-size:21px}#sceneGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.scene-card strong{font-size:14px}.scene-card small{font-size:12px}.filters{gap:6px}.filters button{padding:8px 12px;font-size:12px}.adjust{width:calc(100% - 24px);right:12px;bottom:max(10px,env(safe-area-inset-bottom));padding:12px 16px}.adjust label:not(.check){margin:3px 0}.adjusting main{padding-bottom:295px}.adjusting .controls{visibility:hidden}.photo-actions button{padding:10px 13px}#photo{max-height:44dvh}.photo-sheet h2{margin-top:0}}
@media(max-height:520px) and (min-width:650px){header{height:64px;padding:8px 18px}.brand h1{font-size:18px}.brand p{display:none}main{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:18px;padding:0 18px 10px;align-items:start}.play-area{max-width:calc((100dvh - 106px)*1.2)}.controls{width:auto}.onboarding,.privacy{display:none}.main-controls{grid-template-columns:1fr 1fr;gap:8px}#camera{font-size:11px;padding:8px;min-height:62px}.cam-icon{display:none}.shutter{min-height:62px;font-size:12px;gap:5px;padding:7px}.shutter-dot{width:28px;height:28px}.small-controls{margin-top:8px}.scene-nav{margin-top:6px;padding-top:6px}#status{font-size:11px;margin:6px 0}.scene-caption{margin-top:7px}.scene-caption strong{font-size:12px}.scene-caption span{font-size:10px}.adjust{width:270px;right:12px;bottom:8px;padding:10px;max-height:calc(100dvh - 74px);overflow:auto}.adjust p{margin:5px 0}.adjust label:not(.check){margin:2px 0}.adjusting main{padding-bottom:10px}.sheet{max-height:100%}#sceneGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#flash{animation:none;display:none}}
