:root{--forest:#214d3d;--forest-dark:#153529;--paper:#f7f7f2;--ink:#283d34;--muted:#627267;--line:#dce1d7;--yellow:#f4d38a;--coral:#d68078;--radius:28px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible{outline:3px solid #b7782d;outline-offset:5px}button{transition:background .18s,transform .18s}button:active{transform:scale(.97)}button[hidden],[hidden]{display:none!important}a{color:inherit}svg{width:24px;height:24px}button svg{fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.skip{position:fixed;top:-70px;z-index:20;background:white;padding:16px}.skip:focus{top:0}.header{max-width:1440px;margin:auto;padding:25px 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;font-size:21px;font-weight:650;letter-spacing:.03em}.brand svg{width:43px;height:43px;color:var(--forest)}.brand small{display:block;font-size:12px;font-weight:450;letter-spacing:.1em;color:var(--muted);margin-top:5px}.header-actions{display:flex;gap:13px}.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;color:var(--forest);border:0;border-radius:12px;background:transparent;font-size:14px;font-weight:550}.quiet-button:hover{background:#e8ecdf}main{max-width:1344px;margin:auto;padding:36px 48px 20px}.topline{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:27px}.eyebrow{font-size:13px;letter-spacing:.13em;color:var(--muted);margin:0 0 11px;font-weight:550}h1{font-size:clamp(24px,2.6vw,34px);font-weight:600;letter-spacing:-.025em;margin:0;line-height:1.4}.modes{display:flex;flex-shrink:0;gap:5px;padding:5px;background:#e9ede3;border:1px solid #e0e5d8;border-radius:18px}.modes button{padding:13px 26px;min-height:48px;border:0;background:transparent;border-radius:13px;color:var(--muted);font-weight:600}.modes button[aria-pressed=true]{background:var(--forest);color:white;box-shadow:0 3px 8px #214d3d20}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px}.stage{position:relative;background:#eeefe4;border:1px solid #e5e7d9;border-radius:var(--radius);overflow:hidden;min-height:670px;padding-bottom:20px}.stage-top{position:absolute;z-index:3;left:25px;right:25px;top:22px;display:flex;justify-content:space-between;align-items:center;gap:15px}.status{font-size:13px;background:#ffffffbb;padding:8px 12px;border-radius:20px;color:#5b665c}.status[data-state=live]{color:var(--forest)}.status[data-state=live]:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#38805d;margin-right:7px}.stage-caption{font-size:13px;color:#697266}.character-space{height:455px;position:relative;display:flex;align-items:center;justify-content:center;padding-top:55px}.character-glow{position:absolute;inset:40px 10% 0;border-radius:50%;background:radial-gradient(ellipse,#f9e9b9 0,#f3e8c850,transparent 70%)}#avatar{height:100%;width:100%;object-fit:contain;position:relative;z-index:1;display:none}.character-tag{position:absolute;bottom:23px;left:26px;z-index:2;font-size:12px;color:#6c755f;writing-mode:vertical-rl;letter-spacing:3px}.character-tag span{display:inline-block;font-size:24px;font-weight:500;margin-top:12px;color:var(--forest)}.camera-box{position:absolute;z-index:4;top:287px;right:21px;width:139px;height:125px;background:#e0e5d8;border:3px solid #fff;border-radius:19px;overflow:hidden;box-shadow:0 5px 15px #273f2410}#camera{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);display:none}#camera-placeholder{display:flex;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#738065;font-size:12px}#camera-placeholder svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}.camera-label{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#f8faf0dd;border-radius:8px;padding:2px 6px;font-size:10px;color:#506347;display:none}.speech{position:relative;text-align:center;padding:0 22px;z-index:3;min-height:105px}.speech-kicker{font-size:13px;color:#697362}.speech h2{font-size:26px;font-weight:600;margin:9px 0 8px;line-height:1.45}.speech p{font-size:15px;color:#637160;margin:0;line-height:1.6}.camera-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:22px 18px 0}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--forest);color:white;padding:15px 28px;min-height:52px;border:0;border-radius:16px;font-weight:550;font-size:16px;box-shadow:0 5px 10px #214d3d13}.primary-button:hover{background:var(--forest-dark)}.camera-actions p{width:100%;text-align:center;font-size:12px;color:#697362;margin:9px 0 0}.error{margin:12px 22px 0;background:#fff2e7;color:#885130;border:1px solid #ead2b8;padding:12px 15px;border-radius:12px;font-size:14px;line-height:1.6}.guide{padding-top:9px;display:flex;flex-direction:column}.guide h2{font-size:23px;font-weight:600;margin:7px 0 10px}.guide-heading p:last-child{font-size:14px;color:var(--muted);margin:0 0 22px}.emotion-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.emotion-card{display:flex;flex-direction:column;align-items:center;gap:10px;background:#fffefa;padding:15px 7px 14px;border:1px solid var(--line);border-radius:20px;color:var(--ink);min-height:131px}.emotion-card:hover{background:#f0f2e7;border-color:#94a889}.emotion-card[aria-pressed=true]{background:#e9eedf;border:2px solid #4d7058;padding:14px 6px 13px}.emotion-portrait{height:57px;width:66px;display:block;border-radius:20px;background:#eeeccf}.emotion-portrait.surprised{background-color:#f4e3bf}.emotion-portrait.angry{background-color:#f2d7cf}.emotion-portrait.sad{background-color:#dce7e7}.emotion-card strong{display:block;font-size:16px;font-weight:550}.emotion-card small{display:block;font-size:12px;margin-top:5px;color:var(--muted)}.discovery{margin-top:23px;border-top:1px solid var(--line);padding:20px 2px 0}.lesson-number{font-size:12px;letter-spacing:.1em;color:#79836e}.discovery h3{font-size:19px;margin:10px 0 9px;font-weight:550}.discovery p{font-size:14px;color:var(--muted);line-height:1.6;margin:0}.progress-track{height:5px;background:#e1e5d8;overflow:hidden;border-radius:5px;margin:21px 0 10px}.progress-track>span{display:block;background:#52755b;height:100%;width:0;transition:width .15s}.discovery p.progress-caption{font-size:12px;color:#6c7966;min-height:37px}.text-button{padding:10px 0;min-height:44px;border:0;background:none;color:var(--forest);text-decoration:underline;text-underline-offset:5px;font-size:14px}footer{font-size:13px;color:#718068;text-align:center;padding:25px 0 4px;line-height:1.8}footer span{margin-left:17px}dialog{border:1px solid var(--line);border-radius:26px;max-width:520px;width:calc(100% - 32px);padding:36px;color:var(--ink);background:var(--paper);box-shadow:0 25px 80px #0002}dialog::backdrop{background:#182c2580;backdrop-filter:blur(4px)}dialog h2{font-size:26px;line-height:1.5;font-weight:550}dialog p{font-size:15px;line-height:1.85;color:var(--muted)}dialog .primary-button{width:100%;margin-top:12px}.dialog-close{position:absolute;top:12px;right:12px;width:44px;height:44px;background:none;border:0;border-radius:50%;font-size:28px;color:var(--muted)}.dialog-close:hover{background:#e6eadf}
@media(min-width:1450px){.stage{min-height:720px}.character-space{height:495px}.camera-box{top:321px}.speech{min-height:110px}}
@media(max-width:1000px){.header{padding:22px 28px}main{padding:27px 28px 15px}.play-layout{grid-template-columns:minmax(0,1fr) 235px;gap:23px}.modes button{padding:11px 19px}.stage-caption{display:none}.camera-box{width:106px;height:100px;right:14px;top:305px}.speech h2{font-size:23px}.stage{min-height:675px}.emotion-grid{gap:9px}.guide-heading p:last-child{font-size:13px}}
@media(max-width:700px){.header{padding:17px 20px}.brand{font-size:18px;gap:10px}.brand svg{width:36px;height:36px}.brand small{font-size:10px;margin-top:4px}.header-actions{gap:0}.header-actions .quiet-button{padding:9px;font-size:12px}#sound svg{width:19px}.topline{display:block;margin-bottom:20px}.topline>.modes{margin-top:18px;display:grid;grid-template-columns:1fr 1fr;max-width:100%}.eyebrow{font-size:12px;margin-bottom:8px}h1{font-size:25px}main{padding:25px 16px 16px}.play-layout{grid-template-columns:1fr;gap:26px}.stage{min-height:602px;border-radius:24px;padding-bottom:21px}.stage-top{top:17px;left:18px;right:18px}.status{font-size:12px;padding:7px 10px}.character-space{height:373px;padding-top:40px}.character-tag{left:17px;bottom:18px;font-size:10px}.camera-box{top:247px;right:13px;width:90px;height:86px;border-width:2px;border-radius:14px}#camera-placeholder span{font-size:10px}.camera-label{font-size:9px}.speech h2{font-size:23px;margin-top:7px}.speech{padding:0 20px;min-height:117px}.speech p{font-size:14px}.camera-actions{margin-top:15px}.camera-actions p{font-size:11px;line-height:1.6}.primary-button{padding:14px 23px;font-size:15px;min-height:52px}.guide{padding:0 3px}.guide-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 12px}.guide-heading .eyebrow{display:none}.guide h2{font-size:20px;margin:0 0 15px}.guide-heading p:last-child{font-size:12px;margin:0}.emotion-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.emotion-card{min-height:120px;padding:10px 3px;border-radius:16px;gap:8px}.emotion-card[aria-pressed=true]{padding:9px 2px}.emotion-portrait{width:53px;height:48px}.emotion-card strong{font-size:15px}.emotion-card small{font-size:10px}.discovery{margin-top:20px;padding:18px 0 0}.discovery h3{font-size:18px}footer{font-size:11px;padding-top:25px}footer span{display:block;margin:3px 0 0}dialog{padding:30px 25px}dialog h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:700px){main{padding-top:20px}.topline>div>.eyebrow{display:none}.topline h1{font-size:23px}.topline>.modes{margin-top:14px}.topline{margin-bottom:16px}.character-space{height:330px}.stage{min-height:545px}.camera-box{top:211px}.speech{min-height:105px}}
@media(max-width:700px) and (max-height:750px){.header{padding-top:12px;padding-bottom:12px}main{padding-top:15px}.character-space{height:280px}.camera-box{top:175px}.stage{min-height:490px}.speech{min-height:98px}.speech h2{font-size:21px}.speech p{font-size:13px}.camera-actions{margin-top:10px}.topline h1{font-size:22px}}
.modes button{display:flex;flex-direction:column;gap:3px;align-items:center;padding:10px 27px}.modes small{font-size:11px;font-weight:450;opacity:.8;letter-spacing:.15em}.deck-button{background:#e6eddf}.deck-button span{font-size:12px;background:#fff8;padding:1px 6px;border-radius:6px}.header-actions{gap:6px}.reaction{position:absolute;z-index:5;top:94px;right:55px;min-width:83px;padding:15px 19px;border-radius:26px;font-size:22px;font-weight:650;background:#fff8dc;border:2px solid #ddbc61;color:#3a6447;opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s;pointer-events:none}.reaction.visible{opacity:1;transform:scale(1)}.reaction[data-kind=retry]{font-size:17px;background:#f3e8d7;color:#7c643f;border-color:#dcc39d}
.cards-dialog{max-width:1080px;width:calc(100% - 32px);max-height:91dvh;padding:25px 30px}.deck-header{display:flex;gap:20px;align-items:center;justify-content:space-between;position:sticky;top:-25px;z-index:2;padding:15px 0;background:var(--paper)}.deck-header h2{margin:0;font-size:26px}.deck-header h2 span{font-size:14px;color:var(--muted);margin-left:10px;font-weight:400}.deck-header .eyebrow{margin-bottom:6px}.deck-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:17px 14px;padding:8px 0}.deck-card{border:1px solid var(--line);border-radius:14px;background:white;padding:6px 6px 10px;overflow:hidden;color:var(--ink);font-size:16px;font-weight:550}.deck-card img{display:block;width:100%;height:auto;aspect-ratio:720/1074;object-fit:contain;border-radius:9px}.deck-card span{display:block;padding-top:7px}.deck-card:hover{border-color:#8aab79;background:#edf2e7;transform:translateY(-2px)}.deck-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:15px;font-size:13px;color:var(--muted)}.card-dialog{max-width:450px;text-align:center;padding:23px 28px;max-height:94dvh}.card-dialog h2{margin:7px 0 13px;font-size:24px}.card-art>img{display:block;max-height:53dvh;max-width:100%;width:auto;margin:auto;border-radius:13px;box-shadow:0 3px 16px #283d3412}.card-dialog>p{font-size:14px;line-height:1.6;margin:15px 0}.card-nav{display:flex;justify-content:space-between;margin-top:7px}.card-dialog .primary-button{font-size:15px}.card-dialog .dialog-close{top:6px;right:7px}#home-instructions{background:#e9eddf;border-radius:14px;padding:13px;font-size:14px}
@media(max-width:700px){.header{flex-wrap:wrap;gap:10px;padding:12px 16px}.brand{font-size:17px}.header-actions{gap:2px}.header-actions .quiet-button{padding:7px 8px;font-size:12px;min-height:40px}.deck-button span{display:none}.header-actions #parents{font-size:0;width:32px;padding:4px}.header-actions #parents:after{content:'?';font-size:16px;border:1px solid #a6b19f;border-radius:50%;width:20px;height:20px;line-height:20px}.modes button{padding:8px 20px;gap:2px}.modes small{font-size:10px}.reaction{right:23px;top:63px;font-size:19px;padding:11px 15px;min-width:70px}.cards-dialog{padding:15px 13px;width:calc(100% - 16px);max-height:94dvh;border-radius:20px}.deck-header{top:-15px;padding:9px 0 16px;gap:8px}.deck-header .eyebrow{font-size:10px}.deck-header h2{font-size:21px}.deck-header h2 span{font-size:12px;margin-left:4px}.deck-header>button{font-size:12px;padding:9px}.deck-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px}.deck-card{font-size:14px;padding:4px 4px 8px;border-radius:11px}.deck-bottom{display:block}.deck-bottom>span{display:block;font-size:12px}.card-dialog{padding:22px 20px}.card-art>img{max-height:52dvh}.card-dialog .primary-button{margin-top:0;min-height:46px;padding:11px 14px}}
.library-actions,.utility-actions{display:flex;align-items:center;gap:6px}.header-actions{gap:14px}.play-video-button{border:1px solid var(--line);white-space:nowrap}.play-video-button svg{width:21px;height:21px}.play-video-dialog{max-width:960px;max-height:94dvh;padding:22px;overflow:auto}.play-video-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.play-video-heading h2{margin:0;font-size:23px}.play-video-dialog video{display:block;width:100%;max-height:74dvh;aspect-ratio:16/9;background:#14281f;border-radius:14px}.play-video-dialog>p{margin-bottom:0}
@media(max-width:850px){.header{display:grid;grid-template-columns:1fr auto;gap:10px}.header-actions{display:contents}.utility-actions{grid-column:2;grid-row:1}.library-actions{grid-column:1/-1;grid-row:2;gap:10px}.library-actions .quiet-button{flex:1;min-height:44px;font-size:14px}.play-video-dialog{padding:14px;width:calc(100% - 20px);border-radius:20px}.play-video-heading{gap:8px;margin-bottom:12px}.play-video-heading h2{font-size:20px}.play-video-dialog video{border-radius:10px}.library-actions .deck-button span{display:inline}}

@media(max-width:700px) and (max-height:750px){.character-space{height:225px}.camera-box{top:140px}.stage{min-height:435px}}

#camera-note:empty{display:none}

.tongue-demo{margin-top:12px;align-self:stretch;border:1px solid var(--line);background:#fffefa;min-height:44px}

/* Avatar modes share a stage; only the selected renderer runs. */
.avatar-canvas{height:100%;width:100%;position:relative;z-index:1;object-fit:contain}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.render-notice{position:absolute;z-index:5;left:50%;top:75px;transform:translateX(-50%);max-width:85%;padding:7px 12px;background:#fffefaed;border:1px solid var(--line);border-radius:12px;font-size:13px;color:var(--forest);text-align:center}.stage-top{gap:8px}.character-space{padding-top:68px}@media(max-width:700px){.stage-top{left:13px;right:13px;top:12px}.character-space{padding-top:58px}.status{max-width:100%;line-height:1.35}.render-notice{top:64px;font-size:12px}}

.deck-card img,.card-art{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.deck-card img,.card-art img{pointer-events:none}.card-art{width:100%;margin:auto}
/* One playful mirror, with quiet secondary preview controls. */
.mirror-heading{display:block;text-align:center;margin-bottom:24px}.mirror-heading .eyebrow{letter-spacing:.08em}.mirror-intro{font-size:15px;color:var(--muted);margin:10px 0 0}.mirror-layout{display:block;max-width:980px;margin:auto}.mirror-stage{min-height:590px;padding-bottom:20px;background:radial-gradient(ellipse at 50% 30%,#fff9e9 0,#eeefe4 72%)}.mirror-stage .character-space{height:375px;padding-top:40px}.mirror-stage .camera-box{top:236px}.mirror-stage .speech{min-height:99px}.mirror-stage .speech h2{font-size:27px}.mirror-stage .camera-actions{margin-top:15px}.preview-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px auto 0;flex-wrap:wrap}.preview-controls>span{font-size:13px;color:var(--muted);margin-right:5px}.preview-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--line);border-radius:14px;padding:10px 15px;background:#fffefa;color:var(--forest);font-size:14px}.preview-button svg{width:18px;height:18px}.preview-button:hover,.preview-button[aria-pressed=true]{background:#f4edd5;border-color:#d9bb70}.preview-button[data-preview=cry]:hover,.preview-button[data-preview=cry][aria-pressed=true]{background:#e6f2f7;border-color:#9ac6db}.mirror-layout+footer{margin-top:15px}
@media(max-width:700px){.mirror-heading{margin-bottom:17px}.mirror-heading .eyebrow{display:block!important;font-size:11px}.mirror-heading h1{font-size:26px}.mirror-intro{font-size:12px;margin-top:8px}.mirror-stage{min-height:445px;padding-bottom:15px}.mirror-stage .character-space{height:272px;padding-top:35px}.mirror-stage .camera-box{top:174px;right:12px;width:77px;height:75px}.mirror-stage .speech{min-height:78px;padding:0 14px}.mirror-stage .speech h2{font-size:22px;margin:5px 0}.mirror-stage .speech p{font-size:13px}.mirror-stage .speech-kicker{font-size:11px}.mirror-stage .camera-actions{margin-top:9px}.mirror-stage .character-tag{left:14px;font-size:9px}.mirror-stage .character-tag span{font-size:19px}.preview-controls{gap:8px;margin-top:14px}.preview-controls>span{width:100%;text-align:center;margin:0}.preview-button{font-size:13px;padding:10px 12px}.mirror-heading+.mirror-layout{margin-bottom:0}footer{padding-top:17px}}
@media(max-width:700px) and (max-height:750px){.mirror-heading .eyebrow{display:none!important}.mirror-heading{margin-bottom:13px}.mirror-stage{min-height:397px}.mirror-stage .character-space{height:228px}.mirror-stage .camera-box{top:139px}.mirror-stage .speech{min-height:77px}.preview-controls>span{display:none}.preview-button{padding:8px 10px;font-size:12px}}

.draw-entry{background:#f2e6ca;border:1px solid #e0cea9;white-space:nowrap}.draw-entry svg{width:19px}.draw-dialog{max-width:600px;text-align:center;max-height:94dvh;padding:32px 28px 20px;overflow-y:auto}.draw-dialog h2{margin:10px 0 5px}.draw-dialog .eyebrow{padding:0 25px;font-size:11px}.draw-dialog #draw-hint{min-height:29px;margin:5px 0 15px}.draw-choices{display:flex;justify-content:center;gap:14px;padding:24px 0 28px;perspective:900px}.draw-back{width:29%;max-width:145px;aspect-ratio:2/3;border:1px solid #c7ad74;border-radius:15px;background:radial-gradient(circle at 50% 37%,#517361,#254d3e 65%);color:#efd99e;box-shadow:0 8px 20px #214d3d24;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:27px;position:relative;transform:rotate(-7deg);transition:transform .3s,box-shadow .3s}.draw-back:before{content:'';position:absolute;inset:7px;border:1px solid #ecdba950;border-radius:10px}.draw-back:nth-child(2){transform:translateY(-10px)}.draw-back:nth-child(3){transform:rotate(7deg)}.draw-back:not(:disabled):hover{transform:translateY(-16px);box-shadow:0 14px 24px #214d3d38}.draw-back>span:last-child{font-size:11px;letter-spacing:.12em}.draw-orbit{display:grid;place-items:center;width:65%;aspect-ratio:1;border:1px solid #e7d29977;border-radius:50%;font-size:34px}.draw-back:disabled{opacity:1}.draw-dialog[data-phase=shuffling] .draw-back{animation:shuffle-card .75s ease-in-out}.draw-dialog[data-phase=shuffling] .draw-back:nth-child(2){animation-delay:.07s}.draw-dialog[data-phase=shuffling] .draw-back:nth-child(3){animation-delay:.14s}.draw-dialog[data-phase=revealing] .draw-back{transform:rotateY(85deg);opacity:0;transition:transform .4s,opacity .4s}.draw-dialog[data-phase=revealed] #draw-result{animation:card-reveal .4s ease-out}.draw-dialog .card-art>img{max-height:44dvh;max-width:100%;width:auto;margin:auto;display:block;border-radius:12px}.draw-dialog #draw-caption{font-size:14px;margin:14px 0 0}.draw-dialog .draw-note{font-size:12px;margin:16px 0 0;color:var(--muted)}.draw-dialog .primary-button{width:auto;min-width:160px}.draw-dialog #draw-error{color:#885130;font-size:13px}.draw-dialog .card-art{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.draw-dialog .card-art img{pointer-events:none;-webkit-user-drag:none}
@keyframes shuffle-card{0%,100%{translate:0 0}45%{translate:18px -17px;rotate:9deg}75%{translate:-12px 5px;rotate:-6deg}}@keyframes card-reveal{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:700px){.library-actions{display:grid;grid-template-columns:auto 1fr 1.3fr;gap:7px}.library-actions .quiet-button{padding:8px 7px;font-size:11px}.draw-entry svg{width:16px}.preview-controls{gap:6px}.preview-button{padding:8px;font-size:11px}.preview-button svg{width:15px}.draw-dialog{padding:28px 18px 18px}.draw-choices{gap:10px}.draw-orbit{font-size:26px}.draw-back{border-radius:12px;gap:17px}.draw-back>span:last-child{font-size:9px}.draw-dialog h2{font-size:23px}.draw-dialog .card-art>img{max-height:42dvh}}

/* Camera remains a decoding input, never a visible mirror or placeholder. */
#camera.tracking-input{display:block!important;position:fixed!important;top:0;left:0;width:1px!important;height:1px!important;opacity:0;pointer-events:none;transform:none}
.preview-primary{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.preview-controls{display:block}.expression-more{max-width:640px;margin:10px auto 0;text-align:center}.expression-more>summary{cursor:pointer;color:var(--muted);min-height:44px;padding:12px;font-size:13px;list-style-position:inside}.expression-more>summary:focus-visible{outline:3px solid #b7782d;border-radius:12px}.expression-options{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:4px 0 8px}.expression-options .preview-button{background:#f0f1e8}.preview-button[data-preview=laugh]{background:#f3e5bf;border-color:#e2c888}.preview-button[data-preview=grin]{background:#fff9e8}.mirror-stage .character-space{padding-left:20px;padding-right:20px}
@media(max-width:700px){.preview-primary{gap:7px}.preview-primary .preview-button{font-size:12px;padding:9px 11px}.expression-more{margin-top:4px}.expression-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.expression-options .preview-button{font-size:12px;padding:8px 4px}.mirror-stage .character-tag{display:none}}
