:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#110817;color:#fff8f4}*{box-sizing:border-box}html,body{width:100%;min-width:320px;height:100%;margin:0;overflow:hidden;background:#110817}button{font:inherit}.stage{position:relative;width:100vw;height:100dvh;min-height:560px;overflow:hidden;isolation:isolate}.heart-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}.topbar{position:absolute;z-index:4;top:18px;left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.brand,.controls,.camera-shell,.guide-panel,.gesture-strip{border:1px solid rgba(255,244,233,.16);background:#120a1694;box-shadow:0 22px 90px #00000057;-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2)}.brand{min-width:0;display:inline-flex;align-items:center;gap:12px;height:54px;max-width:min(420px,60vw);padding:8px 14px 8px 10px;border-radius:8px;pointer-events:auto}.brand-mark{display:grid;place-items:center;width:42px;height:36px;border-radius:6px;color:#251018;background:linear-gradient(135deg,#ff4d93,#ffd166);font-size:14px;font-weight:900}.brand-copy{display:grid;gap:2px;min-width:0}.brand-copy strong{display:block;overflow:hidden;color:#fff8ef;font-size:15px;line-height:1.05;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}.brand-copy span{display:block;overflow:hidden;color:#ffeaddb3;font-size:12px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.controls{display:inline-flex;align-items:center;gap:8px;height:54px;padding:7px;border-radius:8px;pointer-events:auto}.control-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;border:1px solid rgba(255,241,229,.15);border-radius:7px;color:#fff8ef;background:#fff1;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease}.control-button{min-width:88px;padding:0 13px}.icon-button{width:40px;padding:0}.control-button svg,.icon-button svg{width:17px;height:17px;stroke-width:2.2}.control-button:hover,.icon-button:hover{transform:translateY(-1px);border-color:#ffd1666b;background:#ffffff1c}.control-button:active,.icon-button:active{transform:translateY(0)}.control-button:disabled,.icon-button:disabled{cursor:not-allowed;opacity:.45}.control-button.primary{border-color:#ff5f9880;background:linear-gradient(135deg,#ff4d93bd,#ffb16899)}.camera-dock{position:absolute;z-index:3;right:18px;bottom:18px;width:min(28vw,290px);min-width:188px;aspect-ratio:4 / 3}.camera-shell{position:relative;width:100%;height:100%;overflow:hidden;border-radius:8px}.camera-shell video,.camera-shell canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.camera-shell video{opacity:.78;transform:scaleX(-1)}.camera-shell canvas{z-index:2}.camera-badge{position:absolute;z-index:3;top:9px;left:9px;min-width:42px;height:22px;display:inline-grid;place-items:center;border-radius:6px;color:#fff8efb8;background:#00000075;font-size:11px;font-weight:800;letter-spacing:.02em}.camera-badge.online{color:#fff8ef;background:#44d17e47}.guide-panel{position:absolute;z-index:3;top:92px;right:18px;width:min(28vw,290px);min-width:220px;padding:12px;border-radius:8px}.guide-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#fff8ef;font-size:12px;font-weight:900}.guide-header span:last-child{min-width:58px;height:24px;display:inline-grid;place-items:center;border:1px solid rgba(255,209,102,.24);border-radius:6px;color:#fff4d8;background:#ffd16614;font-size:11px;font-variant-numeric:tabular-nums}.guide-panel ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}.guide-panel li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;padding:6px 8px;border:1px solid rgba(255,255,255,.08);border-radius:7px;background:#ffffff0b}.guide-panel li span{color:#ffd7e5;font-size:12px;font-weight:800;white-space:nowrap}.guide-panel li strong{color:#fff8efc7;font-size:12px;font-weight:650;text-align:right}.camera-hint{position:absolute;z-index:3;left:9px;right:9px;bottom:9px;min-height:30px;display:flex;align-items:center;padding:7px 9px;border:1px solid rgba(255,255,255,.08);border-radius:7px;color:#fff8efc7;background:#0000007a;font-size:11px;line-height:1.25;overflow-wrap:anywhere}.camera-hint[data-tone=success]{border-color:#44d17e4d;color:#eefff4}.camera-hint[data-tone=info]{border-color:#ffd16647;color:#fff4d8}.camera-hint[data-tone=warning]{border-color:#ffc16657;color:#ffe6b8}.camera-hint[data-tone=error]{border-color:#ff5f986b;color:#ffd7e5}.gesture-strip{position:absolute;z-index:4;left:18px;bottom:18px;display:inline-flex;align-items:center;gap:14px;height:46px;max-width:calc(100vw - 230px);padding:0 14px;border-radius:8px}.gesture-strip span:first-child{color:#fff4d8;font-size:13px;font-weight:900;letter-spacing:.08em}.gesture-strip span:last-child{color:#ffe8dbad;font-size:12px;font-variant-numeric:tabular-nums}@media(max-width:720px){.stage{min-height:100dvh}.topbar{top:12px;left:12px;right:12px;align-items:flex-start}.brand{height:50px;max-width:48vw;padding-right:10px}.brand-mark{width:38px;height:34px}.brand-copy strong{font-size:13px}.brand-copy span{font-size:11px}.controls{height:50px;gap:6px}.control-button{min-width:46px;width:42px;padding:0}.control-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.camera-dock{right:12px;bottom:12px;width:168px;min-width:168px}.guide-panel{top:74px;left:12px;right:12px;width:auto;min-width:0;padding:9px}.guide-header{margin-bottom:7px}.guide-panel ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.guide-panel li{min-height:28px;padding:5px 7px}.guide-panel li span,.guide-panel li strong{font-size:11px}.camera-hint{min-height:28px;padding:6px 7px;font-size:10px}.gesture-strip{left:12px;bottom:12px;max-width:calc(100vw - 198px);height:42px;gap:9px;padding:0 10px}}@media(prefers-reduced-motion:reduce){.control-button,.icon-button{transition:none}}
