:root{--bg:#0b0614;--ink:#f6eefc;--pink:#ff7eb6;--gold:#ffd54a;--red:#e8203f;--glass:rgba(255,255,255,.055);--line:rgba(255,255,255,.12);--d:0}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:"Zen Maru Gothic",system-ui,sans-serif;overscroll-behavior:none}
body{background:radial-gradient(120% 55% at 50% -5%,#3a1350 0%,#1a0a2a 35%,var(--bg) 70%) fixed}
button{font:inherit;cursor:pointer}
#app{max-width:480px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 2px) 12px calc(env(safe-area-inset-bottom) + 8px)}
.top{display:flex;justify-content:space-between;align-items:center;padding:8px 2px}
.brand{display:flex;flex-direction:column;line-height:1.05}.brand .jp{font-family:"Dela Gothic One",sans-serif;font-size:10px;letter-spacing:.35em;color:var(--pink)}
.brand .en{font-family:"Dela Gothic One",sans-serif;font-size:20px}.brand b,.gate h1 b{color:var(--gold);font-weight:400}
.topbtns{display:flex;gap:6px}
.chip{background:var(--glass);border:1px solid var(--line);color:var(--ink);border-radius:999px;padding:8px 11px;font-size:12px;font-weight:700}
.stage{position:relative;height:min(50dvh,500px);min-height:330px;border-radius:28px;overflow:hidden;border:1px solid var(--line);isolation:isolate;
background:radial-gradient(60% 50% at 50% 58%,rgba(255,126,182,.16),transparent 72%),radial-gradient(circle at 1px 1px,rgba(255,255,255,.06) 1px,transparent 1.6px) 0 0/9px 9px,linear-gradient(180deg,#1d0c31,#0c0616 85%);
box-shadow:inset 0 0 60px rgba(0,0,0,.55),0 20px 50px -22px rgba(255,126,182,.3)}
.stage::before{content:"";position:absolute;inset:-60%;z-index:-1;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg 3.4deg,rgba(255,240,250,.06) 3.4deg 4deg);opacity:calc(var(--d) * 1.2);transition:opacity .8s;animation:spin 70s linear infinite}
.stage::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 2px rgba(255,126,182,calc(var(--d) * .55));transition:box-shadow .5s}
@keyframes spin{to{transform:rotate(360deg)}}
#fx{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.cap{position:absolute;left:12px;top:12px;z-index:2;font-size:11px;font-weight:900;letter-spacing:.04em;background:#fff;color:#1a1024;padding:4px 10px 4px 9px;border-radius:4px;transform:rotate(-2deg);box-shadow:3px 3px 0 var(--pink);pointer-events:none}
.vert{position:absolute;left:12px;top:56px;writing-mode:vertical-rl;font-family:"Dela Gothic One",sans-serif;font-size:11px;letter-spacing:.45em;color:rgba(255,126,182,.4);pointer-events:none;z-index:1}
.bubble{position:absolute;top:44px;left:50%;transform:translate(-50%,6px) scale(.94);width:min(80%,330px);background:#fff;color:#1a1024;border-radius:20px;padding:10px 14px;font-weight:700;font-size:14.5px;line-height:1.38;box-shadow:0 10px 30px rgba(0,0,0,.35),4px 4px 0 var(--pink);opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;z-index:3}
.bubble.show{opacity:1;transform:translate(-50%,0) scale(1)}
.bubble::after{content:"";position:absolute;bottom:-10px;left:58%;border:10px solid transparent;border-top-color:#fff;border-bottom:0}
.gauge{position:absolute;right:10px;top:50%;transform:translateY(-38%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:5px;pointer-events:none}
.gj{font-family:"Dela Gothic One",sans-serif;font-size:11px;writing-mode:vertical-rl;color:var(--gold);opacity:.85}
.gtube{position:relative;width:14px;height:150px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);overflow:hidden}
.gfill{position:absolute;left:0;right:0;bottom:0;height:0;background:linear-gradient(0deg,#ffb800,#ffe066 60%,#fff7cf);box-shadow:0 0 16px rgba(255,200,0,.7);transition:height .5s}
.gfill::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(255,255,255,.35) 0 5px,transparent 5px 13px);background-size:100% 26px;animation:flowv 1.2s linear infinite}
@keyframes flowv{to{background-position:0 -26px}}
.gtube i{position:absolute;left:2px;right:2px;height:2px;background:rgba(26,16,36,.45)}
.gauge b{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:15px;color:var(--gold);text-shadow:0 0 12px rgba(255,200,0,.5)}
.gauge.danger .gtube{animation:throb .9s ease-in-out infinite}@keyframes throb{50%{box-shadow:0 0 0 4px rgba(255,126,182,.45)}}
.nametag{position:absolute;left:14px;bottom:12px;display:flex;flex-direction:column;gap:1px;pointer-events:none;z-index:2}
.nametag b{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:22px;line-height:1}.nametag span{font-size:11px;opacity:.65}
.nametag i{font-style:normal;font-size:11px;font-weight:700;color:var(--gold);background:rgba(255,213,74,.12);border:1px solid rgba(255,213,74,.32);padding:3px 9px;border-radius:999px;align-self:flex-start;margin-top:5px}
.hint{position:absolute;right:12px;bottom:10px;font-size:10px;opacity:.38;pointer-events:none;z-index:2}
.sfx{position:absolute;right:44px;top:34%;font-family:"Dela Gothic One",sans-serif;font-size:34px;color:var(--gold);-webkit-text-stroke:1.5px #1a1024;text-shadow:3px 3px 0 var(--pink);opacity:0;pointer-events:none;z-index:3}
.sfx.pop{animation:pop 1.5s ease-out}
@keyframes pop{0%{opacity:0;transform:rotate(-12deg) scale(.4)}14%{opacity:1;transform:rotate(-12deg) scale(1.18)}70%{opacity:1;transform:rotate(-10deg) scale(1)}100%{opacity:0;transform:rotate(-8deg) translateY(-16px)}}
.loading{position:absolute;inset:0;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;font-size:13px;font-weight:700;opacity:.8;z-index:4;pointer-events:none}
.loading span{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,126,182,.25);border-top-color:var(--pink);animation:spin 1s linear infinite}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;text-align:center;margin:10px 0 0}
.stats b{display:block;font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:15px}.stats span{font-size:10px;opacity:.55;font-weight:700}
.rules{margin-top:6px;text-align:center;font-size:12px;font-weight:900;color:var(--pink)}
.ask{margin-top:10px;padding:10px;border-radius:20px;background:linear-gradient(135deg,rgba(255,126,182,.22),rgba(255,213,74,.12));border:1px solid rgba(255,126,182,.45);animation:in .35s cubic-bezier(.2,1.4,.4,1)}
.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.btn{font-weight:900;border:0;border-radius:15px;padding:13px 10px;font-size:15px;color:#1a1024;transition:transform .12s}
.btn:active,.dock button:active,.chip:active,.opt:active{transform:scale(.94)}
.deny{background:#fff;box-shadow:3px 3px 0 var(--pink)}.allow{background:var(--gold);box-shadow:3px 3px 0 #b88400}
.here{width:100%;margin-top:8px;background:transparent;color:var(--ink);border:1.5px dashed rgba(255,213,74,.6)}
.chat{margin-top:10px;flex:1;min-height:120px;max-height:30dvh;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:4px 6px 4px 2px;-webkit-mask-image:linear-gradient(180deg,transparent,#000 22px);scrollbar-width:thin;scrollbar-color:rgba(255,126,182,.30) transparent}
.chat::-webkit-scrollbar{width:6px}
.chat::-webkit-scrollbar-track{background:transparent}
.chat::-webkit-scrollbar-thumb{background:rgba(255,126,182,.28);border-radius:999px}
.chat::-webkit-scrollbar-thumb:hover{background:rgba(255,126,182,.52)}
.msg{display:flex;gap:6px;align-items:flex-end;max-width:86%;animation:in .25s}
.msg span{padding:8px 12px;border-radius:16px;font-size:14px;line-height:1.38}
.msg.m span{background:#fff;color:#1a1024;border-bottom-left-radius:4px;font-weight:700}
.msg.m i{flex:none;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,var(--red),var(--pink));color:#fff;font-style:normal;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center}
.msg.u{align-self:flex-end}.msg.u span{background:var(--gold);color:#1a1024;border-bottom-right-radius:4px;font-weight:700}
.msg.s{align-self:center;max-width:100%}.msg.s span{font-size:11px;opacity:.6;padding:2px 8px;border:1px solid var(--line)}
.dock{margin-top:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.dock button{font-weight:700;background:var(--glass);border:1px solid var(--line);color:var(--ink);border-radius:15px;padding:8px 4px 7px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;transition:transform .12s,opacity .3s}
.dock .ic{font-size:19px;line-height:1}.dock button[disabled]{opacity:.3}
.say{margin-top:8px;display:flex;gap:6px}
.say input{flex:1;min-width:0;background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:999px;color:var(--ink);font:inherit;font-size:16px;padding:11px 16px;outline:none}
.say input:focus{border-color:rgba(255,126,182,.6)}
.say button{border:0;border-radius:999px;background:var(--pink);color:#1a1024;font-family:"Dela Gothic One",sans-serif;font-size:13px;padding:0 16px}
.foot{padding-top:10px;text-align:center;font-size:10.5px;opacity:.4}.link{background:none;border:0;color:inherit;text-decoration:underline;padding:0}
.sheet{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center;background:rgba(8,4,14,.7);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sheet-card{width:100%;max-width:480px;max-height:92dvh;overflow-y:auto;padding:18px 16px calc(env(safe-area-inset-bottom) + 18px);border-radius:28px 28px 0 0;background:linear-gradient(180deg,#22103a,#100819);border:1px solid var(--line);border-bottom:0;animation:up .35s cubic-bezier(.2,1.2,.4,1)}
@keyframes up{from{transform:translateY(40px);opacity:0}}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start}.sheet-head .jp{font-family:"Dela Gothic One",sans-serif;color:var(--pink);letter-spacing:.4em;font-size:11px}
.sheet h2{font-family:"Dela Gothic One",sans-serif;font-weight:400;margin:2px 0 4px;font-size:24px}
.x{background:var(--glass);border:1px solid var(--line);color:var(--ink);width:34px;height:34px;border-radius:50%}
.sheet h3{font-size:12px;letter-spacing:.06em;text-transform:uppercase;opacity:.6;margin:16px 0 8px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.grid .opt{display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 3px;border-radius:14px}
.grid .opt b{font-size:22px}.grid .opt span{font-size:10.5px;font-weight:900;text-align:center;line-height:1.15}.grid .opt em{font-style:normal;font-size:9px;opacity:.6}
.opts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.opt{background:var(--glass);border:1px solid var(--line);color:var(--ink);border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700}
.opt.on{border-color:var(--gold);background:rgba(255,213,74,.14);box-shadow:0 0 0 1px var(--gold) inset}
.role{font-size:12px;opacity:.75;margin:10px 0 0}.role b{color:var(--gold)}
.field{width:100%;background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:12px;color:var(--ink);font:inherit;font-size:16px;padding:10px 14px;outline:none}
.big{width:100%;padding:15px;font-size:16px;margin-top:18px}
.gate{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(8,4,14,.84);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.gate-card{max-width:420px;width:100%;text-align:center;padding:28px 22px 22px;border-radius:30px;background:radial-gradient(90% 60% at 50% 0%,rgba(255,126,182,.22),transparent 70%),linear-gradient(180deg,#1f0e31,#0f0719);border:1px solid var(--line);box-shadow:0 30px 80px rgba(0,0,0,.6);animation:in .5s}
.gate-jp{font-family:"Dela Gothic One",sans-serif;color:var(--pink);letter-spacing:.45em;font-size:12px}
.gate h1{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:34px;margin:8px 0 12px}.gate p{font-size:14px;line-height:1.55;opacity:.85;margin:0 0 4px}
.modes{display:grid;gap:8px;margin:16px 0 12px;text-align:left}.mode{padding:11px 14px;border-radius:16px;border:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.mode span{font-size:12px;opacity:.7}.mode.on{border-color:rgba(255,213,74,.7);background:rgba(255,213,74,.08)}.mode.off{opacity:.4}
.gate .age{font-size:11px;opacity:.55;margin-bottom:6px}
@keyframes in{from{opacity:0;transform:translateY(10px) scale(.98)}}
@media (min-height:840px){.stage{height:min(52dvh,540px)}}

.msg.typing span{display:flex;gap:4px;padding:11px 12px}.msg.typing b{width:6px;height:6px;border-radius:50%;background:#1a1024;opacity:.35;animation:dot 1s infinite}.msg.typing b:nth-child(2){animation-delay:.15s}.msg.typing b:nth-child(3){animation-delay:.3s}@keyframes dot{0%,100%{opacity:.25;transform:none}50%{opacity:.8;transform:translateY(-3px)}}

.acform{display:flex;flex-direction:column;gap:10px;margin-top:10px;text-align:left}
.chk{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.4;opacity:.85}.chk input{margin-top:2px;flex:none;width:18px;height:18px;accent-color:var(--pink)}
.err{color:#ff8fa8;font-size:13px;min-height:1em;margin:0}
#acct .link{margin-top:12px}
.memlist h3{margin:14px 0 6px}.memlist ul{margin:0;padding-left:18px;font-size:14px;line-height:1.45}.memlist li{margin:3px 0}
.memact{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
.link.danger{color:#ff8fa8;margin-top:14px;display:block}

.pick{display:flex;flex-direction:column;gap:10px;margin:14px 0 6px}
.pickcard{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto auto;column-gap:10px;text-align:left;padding:14px;border-radius:18px;border:1px solid var(--line);background:var(--glass);color:inherit;font:inherit;cursor:pointer}
.pickcard b{grid-row:1/4;font-size:34px;align-self:center}.pickcard strong{font-size:17px}.pickcard span{font-size:13px;opacity:.8;line-height:1.35}.pickcard em{font-style:normal;font-size:11px;color:var(--gold);margin-top:4px}
.pickcard:active{transform:scale(.98)}
.mode-chip{white-space:nowrap}
.rate{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin-top:8px}
.rate button{padding:9px 0;border-radius:10px;border:1px solid var(--line);background:var(--glass);color:inherit;font-weight:800}
.rate button:nth-child(n+8){background:rgba(255,80,120,.25)}
body.dom .vert{opacity:.25}

.seg{position:absolute;top:10px;right:10px;z-index:5;display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(20,10,30,.72);border:1px solid var(--line);backdrop-filter:blur(6px)}
.seg button{padding:5px 9px;border-radius:999px;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;font-size:11px;line-height:1.1;opacity:.6;white-space:nowrap}
.seg button.on{background:var(--gold);color:#1a1024;opacity:1}

/* compact setup sheets (v0.6.4): fit a phone screen without scrolling */
.sheet-card{padding:12px 14px calc(env(safe-area-inset-bottom) + 12px);border-radius:22px 22px 0 0}
.sheet h2{font-size:19px;margin:0 0 2px}.sheet-head .jp{font-size:10px}.x{width:30px;height:30px}
.sheet h3{font-size:10.5px;margin:9px 0 5px}
.grid{gap:5px}.grid .opt{padding:5px 2px;gap:1px;border-radius:12px}.grid .opt b{font-size:18px}.grid .opt span{font-size:10px}.grid .opt em{font-size:8.5px}
.sheet .opts{gap:5px;margin-top:0}.sheet .opt{padding:6px 10px;font-size:12px}
.sheet .role{font-size:11px;margin:6px 0 0}
.sheet .field{font-size:16px;padding:7px 12px}
.sheet .big{padding:12px;font-size:15px;margin-top:12px}
@media (max-height:700px){.grid .opt em{display:none}.sheet h3{margin:6px 0 3px}.sheet .opt{padding:4px 8px}.sheet .big{margin-top:8px;padding:10px}.sheet .role{margin-top:4px}.sheet-card{padding-top:9px}.sheet .field{padding:5px 12px}.grid .opt{padding:4px 2px}}

/* v0.6.5: game screen fits the phone, answers in the dock, short bubbles */
#app{height:100dvh;min-height:0;padding-bottom:calc(env(safe-area-inset-bottom) + 4px)}
.top{padding:4px 2px}
.stage{flex:none;height:clamp(250px,46dvh,520px);min-height:0}
@media (min-height:840px){.stage{height:clamp(250px,50dvh,540px)}}
.stats{margin-top:6px}.stats b{font-size:14px}.stats span{font-size:9.5px}
.rules{margin-top:3px}
.chat{flex:1 1 0;min-height:56px;max-height:none;margin-top:6px}
.dock{margin-top:6px}.dock button{padding:6px 4px 5px}
.dock.answers{grid-template-columns:repeat(3,1fr);animation:in .3s cubic-bezier(.2,1.4,.4,1)}
.dock.answers button{border-color:rgba(255,213,74,.6);background:rgba(255,213,74,.1)}
.dock.answers button[data-a=allow]{background:var(--gold);color:#1a1024;border-color:var(--gold)}
.say{margin-top:6px}.say input{padding:9px 14px}
.foot{padding-top:4px;font-size:9.5px}
.bubble{width:max-content;max-width:min(41%,200px);top:86px;left:12px;transform:translateX(-6px) scale(.94);transform-origin:right top;padding:7px 11px;font-size:13px;line-height:1.3;border-radius:16px}
.bubble.show{transform:none}
.bubble #say{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.bubble::after{left:auto;right:-9px;top:12px;bottom:auto;border:9px solid transparent;border-left-color:#fff;border-right:0}
/* v0.6.6: bubble tail follows her head height (set by mochi3d.js as --hy) */
.bubble{top:clamp(44px,calc(var(--hy,106px) - 22px),55%)}
/* v0.6.7: bubble hugs her face (right edge anchored at head x), smoothed position, no jitter */
.bubble{left:auto;right:calc(100% - var(--hx,195px) + 30px);max-width:min(200px,calc(var(--hx,195px) - 44px));transition:opacity .25s,transform .25s,top .6s ease-out,right .6s ease-out;will-change:top,right}
/* v0.6.8: softer bubble, a bit more gap to her head */
.bubble{right:calc(100% - var(--hx,195px) + 50px);max-width:min(200px,calc(var(--hx,195px) - 64px));
 background:linear-gradient(180deg,#ffffff 0%,#fff3f8 100%);color:#2a1630;border-radius:18px;padding:8px 13px;font-weight:700;font-size:13px;line-height:1.35;
 border:1px solid rgba(255,126,182,.35);box-shadow:0 6px 18px rgba(20,6,30,.35),0 0 0 4px rgba(255,126,182,.12);
 transform:translateY(4px) scale(.96);transform-origin:right center;
 transition:opacity .3s ease,transform .35s cubic-bezier(.2,1.3,.4,1),top .6s ease-out,right .6s ease-out}
.bubble.show{transform:none}
.bubble::after{content:"";position:absolute;right:-6px;left:auto;bottom:auto;top:14px;width:12px;height:12px;border:0;
 background:#fff6fa;border-right:1px solid rgba(255,126,182,.35);border-top:1px solid rgba(255,126,182,.35);border-radius:0 3px 0 0;transform:rotate(45deg)}
/* v0.7.5 toilet trip */
.away{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);padding:10px 18px;border-radius:999px;background:rgba(20,10,30,.72);border:1px solid rgba(255,213,74,.5);color:#fff;font-weight:800;font-size:15px;z-index:4;animation:in .4s ease-out}
.away[hidden]{display:none}
/* v0.7.6 gender picker next to "She calls you" */
.youRow{display:flex;gap:8px;align-items:center}.youRow .field{flex:1;min-width:0;height:36px;padding:4px 10px}
.gsel{display:flex;gap:5px;flex-wrap:nowrap;margin:0;flex:none}.gsel .opt{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:36px;padding:0;flex:none;color:var(--ink)}.gsel .opt svg{display:block}.gsel .opt.on{color:var(--gold)}
/* v0.7.9 command overview sheet (📜) */
.cmdlist h3:first-child{margin-top:8px}
.cmdlist .opts{gap:6px}
.sheet .cmdlist .opt{padding:7px 11px;font-size:12.5px}
.topbtns{gap:5px}.topbtns .chip{padding:8px 10px}
@media (max-height:700px){.sheet .cmdlist .opt{padding:5px 9px;font-size:12px}}
/* v0.8.0 live button in the header */
.topbtns{gap:4px}.topbtns .chip{padding:8px 9px}
@media (max-width:380px){.topbtns{gap:3px}.topbtns .chip{padding:7px 6px;font-size:11px}.brand .jp{display:none}.brand .en{font-size:16px}}

/* v0.8.4 model load error: replaces the endless spinner, matches the pink chat-send button */
.loading.loaderr{pointer-events:auto;opacity:1;gap:8px;text-align:center;padding:0 28px;background:rgba(11,6,20,.55)}
.loaderr b{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:16px;color:var(--pink)}
.loaderr small{font-size:12px;font-weight:600;opacity:.75;max-width:240px;line-height:1.35}
.loaderr button{margin-top:6px;border:0;border-radius:999px;background:var(--pink);color:#1a1024;font-family:"Dela Gothic One",sans-serif;font-size:13px;padding:10px 22px;box-shadow:0 4px 18px rgba(255,126,182,.35)}
.loaderr button:active{transform:scale(.94)}
/* v0.9.1 (Alex): header chips looked too long on phones. "⚡ ×5" wrapped to 2 lines and stretched every chip to 52 px. One line, equal 34 px height. */
.topbtns{display:flex;align-items:center}
.topbtns .chip{white-space:nowrap;height:34px;min-width:34px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;line-height:1}
@media (max-width:420px){.topbtns{gap:4px}.topbtns .chip{height:32px;min-width:32px;padding:0 6px}}
@media (max-width:340px){.topbtns{gap:3px}.topbtns .chip{height:30px;min-width:30px;padding:0 5px}}
/* v0.9.1: the 📜 sheet must fit without scrolling (was 561/505 at 390x550, 721/695 at 390x757) */
.sheet .cmdlist .opts{gap:5px}
.sheet .cmdlist .opt{padding:6px 10px;font-size:12px}
.sheet .cmdlist h3{margin:9px 0 5px}
#cmdNote{font-size:11.5px;line-height:1.35}
@media (max-height:700px){.sheet .cmdlist .opts{gap:4px}.sheet .cmdlist .opt{padding:4px 8px;font-size:11.5px}.sheet .cmdlist h3{margin:5px 0 3px}#cmdNote{font-size:10.5px;margin-bottom:2px}}
/* v0.9.4 (Alex): 📜 Menu sits next to the chat input in /play too (same look as /live); the header slot is now 🔄 Reset */
.say .menub{flex:none;display:flex;align-items:center;gap:3px;background:#1a1024;border:1.5px solid var(--gold);color:var(--gold);border-radius:999px;font-family:inherit;font-size:12.5px;font-weight:900;padding:0 11px 0 9px;box-shadow:0 0 10px rgba(255,213,74,.35)}
.say .menub span{font-size:16px}
@media (max-width:340px){.top .brand .en{font-size:14px}.topbtns{gap:2px}.topbtns .chip{padding:0 4px}.say .menub{padding:0 8px 0 7px;font-size:11.5px}}
/* v0.9.6 (Alex): the logo links back to the website (/) */
a.brand{color:inherit;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
/* v0.9.7 DOM timer cards (Alex 2026-11-05: the hold timer is important and must be big on screen; task timers below it) */
.timers{position:absolute;left:50%;right:auto;bottom:48px;transform:translateX(-50%);z-index:6;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;max-width:calc(100% - 20px);pointer-events:none}
.stage.timing .hint{opacity:0}
.tcard{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:20px;background:rgba(20,10,30,.8);border:1.5px solid rgba(255,213,74,.55);box-shadow:0 8px 24px rgba(0,0,0,.4);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.tcard[hidden]{display:none}
.tring{position:relative;width:46px;height:46px;flex:none}
.tring svg{width:100%;height:100%;transform:rotate(-90deg)}
.tring circle{fill:none;stroke:rgba(255,255,255,.14);stroke-width:4}
.tring circle.tp{stroke:var(--gold);stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc((1 - var(--p,1)) * 100);transition:stroke-dashoffset .9s linear}
.tring span{position:absolute;inset:0;display:grid;place-items:center;font-size:19px}
.ttx{display:flex;flex-direction:column;line-height:1.05}
.ttx small{font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;opacity:.7;max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ttx b{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:28px;color:var(--gold);text-shadow:0 0 14px rgba(255,200,0,.45);font-variant-numeric:tabular-nums}
.tcard.task{padding:4px 12px 4px 4px;border-color:rgba(255,126,182,.55)}
.tcard.task .tring{width:32px;height:32px}.tcard.task .tring span{font-size:14px}
.tcard.task .tring circle.tp{stroke:var(--pink)}
.tcard.task .ttx b{font-size:18px;color:#fff;text-shadow:none}
.tcard.hot{border-color:#ff5d8f;animation:tpulse 1s ease-in-out infinite}
.tcard.hot .ttx b{color:#ff8fb3}
@keyframes tpulse{50%{box-shadow:0 0 0 5px rgba(255,93,143,.35),0 8px 24px rgba(0,0,0,.4)}}
.tcard.over{border-color:var(--pink)}.tcard.over .ttx b{color:var(--pink)}
@media (max-height:700px){.tring{width:38px;height:38px}.ttx b{font-size:23px}.tcard{padding:4px 11px 4px 4px}}
/* v0.9.8 DOM task bar (her open task with Done / Can't), takes the place of the rules line while shown */
.taskbar{display:flex;align-items:center;gap:6px;margin:6px 0 0;padding:4px 4px 4px 11px;border-radius:14px;background:rgba(255,126,182,.12);border:1px solid rgba(255,126,182,.45)}
.taskbar[hidden]{display:none}
.taskbar span{flex:1;min-width:0;font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.taskbar button{flex:none;height:30px;padding:0 10px;border-radius:10px;border:1px solid var(--line);background:rgba(20,10,30,.7);color:inherit;font:inherit;font-size:12px;font-weight:800;white-space:nowrap}
.taskbar #tbDone{background:var(--gold);color:#1a1024;border-color:transparent}
@media (max-width:340px){.taskbar button{padding:0 7px;font-size:11px}.taskbar span{font-size:11.5px}}
/* v0.9.9 dom setup in two pages */
#dmP1[hidden],#dmP2[hidden]{display:none}
#dmBack{display:block;margin:8px auto 0;opacity:.7}
#domSheet h3 small{font-size:10px;opacity:.6;font-weight:700;text-transform:none;letter-spacing:0}

/* v0.9.21 step 5: AI offline banner in the game (absolute inside the stage, so it never adds page height) and the live-room nap badge */
.offban{position:absolute;top:48px;left:50%;transform:translateX(-50%);z-index:6;width:max-content;max-width:calc(100% - 84px);padding:6px 12px;border-radius:999px;background:rgba(20,10,30,.88);border:1px solid rgba(255,213,74,.5);color:#fff;font-size:12px;font-weight:800;line-height:1.3;text-align:center;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.offban[hidden]{display:none}
.offban.nudge{animation:offnudge .55s ease-in-out 2}
@keyframes offnudge{50%{transform:translateX(-50%) scale(1.07);border-color:var(--pink)}}
body.aioff .bubble{opacity:0}
.watch{position:relative}.watch .napb{position:absolute;top:-4px;right:-6px;font-size:11px;line-height:1;pointer-events:none;filter:drop-shadow(0 1px 2px #000)}

/* v0.9.24 (Alex): blocking overlays (age gate, account, mode picker) get a site nav row (brand = home, Live, Home); account secondary actions restyled */
.gate.nv{align-items:flex-start;overflow-y:auto;padding-top:calc(env(safe-area-inset-top) + 60px)}
.gate.nv .gate-card{margin:auto}
.gnav{position:absolute;top:0;left:0;right:0;max-width:480px;margin:0 auto;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;padding:calc(env(safe-area-inset-top) + 8px) 14px 6px}
.gnav .brand{color:var(--ink);text-decoration:none}
.gbtns{display:flex;gap:6px;align-items:center}
.gnav .chip{text-decoration:none;white-space:nowrap;height:34px;display:inline-flex;align-items:center;padding:0 12px;box-sizing:border-box}
#acct .acalt{margin:14px 0 0;font-size:14px;opacity:1}
#acct .acalt span{opacity:.7}
.txtbtn{background:none;border:0;padding:4px 2px;font:inherit;font-weight:900;color:var(--pink);cursor:pointer}
.ordiv{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:11px;letter-spacing:.2em;text-transform:uppercase;opacity:.45}
.ordiv:before,.ordiv:after{content:"";flex:1;height:1px;background:var(--ink);opacity:.35}
.livecta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:8px;row-gap:0;width:100%;box-sizing:border-box;text-decoration:none;color:var(--ink);background:var(--glass);border:1px solid rgba(255,126,182,.5);box-shadow:none}
.livecta .dot{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px rgba(232,32,63,.28);animation:livepulse 1.6s ease-in-out infinite}
.livecta small{flex-basis:100%;font-weight:700;font-size:11px;opacity:.6}
@keyframes livepulse{50%{opacity:.35}}
@media (max-width:380px){.gnav .brand .jp{display:none}.gnav .brand .en{font-size:16px}.gnav .chip{height:32px;padding:0 9px;font-size:11px}}
@media (max-height:700px){.gate.nv{padding-top:calc(env(safe-area-inset-top) + 50px)}.gnav{padding-top:calc(env(safe-area-inset-top) + 6px)}.gate.nv .gate-card{padding:18px 18px 16px}.gate.nv h1{font-size:28px;margin:6px 0 8px}.gate.nv p{font-size:13px;line-height:1.45}.gate.nv .age{font-size:11px}.pick{margin:10px 0 4px}.pickcard{padding:11px}#acct .acalt{margin-top:10px}.ordiv{margin:6px 0}.livecta{padding:9px 10px}}
#acct .err:empty{display:none}
@media (max-height:760px){#acct .gate-card{padding:16px 16px 14px}#acct .gate-jp{font-size:10px;letter-spacing:.3em}#acct h1{font-size:23px;margin:4px 0 6px}#acct .gate-card>p{font-size:12px;line-height:1.4}#acct .acform{gap:7px;margin-top:8px}#acct .field{padding-top:8px;padding-bottom:8px}#acct .chk{font-size:11px}#acct .big{padding:11px;margin-top:2px}#acct .acalt{margin-top:8px;font-size:13px}#acct .ordiv{margin:4px 0 6px}#acct .livecta{padding:9px 10px}#acct .livecta small{flex-basis:auto}}
@media (max-width:380px) and (max-height:760px){#acct h1{font-size:20px}#acct .livecta small{display:none}}
/* v0.9.25 (Alex): one header size system for /play, /live and the overlay nav (.gnav). Live pills were wider/bigger and the logo differed (play 20px+jp vs live 16-18px). Selectors start with "body " so they beat the older per-page rules (incl. live.html's inline style). Steps: browser (>480) 36px chips 12.5px, logo 20px + jp; phones <=480 32px 11.5px, logo 16.5px, no jp; <=370 30px 11px, logo 15.5px; <=340 28px 10.5px, logo 14px. */
body .top .brand .jp,body .gnav .brand .jp{display:block;font-size:10px}
body .top .brand .en,body .gnav .brand .en{font-size:20px}
body .top .topbtns,body .top .livebar,body .gnav .gbtns{gap:6px}
body .top .topbtns .chip,body .top .livebar>*,body .gnav .gbtns .chip{box-sizing:border-box;height:36px;min-width:36px;padding:0 13px;font-size:12.5px;font-weight:800;line-height:1;gap:6px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
body .top .livebar .watch{font-size:12.5px}
body .top #memBtn,body .top #resetTop,body .top #dailyTopBtn{padding:0;width:36px;line-height:1;font-size:16px;font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
body .top #hubBtn{padding:0;width:36px;line-height:1}
@media (max-width:480px){
body .top .brand .jp,body .gnav .brand .jp{display:none}
body .top .brand .en,body .gnav .brand .en{font-size:16.5px}
body .top .topbtns,body .top .livebar,body .gnav .gbtns{gap:4px}
body .top .topbtns .chip,body .top .livebar>*,body .gnav .gbtns .chip{height:32px;min-width:32px;padding:0 9px;font-size:11.5px;gap:5px}
body .top .livebar .watch{font-size:11.5px}
body .top #memBtn,body .top #resetTop,body .top #dailyTopBtn{padding:0;width:32px;font-size:15px}
body .top #hubBtn{padding:0;width:32px}}
@media (max-width:400px){
body .top .brand .en,body .gnav .brand .en{font-size:15.5px}
body .top .topbtns,body .top .livebar,body .gnav .gbtns{gap:4px}
body .top .topbtns .chip,body .top .livebar>*,body .gnav .gbtns .chip{height:30px;min-width:30px;padding:0 7px;font-size:11px;gap:4px}
body .top .livebar .watch{font-size:11px}
body .top #memBtn,body .top #resetTop,body .top #dailyTopBtn{padding:0;width:30px;font-size:14px}
body .top #hubBtn{padding:0;width:30px}}
@media (max-width:340px){
body .top .brand .en,body .gnav .brand .en{font-size:14px}
body .top .topbtns,body .top .livebar,body .gnav .gbtns{gap:3px}
body .top .topbtns .chip,body .top .livebar>*,body .gnav .gbtns .chip{height:28px;min-width:28px;padding:0 6px;font-size:10.5px;gap:3px}
body .top .livebar .watch{font-size:10.5px}
body .top #memBtn,body .top #resetTop,body .top #dailyTopBtn{padding:0;width:28px;font-size:13px}
body .top #hubBtn{padding:0;width:28px}}
/* v0.9.26 (Alex): Go private overflowed on desktop: with real viewers "👁 128 watching" made the live bar 45 px wider than the 456 px header (the earlier check used "👁 0" without the word). The word is dropped everywhere ("👁 128" like on phones); the 30 px tier now starts at 400 px so a 3-digit count fits at 375. */
body .top .livebar .watch .wl{display:none}
@media (max-width:370px){body .top .livebar>*{padding:0 5px}}
@media (max-width:340px){body .top .livebar{gap:2px}body .top .livebar>*{padding:0 4px;font-size:10px;gap:3px}body .top .livebar .watch{font-size:10px}}

/* v0.10 step 1 (Alex 2026-11-07): drops 💧 header chip, drops sheet, live input lock + account sheet */
body .top #dropsBtn,body .top #liveBtn,body .top #modeBtn{padding:0 10px;gap:4px}
#dropsBtn b,#liveBtn b,#modeBtn b,.lvdrops b{font-weight:800}
body .top #modeBtn.on{border-color:rgba(255,213,74,.65);background:rgba(255,213,74,.14);color:var(--gold)}
@media (max-width:400px){body .top #dropsBtn,body .top #liveBtn,body .top #modeBtn{padding:0 6px;gap:3px}}
/* ≤340 px: the 5th chip (💧) needs 28 px more; logo 14 → 12 px on /play, /live and the overlay nav alike (one size system), 2 px chip gaps */
@media (max-width:340px){body .top .brand .en,body .gnav .brand .en{font-size:12px}body .top .topbtns{gap:2px}body .top .topbtns .chip{padding:0 4px}body .top #dropsBtn{padding:0 3px;gap:0}}
.say .lvdrops{flex:none;border:1px solid var(--line);background:var(--glass);color:var(--ink);font-family:inherit;font-size:11.5px;font-weight:800;padding:0 9px;display:inline-flex;align-items:center;gap:3px}
.say .lvdrops[hidden]{display:none}
.say.locked input{opacity:.55;cursor:pointer}
.say.locked button[type=submit]{background:rgba(255,255,255,.14);color:rgba(255,255,255,.45)}
.drsheet .drbal{display:flex;align-items:baseline;gap:8px;margin:8px 0 2px}
.drsheet .drbal b{font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:34px;line-height:1.1}
.drsheet .drbal span{opacity:.75;font-size:13px}
.drsheet .drprice{font-size:12px;opacity:.8;margin:0 0 10px}
.drsheet .drpacks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.drsheet .drpack{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid var(--line);font-size:14px}
.drsheet .drpack span{opacity:.8;font-weight:700}
.drsheet .drcode{display:flex;align-items:center;gap:8px;margin:12px 0 0;font-size:12px}
.drsheet .drcode span{opacity:.75}
.drsheet .drcode b{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:16px;letter-spacing:.12em;user-select:all;-webkit-user-select:all}
.drsheet .drcode .chip{margin-left:auto;padding:6px 12px}
.drsheet .drsoon{text-align:center;font-size:13px;opacity:.8;margin:12px 0 0}
.drsheet .drtop{display:block;text-align:center;text-decoration:none;margin-top:12px}
@media (max-width:380px){.say .lvdrops{padding:0 7px;font-size:11px;gap:2px}}
@media (max-width:340px){.say .lvdrops{padding:0 5px;font-size:10.5px;gap:1px}}
#lvAcct .acalt{margin:12px 0 0;font-size:13px}
#lvAcct .acalt span{opacity:.7}
#lvAcct .err:empty{display:none}

/* v0.10.1: account tabs (New account | Log in) on /play #acct and /live #lvAcct; account row + delete in the drops sheet */
.actabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:12px 0 2px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid var(--line)}
.actab{border:0;border-radius:999px;padding:10px 6px;font:inherit;font-size:14px;font-weight:800;color:var(--ink);background:transparent;opacity:.72;cursor:pointer;white-space:nowrap}
.actab.on{background:var(--pink);color:#1a1024;opacity:1;box-shadow:0 4px 14px rgba(255,126,182,.35)}
#lvAcct .actabs{margin:10px 0 6px}
@media (max-height:760px){#acct .actabs{margin:8px 0 0}#acct .actab{padding:8px 6px;font-size:13px}}
.memact{grid-template-columns:1fr}
.drsheet .drme{display:flex;align-items:center;gap:8px;margin:4px 0 2px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:13px}
.drsheet .drme span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.9}
.drsheet .drme b{color:var(--pink)}
.drsheet .drme .chip{margin-left:auto;flex:none;padding:6px 12px;height:auto}
.drsheet .drdel{display:block;margin:30px auto 0;font-size:11px;text-align:center;opacity:.5}
.drsheet .drset{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:13px}
.drsheet .drset[hidden]{display:none}
.drsheet .drset span{min-width:0;flex:1}
.drsheet .drset small{display:block;font-size:11px;opacity:.6}
.drsheet .drset .chip{flex:none;padding:6px 12px;height:auto}
.drsheet .drset .chip.on{border-color:rgba(255,213,74,.6);color:var(--gold)}
.drsheet .drset .chip:disabled{opacity:.5}
#wheelSheet .sheet-card{overflow:hidden} /* the turning disc's corners must not open a scroll bar */
#sheet .sheet-card,#domSheet .sheet-card{max-height:96dvh;padding:10px 14px calc(env(safe-area-inset-bottom) + 10px)}
#sheet h3,#domSheet h3{margin:7px 0 4px}
#sheet .role,#domSheet .role{margin:5px 0 0}
#sheet .sc-you{display:flex;align-items:center;gap:8px;margin-top:7px}
#sheet .sc-you label{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;opacity:.6;font-weight:700;white-space:nowrap;flex:none}
#sheet .sc-you .field{flex:1;min-width:0;padding:4px 10px;font-size:16px;height:34px}
#sheet .opts,#domSheet .opts{gap:4px}
#sheet .opt,#domSheet .opt:not(.gsel-btn){padding:5px 9px;font-size:11.5px}
#domSheet .gsel .opt{padding:0}
#sheet .grid .opt{padding:5px 2px}
#sheet .big,#domSheet .big{margin-top:9px;padding:11px}
@media (max-width:480px){#sheet .grid .opt em{display:none}#sheet .grid .opt{padding:4px 2px}#sheet .grid .opt b{font-size:17px}#sheet .opt,#domSheet .opt{padding:4.5px 8px;font-size:11.5px}#domSheet .gsel .opt{padding:0}#sheet h3,#domSheet h3{margin:6px 0 3px}#sheet .big,#domSheet .big{margin-top:8px;padding:10px}}
#wheelSheet .wheelres{text-align:center;margin:12px 4px 6px;font-size:14px;line-height:1.4}
/* v0.10.2: creator notice sheet (lines.js MOCHI_NOTICE) */
.ntsheet{z-index:26}
.ntsheet .ntbody p{font-size:13.5px;line-height:1.5;margin:0 0 10px;opacity:.92}
.ntsheet .ntbtns{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:12px}
.ntsheet .ntbtns .btn:not(.allow){background:rgba(255,255,255,.1);color:var(--ink);border:1px solid var(--line)}
@media (max-height:700px){.ntsheet .ntbody p{font-size:12.5px;line-height:1.42;margin-bottom:8px}.ntsheet .ntbtns{margin-top:8px}.ntsheet .ntbtns .btn{padding:11px 8px}}
@media (max-width:360px){.ntsheet .ntbody p{font-size:12px;line-height:1.4}}
.ntsheet .ntpay{display:block;text-align:center;text-decoration:none;margin-top:12px}
.ntsheet .ntbtns{grid-template-columns:1fr 1fr;margin-top:8px}
@media (max-height:700px){.ntsheet .ntpay{margin-top:8px;padding:11px 8px}.ntsheet .ntbtns{margin-top:6px}}

/* v0.10.10 (2026-11-15): Turnstile box in the register forms (#acTs on /play, #laTs on /live; zero height until Cloudflare asks for a click (.on / .tsOn), tsFit() scales the 300x65 widget below 300 px) + bonus-skip note in the drops sheet */
.tsbox{width:100%;height:0;overflow:hidden;flex:none}.tsbox[hidden]{display:none}.tsbox>div{width:300px;height:65px;margin:0 auto;transform-origin:0 0}
.acform .tsbox:not(.on){margin-top:-10px}#lvAcct .acform .tsbox:not(.on){margin-top:-10px}
/* only while Cloudflare asks for a click: drop the intro line so the card still fits */
#acct.tsOn .gate-card>p,#lvAcct.tsOn #laNote{display:none}
@media (max-height:760px){#acct .acform .tsbox:not(.on){margin-top:-7px}}
.drnote{font-size:12.5px;line-height:1.4;margin:4px 0 6px;color:var(--gold);text-align:center}

/* v0.10.11 DROPWALL (2026-11-15): gold drops chip while <=3 messages left (/play #dropsBtn, /live #lvDrops), "Mochi's waiting" headline in the drops sheet when empty, low-balance toast under the header (tappable, auto-hides after 5 s, never over the input or the bubble) */
#dropsBtn.low,.say .lvdrops.low{border-color:rgba(255,213,74,.8);background:rgba(255,213,74,.16);color:var(--gold);box-shadow:0 0 10px rgba(255,213,74,.35)}
.drsheet .drwait{margin:6px 0 8px;padding:8px 12px;border-radius:12px;background:linear-gradient(90deg,rgba(255,126,182,.22),rgba(255,213,74,.16));border:1px solid rgba(255,126,182,.45);font-weight:800;font-size:14px;line-height:1.3;text-align:center}
.drsheet .drwait[hidden]{display:none}
.drtoast{position:fixed;top:calc(env(safe-area-inset-top,0px) + 54px);right:max(10px,calc(50% - 230px));z-index:25;max-width:calc(100% - 20px);padding:7px 12px;border-radius:999px;background:rgba(20,10,30,.92);border:1px solid rgba(255,213,74,.7);color:var(--gold);font-family:inherit;font-size:12.5px;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.4);opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .25s,transform .25s}
.drtoast.on{opacity:1;transform:none;pointer-events:auto}
@media (max-width:480px){.drtoast{top:calc(env(safe-area-inset-top,0px) + 48px);font-size:12px;padding:6px 11px}}
/* v0.10.11 BTNLOCK: out of drops the paid game buttons look locked (dimmed + a small drop); they stay tappable for the wall moment */
body.drlock .dock button,body.drlock .taskbar button,body.drlock .rate button{opacity:.45;filter:grayscale(.6);position:relative}
body.drlock .dock button::after{content:'\1F4A7';position:absolute;top:3px;right:5px;font-size:10px;line-height:1}
body.drlock .dock.answers button[data-a=allow],body.drlock .taskbar #tbDone{background:var(--glass);color:var(--ink);border-color:var(--line)}

/* v0.10.13 step129 DBAR: DOM bar = labelled rows (🎯 Task, 📏 Rules), each only when present; phone first. step129b: no ⏱ Hold row, the stage card is the one hold timer */
.taskbar{flex-direction:column;align-items:stretch;gap:2px;padding:3px 4px 3px 8px}
.taskbar .trow{display:flex;align-items:center;gap:6px;min-height:26px}
.taskbar .trow[hidden]{display:none}
.taskbar .trow:not([hidden])~.trow:not([hidden]){border-top:1px solid rgba(255,126,182,.18);padding-top:4px}
.taskbar .tl{flex:none;width:52px;font-style:normal;font-size:10.5px;font-weight:900;opacity:.72;white-space:nowrap}
.taskbar .trow span{flex:1;min-width:0;font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.taskbar .tp{flex:none;font-family:"Dela Gothic One",sans-serif;font-weight:400;font-size:13px;color:var(--gold);white-space:nowrap}
.taskbar .tp:empty{display:none}
.taskbar button{height:26px}
.taskbar button[hidden]{display:none}
.taskbar .chips{display:flex;flex-wrap:wrap;gap:2px 4px;min-width:0;padding:1px 0;font-size:11px} /* step129b: chips wrap instead of cutting the 3rd at 320 px */
.taskbar .chip{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-style:normal;padding:1px 8px;border-radius:9px;background:rgba(255,126,182,.16);border:1px solid rgba(255,126,182,.4);font-size:11px;font-weight:800;line-height:18px;white-space:nowrap}
@media (max-width:360px){.taskbar .tl{width:44px;font-size:9.5px}.taskbar .trow span{font-size:11.5px}.taskbar .tp{font-size:12px}.taskbar .chip{padding:1px 6px;font-size:10.5px}}
@media (max-height:700px){.taskbar{padding:2px 3px 2px 7px;gap:1px}.taskbar .trow{min-height:22px}.taskbar .trow+.trow{padding-top:1px}.taskbar button{height:22px;padding:0 8px;font-size:11px}.taskbar .chip{line-height:16px}.taskbar .trow span{font-size:12px}}
/* step129 DBAR: with the bar on, a short phone gives the stage less height so the chat and the answer box stay on screen (320x568 measured sh 634 before) */
@media (max-height:700px){body.dom.tbon .stage{height:clamp(220px,45dvh,540px)}}
@media (max-height:620px){body.dom.tbon .stage{height:clamp(196px,37dvh,540px)}}

/* Desktop 2-column split-screen layout (>= 900px): full-height 3D stage left (~58%), full-height chat & controls right (~42%) */
@media (min-width: 900px) {
  #app {
    width: 100%;
    max-width: 1360px;
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(380px, 1fr);
    grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr) auto auto auto;
    column-gap: 20px;
    padding: 14px 22px;
  }
  #app > #stage {
    grid-column: 1;
    grid-row: 1 / 12;
    height: 100%;
    max-height: none;
    min-height: 0;
  }
  #app > :not(#stage) {
    grid-column: 2;
  }
  #app > .top { grid-row: 1; }
  #app > .stats { grid-row: 2; }
  #app > #rules { grid-row: 6; }
  #app > #votebar { grid-row: 7; }
  #app > #chat {
    grid-row: 8;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
  #app > #ask, #app > #dockDom { grid-row: 9; }
  #app > #rateRow, #app > #peeRow { grid-row: 10; }
  #app > #form {
    grid-row: 11;
    margin-top: 8px;
  }
  .sheet {
    align-items: center;
  }
  .sheet-card {
    border-radius: 28px;
    border-bottom: 1px solid var(--line);
    max-height: 92dvh;
  }
  #sheet .sheet-card, #domSheet .sheet-card {
    max-width: 560px;
  }
}

.chat-act{background:linear-gradient(135deg,rgba(255,213,74,.22),rgba(255,126,182,.22));border:1px solid rgba(255,213,74,.65);color:var(--gold);border-radius:999px;padding:7px 14px;font-size:12.5px;font-weight:900;cursor:pointer;transition:transform .12s,box-shadow .15s}
.chat-act:hover{box-shadow:0 0 12px rgba(255,213,74,.35)}.chat-act:active{transform:scale(.95)}

.cam-toast{position:absolute;left:50%;bottom:52px;transform:translate(-50%,6px);z-index:6;padding:5px 12px;border-radius:999px;background:rgba(18,9,28,.84);border:1px solid rgba(255,126,182,.45);color:var(--ink);font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none;opacity:0;backdrop-filter:blur(6px);transition:opacity .22s ease,transform .22s ease}
.cam-toast.on{opacity:1;transform:translate(-50%,0)}
.hint{transition:opacity .45s ease}
.hint.gone{opacity:0!important}

.camtools{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:5;display:flex;flex-direction:row;gap:6px}
.camtools button{width:30px;height:30px;padding:0;line-height:1;font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;border-radius:999px;background:rgba(20,10,30,.72);border:1px solid var(--line);color:var(--ink);font-size:13.5px;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;backdrop-filter:blur(6px);transition:transform .12s,border-color .15s,background .15s}
.camtools .ct-lbl{display:none;font-family:"Zen Maru Gothic",system-ui,sans-serif;font-size:12px;font-weight:800;letter-spacing:.01em}
.camtools button:hover{border-color:var(--pink)}
.camtools button:active{transform:scale(.92)}
.camtools button.loading{border-color:var(--gold);opacity:.85;animation:vpulse .9s ease-in-out infinite}
.camtools button.speaking{border-color:var(--pink);box-shadow:0 0 12px rgba(255,126,182,.65);animation:vpulse 1.1s ease-in-out infinite}
@keyframes vpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}

.camtools button.on{background:rgba(255,126,182,.26);border-color:var(--pink);box-shadow:0 0 8px rgba(255,126,182,.45)}

#dailyTopBtn.pulse{border-color:var(--gold);box-shadow:0 0 10px rgba(255,213,74,.45)}

@media (min-width: 900px) {
  .camtools {
    bottom: 16px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 999px;
    background: rgba(16, 8, 26, .82);
    border: 1px solid rgba(255, 126, 182, .32);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .48);
    backdrop-filter: blur(10px);
  }
  .camtools button {
    width: auto;
    height: 36px;
    padding: 0 13px;
    font-size: 15px;
    background: rgba(255, 255, 255, .07);
  }
  .camtools button:hover {
    background: rgba(255, 126, 182, .16);
  }
  .camtools .ct-lbl {
    display: inline;
  }
  .cam-toast {
    bottom: 72px;
  }
  .gauge {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    gap: 8px;
  }
  .gj {
    font-size: 13px;
  }
  .gtube {
    width: 20px;
    height: clamp(200px, 38dvh, 360px);
  }
  .gauge b {
    font-size: 18px;
  }
  .timers {
    left: 50%;
    bottom: 72px;
    gap: 10px;
  }
}

/* Unified Active HUD: compact single bar above chat on mobile, frosted-glass stage card at top-left on desktop */
.active-hud {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(20, 10, 30, .74);
  border: 1px solid rgba(255, 126, 182, .32);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.active-hud:not(:has(> :not([hidden]))) {
  display: none;
}
.active-hud > .eppill,
.active-hud > .taskbar {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.active-hud > .epev {
  margin: 0;
}
.active-hud > .rules {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  text-align: left;
}
.active-hud > .rules[hidden] {
  display: none;
}
.active-hud > .rules .tl {
  flex: none;
  width: 52px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 900;
  color: var(--ink);
  opacity: .72;
  white-space: nowrap;
}
.active-hud > .rules .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  min-width: 0;
  padding: 1px 0;
  font-size: 11px;
}
.active-hud > .rules .chip {
  flex: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: normal;
  padding: 1px 8px;
  border-radius: 9px;
  background: rgba(255, 126, 182, .16);
  border: 1px solid rgba(255, 126, 182, .4);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  white-space: nowrap;
}
@media (max-width:360px){.active-hud > .rules .tl{width:44px;font-size:9.5px}.active-hud > .rules .chip{padding:1px 6px;font-size:10.5px}}
@media (max-height:700px){.active-hud > .rules{min-height:22px}.active-hud > .rules .chip{line-height:16px}}
.active-hud > :not([hidden]) ~ :not([hidden]) {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 5px;
}
@media (min-width: 900px) {
  #app > #activeHud {
    grid-column: 2;
    grid-row: 3;
    margin-top: 8px;
    padding: 7px 10px;
  }
}

/* Place Mochi + age in top-left where scene info sits; scene info (.cap) sits in front and fades out after 5s */
#app .nametag { top: 12px; left: 14px; bottom: auto; }
#app .vert { top: 64px; }
#app .cap { z-index: 4; transition: opacity .5s ease, transform .5s ease; }
#app .cap.gone { opacity: 0; transform: rotate(-2deg) translateY(-6px); }
.moodpill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  pointer-events: none;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(20, 10, 30, .72);
  border: 1px solid rgba(255, 213, 74, .38);
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* UX step 2 (Alex 2026-12-03): I hold reports on two barometers instead of the four-button bar.
   Right = your fullness n/10 (slide or tap, then confirm the chip), left = leaks (tap). Captions as in the live room. */
.gauge .gsub{font-size:9.5px;font-weight:800;line-height:1.2;text-align:center;color:var(--ink);opacity:.78;text-shadow:0 1px 4px rgba(0,0,0,.75);white-space:nowrap}
.gauge.leakgauge{left:10px;right:auto;pointer-events:auto;cursor:pointer;padding:6px 8px;margin-left:-8px}
.gauge.leakgauge[hidden]{display:none}
.gauge.leakgauge .gj{color:#5cd1ff}
.gauge.leakgauge .gfill{background:linear-gradient(0deg,#1ca7ff,#5cd1ff 60%,#d6f5ff);box-shadow:0 0 16px rgba(56,189,248,.7)}
.gauge.leakgauge b{color:#5cd1ff;text-shadow:0 0 12px rgba(56,189,248,.5)}
.gauge.leakgauge:active .gtube{box-shadow:0 0 0 4px rgba(56,189,248,.4)}
body.dom .vert{display:none}
body.dom #gauge{pointer-events:auto;cursor:ns-resize;touch-action:none;-webkit-user-select:none;user-select:none;padding:6px 10px;margin-right:-10px}
.gauge.rpick .gfill{transition:none}
.gauge.rpick .gtube{box-shadow:0 0 0 4px rgba(255,213,74,.5)}
.gauge.rask .gtube{animation:gask .8s ease-in-out infinite}
.gauge.rask b{animation:gaskb .8s ease-in-out infinite}
@keyframes gask{50%{box-shadow:0 0 0 5px rgba(255,213,74,.55),0 0 18px rgba(255,213,74,.8)}}
@keyframes gaskb{50%{opacity:.35}}
.gconf{position:absolute;right:56px;top:50%;z-index:7;transform:translateY(-50%);height:40px;padding:0 15px;border-radius:999px;border:0;background:var(--gold);color:#1a1024;font:inherit;font-size:13px;font-weight:900;box-shadow:0 6px 20px rgba(0,0,0,.45);white-space:nowrap}
.gconf[hidden]{display:none}
@media (max-height:700px) and (max-width:899px){.gauge .gtube{height:110px}.gauge .gsub{font-size:9px}}
@media (min-width:900px){.gauge.leakgauge{left:18px;right:auto}.gauge .gsub{font-size:11px}.gconf{right:78px}}

/* UX wording step (Alex 2026-12-03): the send button is an arrow icon, not 送信 */
.say button[type=submit]{display:flex;align-items:center;justify-content:center;min-width:48px;padding:0 14px}
.say button[type=submit] svg{display:block}

/* UX first-run step (Alex 2026-12-03): the age gate's two mode cards are the real mode choice (18+ confirm + mode in one tap) */
.gate-ask{font-family:"Dela Gothic One",sans-serif;font-size:15px;color:var(--gold);margin:12px 0 0}
.modes.pickmodes{margin-top:10px}
.modes button.mode{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.modes button.mode b{display:flex;justify-content:space-between;align-items:center;font-size:16px}
.modes button.mode b::after{content:"→";color:var(--gold);font-weight:400}
.modes button.mode span{line-height:1.35}
.modes button.mode em{font-style:normal;font-size:11px;color:var(--gold);margin-top:3px}
.modes button.mode:active{transform:scale(.98)}
.modes button.mode:hover{background:rgba(255,213,74,.16)}
@media (max-height:700px){.gate-ask{font-size:14px;margin-top:8px}.modes.pickmodes{gap:6px;margin:8px 0 8px}.modes button.mode{padding:8px 12px}.modes button.mode span{font-size:11.5px}}

/* UX selector-first step (Alex 2026-12-03): the account form names the mode picked on the selector */
.gate p.acpick{font-size:12.5px;margin:8px 0 0;opacity:1}
.acpick[hidden]{display:none}
.acpick b{color:var(--gold)}
.acpick .link{font:inherit;font-size:12.5px;cursor:pointer;opacity:.75}

/* UX mobile polish (Alex 2026-12-03): stage buttons stay 30px; the hint sits above the button row on phones so the row never covers it; the signup tagline stays on one line */
@media (max-width:480px){.hint{bottom:44px}}
#acct .gate-jp{letter-spacing:.2em;font-size:11px;white-space:nowrap}
/* the caption chip draws a white pill when it has no text (live room never fills it): hide it while empty */
.cap:empty{display:none}

/* Game Hub removed (Alex 2026-12-04): mini-games and hold contracts are featured rows in the Menu sheet; the wheel sits beside "can I go?"; a chip offers the mini-game once she is 70%+ */
.cmdfeat{margin:8px 0 2px}
.featbtn{width:100%;display:flex;flex-direction:column;gap:2px;text-align:left;padding:11px 14px;border-radius:16px;border:1px solid rgba(255,213,74,.7);background:rgba(255,213,74,.08);color:inherit;font:inherit;cursor:pointer}
.featbtn[hidden]{display:none}
.featbtn b{font-size:15px}
.featbtn small{font-size:12px;opacity:.7}
.featbtn:active{transform:scale(.98)}
/* Alex 2026-12-04: Menu must fit a phone without scrolling: feature button on one line (title + short blurb, blurb truncates) */
.featbtn{flex-direction:row;align-items:baseline;gap:8px;padding:8px 12px;border-radius:14px;white-space:nowrap;overflow:hidden}
.featbtn b{flex:none;font-size:14px}
.featbtn small{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:11.5px}
.cmdfeat{margin:6px 0 0}
.ctxchip{width:100%;padding:7px 12px;border-radius:12px;border:1px solid rgba(255,213,74,.6);background:rgba(255,213,74,.1);color:var(--gold);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.ctxchip[hidden]{display:none}
.sheet .cmdlist .opt.optwheel{border-color:rgba(255,213,74,.6);color:var(--gold)}
.sheet .cmdlist .opt.optcost{border-color:rgba(255,213,74,.45);background:rgba(255,213,74,.08);color:var(--ink)}
.sheet .cmdlist .opt.optcost b{color:var(--gold);margin-left:4px;font-weight:900}

/* Permission Wheel spin (Alex 2026-12-04): a disc that spins while the server decides and stops on the result. Slices are sized by the real odds (35/25/20/12/8). Display only. */
.wheelwrap{position:relative;width:136px;margin:12px auto 2px;padding-top:12px}
.wheelwrap[hidden]{display:none}
.wheelptr{position:absolute;left:50%;top:-4px;transform:translateX(-50%);color:var(--gold);font-size:16px;line-height:1;z-index:2;text-shadow:0 2px 6px rgba(0,0,0,.6)}
.wheeldisc{position:relative;width:136px;height:136px;border-radius:50%;border:3px solid rgba(255,213,74,.8);box-shadow:0 0 18px rgba(255,126,182,.35);background:conic-gradient(#5a2a6e 0 126deg,#2f6f9a 126deg 216deg,#a8432f 216deg 288deg,#6a4a9c 288deg 331.2deg,#d6a514 331.2deg 360deg)}
.wheeldisc span{position:absolute;left:50%;top:50%;width:0;height:0;display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1;transform:rotate(var(--a)) translateY(-46px)}
.wheeldisc.spinning{animation:whspin .55s linear infinite}
@keyframes whspin{to{transform:rotate(360deg)}}
