*{box-sizing:border-box;margin:0;padding:0}html,body,#app{width:100%;height:100%;overflow:hidden;background:#7a3f2a}body{font-family:Trebuchet MS,Segoe UI,system-ui,sans-serif;color:#fff;user-select:none;-webkit-user-select:none;touch-action:none}.world{position:absolute;inset:0;cursor:crosshair}.world canvas{display:block}.ui{position:absolute;inset:0;pointer-events:none}button,input,select{font:inherit;color:inherit}.panel{background:#20120ee0;border:3px solid #f2c14e;border-radius:16px;box-shadow:0 5px #0000004d}.btn{pointer-events:auto;cursor:pointer;background:#1f6f8b;border:3px solid #2b1710;border-radius:12px;padding:9px 18px;font-weight:700;box-shadow:0 4px #2b1710}.btn:active{transform:translateY(3px);box-shadow:0 1px #2b1710}.btn.small{padding:6px 12px;font-size:13px}.btn.danger{background:#a8323a}.menu{position:absolute;inset:0;display:flex;overflow:auto;pointer-events:auto;touch-action:pan-y;background:radial-gradient(circle at 50% 30%,#e49c76,#7a3f2a);padding:16px}.menu-panel{margin:auto;width:min(660px,100%);padding:20px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}.menu h1{font-size:clamp(34px,8vh,62px);line-height:.9;color:#ffd426;text-shadow:0 4px 0 #c3232b,0 7px 0 #2b1710;transform:rotate(-3deg)}.food-strip img{width:38px;height:38px}.name{width:min(280px,100%);padding:10px 14px;border-radius:12px;border:3px solid #2b1710;background:#fff7e6;color:#2b1710;text-align:center;font-weight:700;user-select:text;-webkit-user-select:text}.label{font-size:13px;opacity:.85}.cards{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.card{cursor:pointer;width:108px;padding:6px;background:#4a2a1e;border:3px solid #2b1710;border-radius:12px;display:flex;flex-direction:column;align-items:center;font-size:12px;font-weight:700}.card img{width:76px;height:76px}.card.selected{border-color:#5dff6b;background:#6b3c27;transform:translateY(-3px)}.btn.play{background:#3fae4a;font-size:22px;padding:10px 28px}.btn.solo{background:#c9762b;font-size:18px}.modes,.private{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}.private{border:2px dashed #8a5a3a;border-radius:12px;padding:8px 12px;font-size:13px}.name.code{width:120px;padding:5px 8px;letter-spacing:2px}.status{min-height:18px;font-size:14px;color:#ffe27a}details{font-size:13px;width:100%}details summary{cursor:pointer;font-weight:700;margin-bottom:4px}details p{margin:4px 0}.overlay{position:absolute;inset:0;display:flex;background:#140a0899;pointer-events:auto;z-index:20;padding:12px;touch-action:pan-y}.settings,.results{margin:auto;padding:18px;max-height:100%;overflow:auto;display:flex;flex-direction:column;gap:10px}.settings{width:min(430px,100%)}.results{width:min(560px,100%);align-items:center}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.row select{background:#4a2a1e;padding:4px;border-radius:6px}.keys{display:grid;grid-template-columns:1fr auto auto;gap:4px 8px;margin:6px 0}.key{cursor:pointer;min-width:66px;background:#4a2a1e;border:2px solid #2b1710;border-radius:6px;padding:3px 6px}.actions{display:flex;gap:10px;justify-content:center}.results .scroll{overflow:auto;width:100%;min-height:80px}.results table{width:100%;border-collapse:collapse;font-size:14px}.results td,.results th{padding:3px 8px;text-align:left}.results tr.mine{color:#ffd426;font-weight:700}.hud{position:absolute;inset:0;font-size:14px}.hud>*{position:absolute}.me{top:10px;left:10px;display:flex;gap:10px;padding:8px 12px 8px 8px;align-items:center}.me img{width:62px;height:62px;border-radius:50%;background:#e49c76;border:3px solid #f2c14e}.me>div{width:190px;display:flex;flex-direction:column;gap:4px}.bar{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between;font-size:12px}.bar .track{width:100%;height:9px;border-radius:6px;background:#4a3a36;overflow:hidden}.bar i{display:block;height:100%;width:0;background:#fff;transition:width .1s linear}.bar b{margin-left:auto}.bar.hp i{background:#f03e3e}.bar.energy i{background:#ffd426}.bar.khra i{background:#b9772f}.bar.boul i{background:#ffd426}.bar.gas i{background:#7ed321}.bar.hadm i{background:#a95cf0}.digestion{top:114px;left:10px;width:200px;padding:8px 10px;display:flex;flex-direction:column;gap:6px}h3{font-size:13px}.queue{display:flex;gap:4px;min-height:28px}.queue img{width:28px;height:28px}.top-center{top:10px;left:50%;transform:translate(-50%);display:flex;gap:10px}.pill{background:#20120ee0;border-radius:20px;padding:6px 14px;font-weight:700;font-size:17px;white-space:nowrap}.top-right{top:10px;right:10px;display:flex;flex-direction:column;align-items:flex-end;gap:8px}.map-row{display:flex;flex-direction:row-reverse;gap:8px;align-items:flex-start}.minimap{width:140px;height:140px;border:3px solid #fff7e6;border-radius:14px}.gear{pointer-events:auto;cursor:pointer;width:40px;height:40px;border-radius:50%;background:#20120ee0;border:2px solid #fff7e6;font-size:20px}.board{padding:8px 10px;width:200px}.board.expanded{width:min(360px,90vw);max-height:70vh;overflow:hidden}.board ol{list-style:none;font-size:13px}.board li{display:flex;justify-content:space-between;gap:8px}.board li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.board li small{opacity:.75;white-space:nowrap}.board li.mine{color:#ffd426;font-weight:700}.bottom{bottom:10px;left:50%;transform:translate(-50%);display:flex;gap:14px;align-items:flex-end}.weapons,.food{display:flex;gap:6px}.slot{position:relative;pointer-events:auto;cursor:pointer;width:92px;height:82px;border-radius:12px;border:3px solid #6b4a3a;background:#20120ee6;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:700;overflow:hidden}.slot img{max-width:60px;height:30px;object-fit:contain}.slot kbd{position:absolute;top:2px;left:5px}.slot b{color:#ffe27a}.slot i{position:absolute;left:0;bottom:0;height:5px;background:#ffd426}.slot.selected{border-color:#ffd426;box-shadow:0 0 14px #ffd426;transform:translateY(-5px)}.slot.dry img{opacity:.4;filter:grayscale(.8)}.slot.small{width:66px;height:62px;font-size:10px}.feed{top:62px;left:50%;transform:translate(-50%);text-align:center;font-weight:700;text-shadow:0 2px 3px #000;white-space:nowrap}.feed .mine,.toasts div{color:#ffe27a}.toasts{bottom:130px;left:50%;transform:translate(-50%);text-align:center;font-weight:700;text-shadow:0 2px 3px #000;white-space:nowrap}.hint{bottom:104px;left:50%;transform:translate(-50%);font-weight:700;text-shadow:0 2px 4px #000;white-space:nowrap}.death{inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#3c0a0859;font-size:20px;text-shadow:0 2px 4px #000}.death .big{font-size:34px;font-weight:700}.banner{top:40%;left:50%;transform:translate(-50%);font-size:20px;font-weight:700;text-shadow:0 2px 4px #000;white-space:nowrap}.invite{pointer-events:auto;cursor:pointer;left:10px;bottom:10px;background:#20120ed9;border:2px solid #6b4a3a;border-radius:10px;padding:5px 10px;font-size:12px}.touch{display:none}.hud.touch-mode .touch{display:block;position:static}.hud.touch-mode .stick{position:absolute;bottom:18px;width:130px;height:130px;border-radius:50%;background:#281e1e66;border:3px solid rgba(255,255,255,.6);pointer-events:auto;touch-action:none;display:flex;align-items:center;justify-content:center}.hud.touch-mode .stick i{width:56px;height:56px;border-radius:50%;background:#ffffffbf;pointer-events:none}.hud.touch-mode .stick.left{left:18px}.hud.touch-mode .stick.right{right:18px}.hud.touch-mode .tbtn{position:absolute;pointer-events:auto;touch-action:none;width:62px;height:62px;border-radius:50%;background:#20120ed9;border:3px solid #fff7e6;font-size:11px;font-weight:700}.hud.touch-mode .tbtn.reload{right:162px;bottom:22px}.hud.touch-mode .tbtn.dash{right:130px;bottom:98px}.hud.touch-mode .tbtn.eat{right:44px;bottom:160px}.hud.touch-mode .bottom{bottom:6px;gap:6px}.hud.touch-mode .slot{width:58px;height:52px;font-size:9px}.hud.touch-mode .slot span,.hud.touch-mode .slot kbd{display:none}.hud.touch-mode .slot.small{width:44px;height:44px}.hud.touch-mode .hint{bottom:66px}.hud.touch-mode .toasts{bottom:92px}.hud.touch-mode .invite{inset:124px 10px auto auto}.hud.touch-mode .board:not(.expanded){display:none}.hud.touch-mode .minimap{width:96px;height:96px}@media(max-height:560px){.me{transform:scale(.75);transform-origin:top left}.digestion{top:78px;transform:scale(.65);transform-origin:top left}.hud .invite{inset:auto auto 66px 50%;transform:translate(-50%);font-size:10px}.menu h1{font-size:30px}.food-strip{display:none}.card{width:84px;font-size:10px}.card img{width:52px;height:52px}}@media(max-width:1000px){.hud.touch-mode .food{display:none}}.rotate{display:none;position:absolute;inset:0;align-items:center;justify-content:center;background:#2b1710;font-size:72px;z-index:50}@media(orientation:portrait)and (pointer:coarse){.rotate{display:flex}}
