.tv-options .tv-section{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;border-bottom:1px solid #d8ddd7;padding:0 0 20px}.tv-options .tv-section h3,.tv-options .tv-section p{margin:0}.tv-options .tv-section:last-of-type{border-bottom:0;padding-bottom:0}.tv-options .tv-consent{display:flex;align-items:flex-start;gap:10px;text-align:left;font-size:13px;line-height:1.5;width:100%;color:#364139}.tv-consent input{flex:0 0 20px;width:20px;height:20px;margin:2px 0;accent-color:#386c51}.tv-options .tv-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.tv-options .tv-code{font-family:monospace;font-size:27px;font-weight:700;letter-spacing:0;white-space:nowrap;color:#173b2b}.tv-options .tv-status{font-size:14px;font-weight:600;color:#234d39}.tv-options .pairing-qr{width:172px;height:172px;object-fit:contain}.tv-options details{width:100%;text-align:left;font-size:13px;line-height:1.6}.tv-options details p{padding-top:10px}.tv-options button,.tv-options a{white-space:normal;min-width:0;overflow-wrap:anywhere}.tv-options button:disabled{opacity:.5;cursor:not-allowed}.tv-receiver{background:#edf3ee;color:#203d2d;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:60px 24px}.tv-receiver-content{width:min(100%,390px);display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}.tv-receiver-content h1{font-size:26px;margin:0;line-height:1.2}.tv-receiver-content p{margin:0;font-size:14px;line-height:1.6}.tv-receiver-content form{width:100%;display:flex;flex-direction:column;gap:14px}.tv-receiver-content label{display:flex;flex-direction:column;gap:10px;text-align:left;font-size:14px}.tv-receiver-content input{width:100%;font-family:monospace;font-size:24px;letter-spacing:0;text-transform:uppercase;text-align:center;padding:13px;border:1px solid #799783;border-radius:6px;background:#fff;color:#173b2b}.tv-receiver-content .error{color:#a12d35}.tv-receiver-content button{width:100%}.tv-receiver-status{position:absolute;left:18px;top:18px;max-width:calc(100% - 95px);background:#fff;color:#203d2d;font-size:12px;padding:8px 10px;border-radius:4px;pointer-events:none}@media(max-width:360px){.tv-options .tv-actions{grid-template-columns:1fr}.tv-options .tv-code{font-size:24px}}@media(max-height:520px){.tv-receiver{padding:55px 20px 20px;align-items:flex-start}.tv-receiver-content{gap:12px}.tv-receiver-content h1{font-size:22px}}@font-face{font-family:Nunito;src:url(/fonts/nunito-latin.woff2) format("woff2");font-display:swap;font-weight:200 1000}:root{font-family:Nunito,Avenir Next,system-ui,sans-serif;color:#254a42;background:#eff7f2;font-size:16px;font-synthesis:none;letter-spacing:0;font-weight:600}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;letter-spacing:0}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e9ad56;outline-offset:3px}button:hover:not(:disabled),a.secondary:hover{filter:brightness(.97)}h1,h2,h3,p{margin:0}h2{font-size:23px;font-weight:850}h3{font-size:18px;font-weight:800}input:not([type=range]):not([type=checkbox]),select{padding:11px 13px;background:#fff;border:1px solid #d1dfd8;border-radius:6px;min-width:0;color:#254a42}input[type=checkbox]{accent-color:#3e8270;width:19px;height:19px}input[type=range]{accent-color:#3e8270;min-width:70px}label{font-size:14px}button,summary,a{outline-offset:4px}.alive-app{position:relative;width:100%;height:100dvh;min-height:600px;overflow:hidden}.world-stage,.world-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.world-stage canvas{touch-action:none}.app-header{position:absolute;left:28px;right:28px;top:max(24px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;gap:20px;pointer-events:none}.app-header>*{pointer-events:auto}.brand{display:flex;gap:11px;align-items:center}.brand-mark{display:grid;place-items:center;width:45px;height:45px;background:#fbfdf7;color:#377b68;border-radius:8px;box-shadow:0 3px 12px #2257470b}.brand b{display:block;font-size:30px;font-weight:900;line-height:1}.brand small{display:block;font-size:9px;font-weight:850;margin-top:6px}.beta-dot{display:inline-block;width:6px;height:6px;background:#e78b73;border-radius:50%;margin-left:5px;vertical-align:top;margin-top:4px}.world-switch{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:12px;max-width:40%;padding:10px 15px;border-radius:6px;background:#ffffffb8;font-size:15px;font-weight:800;box-shadow:0 1px 6px #22574709}.world-switch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{display:flex;gap:8px}.icon-button{height:42px;width:42px;flex-shrink:0;border-radius:6px;background:#ffffffd9;display:inline-flex;justify-content:center;align-items:center;border:1px solid #31574b0b}.icon-button.active{background:#d7eee4;color:#285f4d;border-color:#67a28b}.scene-meta{position:absolute;top:112px;left:30px;display:flex;flex-direction:column;gap:8px;font-size:12px;color:#446e60}.live-pill{font-size:10px;font-weight:850;display:flex;align-items:center;gap:6px}.live-pill i{width:6px;height:6px;border-radius:50%;background:#569675}.world-dock{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);background:#fffe;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:8px;box-shadow:0 9px 32px #224c3926;display:flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #ffffff82;z-index:3}.dock-button{background:transparent;width:72px;height:63px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;font-weight:850}.dock-button svg{stroke-width:1.65}.capture-button{height:60px;min-width:165px;background:#dc7d69;color:#fff;border-radius:6px;font-size:13px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:10px;margin:0 3px}.scene-options{position:absolute;right:28px;bottom:28px;display:flex;flex-direction:column;gap:8px}.save-state{position:absolute;left:30px;bottom:28px;font-size:10px;display:flex;gap:5px;align-items:center;color:#335e4f}.empty-world{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px;width:85%}.empty-world h1{font-size:30px;font-weight:850}.primary,.secondary,.danger{border-radius:6px;min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 18px;font-weight:850;font-size:14px}.primary{background:#367b65;color:#fff}.secondary{background:#edf4ef;color:#2f5c4d;border:1px solid #d6e3d9}.danger{background:#ad5149;color:#fff}.text-button{background:transparent;text-decoration:underline;padding:7px;font-size:13px}.full{width:100%}.compact{min-height:36px;padding:7px 10px;font-size:12px}.exit-present{position:absolute;right:18px;top:18px;width:43px;height:43px;background:#ffffffc2;border-radius:6px;display:grid;place-items:center;opacity:.55}.exit-present:hover{opacity:1}.toast{position:fixed;left:50%;bottom:122px;transform:translate(-50%);background:#254f43;color:#fff;padding:11px 12px 11px 17px;border-radius:6px;box-shadow:0 5px 25px #244e3733;display:flex;gap:20px;align-items:center;z-index:20;font-size:14px;max-width:90vw;width:max-content}.toast button{display:grid;place-items:center;background:transparent;color:#fff;padding:5px}.modal{padding:0;border:1px solid #dbe5dd;border-radius:8px;background:#fbfdf9;color:#254a42;width:min(520px,calc(100vw - 32px));max-height:92dvh;box-shadow:0 22px 100px #1c493b38;overflow:auto}.modal.wide{width:min(680px,calc(100vw - 28px))}.modal::backdrop{background:#16382e66;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 23px 16px;position:sticky;top:0;background:#fbfdf9f2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:8;border-bottom:1px solid #e4ece4}.modal-head .icon-button{background:transparent;border:0;width:35px;height:35px}.modal-body{padding:22px 23px}.segmented{display:flex;gap:3px;border-radius:6px;background:#e7eee7;padding:4px;margin-bottom:20px}.segmented button{flex:1;min-height:38px;padding:8px 10px;background:transparent;display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;border-radius:4px}.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #28503e10}.subject-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:16px}.subject{border:1px solid transparent;border-radius:6px;background:#eff3ec;padding:5px 4px;display:flex;align-items:center;flex-direction:column;gap:3px;font-size:10px;font-weight:800;min-width:0}.subject img{height:37px;width:45px;object-fit:contain}.subject.selected{border-color:#518f73;background:#e0eee1}.canvas-shell{position:relative;width:min(100%,470px);aspect-ratio:1;margin:auto;border:1px solid #d7e3d7;border-radius:6px;background:#fff;overflow:hidden}.canvas-shell canvas{position:absolute;width:100%;height:100%;touch-action:none;z-index:1;inset:0}.outline-overlay{position:absolute;width:100%;height:100%;object-fit:contain;pointer-events:none;inset:0;z-index:2;mix-blend-mode:multiply}.paint-controls{margin:16px auto 0;max-width:500px}.swatches{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.swatch{border:1px solid #213c2e20;width:27px;height:27px;flex-shrink:0;border-radius:50%;padding:0}.swatch.selected{outline:2px solid #335e4e;outline-offset:3px}.tool-row{display:flex;gap:6px;margin-top:13px;align-items:center;justify-content:center}.tool-row .icon-button{width:36px;height:36px}.tool-row input{flex:1;max-width:90px}.studio-footer{display:flex;gap:15px;justify-content:space-between;align-items:center;margin-top:20px}.toggle-line{display:flex;align-items:center;gap:7px;font-size:13px}.error{color:#9d453c;background:#fff0eb;border-radius:6px;padding:12px;font-size:13px;margin-top:14px;line-height:1.6}.error .text-button{display:block;color:inherit}.muted{color:#6d8378}.small{font-size:12px;line-height:1.6}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.character-tile{border-radius:6px;background:#f0f4ed;border:1px solid #dfe8dc;padding:11px;display:block;min-width:0;text-align:left}.character-tile>img{width:100%;height:145px;object-fit:contain;display:block}.character-tile>span{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:13px;margin-top:7px;overflow-wrap:anywhere}.character-tile .icon-button{width:31px;height:31px}.empty-message{padding:35px 5px;text-align:center;color:#74877a;font-size:14px}.sheet-row{display:flex;align-items:center;gap:14px;padding:9px 0;border-bottom:1px solid #e2e9df}.sheet-row img{width:60px;height:60px;object-fit:contain}.sheet-row span{flex:1;font-size:14px}.sheet-list{margin-bottom:20px}.world-list{display:flex;flex-direction:column;gap:10px}.world-row{display:flex;align-items:center;border:1px solid #e0e9de;border-radius:6px;overflow:hidden;padding-right:10px}.world-row.selected{border-color:#83ac94;background:#f0f7ed}.world-row>button:first-child{padding:10px;display:flex;align-items:center;gap:14px;flex:1;background:transparent;text-align:left;min-width:0}.world-row>button:first-child>span:nth-child(2){flex:1;min-width:0}.world-row b{display:block;font-size:14px;overflow-wrap:anywhere}.world-row small{display:block;font-size:11px;color:#718578;margin-top:3px}.world-mini{display:grid;place-items:center;width:50px;height:50px;border-radius:5px;background:#d5e8ce;color:#5e916e;flex-shrink:0}.world-mini.space{background:#dbe3ee;color:#636a8e}.field{display:flex;gap:8px;flex-direction:column;margin-top:20px}.new-world{margin-top:25px;padding-top:20px;border-top:1px solid #dfe8dd;display:flex;flex-direction:column;gap:12px}.new-world .segmented{margin:0}.parent-gate{display:flex;flex-direction:column;align-items:center;gap:23px;padding:15px}.parent-gate>label{font-size:26px;font-weight:800;display:flex;gap:15px;align-items:center;flex-direction:column}.parent-gate input{width:120px;text-align:center;font-size:24px!important}.parent-gate .primary{min-width:160px}.settings-section+.settings-section{border-top:1px solid #dce6db;padding-top:19px;margin-top:22px}.settings-section h3{margin-bottom:10px}.settings-row{display:flex;align-items:center;gap:13px;width:100%;background:transparent;padding:12px 0;text-align:left;font-size:13px}.settings-row>span{flex:1}.settings-row input[type=checkbox]{flex-shrink:0}.tiny-art{width:32px;height:32px;object-fit:contain}details{font-size:13px;margin-top:14px;line-height:1.6}summary{cursor:pointer;font-weight:800}details p{margin:10px 0;color:#647b6d}.confirm-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.capture-start{padding:22px 8px 12px;text-align:center}.scan-art{position:relative;display:grid;place-items:center;width:170px;height:170px;color:#86a795;background:#edf4e9;margin:0 auto 24px;transform:rotate(-4deg);border-radius:6px}.scan-corner{position:absolute;width:22px;height:22px;border-style:solid;border-color:#5c997c}.tl{left:10px;top:10px;border-width:2px 0 0 2px}.tr{right:10px;top:10px;border-width:2px 2px 0 0}.bl{left:10px;bottom:10px;border-width:0 0 2px 2px}.br{right:10px;bottom:10px;border-width:0 2px 2px 0}.capture-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.crop-view{position:relative;width:max-content;max-width:100%;margin:auto;touch-action:none;overflow:hidden;border-radius:6px;line-height:0}.crop-view>img{display:block;max-width:100%;max-height:420px;object-fit:contain}.crop-box{position:absolute;border:2px solid #f7ca70;box-shadow:0 0 0 1000px #18362e59;pointer-events:none;min-width:2px;min-height:2px}.crop-controls{display:flex;gap:20px;align-items:end;justify-content:space-between;margin-top:18px}.crop-controls label{display:flex;flex-direction:column;gap:7px}.cutout-preview{aspect-ratio:1;width:min(100%,380px);margin:auto;background-color:#f3f5ef;background-image:linear-gradient(45deg,#e6ecdf 25%,transparent 25%),linear-gradient(-45deg,#e6ecdf 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e6ecdf 75%),linear-gradient(-45deg,transparent 75%,#e6ecdf 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border-radius:6px;border:1px solid #d9e4d4}.cutout-preview canvas{width:100%;height:100%;touch-action:none}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:8px}.preview-toolbar>span{display:flex;align-items:center;gap:7px}.creation-fields{display:flex;gap:12px;margin-top:15px;flex-wrap:wrap}.creation-fields label{display:flex;flex-direction:column;gap:6px;flex:1;min-width:100px}.camera-view{position:relative;aspect-ratio:3/4;max-height:500px;background:#142a22;border-radius:6px;overflow:hidden}.camera-view video{width:100%;height:100%;object-fit:cover}.viewfinder{position:absolute;inset:10%;border:2px solid #fff9;border-radius:6px;pointer-events:none}.shutter{position:absolute;bottom:20px;left:50%;transform:translate(-50%);width:64px;height:64px;background:#fff;border-radius:50%;border:5px solid #bfc9c5;outline:2px solid white}.camera-view .icon-button{position:absolute;right:15px;top:15px}.progress-line{text-align:center;font-size:13px;padding:16px}.tv-panel{display:flex;flex-direction:column;align-items:center;gap:17px;text-align:center}.tv-panel details{text-align:left}.tv-panel .secondary,.tv-panel .primary{width:100%}.loading-world,.start-error{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;padding:25px;text-align:center}.render-error{position:absolute;inset:30% 15%;display:grid;place-items:center;text-align:center;background:#fff;padding:30px;border-radius:6px}.presenting{min-height:0}@media(max-width:900px){.save-state{bottom:114px;left:22px}.scene-options{right:18px;bottom:118px;flex-direction:row}.world-switch{top:65px;max-width:80%;background:#ffffffa6}.scene-meta{top:145px;left:22px}.world-dock{bottom:max(17px,env(safe-area-inset-bottom))}.app-header{left:20px;right:20px;top:max(18px,env(safe-area-inset-top))}}@media(max-width:540px){.alive-app{min-height:520px}.brand b{font-size:27px}.brand small{font-size:8px}.brand-mark{width:40px;height:40px}.top-actions .icon-button{width:37px;height:37px}.app-header{gap:8px;left:16px;right:16px}.top-actions{gap:5px}.world-switch{font-size:13px;padding:8px 12px;top:60px}.scene-meta{font-size:10px;left:18px;top:134px}.live-pill{font-size:9px}.world-dock{width:calc(100% - 24px);gap:0;padding:7px 5px}.dock-button{flex:1;width:auto;height:57px;font-size:9px;gap:5px;min-width:48px}.dock-button svg{width:21px;height:21px}.capture-button{min-width:0;flex:1.6;flex-direction:column;gap:4px;height:57px;margin:0 4px;font-size:10px;padding:6px}.capture-button svg{height:23px;width:23px}.scene-options{bottom:105px;right:15px;gap:5px}.scene-options .icon-button{width:36px;height:36px;background:#ffffffa6}.scene-options svg{height:19px;width:19px}.save-state{left:17px;bottom:115px;font-size:9px}.toast{bottom:157px;font-size:12px}.modal-head{padding:15px 15px 13px}.modal-body{padding:17px 15px}.modal-head h2{font-size:20px}.modal{max-height:95dvh;width:calc(100vw - 20px)}.modal.wide{width:calc(100vw - 16px)}.subject-row{gap:4px}.subject{font-size:8px;padding:4px 2px}.subject img{width:36px;height:31px}.swatches{gap:12px}.swatch{width:24px;height:24px}.tool-row{gap:2px}.tool-row .icon-button{width:33px;height:34px}.tool-row input{max-width:68px}.primary,.secondary{font-size:13px;padding:10px 13px}.studio-footer{margin-top:17px}.character-tile>img{height:120px}.crop-controls{gap:12px;align-items:center}.capture-start{padding:15px 2px}.capture-actions{gap:8px}.parent-gate>label{font-size:24px}.creation-fields input,.creation-fields select{width:100%}.sheet-row img{width:50px;height:50px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.alive-app{min-height:0}.alive-app[data-environment=space] .brand>span:last-child,.alive-app[data-environment=space] .scene-meta,.alive-app[data-environment=space] .save-state{color:#f3f6ed}.scene-meta{background:#fbfff5f2;color:#254a42;padding:8px 10px;border-radius:6px;pointer-events:none}.save-state{background:#fbfff5f2;color:#254a42;padding:4px 7px;border-radius:4px;pointer-events:none}.alive-app[data-environment=space] .scene-meta,.alive-app[data-environment=space] .save-state{background:#162c42ed}@media(max-height:520px)and (orientation:landscape){.scene-meta{top:100px}.world-switch{top:0;max-width:36%}.world-dock{bottom:10px;padding:5px 8px}.dock-button,.capture-button{height:48px}.scene-options{bottom:85px;right:16px;gap:5px}.scene-options .icon-button{height:36px;width:36px}.save-state{bottom:86px;left:20px}.toast{bottom:125px}}.local-tv{border-top:1px solid #dbe5d7;width:100%;padding-top:18px;display:flex;flex-direction:column;align-items:center;gap:12px}.pairing-qr{width:190px;height:190px;object-fit:contain;border-radius:6px}.capture-lab .visually-hidden{left:0;top:0;padding:0;border:0}.capture-lab{min-width:0;overflow-wrap:anywhere}.capture-lab select{width:100%}.capture-lab>.primary{margin-top:17px}.capture-lab>.secondary{margin-top:16px}.lab-score{display:flex;flex-direction:column;gap:5px;padding:20px 0;font-size:16px}.lab-score small{font-size:12px;color:#637c6b}.lab-trials{display:flex;flex-direction:column;gap:18px}.lab-trial{border-bottom:1px solid #dbe5d7;padding-bottom:12px}.lab-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lab-pair>*{min-width:0}.lab-pair>img{width:100%;height:180px;object-fit:contain;border:1px solid #dce5d7;border-radius:5px;background:#fff}.lab-trial-info{font-size:12px;display:flex;flex-direction:column;gap:4px;padding:8px 0}.lab-trial-info small{color:#738773}.lab-trial .segmented{margin:0}.capture-lab>.toggle-line{margin-top:18px;align-items:flex-start;line-height:1.5}
