:root{--roomw:384px;--ink:#dbe7ff;--mut:#7f8fb3;--edge:#2b3858;--panel:#0e1426}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{height:100%;color:var(--ink);overscroll-behavior:none;background:#05070f;margin:0;font:600 14px/1.2 ui-monospace,SF Mono,Cascadia Mono,Menlo,Consolas,monospace}#app{width:calc(var(--roomw) + 4px);max-width:100vw;padding:max(6px, env(safe-area-inset-top)) 0 10px;-webkit-user-select:none;user-select:none;flex-direction:column;gap:6px;margin:0 auto;display:flex}.panel{background:linear-gradient(#121a30, var(--panel));border:2px solid var(--edge);border-radius:6px;box-shadow:inset 0 0 0 1px #070b16,0 2px #02040a}#top{flex-direction:column;gap:6px;display:flex}.head{padding:8px 10px 6px}#title{letter-spacing:.5px;color:#eef5ff;white-space:nowrap;text-overflow:ellipsis;font-size:18px;overflow:hidden}.xp{border:1px solid var(--edge);background:#070b16;border-radius:3px;height:10px;margin-top:6px;position:relative;overflow:hidden}#xpFill{background:linear-gradient(90deg,#22d3ee,#a78bfa);width:0;height:100%;transition:width .4s}#xpText{color:#c9d6f5;text-shadow:0 1px #000;font-size:8px;line-height:9px;position:absolute;top:0;right:4px}.needs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px 8px;display:grid}.need{min-width:0}.need b{color:#c9d6f5;white-space:nowrap;text-overflow:clip;margin-bottom:3px;font-size:12px;font-weight:600;display:block;overflow:hidden}.pips{gap:2px;display:flex}.pips i{aspect-ratio:1;background:#1f2840;border-radius:50%;flex:none;width:min(8px,12.5% - 1.75px);box-shadow:inset 0 -1px #0003}.pips.hunger i.on{background:#e0796b}.pips.energy i.on{background:#2dd4bf}.pips.bond i.on{background:#a78bfa}.pips.potty i.on{background:#e8c35a}#room{border:2px solid var(--edge);background:#070b16;border-radius:4px;line-height:0;position:relative;overflow:hidden}#stage canvas{image-rendering:pixelated;image-rendering:crisp-edges;display:block}#toast{opacity:0;pointer-events:none;text-align:center;background:#0b1222ee;border:1px solid #3b4a72;border-radius:4px;width:max-content;max-width:92%;padding:6px 10px;font-size:12px;line-height:1.25;transition:opacity .25s;position:absolute;top:8px;left:50%;transform:translate(-50%)}#toast.show{opacity:1}#dbgToggle{font:inherit;color:#9fb0d6;background:#0b1222cc;border:1px solid #3b4a72;border-radius:3px;padding:3px 5px;font-size:9px;line-height:1;position:absolute;bottom:4px;right:4px}#thought{min-height:14px;color:var(--mut);padding:0 4px;font-size:11px;font-style:italic}#bar{grid-template-columns:repeat(5,1fr);gap:4px;padding:5px;display:grid}#bar button{font:inherit;color:#e6eeff;touch-action:manipulation;background:linear-gradient(#1b2541,#121a30);border:2px solid #34436a;border-radius:5px;flex-direction:column;align-items:center;gap:2px;padding:6px 2px 5px;font-size:13px;display:flex}#bar button:active{background:#233056;transform:translateY(1px)}#bar button img{object-fit:contain;width:26px;height:22px;image-rendering:pixelated}#bar button.off{opacity:.45}#debug{flex-direction:column;gap:4px;padding:6px;font-size:11px;display:flex}#debug[hidden]{display:none}.drow{flex-wrap:wrap;align-items:center;gap:3px;display:flex}.drow button,.drow select{font:inherit;color:#e6eeff;background:#18213a;border:1px solid #34436a;border-radius:3px;padding:3px 5px;font-size:11px}.drow button.sel{background:#2b4a7a;border-color:#5fa8ff}.drow button.danger{color:#fbb;border-color:#a44}.drow.nr input{flex:1}.drow.nr span{text-align:right;width:26px}.drow.dmenus{gap:4px}.drow select.dmenu{flex:88px;min-width:0;padding:5px 4px;font-size:12px}.dline{color:#9fb0d6;line-height:1.3}@media (width>=700px){#title{font-size:22px}#bar button{font-size:15px}}.landonly{display:none}.land .landonly{display:inline-block}html.land,html.land body{overflow:hidden}.land #app{width:100vw;max-width:none;height:var(--apph,100vh);margin:0;padding:0;display:block;position:fixed;inset:0}.land #room{background:#05070f;border:0;border-radius:0;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.land #stage{flex:none}.land #top{z-index:10;top:max(6px, env(safe-area-inset-top));left:max(6px, env(safe-area-inset-left));pointer-events:none;gap:3px;width:200px;position:fixed}.land #top .panel{box-shadow:none;background:#0a0f1ea6;border:1px solid #2b3858b3;border-radius:5px}.land .head{padding:4px 7px 5px}.land #title{font-size:12px;line-height:1.25}.land .xp{height:8px;margin-top:4px}.land #xpText{font-size:7px;line-height:7px}.land .needs{grid-template-columns:1fr;gap:3px;padding:4px 7px 5px}.land .need{justify-content:space-between;align-items:center;gap:6px;display:flex}.land .need b{margin:0;font-size:10px}.land .pips i{width:7px;height:7px}.land #thought{z-index:10;top:calc(max(6px, env(safe-area-inset-top)) + var(--toph,96px) + 4px);left:max(6px, env(safe-area-inset-left));color:#c9d6f5;text-shadow:0 1px 2px #000;pointer-events:none;background:#05081073;border-radius:4px;max-width:min(260px,40vw);min-height:0;padding:3px 7px;font-size:11px;line-height:1.3;position:fixed}.land #thought:empty{display:none}.land #bar{z-index:10;right:max(6px, env(safe-area-inset-right));top:max(6px, env(safe-area-inset-top));width:auto;box-shadow:none;background:#0a0f1e80;border:1px solid #2b3858b3;border-radius:6px;flex-direction:row;gap:3px;padding:3px;display:flex;position:fixed}.land #bar button{background:#1b2541bf;border-width:1px;border-color:#34436acc;gap:1px;width:46px;padding:3px 1px 2px;font-size:9px}.land #bar button img{width:20px;height:16px}.land #toast{z-index:15;top:calc(max(6px, env(safe-area-inset-top)) + 48px);max-width:min(420px,46vw);position:fixed}.land #dbgToggle{z-index:11;right:auto;left:max(6px, env(safe-area-inset-left));bottom:max(4px, env(safe-area-inset-bottom));opacity:.7;padding:2px 4px;font-size:8px;position:fixed}.land #debug{z-index:20;top:max(4px, env(safe-area-inset-top));bottom:max(4px, env(safe-area-inset-bottom));right:max(6px, env(safe-area-inset-right));background:#0e1426f2;width:min(460px,64vw);position:fixed;overflow-y:auto;box-shadow:0 4px 24px #000c}
