:root,[data-theme=cacao]{--bg:#fbf3e8;--surface:#fffaf3;--surface-2:#f3e6d3;--text:#4a3426;--muted:#8c7461;--accent:#d98c5f;--accent-text:#fff;--bubble-me:#f2c9a8;--bubble-other:#fffaf3;--online:#7fa37a;--wall:#f1dcc2;--floor:#e6c9a3;--wood:#b98a62;--rug:#e9a98a;--rug-line:#fff6ea;--sofa:#c97b5a;--sofa-dark:#b0664a;--lamp:#ffd98a;--screen:#5b4638;--shelf-in:#8f6a4a;--radius:22px;--font:"Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif}[data-theme=matcha]{--bg:#eff4ea;--surface:#f9fcf5;--surface-2:#dde9d3;--text:#2f3d2c;--muted:#6f8268;--accent:#7fa37a;--accent-text:#fff;--bubble-me:#c5dcbc;--bubble-other:#f9fcf5;--online:#5f9a5a;--wall:#dfe9d2;--floor:#c9d6b5;--wood:#8f7a5a;--rug:#a9c79f;--rug-line:#f4faee;--sofa:#7fa37a;--sofa-dark:#688a63;--lamp:#fff0a8;--screen:#3d4a38;--shelf-in:#6f6048}[data-theme=dusk]{--bg:#272336;--surface:#322d45;--surface-2:#3d3756;--text:#efeaff;--muted:#a79fc7;--accent:#8b7fd0;--accent-text:#fff;--bubble-me:#5a4f93;--bubble-other:#3d3756;--online:#8fd19e;--wall:#2f2a44;--floor:#241f35;--wood:#5a4f7a;--rug:#4a3f78;--rug-line:#8b7fd0;--sofa:#6a5db0;--sofa-dark:#55499a;--lamp:#ffcf7a;--screen:#1a1626;--shelf-in:#1f1a30}*{box-sizing:border-box;margin:0}html,body,#root{height:100%}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;overscroll-behavior:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}button,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;border:0;min-height:48px}input{border:2px solid var(--surface-2);background:var(--surface);border-radius:999px;outline:none;width:100%;min-height:52px;padding:0 18px}input:focus{border-color:var(--accent)}h1{font-size:2rem}h2{font-size:1.3rem}.muted{color:var(--muted)}.small{font-size:.85rem}.primary{background:var(--accent);color:var(--accent-text);border-radius:999px;padding:0 26px;font-weight:700}.primary:disabled{opacity:.5;cursor:default}.soft{background:var(--surface-2);border-radius:999px;padding:0 20px;font-weight:700}.ghost{color:var(--muted);text-align:left;background:0 0;padding:0 8px}.center{place-items:center;min-height:100%;padding:20px;display:grid}.card{background:var(--surface);border-radius:calc(var(--radius) + 6px);width:min(440px,100%);box-shadow:0 12px 40px color-mix(in srgb, var(--text) 12%, transparent);flex-direction:column;gap:16px;padding:36px 32px;display:flex;position:relative}.corner{position:absolute;top:12px;right:14px}.avatars{flex-wrap:wrap;gap:8px;display:flex}.avatar-pick{background:var(--surface-2);border-radius:16px;width:52px;height:52px;padding:0;font-size:1.6rem}.avatar-pick.on{outline:3px solid var(--accent)}.themes{justify-content:center;gap:12px;display:flex}.swatch{border:3px solid var(--surface);border-radius:50%;width:36px;height:36px;min-height:0}.swatch.on{outline:3px solid var(--text)}.room{flex-direction:column;height:100%;display:flex}.topbar{background:var(--surface);border-bottom:2px solid var(--surface-2);flex:none;align-items:center;gap:14px;padding:8px 18px;display:flex}.topbar .spacer{flex:1}.topbar .themes{gap:8px}.topbar .swatch{width:30px;height:30px}.banner{background:var(--surface-2);text-align:center;flex:none;padding:8px;font-size:.9rem}.avatar{background:var(--surface-2);border-radius:50%;flex:none;place-items:center;width:40px;height:40px;font-size:1.4rem;display:grid}.stage{background:var(--floor);flex:1;place-items:center;min-height:0;display:grid;position:relative;overflow:hidden}.scene{aspect-ratio:16/10;width:min(100%,160dvh - 99.2px);position:relative;container-type:inline-size}.decor{border-radius:0;width:100%;height:100%;position:absolute;inset:0}.bg-asset{object-fit:fill;pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;inset:0}.obj{pointer-events:none;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 .6cqw .8cqw #00000038);height:auto;position:absolute;transform:translate(-50%,-100%)}.bg-asset:not(.ready),.obj:not(.ready){opacity:0}.zone{z-index:61;background:0 0;border-radius:18px;justify-content:center;align-items:flex-end;padding:0;transition:background .2s,box-shadow .2s;display:flex;position:absolute}.zone:hover,.zone:focus-visible{background:color-mix(in srgb, var(--accent) 14%, transparent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);outline:none}.zone-label{background:var(--surface);color:var(--text);box-shadow:0 2px 8px color-mix(in srgb, var(--text) 18%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:8px;padding:3px 12px;font-size:max(.72rem,1.5cqw);font-weight:700;display:inline-flex;transform:translateY(40%)}.zone.soon .zone-label{opacity:.72}.zone.occupied .zone-label{opacity:0}.badge{background:var(--accent);color:var(--accent-text);border-radius:999px;place-items:center;min-width:22px;height:22px;font-size:.75rem;display:grid}.pawn{pointer-events:none;z-index:2;flex-direction:column;align-items:center;transition:left .7s cubic-bezier(.4,1.3,.6,1),top .7s cubic-bezier(.4,1.3,.6,1),z-index .7s cubic-bezier(.4,1.3,.6,1);display:flex;position:absolute;transform:translate(-50%,-50%)}.pawn .avatar{width:5.6cqw;min-width:40px;max-width:64px;height:5.6cqw;min-height:40px;max-height:64px;box-shadow:0 4px 10px color-mix(in srgb, var(--text) 25%, transparent);border:3px solid var(--surface);font-size:clamp(1.4rem,3.6cqw,2.2rem)}.pawn.me .avatar{border-color:var(--accent)}.scene{--stand-h:15cqw;--sit-h:10.1cqw}.pawn.has-sprite{transform:translate(-50%,-100%)}.sprite{width:auto;height:var(--stand-h);transform-origin:50% 100%;filter:drop-shadow(0 .5cqw .7cqw #00000047);-webkit-user-select:none;user-select:none;animation:3.4s ease-in-out infinite breathe;display:block}.sprite:not(.ready){opacity:0;width:1px;height:1px;animation:none;position:absolute}.pawn[data-pose=sit] .sprite{height:var(--sit-h)}.pawn[data-moving] .sprite{animation:.4s ease-in-out infinite walk}.pawn.has-sprite .nametag{white-space:nowrap;margin-top:.3cqw;position:absolute;top:100%}.pawn.behind.has-sprite .nametag{margin:0 0 .3cqw;top:auto;bottom:100%}.pawn.behind .speech{bottom:calc(100% + 3.2cqw + var(--tier,0) * 8cqw)}.pawn.me.has-sprite .nametag{box-shadow:0 0 0 2px var(--accent)}@keyframes breathe{50%{transform:scaleY(1.018)}}@keyframes walk{0%,to{transform:translateY(0)rotate(-3deg)}50%{transform:translateY(-1.1cqw)rotate(3deg)}}.nametag{background:color-mix(in srgb, var(--surface) 85%, transparent);border-radius:999px;margin-top:3px;padding:1px 9px;font-size:max(.7rem,1.4cqw);font-weight:700}.speech{bottom:calc(100% + 6px + var(--tier,0) * 8cqw);background:var(--surface);width:max-content;max-width:17cqw;color:var(--text);box-shadow:0 4px 14px color-mix(in srgb, var(--text) 22%, transparent);border-radius:18px;padding:8px 14px;font-size:max(.8rem,1.7cqw);line-height:1.3;animation:.3s ease-out pop;position:absolute;left:50%;transform:translate(-50%)}.speech span{-webkit-line-clamp:3;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.speech:after{content:"";border:7px solid #0000;border-top-color:var(--surface);margin-left:-7px;position:absolute;top:100%;left:50%}.pawn.edge-l .speech{left:-2cqw;transform:none}.pawn.edge-l .speech:after{margin-left:0;left:3.6cqw}.pawn.edge-r .speech{left:auto;right:-2cqw;transform:none}.pawn.edge-r .speech:after{margin-left:0;left:auto;right:3.6cqw}@keyframes pop{0%{opacity:0;translate:0 6px;scale:.9}}.toast{background:var(--text);color:var(--bg);z-index:400;border-radius:999px;padding:10px 20px;font-weight:700;animation:.25s ease-out pop;position:absolute;bottom:4%;left:50%;transform:translate(-50%)}.panel{background:var(--bg);border-left:2px solid var(--surface-2);width:min(420px,100%);box-shadow:-12px 0 30px color-mix(in srgb, var(--text) 14%, transparent);z-index:10;flex-direction:column;animation:.3s ease-out slide;display:flex;position:absolute;top:0;bottom:0;right:0}.panel header{background:var(--surface);border-bottom:2px solid var(--surface-2);justify-content:space-between;align-items:center;padding:12px 18px;display:flex}@keyframes slide{0%{opacity:0;transform:translate(40px)}}.messages{flex-direction:column;flex:1;gap:12px;padding:24px;display:flex;overflow-y:auto}.empty{margin:auto}.msg{align-items:flex-end;gap:10px;max-width:80%;display:flex}.msg.mine{flex-direction:row-reverse;align-self:flex-end}.bubble{background:var(--bubble-other);border-radius:var(--radius);border-bottom-left-radius:6px;flex-direction:column;gap:2px;padding:10px 16px;display:flex}.mine .bubble{background:var(--bubble-me);border-bottom-left-radius:var(--radius);border-bottom-right-radius:6px}.bubble strong{color:var(--muted);font-size:.8rem}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}.bubble time{color:var(--muted);align-self:flex-end;font-size:.7rem}.composer{background:var(--surface);border-top:2px solid var(--surface-2);gap:10px;padding:14px 20px;display:flex}.composer input{flex:1}@media (width<=760px){.topbar{flex-wrap:wrap}.topbar .small,.topbar .themes{display:none}.panel{border-left:0;border-top:2px solid var(--surface-2);border-radius:22px 22px 0 0;width:100%;height:62%;top:auto}}@media (orientation:portrait){.stage{place-items:start center}.panel{border-left:0;border-top:2px solid var(--surface-2);border-radius:22px 22px 0 0;width:100%;height:60%;top:auto}}
