:root{--ink:#68535e;--muted:#a68e9b;--accent:#b47794;--line:#dfccd6;--tint:.01;--mono:"Courier New","Microsoft YaHei",monospace;--sans:"Microsoft YaHei","PingFang SC",sans-serif}
*{box-sizing:border-box}body{margin:0;padding:16px;background-color:#f1e9ef;background-image:radial-gradient(#cbb7c430 .7px,transparent .7px);background-size:7px 7px;color:var(--ink);font-family:var(--sans)}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #b47794;outline-offset:5px}button{border:1px solid var(--line);background:#fffaf8;border-radius:5px;padding:10px 15px}button:hover{background:#faedf3;border-color:#caa2b6}button:disabled{cursor:wait;opacity:.65}button:active{transform:translateY(1px)}[hidden]{display:none!important}
#stage{height:calc(100svh - 32px);min-height:500px;position:relative;overflow:hidden;border:1px solid #ccb4c2;border-radius:10px;box-shadow:0 0 0 4px #fff9,0 12px 50px #7053670d;background:radial-gradient(ellipse at 63% 42%,#fffdf7 0,#f8f1ee 50%,#f0e0e8 100%)}#camera,.tint,#particles,#tracking{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#camera{object-fit:cover;transform:scaleX(-1);opacity:0;transition:opacity .5s}body.camera-on #camera{opacity:1}.tint{background:rgba(245,171,196,var(--tint));z-index:1}#particles{z-index:2}#tracking{z-index:3}.viewfinder{position:absolute;inset:87px 30px 77px;pointer-events:none;z-index:2}.viewfinder i{position:absolute;width:17px;height:17px;border:0 solid #c8a4b859;}.viewfinder i:nth-child(1){top:0;left:0;border-top-width:1px;border-left-width:1px}.viewfinder i:nth-child(2){top:0;right:0;border-top-width:1px;border-right-width:1px}.viewfinder i:nth-child(3){bottom:0;left:0;border-bottom-width:1px;border-left-width:1px}.viewfinder i:nth-child(4){bottom:0;right:0;border-bottom-width:1px;border-right-width:1px}
header{position:absolute;top:0;left:0;right:0;z-index:8;height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 27px;border-bottom:1px solid #d6bdce66;background:#fffaf5b8;backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}.brand-mark{font:24px Georgia,serif;color:#b2829d}.brand>span:last-child{font:italic 23px Georgia,serif;display:flex;flex-direction:column;gap:4px}.brand small{font:7px var(--mono);letter-spacing:2px;color:#9b7b8f}.top-controls{display:flex;align-items:center;gap:9px}.live-dot{width:5px;height:5px;background:#bf9baa;box-shadow:0 0 0 3px #bf9baa14}.camera-on .live-dot{background:#afbc9b;box-shadow:0 0 0 3px #afbc9b22}#status{font:9px var(--sans);color:#927888;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#settingsButton{margin-left:13px;font:24px var(--mono);height:29px;width:35px;padding:0 0 8px;border-color:#e4d5dd;background:#fff7}
.welcome{position:absolute;left:63%;top:46%;transform:translate(-50%,-50%);z-index:5;width:min(500px,48%);text-align:center}.eyebrow{font:8px var(--mono);letter-spacing:2px;color:#ad8b9d}.eyebrow span{font-size:13px;margin:0 7px}.welcome h1{font:normal clamp(36px,5vw,70px)/1.08 Georgia,"Times New Roman",serif;letter-spacing:-2.5px;color:#80606f;margin:27px 0 23px}.welcome h1 em{font-weight:400;color:#b48098}.welcome>p{font-size:11px;line-height:1.9;letter-spacing:1px;color:#a08994;margin:0 0 27px}#start{display:block;width:208px;margin:0 auto;padding:14px 20px;font-size:11px;letter-spacing:2px;background:#b57e99;color:#fffaf6;border:1px solid #ad718f;box-shadow:3px 3px 0 #e6cfdb;border-radius:4px;text-align:left}#start:hover{background:#a76b89;box-shadow:2px 2px 0 #e0c2d1}#start span{float:right;font-size:15px}.text-button{display:block;border:0;background:none;margin:13px auto 25px;font-size:10px;padding:5px;letter-spacing:1px;color:#a18a97}.text-button:hover{background:none;color:var(--accent)}.welcome>small{font:8px var(--sans);color:#b29ca8;letter-spacing:1px}#error{font-size:11px;color:#ac5073;letter-spacing:0;margin-top:18px}.character-area{position:absolute;left:7%;bottom:110px;z-index:4;width:300px;display:flex;flex-direction:column;align-items:center}#character{width:290px;height:350px;transform-origin:50% 85%;will-change:transform}#sprite{width:100%;height:100%;image-rendering:pixelated}.character-caption{position:relative;display:flex;justify-content:center;align-items:center;gap:7px;font:8px var(--mono);letter-spacing:1.7px;color:#b28d9f;padding:7px 12px;margin-top:9px}.tiny-heart{font:12px Georgia,serif;color:#ba92a7}#musicStatus{position:absolute;top:100%;left:50%;transform:translateX(-50%);white-space:nowrap;font:9px var(--sans);color:#aa688b;letter-spacing:0}#speech{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);opacity:0;pointer-events:none;white-space:nowrap;padding:10px 15px;border:1px solid #d4bacb;background:#fffaf7eb;box-shadow:3px 3px 0 #ddc7d655;border-radius:3px;font:italic 16px Georgia,serif;transition:opacity .2s}#speech:after{content:"";position:absolute;left:50%;bottom:-5px;width:8px;height:8px;border-right:1px solid #d4bacb;border-bottom:1px solid #d4bacb;background:#fffaf7;transform:rotate(45deg)}#speech.visible{opacity:1}#word{position:absolute;left:62%;top:45%;transform:translate(-50%,-50%);z-index:4;opacity:0;pointer-events:none;font:italic clamp(45px,8vw,105px) Georgia,serif;color:#fff8fc;text-shadow:0 2px 20px #98637d88}#word.pop{animation:word-pop .7s ease-out}
.bottom-bar{position:absolute;bottom:0;left:0;right:0;height:59px;z-index:6;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#fffbf477;border-top:1px solid #ddc8d44d;backdrop-filter:blur(8px)}.room-note{font:italic 11px Georgia,serif;color:#b08c9f}.camera-note{font:7px var(--mono);letter-spacing:1.5px;color:#b398a8}#helpButton{position:absolute;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:1px;padding:8px 13px;background:#fffcf5ad;border-color:#e2cfdc;border-radius:4px}#helpButton span{margin-left:17px;color:#a77791}#helpButton:active{transform:translate(-50%,1px)}footer{position:absolute;z-index:9;bottom:74px;left:50%;transform:translateX(-50%);width:min(650px,calc(100% - 44px));padding:19px 23px 14px;border:1px solid #d9bdce;border-radius:5px;background:#fffaf7f5;box-shadow:4px 4px 0 #dcc5d455,0 10px 50px #6d4e6410;backdrop-filter:blur(20px)}.guide-title{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:1px;margin-bottom:18px}.guide-title button,.settings-heading button{border:0;background:none;padding:0;font:19px var(--mono);color:#a4879a;width:22px;height:22px}.guide-columns{display:grid;grid-template-columns:1fr 1.2fr;gap:35px}.gesture-card{font-size:10px}.gesture-card b{display:block;font-size:12px;font-weight:500;margin-bottom:13px}.gesture-card b small{font:9px var(--sans);color:#b397a6;margin-left:8px}.gesture-card>span{display:flex;justify-content:space-between;margin:9px 0;gap:15px;color:#a18a98}.gesture-card em{font-style:normal;color:#805f73}.gesture-card i{font:8px var(--sans);display:block;margin-top:15px;color:#ba9bad}.right-card{border-left:1px dashed #e4cedb;padding-left:25px}.word-row{display:flex;justify-content:space-between;gap:12px;padding-top:12px}.word-row>span{font:italic 22px Georgia,serif;display:flex;flex-direction:column;align-items:center;gap:12px;transition:transform .2s,color .2s}.word-row small{font:8px var(--sans);color:#b19aaa}.word-row .active{color:#d37aa3;transform:translateY(-4px)}.guide-note{border-top:1px solid #ecdee6;padding-top:12px;margin:16px 0 0;font-size:9px;color:#b096a6;line-height:1.7}
#settings{position:absolute;right:18px;top:80px;z-index:10;width:290px;max-height:calc(100% - 100px);overflow:auto;padding:22px;border:1px solid #d9bdce;border-radius:5px;background:#fffaf7f5;box-shadow:4px 4px 0 #dcc5d455,0 12px 50px #6d4e6410;backdrop-filter:blur(20px);scrollbar-width:thin;scrollbar-color:#d8bbcd transparent}.settings-heading{display:flex;align-items:center;justify-content:space-between}.settings-heading h2{font-size:13px;font-weight:500;letter-spacing:1px;margin:0}.settings-intro{font-size:9px;color:#b09aa6;margin:9px 0 24px}#settings label{display:flex;align-items:center;justify-content:space-between;font-size:10px;margin:20px 0;gap:10px;color:#98798c}#settings input[type=range]{width:127px;height:3px;accent-color:#ba8da5}#settings input[type=checkbox]{accent-color:#b17f99;width:14px;height:14px}.setting-divider{border-top:1px dashed #e6d4df;margin:23px 0}.check-label small{display:block;font-size:8px;color:#b69fab;margin-top:5px}#settings summary{font-size:10px;color:#ab8d9e;cursor:pointer;margin:25px 0 12px}.preview-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.preview-buttons button{font-size:9px;padding:7px 9px;border-color:#e4d1de;background:#fff8}#stopCamera{font-size:10px;width:100%;margin-top:20px;border-color:#e5d5df;background:transparent;color:#b595a8}.privacy-note{font-size:8px;color:#beaab5;text-align:center;margin:13px 0 0;line-height:1.7}
body.camera-on .character-area{left:3%;bottom:85px;width:250px}body.camera-on #character{width:235px;height:285px}body.camera-on .character-caption{background:#fff9;border:1px solid #e7d3de88;border-radius:3px;backdrop-filter:blur(6px)}body.camera-on #musicStatus{background:#fff9;padding:4px 8px;border-radius:3px}
@keyframes word-pop{0%{opacity:0;transform:translate(-50%,-45%) scale(.9)}20%,70%{opacity:1}100%{opacity:0;transform:translate(-50%,-65%) scale(1.04)}}
@media(max-width:850px){.camera-note{display:none}.character-area{left:3%;width:245px;bottom:115px}#character{width:235px;height:285px}.welcome{left:66%;width:55%}.welcome h1{font-size:48px}.eyebrow{font-size:7px;letter-spacing:1px}.eyebrow span{margin:0 3px}.welcome>p{font-size:10px;letter-spacing:0}}
@media(max-width:580px){body{padding:8px}#stage{height:calc(100svh - 16px);min-height:510px;border-radius:7px}header{height:58px;padding:0 15px}.brand>span:last-child{font-size:21px}.brand small{font-size:5px;letter-spacing:1.2px}.brand-mark{font-size:18px}.brand{gap:7px}#status{font-size:8px;max-width:115px}.live-dot{display:none}#settingsButton{margin-left:0}.top-controls{gap:7px}.viewfinder{inset:77px 17px 77px}.welcome{left:59%;top:37%;width:76%}.welcome h1{font-size:43px;letter-spacing:-1.7px;margin:20px 0 17px}.welcome>p{font-size:9px;max-width:210px;margin:0 auto 23px;line-height:1.8}.eyebrow{font-size:6px;letter-spacing:1px}.eyebrow span{font-size:10px}.welcome>small{font-size:7px}#start{width:180px;padding:13px 17px;font-size:10px}.text-button{font-size:9px;margin-bottom:17px}.character-area{left:-5%;bottom:79px;width:190px}#character{width:180px;height:217px}.character-caption{font-size:6px;letter-spacing:.7px;gap:4px}body.camera-on .character-area{left:0;bottom:80px;width:190px}body.camera-on #character{width:180px;height:217px}#speech{font-size:12px;padding:8px 10px;left:64%}.bottom-bar{height:56px;padding:0 15px}.room-note{font-size:9px;max-width:125px}#helpButton{position:static;transform:none;font-size:9px;padding:7px 10px}#helpButton:active{transform:translateY(1px)}#helpButton span{margin-left:9px}footer{width:calc(100% - 26px);padding:15px;bottom:69px}.guide-columns{grid-template-columns:1fr;gap:20px}.gesture-card>span{display:inline-flex;margin:5px 12px 5px 0;font-size:9px;gap:8px}.gesture-card b{margin-bottom:9px}.right-card{padding-left:0;border-left:0;border-top:1px dashed #e4cedb;padding-top:16px}.word-row{padding-top:0}.word-row>span{font-size:22px;gap:7px}.gesture-card i{margin-top:9px}.guide-note{font-size:8px}#settings{right:11px;top:70px;width:min(290px,calc(100% - 22px));max-height:calc(100% - 85px)}#word{left:60%;font-size:57px}#musicStatus{font-size:8px}}
@media(prefers-reduced-motion:reduce){#particles{display:none}#camera{transition:none}}
header{height:72px;border:0;background:none;backdrop-filter:none;padding:0 22px;pointer-events:none;z-index:8}header button{pointer-events:auto;background:#fffaf3c9;border:1px solid #d8bdcdbb;box-shadow:2px 2px 0 #e1cbd655;backdrop-filter:blur(8px);width:38px!important;height:34px!important;border-radius:4px}header #helpButton{position:static;transform:none;padding:0;font:25px Georgia,serif;letter-spacing:0;color:#b17b97}header #helpButton:active{transform:translateY(1px)}header #settingsButton{margin:0;padding:0 0 8px;font:24px "Courier New",monospace;color:#a47b91}#stage .viewfinder{inset:80px 27px 28px}#stage .character-area,body.camera-on #stage .character-area{bottom:38px}#musicStatus,#speech,#word{display:none!important}#stage footer{left:22px;top:72px;bottom:auto;transform:none;max-height:calc(100% - 92px);overflow:auto;width:min(650px,calc(100% - 44px))}#settings #start{width:100%;padding:11px 13px;font-size:10px;letter-spacing:0;margin:0 0 13px;box-shadow:none}#settings #error:empty{display:none}#settings #error{font-size:10px;line-height:1.7}#stage #settings{top:72px}#settings #status{font-size:9px;white-space:normal;max-width:none;line-height:1.7}#stage .character-caption{background:#fff9;border:1px solid #e7d3de88;border-radius:3px;backdrop-filter:blur(6px)}
@media(max-width:580px){header{height:60px;padding:0 15px}#stage footer{left:12px;top:63px;width:calc(100% - 24px)}#stage #settings{top:63px}#stage .viewfinder{inset:71px 17px 20px}#stage .character-area,body.camera-on #stage .character-area{bottom:26px}}
#stage header #helpButton,#stage header #settingsButton{display:grid;place-items:center;background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0;width:44px!important;height:40px!important;color:#b27e9c;border-radius:0}#stage header button:hover{background:transparent;color:#d28bb5}#stage header button:focus-visible{outline:1px dashed #c99bb7;outline-offset:3px}#stage header .pixel-heart{width:26px;height:22px;fill:currentColor;filter:drop-shadow(0 1px 0 #fff9)}#stage header .pixel-wings{width:40px;height:27px;filter:drop-shadow(0 1px 0 #fff9)}#settings .settings-heading{justify-content:flex-end;min-height:22px;margin-bottom:0}#settings .settings-intro{margin-top:4px}
#stage .character-caption,body.camera-on #stage .character-caption{background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:5px 0;margin-top:10px;border-radius:0}#skinName{display:block;width:142px;height:14px;font-size:0;color:transparent;letter-spacing:0;background:transparent url('assets/name-angel.svg') center/contain no-repeat;image-rendering:pixelated}#skinName[data-skin=pop]{width:118px;background-image:url('assets/name-pop.svg')}
#captureControls{position:absolute;z-index:8;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:18px;align-items:center}#captureControls button{background:#fff4;backdrop-filter:blur(4px);border:1px solid #f8eef4bd;color:#bd8ba9;width:44px;height:44px;padding:9px;border-radius:50%}#captureControls svg{width:24px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;shape-rendering:crispEdges}#recordButton span{display:block;width:15px;height:15px;border:1.5px solid currentColor;margin:auto;border-radius:50%}#recordButton.recording span{background:#cb7795;border-radius:2px;border-color:#cb7795}#recordTimer{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#fff9;padding:3px 8px;font:11px monospace;color:#b65b80}#captureResult{position:absolute;z-index:30;inset:5%;background:#fffaf8f7;border:1px solid #dabaca;padding:36px 15px 15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}#captureResult img,#captureResult video{max-width:100%;max-height:calc(100% - 70px);object-fit:contain}#closeCapture{position:absolute;right:8px;top:7px;border:0;background:none;font-size:22px;padding:0 8px}#captureResult>div{display:flex;gap:12px;align-items:center}#saveCapture,#shareCapture{font:12px sans-serif;color:#a16a88;border:1px solid #d9b8cc;background:#fff6;padding:8px 13px;text-decoration:none;border-radius:3px}
header button.gesture-hover{outline:2px dotted #d69bbc!important;outline-offset:3px}
#stage header #helpButton,#stage header #settingsButton{width:64px!important;height:64px!important}#stage header{height:78px;padding:0 12px}
#stage header{height:96px;padding:0 20px}#stage header #helpButton,#stage header #settingsButton{width:80px!important;height:72px!important}#stage #settings,#stage footer{top:94px}

#easterEgg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;image-rendering:pixelated}

#interactionToggle{position:absolute;right:20px;bottom:20px;z-index:12;background:#fffaf3cc;border:1px solid #c79eb5;border-radius:2px;padding:10px 12px;color:#91657e;font:12px "Courier New",monospace;box-shadow:2px 2px 0 #d9b7ca}
#interactionToggle[aria-pressed="false"]{color:#998d93;box-shadow:none}
.camera-only #tracking{display:none!important}
#character{touch-action:manipulation;cursor:pointer}
.pixel-dialog{position:absolute;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;padding:25px;background:#e9d9e344;backdrop-filter:blur(3px)}
.pixel-dialog>div{width:min(340px,100%);background:#fffaf5f5;border:1px solid #cda5bc;box-shadow:4px 4px 0 #d7b9ca;padding:26px 24px;text-align:center;color:#936a82}
.pixel-dialog h2{font:17px "Courier New",monospace;margin:0 0 18px}.pixel-dialog p{font:13px/1.9 sans-serif;margin:14px 0}.pixel-dialog button{margin-top:9px;background:#f1dce6;border:1px solid #cfa8be;color:#8a5f78;border-radius:0;padding:10px 25px;font:13px sans-serif}
@media(max-width:580px){#interactionToggle{right:14px;bottom:22px;padding:9px;font-size:11px}}

#interactionToggle{display:flex;align-items:center;gap:8px;background:none;border:0;box-shadow:none;padding:8px}
.switch-track{display:block;position:relative;width:42px;height:24px;border:1px solid #bd91aa;background:#e7c8d9;border-radius:16px;transition:background .18s}
.switch-thumb{position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fffaf4;box-shadow:0 1px 2px #8b64773b;transform:translateX(18px);transition:transform .18s}
#interactionToggle[aria-checked="false"] .switch-track{background:#ded6da;border-color:#c3b5bd}
#interactionToggle[aria-checked="false"] .switch-thumb{transform:translateX(0)}

.welcome-wings{width:27px;height:18px;display:inline-block;vertical-align:middle;color:inherit}.welcome-menu-icons{white-space:nowrap}

#landscapeButton{width:100%;margin:12px 0 0;padding:10px 12px;background:#f4e4ed;border:1px solid #d4b3c7;border-radius:2px;color:#936a82;font:12px sans-serif}
#stage:fullscreen{width:100vw;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}
@media(orientation:landscape) and (max-height:600px){
 body{padding:8px;overflow:hidden}
 #stage{height:calc(100dvh - 16px);min-height:0}
 #stage header{height:56px;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left))}
 #stage header #helpButton,#stage header #settingsButton{width:56px!important;height:48px!important}
 #stage #settings,#stage footer{top:58px;max-height:calc(100% - 74px);overflow:auto}
 #stage .character-area,body.camera-on #stage .character-area{left:max(10px,env(safe-area-inset-left));bottom:55px;width:min(205px,52svh)}
 #stage #character,body.camera-on #stage #character{width:100%;height:min(240px,60svh)}
 #stage #skinName{width:116px;height:12px}#stage #skinName[data-skin=pop]{width:98px}
 #stage .character-caption{margin-top:2px;padding:2px 0}
 #stage #captureControls{bottom:12px;gap:15px}#stage #captureControls button{width:38px;height:38px;padding:6px}
 #stage #interactionToggle{bottom:12px;right:max(12px,env(safe-area-inset-right))}
 .pixel-dialog{padding:12px}.pixel-dialog>div{padding:15px 22px;max-height:calc(100dvh - 48px);overflow:auto}.pixel-dialog p{margin:9px 0;font-size:12px}.pixel-dialog button{margin-top:4px;padding:8px 22px}
 #captureResult{inset:3%;padding-top:28px}
}
