*{box-sizing:border-box} :root{color-scheme:dark;--bg:#0e0e10;--panel:#1c1c20;--text:#f6f3ea;--yellow:#f0d722;--violet:#6c5cff;font-family:system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg)}
body{margin:0;overscroll-behavior:none} button,select{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation} button:focus-visible,select:focus-visible{outline:2px solid var(--yellow);outline-offset:3px} button:active{scale:.95} button:disabled{cursor:default}
.studio{height:100vh;height:100dvh;max-width:620px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px,env(safe-area-inset-left))}
.mast,.viewhead,.dock,dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}.mast{padding:12px 5px 13px}.brand{font-size:13px;font-weight:850;letter-spacing:.18em;display:flex;align-items:center;gap:9px}.mark{background:var(--yellow);color:var(--bg);width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:22px;letter-spacing:0}.state{font-size:12px;color:#d5d0c7;background:var(--panel);border:1px solid #ffffff14;padding:6px 9px;border-radius:20px}.state.live{color:var(--yellow)}
.view{flex:1;min-height:0;position:relative;overflow:hidden;isolation:isolate;border:1px solid #ffffff26;border-radius:24px;touch-action:none;background:radial-gradient(ellipse at 50% 56%,#393435,#1a191b 64%,#111113)}
video,.grid,#figure{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#figure{filter:drop-shadow(0 0 6px #ffe8c540)}video{object-fit:cover;visibility:hidden}video.live{visibility:visible}video.front{transform:scaleX(-1)}.grid{background:linear-gradient(90deg,transparent calc(33.333% - .5px),#ffffff18 33.333%,transparent calc(33.333% + .5px),transparent calc(66.667% - .5px),#ffffff18 66.667%,transparent calc(66.667% + .5px)),linear-gradient(transparent calc(33.333% - .5px),#ffffff18 33.333%,transparent calc(33.333% + .5px),transparent calc(66.667% - .5px),#ffffff18 66.667%,transparent calc(66.667% + .5px))}
.viewhead{position:absolute;top:0;left:0;right:0;padding:13px 12px;align-items:flex-start;background:linear-gradient(#0e0e10ed,transparent);touch-action:manipulation}.viewhead p,dialog header p{margin:0 0 5px;color:var(--yellow);font-size:13px;font-weight:750}.viewhead h1{margin:0;font-size:clamp(20px,6vw,30px);line-height:1;font-weight:820;letter-spacing:-.045em}.filter select{max-width:124px;min-height:44px;border:1px solid #ffffff38;border-radius:13px;background:#17171ae8;padding:0 5px;font-size:14px}.corners{position:absolute;inset:16% 12% 12%;pointer-events:none;display:grid;grid-template:1fr 1fr / 1fr 1fr}.corners i{width:17px;height:17px;border-color:#f6f3ea85;border-style:solid;border-width:1px 0 0 1px;border-radius:4px 0 0}.corners i:nth-child(2){justify-self:end;rotate:90deg}.corners i:nth-child(3){align-self:end;rotate:-90deg}.corners i:nth-child(4){place-self:end;rotate:180deg}
.startbox{position:absolute;left:0;right:0;bottom:57px;text-align:center}.primary{min-height:56px;border:0;border-radius:18px;background:var(--yellow);color:#0e0e10;font-weight:800;padding:0 24px}.hint{position:absolute;bottom:8px;left:9px;right:9px;width:fit-content;margin:0 auto;color:var(--text);background:#15131deb;border:1px solid var(--violet);border-radius:16px;padding:6px 10px;font-size:12px;text-align:center;pointer-events:none}.hint.error{pointer-events:auto}
.dock{padding:12px 0;justify-content:space-around}.control,.shutter{flex:none;width:56px;height:56px;border-radius:18px;border:1px solid #ffffff1f;background:var(--panel);display:grid;place-content:center;justify-items:center;gap:2px;transition:scale .15s}.control svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.control span{font-size:10px;font-weight:700}.shutter{border-radius:50%;width:74px;height:74px;border:2px solid var(--yellow);background:none}.shutter span{width:58px;height:58px;background:var(--yellow);border-radius:50%}.shutter:disabled{opacity:.48}
dialog{color:var(--text);background:#1c1c20;border:1px solid #ffffff25;padding:16px;width:min(100%,600px);max-width:100%;margin:auto;border-radius:24px}dialog::backdrop{background:#080809ba;backdrop-filter:blur(5px)}dialog[open]{animation:appear .22s ease-out}@keyframes appear{from{opacity:0;translate:0 18px}}.sheet{margin:auto auto 0;max-height:82dvh;padding-bottom:max(16px,env(safe-area-inset-bottom))}.sheet[open],.photo[open]{display:flex;flex-direction:column;gap:12px}h2{margin:0;font-size:25px;letter-spacing:-.04em}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:auto;overscroll-behavior:contain}.tile{display:grid;justify-items:center;align-content:start;gap:5px;padding:7px 3px 9px;background:#121214;border:1px solid #ffffff20;border-radius:14px;min-height:56px;font-size:13px}.tile[aria-current=true]{border-color:var(--yellow);color:var(--yellow)}.tile svg{width:100%;height:88px}.photo{max-height:94dvh;text-align:center}.photo img{width:100%;height:auto;min-height:0;max-height:64dvh;object-fit:contain}.photo p{margin:0}.photo p:empty{display:none}.sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.rotate,[hidden]{display:none!important}
@media (orientation:landscape) and (max-height:540px){.studio{visibility:hidden}.rotate{display:grid!important;position:fixed;inset:0;place-items:center;text-align:center;padding:24px}}
@media(max-width:345px){.dock{gap:2px}.shutter{width:62px;height:62px}.shutter span{width:48px;height:48px}.studio{padding-inline:6px}}
@media(prefers-reduced-motion:reduce){*,*::backdrop{animation:none!important;transition:none!important}}
