/* Gameplay chrome: the world owns the centre. */
#hud{--game-panel:#342f27ed;--game-control:#493f31;--game-edge:#282c23;--game-ink:#fff0ce;font-weight:600;color:var(--game-ink)}
#hud .topbar{padding:16px;justify-content:flex-end;gap:8px}#hud .topbar .logo{display:none}#hud .top-actions{gap:5px}#hud .small-button,#hud .icon-button{background:var(--game-panel);border:0;border-radius:10px;font-weight:700;min-height:42px;padding:8px 11px;color:var(--game-ink)}#hud .icon-button{width:42px;padding:10px}#hud .small-button kbd{border:0;opacity:.7}
#hud .world-status{position:fixed;left:16px;bottom:174px;background:var(--game-panel);padding:6px 10px;border-radius:8px;font-size:11px;gap:6px}#hud .separator{display:none}
#hud .vitals{top:16px;left:16px;width:242px;padding:0;background:none;pointer-events:none}#hud .identity{gap:10px;margin:0 0 8px;min-height:58px}#hud .identity canvas{width:58px;height:62px;background:var(--game-panel);border-radius:12px}#hud .identity span{font-size:11px;letter-spacing:0;font-weight:700;color:#ffe1a0}#hud .identity h1{font:800 17px/1.2 'Trebuchet MS',sans-serif;max-width:168px;text-shadow:0 2px 4px #1c2b1b}#hud .identity small{max-width:165px;font-size:11px;color:#fff0ce}#hud .bar-label{margin:0 0 5px 68px;font-size:11px;color:#fff4dc;text-shadow:0 1px 3px #172219}#hud .vitals .bar{height:7px;border:2px solid #303b29;background:#34452d;margin-top:2px;border-radius:5px}#hud .vitals .hp>b{background:#b7d675}#hud .condition{display:none}#hud #combat{margin-left:68px;color:#ffd2a4}
#hud .minimap-panel{left:16px;right:auto;top:auto;bottom:16px;padding:5px;width:138px;background:var(--game-panel);border-radius:10px}#hud .minimap-panel canvas{width:128px;height:128px;border-radius:6px}#hud .minimap-panel span{font-size:11px;text-align:center;margin:4px 0 0}#hud .minimap-panel small{display:none}
#hud .quest{display:none}#hud .live-ranking{right:18px;top:78px;width:170px;background:none;padding:0;color:#fff0ce;text-shadow:0 2px 3px #233220}#hud .live-ranking h2{font:700 11px 'Trebuchet MS',sans-serif;opacity:.8}#hud .live-ranking ol{margin-top:7px}#hud .live-ranking li{font-size:12px;font-weight:700;padding:2px 0}#hud .live-ranking li b{color:#fff0ce;font-weight:700;font-size:12px}
#hud .bottom-hud{bottom:16px;left:16px;right:16px}#hud .progress-panel{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);width:390px;max-width:36vw;padding:0;background:none;color:#fff0ce}#hud .progress-copy{font-size:11px;text-shadow:0 2px 3px #20331f}#hud .progress-copy b{font-size:11px}#hud .progress-copy span{font-size:11px;color:#fff0ce}#hud .progress-panel .bar{height:11px;border:3px solid #363b2a;border-radius:8px;margin-top:5px;background:#394d30}#hud #evolveButton{display:none}
#hud #hotbar{width:max-content;max-width:none;bottom:16px;padding:0;border:0;background:none;border-radius:0}#hud .hotbar-caption{display:none}#hud #hotbarSlots{grid-template-columns:repeat(8,50px);gap:5px}#hud .hotbar-slot{min-height:58px;padding:14px 7px 7px;background:var(--game-panel);border:2px solid transparent;border-radius:9px;gap:0;color:#fff0ce}#hud .hotbar-slot.selected{border-color:#f4cd72;background:#675936}#hud .hotbar-slot>svg{width:30px;height:30px}#hud .hotbar-slot small{display:none}#hud .hotbar-slot kbd{font-size:11px;color:#e8d5af}#hud #foodStatus{position:absolute;bottom:83px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 9px;background:var(--game-panel);border-radius:6px}#hud .hotbar-slot:has(.empty-slot){opacity:.55}
#hud .bottom-hud .actionbar{left:calc(50% + 230px);right:auto;bottom:0;transform:none;padding:0;background:none;gap:5px}#hud .actionbar button{min-width:56px;min-height:58px;max-width:66px;padding:7px 9px;background:var(--game-panel);border-radius:9px}#hud .actionbar b{display:none}#hud .actionbar kbd{font-size:11px;border:0;padding:0;color:#e8d5af}#hud #biteButton{display:none}#hud .action-icon svg{stroke-width:2.5}#hud .skill-symbol{font:800 23px 'Trebuchet MS',sans-serif;color:#f4cd72}#hud .bottom-hud #nearHelp{bottom:119px;left:50%;right:auto;transform:translateX(-50%);padding:7px 13px;border-radius:8px;font-size:12px;min-height:34px;background:#f1d38c;color:#343c28;white-space:nowrap}
#hud #resourceHud{right:16px;bottom:16px;width:122px;gap:5px}#hud .resource-row{background:var(--game-panel);padding:5px 9px;border:0;border-radius:8px;min-height:34px;gap:7px}#hud .resource-row>span:nth-child(2){display:none}#hud .resource-row svg{width:25px;height:25px;stroke-width:2.4}#hud .resource-row b{font-size:17px;color:#fff0ce}
#hud #trainingTools{position:absolute;left:170px;top:auto;bottom:16px;transform:none;width:170px;max-width:170px;padding:0;border:0;background:var(--game-panel);border-radius:9px;font-size:11px;white-space:normal;display:block}#hud #trainingTools summary{padding:9px 12px;cursor:pointer;color:#ffe1a0;min-height:38px}#hud #trainingTools:not([open])>*:not(summary){display:none}#hud #trainingTools[open]{padding-bottom:8px}#hud #trainingTools b,#hud #trainingTools span{display:none}#hud #trainingTools button{display:block;width:calc(100% - 16px);margin:4px 8px;background:#554932;min-height:34px;padding:5px 8px;text-align:left;font-size:11px}
#hud #toast{top:152px;background:var(--game-panel);border:0;padding:8px 14px;font-size:12px}#hud #connection{top:145px}#hud .drawer{top:70px;bottom:16px;max-height:none;background:#302e25fa;border:0;border-radius:14px}#hud .inventory-panel{width:440px}
#evolutionStrip{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:8;text-align:center;pointer-events:none}#quickEvolutions{display:flex;gap:6px;justify-content:center}.quick-evolution{pointer-events:auto}.quick-evolution>button{position:relative;display:flex;flex-direction:column;align-items:center;background:#342f27ed;border:2px solid #c2a263;border-radius:11px;width:80px;padding:3px;min-height:86px;color:#fff0ce}.quick-evolution canvas{width:58px;height:60px}.quick-evolution>button>span{font-size:11px;line-height:1.1;max-width:74px}.quick-evolution>button:hover{background:#655b36}#evolutionPrompt{font-weight:800;font-size:15px;color:#fff0ce;margin-top:6px;text-shadow:0 2px 4px #202e1e}.evolution-tip{display:none;position:absolute;top:114px;left:50%;transform:translateX(-50%);width:340px;max-width:90vw;text-align:left;padding:16px;background:#302d25;border:2px solid #c2a263;border-radius:12px;color:#f9edcf;font-size:12px;font-weight:400;line-height:1.5}.evolution-tip p+p{margin-top:9px}.evolution-tip b{display:block;color:#f0cc7b}.quick-evolution:hover .evolution-tip,.quick-evolution:focus-within .evolution-tip{display:block}
@media(max-width:1100px){#hud #hotbarSlots{grid-template-columns:repeat(8,43px);gap:4px}#hud .bottom-hud .actionbar{left:calc(50% + 196px)}#hud .progress-panel{width:340px}#hud #trainingTools{left:164px;width:120px}#hud .top-actions .small-button{padding:8px;font-size:11px}#evolutionStrip{top:122px}.quick-evolution>button{width:70px}#hud .live-ranking{top:72px;width:140px}}
@media(max-width:800px){#hud .vitals{width:218px}#hud .identity h1{font-size:15px}#hud .bar-label{margin-left:68px}#hud .top-actions .small-button{font-size:11px;padding:6px}#hud .top-actions .icon-button{display:none}#hud .live-ranking{display:none}#hud #hotbar{left:50%;width:max-content;max-width:none;transform:translateX(-50%)}#hud #hotbarSlots{grid-template-columns:repeat(8,38px);gap:3px}#hud .hotbar-slot{min-height:52px;padding:14px 3px 5px}#hud .bottom-hud .actionbar{left:calc(50% + 170px)}#hud .actionbar button{min-width:43px;max-width:47px;min-height:52px;padding:5px}#hud #resourceHud{width:100px;bottom:90px}#hud .minimap-panel{width:106px;bottom:90px}#hud .minimap-panel canvas{width:96px;height:96px}#hud .world-status{bottom:220px}#hud #trainingTools{left:16px;bottom:16px;width:100px}#hud .progress-panel{bottom:80px;max-width:38vw}#hud .bottom-hud #nearHelp{bottom:119px!important}}
#itemChoiceStrip{position:absolute;top:12px;left:50%;transform:translateX(-50%);text-align:center;z-index:8}#quickItems{display:flex;gap:6px;justify-content:center}#quickItems button{width:70px;min-height:76px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;background:#342f27ed;border:2px solid #c2a263;border-radius:11px;padding:6px;color:#fff0ce}#quickItems button svg{width:34px;height:34px;stroke:#333b2d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}#quickItems button span{font-size:11px;line-height:1.1}#itemChoiceStrip>p{font-size:15px;font-weight:800;margin-top:6px;color:#fff0ce;text-shadow:0 2px 4px #202e1e}.equipment-summary{display:flex;justify-content:space-between;align-items:center;margin:18px 0 12px;color:#eed49b;font-size:12px}.equipment-summary>span{font-size:11px;color:#d0d7bc}#equipmentSlots{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:20px}.equipment-slot{background:#4a4230;border-radius:9px;min-height:75px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px}.equipment-slot svg{width:30px;height:30px;stroke:#2c3427;stroke-width:2}.equipment-slot small{font-size:11px;text-align:center}.inventory-item .item-actions{display:flex;flex:0 0 112px;flex-direction:column;gap:5px}.inventory-item .item-actions button{min-height:34px;width:112px;flex:auto;padding:5px;font-size:11px}.inventory-item .item-actions button:first-child{background:#536442}.inventory-item .item-actions button:last-child{background:#5c4e32}.inventory-item>.food-item-icon{flex:0 0 30px}.inventory-item{gap:10px}#hud .inventory-tabs button{background:#4a4230;color:#f1e4c5}#hud .inventory-tabs button.active{background:#c9a65f;color:#252e22}#hud .drawer h2{font:800 23px 'Trebuchet MS',sans-serif}.equipment-slot>span{color:#bcb99b;font-size:22px}@media(max-width:1100px){#itemChoiceStrip{top:122px}}@media(max-width:600px){#quickItems button{width:58px}#hud .topbar{top:150px;justify-content:flex-end}#hud .top-actions .small-button{min-height:38px}#hud .vitals{width:210px}#hud .bottom-hud .actionbar{bottom:120px;left:50%;transform:translateX(-50%)}#hud .progress-panel{max-width:calc(100vw - 40px);width:310px}#hud .drawer{top:16px;right:12px;bottom:16px}#hud #trainingTools{left:16px;bottom:245px}#evolutionStrip,#itemChoiceStrip{top:190px}#hud .bottom-hud #nearHelp{bottom:190px!important}}
/* Keep the entry title reachable when the form is taller than the window. */
#lobby{justify-content:safe center}
/* Existing forest/copper controls, expanded for group requests and slot choices. */
#groupPanel{width:370px;max-width:calc(100vw - 24px)}
#groupPanel h3{font:20px Georgia,serif;overflow-wrap:anywhere}
#groupPanel form{margin-top:12px}#createGroupForm button{margin-top:12px}
.burrow-heading{margin:26px 0 12px}.burrow-materials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.burrow-materials input{padding:8px;min-width:0}
.group-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.group-row>div{flex:1;min-width:0}.group-row b{display:block;overflow-wrap:anywhere}.group-row small{display:block;color:var(--muted)}.group-row button{width:auto;max-width:140px;padding:8px;font-size:12px}
.group-request{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0;border-top:1px solid var(--line)}.group-request b{width:100%;overflow-wrap:anywhere}.group-request button{width:auto;flex:1;padding:8px}
#groupRequestNotice{position:absolute;right:24px;top:78px;z-index:18;background:var(--gold);color:var(--bg)}
.slot-picker{display:flex;flex-direction:column;gap:5px;margin:7px 0 0;font-size:11px;color:var(--muted)}.slot-picker select{width:100%;max-width:180px;min-height:38px;background:#26382a;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:6px;font:12px 'Trebuchet MS',sans-serif}.slot-picker select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#returnToMenu{margin-top:20px}#optionsDialog #exitGame{margin-top:10px}
