*{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-color:#21554e;background-image:radial-gradient(ellipse at center,transparent 10%,#14342fcc 100%),repeating-conic-gradient(from 45deg,#ffffff14 0 25%,transparent 0 50%);background-size:auto,48px 48px;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.menu-panel{margin:auto;width:min(740px,100%);padding:clamp(14px,4vw,34px);display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;background:#23352e;border:2px solid #dba651;border-radius:24px;box-shadow:0 8px #122820,0 20px 50px #102822aa}.menu-brand{display:grid;justify-items:center;gap:10px}.menu-title{font:900 clamp(34px,9vw,78px)/1.25 "Geeza Pro","Tahoma",system-ui,sans-serif;color:#ffdb68;text-shadow:0 4px 0 #a74436,0 7px 0 #142820}.menu-tagline{color:#f5dfac;font-size:clamp(13px,3vw,16px);font-weight:700}.food-strip{display:flex;flex-wrap:wrap;justify-content:center}.food-strip img{width:clamp(25px,6vw,39px);height:auto;aspect-ratio:1}.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;color:#f5dfac}.cards{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.card{cursor:pointer;width:88px;padding:5px;background:#30463b;border:2px solid #172b23;border-radius:12px;display:flex;flex-direction:column;align-items:center;font-size:12px;font-weight:700}.card img{width:56px;height:56px}.card.selected{border-color:#ffdb68;background:#47604a}.btn.play{background:#176b54;font-size:18px}.modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.mode-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:98px;padding:12px;text-align:left;background:#ffcf75;color:#302416;border:2px solid #201e16;border-radius:16px;box-shadow:0 5px #142820;cursor:pointer}.mode-public{background:#99dfbd}.mode-card:hover:not(:disabled){filter:brightness(1.08)}.mode-card:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px #142820}.menu :focus-visible{outline:3px solid #fff4c8;outline-offset:3px}.menu :disabled{opacity:.65;cursor:wait}.mode-art{display:grid;place-items:center;width:62px;height:64px}.mode-art img{grid-area:1 / 1;width:58px}.mode-public .mode-art img:first-child{transform:translate(-11px) scale(.78) rotate(-12deg)}.mode-public .mode-art img:last-child{transform:translate(10px,6px) scale(.85) rotate(10deg)}.mode-copy{display:grid;gap:3px}.mode-copy strong{font-size:clamp(18px,3vw,25px);line-height:1.05}.mode-copy span{font-size:13px;line-height:1.3}.mode-arrow{font-size:29px;line-height:1}.private{background:#192c25;border:1px solid #6a8067;border-radius:12px;padding:0 12px;text-align:left}.private summary{margin:0;padding:12px 0}.private-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}.private-actions label{display:flex;align-items:center;gap:5px}.name.code{width:120px;padding:5px 8px;letter-spacing:2px}.status{font-size:14px;color:#ffe27a}.status:empty{margin-top:-14px}@media(max-width:540px){.modes{grid-template-columns:1fr}.mode-card{min-height:72px;padding:4px 12px}.card{width:clamp(47px,15vw,72px);padding:4px 2px;font-size:10px;overflow-wrap:anywhere}.card img{width:min(100%,48px);height:auto}}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-title{font-size:clamp(34px,8vw,54px)}}@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){#app:not(:has(.menu)) .rotate{display:flex}}
