*,:before,:after{box-sizing:border-box}body,html{background-color:#f0f2f5;justify-content:center;align-items:center;width:100%;height:100dvh;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;overflow:hidden}#app-container{background:0 0;width:100%;height:100%;position:relative;overflow:hidden}#app-container.session-active{background-color:#101216}@media (width>=768px){#app-container{border-radius:8px;width:760px;height:760px;max-height:90vh;overflow:visible}#app-container.session-active{overflow:hidden;box-shadow:0 25px 50px -12px #00000080}#scene-container{clip-path:inset(0 round 8px)}}#scene-container{border-radius:inherit;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0;overflow:hidden}#webcam{opacity:.001;pointer-events:none;z-index:-1;width:1px;height:1px;position:absolute}#three-canvas{z-index:2;border-radius:inherit;width:100%;height:100%;position:absolute;top:0;left:0}#ui-layer{z-index:10;background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;transition:opacity .4s,visibility .4s;display:flex;position:absolute;top:0;left:0}.start-card{background:#fff;border:1px solid #0000000f;border-radius:8px;flex-direction:column;align-items:center;width:calc(100% - 32px);max-width:360px;max-height:calc(100% - 24px);padding:36px 28px;display:flex;overflow-y:auto;box-shadow:0 12px 32px #00000014}.mode-switcher{background:#f3f4f6;border:1px solid #e0e3e8;border-radius:8px;grid-template-columns:1fr 1fr;align-items:center;gap:4px;width:100%;max-width:224px;margin:0 0 22px;padding:4px;display:grid}.mode-btn{letter-spacing:.1px;color:#555b66;white-space:nowrap;-webkit-tap-highlight-color:transparent;border-radius:5px;justify-content:center;align-items:center;min-height:34px;padding:6px 14px;font-size:13px;font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .2s,color .2s,box-shadow .2s,transform .15s;display:flex}.mode-btn:hover{color:#1f2328;background:#0000000a}.mode-btn:active{transform:scale(.97)}.mode-btn:focus-visible{outline-offset:2px;outline:2px solid #e84a70}.mode-btn.active{color:#fff;background:linear-gradient(135deg,#ff758c 0%,#ff7eb3 100%);box-shadow:0 4px 10px -2px #ff758c73}.mode-btn.active:hover{color:#fff;box-shadow:0 6px 14px -2px #ff758c8c}@media (pointer:coarse){.mode-btn{min-height:38px}}#ui-layer.hidden{opacity:0;visibility:hidden;pointer-events:none}h1{background:linear-gradient(135deg,#ff758c 0%,#ff7eb3 100%);-webkit-text-fill-color:transparent;text-align:center;letter-spacing:-.5px;-webkit-background-clip:text;margin:0 0 4px;font-size:38px;font-weight:800}.subtitle{color:#444;text-align:center;margin:0 0 32px;font-size:15px;font-weight:500}.controls{flex-direction:column;gap:16px;width:100%;display:flex}.btn{color:#fff;cursor:pointer;text-align:center;background:linear-gradient(135deg,#ff758c 0%,#ff7eb3 100%);border:none;border-radius:6px;justify-content:center;align-items:center;gap:10px;padding:16px 20px;font-size:16px;font-weight:600;transition:all .3s cubic-bezier(.2,.8,.2,1);display:flex;box-shadow:0 10px 20px -5px #ff758c66}.btn:hover{transform:translateY(-2px)scale(1.02);box-shadow:0 15px 25px -5px #ff758c80}.btn:active{transform:translateY(1px)scale(.98)}.btn-secondary{color:#333;background:#f3f4f6;border:1px solid #e0e3e8;box-shadow:0 4px 10px #0000000a}.btn-secondary:hover{background:#e8eaef;box-shadow:0 8px 20px #00000014}input[type=file]{display:none}#status{color:#ff758c;letter-spacing:.5px;text-transform:uppercase;margin-top:35px;font-size:13px;font-weight:600;display:none}#close-btn-container{z-index:20;position:absolute;top:20px;right:20px}#close-btn-container.hidden{display:none}.btn-close{width:44px;height:44px;box-shadow:none;background:#101216b8;border-radius:22px;padding:0;font-size:20px;font-weight:300;line-height:1}.btn-close:hover{box-shadow:none;background:#101216e0}#controls-panel{bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:10;background:#101216d1;border:1px solid #ffffff24;border-radius:8px;flex-direction:column;gap:12px;width:calc(100% - 24px);max-width:400px;padding:16px;display:flex;position:absolute;left:50%;transform:translate(-50%)}@media (height<=540px){.start-card{padding:20px}.mode-switcher{margin-bottom:14px}h1{font-size:30px}.subtitle{margin-bottom:18px}.controls{gap:10px}#controls-panel{gap:8px;padding:10px 12px;bottom:10px}}#controls-panel.hidden{display:none}.control-row{justify-content:space-between;gap:10px;display:flex}.slider-row{flex-direction:column;gap:6px}.slider-row label{color:#fffc;justify-content:space-between;font-size:13px;font-weight:500;display:flex}#opacity-val{color:#fff;font-weight:700}.ctrl-btn{color:#fff;cursor:pointer;background:#ffffff1a;border:1px solid #ffffff1a;border-radius:4px;flex:1;padding:10px;font-size:14px;font-weight:600;transition:all .2s}label.ctrl-btn{text-align:center;margin-top:4px}.ctrl-btn.active{background:#ffffff40;border-color:#ffffff4d}input[type=range]{-webkit-appearance:none;background:0 0;width:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;cursor:pointer;background:#fff;border-radius:50%;width:18px;height:18px;margin-top:-7px;box-shadow:0 2px 5px #0000004d}input[type=range]::-webkit-slider-runnable-track{cursor:pointer;background:#888;border-radius:2px;width:100%;height:4px}input[type=range]::-moz-range-track{cursor:pointer;background:#fff9;border-radius:2px;width:100%;height:4px}input[type=range]::-moz-range-thumb{cursor:pointer;background:#fff;border:none;border-radius:50%;width:18px;height:18px;box-shadow:0 2px 5px #0000004d}
