@font-face{font-family:Lilita;src:url('/assets/fonts/lilita-one.ttf') format('truetype');font-display:swap}@font-face{font-family:Figtree;src:url('/assets/fonts/figtree.ttf') format('truetype');font-weight:300 900;font-display:swap}
:root{--ink:#fff1d2;--muted:#d2c5a9;--panel:#342e27;--line:#695b45;--gold:#edc36d;--bg:#192b24;--green:#b5ce7c;--danger:#f3ad95;--shell:#302b25;--control:#504536;--edge:#242b26;--radius:14px;--space:12px;font-family:Figtree,sans-serif;color-scheme:dark}
body,button,input,select,kbd{font-family:Figtree,sans-serif}button,input,select{font-size:14px}button{transition:background-color .14s,border-color .14s;min-height:44px}button:hover:not(:disabled){filter:none;background-color:#605039}button:disabled{opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f4d488;outline-offset:3px}input,select{border:2px solid #796749;border-radius:9px;background:#252c24;color:var(--ink);min-height:44px;padding:9px 12px;caret-color:var(--gold)}input::placeholder{color:#bfb79e}select{font:inherit;max-width:100%}h1,h2,h3,.primary{font-family:Lilita,Figtree,sans-serif;font-weight:400;letter-spacing:.01em}h2{font-size:28px}h3{font-size:21px}p{line-height:1.45}::selection{background:#edc36d;color:#252c24}*{scrollbar-color:#a78b56 #302b25;scrollbar-width:thin}.fine{font-size:12px!important;line-height:1.45;color:#d2c5a9!important}.primary,.secondary,.small-button,.icon-button{border:2px solid var(--edge);border-radius:10px}.primary{background:#d2b663;color:#292f23;font-size:21px;justify-content:center;gap:12px;min-height:48px}.primary:hover:not(:disabled){background:#edcf78}.secondary{background:#514b36;color:var(--ink);font-weight:700}.danger-button{background:#4d332b;border:2px solid #aa6e55;color:#ffd4c3;min-height:44px;border-radius:9px}.ui-icon,.item-art{display:block;width:40px;height:40px;object-fit:contain;flex:none}.ui-icon{width:30px;height:30px}.text-button{font-size:12px;color:#f1cf87;text-decoration-thickness:1px}.dialog-close,.close-panel{width:44px;height:44px;min-width:44px;margin:-8px -8px 0 0;border-radius:8px;font-family:Figtree,sans-serif;color:#f4dfb6}.dialog-head,.drawer-head{margin-bottom:14px;align-items:center}.dialog-head h2,.drawer-head h2{font-family:Lilita,Figtree,sans-serif!important;font-weight:400!important}
/* Entry is a single complete screen; the world remains visible around it. */
#lobby{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:20px;background:#15261dcc;overflow:hidden;height:100dvh;min-height:0}
.lobby-world{text-align:center;max-width:660px;flex:none}.large-mark{display:none}.lobby-world>h1{font:400 clamp(38px,5vw,62px)/1 Lilita,sans-serif;letter-spacing:.01em;color:#fff0c6;text-shadow:0 3px 8px #111e17}.lobby-world h1 span{font:600 13px/1.3 Figtree,sans-serif;letter-spacing:0;margin-top:7px;color:#e9d5ad}.lobby-world>p{display:none}.world-facts{margin-top:8px;display:flex;flex-direction:row;justify-content:center;gap:16px;font-size:11px;color:#dfddc2}.world-facts span:before{display:none}
.entry-panel{width:min(600px,100%);padding:20px 24px;border:3px solid #726046;border-radius:16px;background:#342e27;box-shadow:0 14px 40px #0b160e55;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;min-height:0}.entry-panel h2{grid-column:1/-1;text-align:center;font-size:23px;margin:0 0 4px}.entry-panel>label{grid-column:1/-1;margin:0;color:#e8d2a9;font-size:12px}.entry-panel>#nickname{grid-column:1/-1;min-height:44px;text-align:center;font-size:18px;font-weight:700}.entry-panel fieldset{grid-column:1/-1;margin:5px 0 0}.entry-panel legend{margin:0 0 7px;color:#dfd1b0;font-size:12px}.starter-choices{gap:8px}.starter-choice{border:2px solid #6a5e46;background:#484435;border-radius:12px;padding:5px;min-height:94px;justify-content:center;gap:2px}.starter-choice canvas{width:72px;height:66px}.starter-choice b,#starterChoices .starter-choice b{font:600 12px/1.2 Figtree,sans-serif;min-height:0;text-align:center}.starter-choice.selected{background:#76633f;border-color:#edc36d}.starter-choice:hover:not(:disabled){background:#62573b}.starter-details{grid-column:1/-1;min-height:0;margin:3px 0 6px;padding:0 2px;font-size:12px;line-height:1.35}.starter-details>b{font-size:13px;color:#edce87;margin:0 0 3px}.starter-details>p{display:none}.starter-details .strength{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px!important;line-height:1.35!important;margin:0;color:#e4d7b9}.entry-panel #playButton{grid-column:1/-1;margin:0;min-height:48px}.entry-panel #trainingButton{grid-column:1/-1;min-height:36px;padding:5px;font-size:12px}.entry-panel #lobbyShop{grid-column:1/2;margin:0;display:flex;gap:8px;align-items:center;justify-content:center;min-height:42px;padding:4px 8px}.entry-panel #lobbyOptions{grid-column:2/3;grid-row:auto;min-height:42px;padding:4px 8px;background:#484435;text-decoration:none;border-radius:9px;border:2px solid #242b26;font-size:13px}.entry-panel #lobbyBestiary{grid-column:1/-1;min-height:24px;padding:0}.entry-footer{grid-column:1/-1;margin:0;min-height:28px;font-size:12px}.entry-footer .text-button{min-height:28px;padding:0}.entry-panel #joinError{grid-column:1/-1;margin:0;font-size:12px}.entry-panel #joinError:empty{display:none}#lobbyControlHint{grid-column:1/-1;margin:0;font-size:11px!important;text-align:center}.lobby-bottom{position:static;display:flex;gap:15px;justify-content:center;font-size:11px;color:#d5d8bb}.lobby-bottom span:first-child{letter-spacing:0}
/* Quiet edge HUD, with one place for each kind of information. */
#hud{--game-panel:#332e27f5;--game-control:#504536;--game-edge:#242b26;--game-ink:#fff1d2;font-weight:600}#hud .topbar{padding:12px;top:0;gap:8px;justify-content:flex-end}#hud .top-actions{width:auto;gap:6px}#hud .small-button,#hud .icon-button{height:46px;min-height:46px;background:var(--game-panel);border:2px solid #726046;padding:6px 10px;border-radius:10px;font:700 13px Figtree,sans-serif;display:flex;align-items:center;justify-content:center;gap:5px}#hud .icon-button{width:46px}#hud .small-button:hover,#hud .icon-button:hover{background:#5b513b}#hud .small-button kbd{font-size:11px;margin:0;padding:0}#hud .world-status{position:fixed;left:14px;bottom:14px;border-radius:8px;background:#273329e8;padding:5px 9px;min-height:28px;font-size:11px}.topbar .world-status #period{color:#dfd4b7}#hud .vitals{top:12px;left:12px;width:240px;padding:9px 12px;background:#332e27f2;border:2px solid #726046;border-radius:13px}#hud .identity{gap:9px;min-height:46px;margin-bottom:6px}#hud .identity canvas{width:50px;height:50px;background:#484435;border-radius:9px}#hud .identity h1{font:400 19px/1.1 Lilita,sans-serif;max-width:156px;text-shadow:none}#hud .identity small{font:500 12px Figtree,sans-serif}#hud .identity span{font:700 11px Figtree,sans-serif;color:#edce87}#hud .bar-label{margin:0;font-size:11px;text-shadow:none}#hud .vitals .bar{height:10px;border:2px solid #232e25;background:#4d5039}#hud #combat{font-size:11px;margin:5px 0 0;color:#ffbf9f}#hud .minimap-panel{top:76px;bottom:auto;left:auto;right:14px;width:128px;padding:5px;border:2px solid #726046;background:#332e27f2}#hud .minimap-panel canvas{width:114px;height:114px;border-radius:5px}#hud .minimap-panel>span{font-size:11px}#hud .live-ranking{right:14px;top:238px;bottom:auto;width:130px;padding:8px;background:#29372be0;border-radius:9px}#hud .live-ranking h2{font:600 11px Figtree,sans-serif}#hud .live-ranking li{font:600 11px Figtree,sans-serif}#hud .live-ranking li b{font-size:11px}#hud .live-ranking li span{max-width:62px}
#hud #resourceHud{right:14px;bottom:16px;display:grid;width:112px;gap:4px}#hud .resource-row{min-height:33px;padding:3px 8px;background:#332e27f2;border-radius:8px;gap:8px;border:0}#hud .resource-row .item-art{width:28px;height:28px}#hud .resource-row b{font-size:15px;color:#fff1d2}#hud .resource-row>span:nth-child(2){display:none}#hud #hotbar{left:50%;bottom:14px;transform:translateX(-50%);width:max-content;max-width:none;background:none;border:0;padding:0}#hud #hotbarSlots{display:grid;grid-template-columns:repeat(8,48px);gap:5px}#hud .hotbar-slot{height:54px;min-height:54px;border:2px solid #6a5d45;border-radius:10px;padding:10px 3px 3px;background:#332e27f2;position:relative}#hud .hotbar-slot.selected{border-color:#edc36d;background:#74603b}#hud .hotbar-slot .item-art{width:38px;height:38px}#hud .hotbar-slot kbd{font:600 10px Figtree,sans-serif;top:2px;left:4px;color:#fff1d2}#hud .hotbar-slot small,#hud .hotbar-caption{display:none}#hud .hotbar-slot:has(.empty-slot){opacity:.7}#hud .progress-panel{position:fixed;left:50%;bottom:78px;max-width:none;width:360px;transform:translateX(-50%);padding:0;background:none}#hud .progress-panel .bar{height:10px;margin-top:3px}#hud .progress-copy b,#hud .progress-copy span{font-size:11px}#hud .bottom-hud .actionbar{left:calc(50% + 220px);bottom:0;transform:none;right:auto;gap:5px}#hud .actionbar button{border:2px solid #726046;border-radius:10px;min-width:50px;min-height:54px;background:#332e27f2}#hud .skill-symbol{font:400 21px Lilita,sans-serif;color:#edc36d}#hud .bottom-hud #nearHelp{bottom:116px!important;left:50%;transform:translateX(-50%);background:#d9c27a;color:#293122;min-height:44px;padding:8px 13px;font-size:13px;white-space:normal;max-width:320px}
#hud #evolutionStrip{top:126px;left:14px;transform:none}#hud #attributeNotice{min-width:0;min-height:42px;padding:7px 12px;font:700 12px Figtree,sans-serif;border:2px solid #786744;background:#d5bb72;color:#293122}#hud #itemChoiceStrip{top:180px;left:14px;transform:none}#hud #itemChoiceStrip:has(~ #evolutionStrip:not([hidden])){top:180px}#quickItems{gap:5px;max-width:230px;flex-wrap:wrap;justify-content:flex-start}#quickItems button{width:65px;min-height:73px;border:2px solid #726046;background:#332e27f2;border-radius:10px;padding:4px}#quickItems .item-art{width:37px;height:37px}#quickItems button span{font-size:11px}#itemChoiceStrip>p{font:600 11px Figtree,sans-serif;text-align:left}#hud #trainingTools{left:14px;bottom:53px;width:140px;max-width:140px;z-index:5}#hud #trainingTools summary{font-size:11px}#hud #toast{top:78px;z-index:140;max-width:min(440px,calc(100vw - 24px));width:max-content;font-size:13px;background:#302c24;border:2px solid #a08854;border-radius:10px}#hud #connection{top:126px;z-index:140}
/* Protected-focus tasks use the centre, not a narrow corner. */
dialog{padding:22px;background:#342e27;border:3px solid #79664a;border-radius:16px;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;color:#fff1d2;box-shadow:0 16px 50px #0c160d66}dialog::backdrop{background:#0b1b16b8}dialog>p{font-size:14px;line-height:1.45;margin:12px 0;color:#e1d4b5}dialog .fine{margin-top:10px}dialog h2{font-size:28px}.dialog-buttons{margin-top:18px}.dialog-buttons .primary{font-size:17px}#optionsDialog{width:500px}#optionsDialog>label{margin-top:14px}#optionsDialog>select{width:100%}#optionsDialog .check{min-height:44px;font-size:14px;margin:4px 0}#optionsDialog .check input{width:20px;min-height:20px;accent-color:#d4b66e}#optionsDialog #fullscreenButton{margin-top:10px}
#hud .drawer{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);bottom:auto;right:auto;width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);height:auto;padding:20px;border:3px solid #79664a;border-radius:16px;background:#342e27;z-index:110;overflow:auto;box-shadow:0 16px 50px #0c160d66}#drawerBackdrop{position:fixed;inset:0;width:100vw;height:100dvh;border:0;border-radius:0;background:#0b1b16b8;z-index:100;padding:0}#hud .drawer p{margin-bottom:8px;font-size:12px;color:#e2d5b8}#hud .drawer form{margin-top:10px}#hud .drawer-head h2{font-size:27px}#hud .equipment-summary{margin:0 0 8px;font-size:13px;color:#edce87}#hud #equipmentSlots{display:flex;gap:7px;margin:0 0 12px}#hud .equipment-slot{width:48px;min-height:48px;height:48px;background:#4d4635;padding:4px;border-radius:9px}#hud .equipment-slot .item-art{width:38px;height:38px}#hud .equipment-slot small{display:none}.inventory-tabs{display:flex;gap:5px;margin:0 0 10px}#hud .inventory-tabs button{flex:1;min-height:42px;padding:6px 9px;font:600 13px Figtree,sans-serif;background:#514b37;border:2px solid #716245;border-radius:8px;color:#fff1d2}#hud .inventory-tabs button.active{background:#d2b66d;color:#292f23;border-color:#edce87}#hud #benchState{font-size:12px;margin:0 0 12px;min-height:0}#inventoryContents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#hud .inventory-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:5px 8px;padding:10px;border:0;border-radius:10px;background:#454133;align-content:start;min-width:0}#hud .inventory-item>div:first-of-type{min-width:0}#hud .inventory-item b{font-size:13px;line-height:1.15}#hud .inventory-item p{font-size:11px!important;line-height:1.3;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#hud .inventory-item .equipped-label{color:#efd391;font-size:11px!important;-webkit-line-clamp:1}#hud .inventory-item .item-actions{grid-column:1/-1;display:flex;flex-direction:row;width:100%;flex-basis:auto;gap:5px;margin-top:4px}#hud .inventory-item .item-actions button{width:100%;min-height:40px;flex:1;padding:6px;font-size:12px;background:#5d5e3c;border:1px solid #95824e;border-radius:7px}#hud .inventory-item .item-actions .slot-picker{width:100%;margin:0;gap:3px;font-size:11px}#hud .slot-picker select{width:100%;max-width:none;min-height:40px;font:13px Figtree,sans-serif;background:#2c3528;padding:5px;border-radius:7px}#hud .food-item-icon{width:40px;display:grid;place-items:center}#inventoryContents>.inventory-empty{grid-column:1/-1;padding:22px 4px}.inventory-panel #inventoryMaterials{display:none}#evolutionDialog{width:680px}#attributeSummary{font-size:14px;color:#f1d18a}#attributeCurrent{font-size:12px!important;line-height:1.4;padding:9px 12px;background:#484434;border-radius:9px}#attributeRows{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0}.attribute-row{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:13px;border:0;border-radius:10px;background:#474332;gap:10px}.attribute-row b{font-size:17px}.attribute-row p{font-size:12px;line-height:1.35;margin:5px 0}.attribute-row small{font-size:11px;line-height:1.35;color:#ddd0b1}.attribute-row button{min-height:44px;width:100%;font-weight:700;font-size:15px}.attribute-row button:not(:disabled){background:#d2b66d;color:#292f23;border-color:#edce87}#bestiaryDialog{width:760px}.book-body{gap:18px}.book-art canvas{max-width:100%;height:auto}#bestiaryDialog .evolution-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.controls-list>div{font-size:13px}.controls-list dt{max-width:45%}.controls-list dd{max-width:55%}#fullMap{display:block;max-width:100%;height:auto;max-height:65dvh;object-fit:contain;margin:auto}#shopDialog #shopContents{display:grid;grid-template-columns:1fr 1fr;gap:10px}#shopContents .inventory-item{display:grid;grid-template-columns:35px 1fr;padding:12px;background:#474332;border-radius:10px;border:0}#shopContents .inventory-item button{grid-column:1/-1;width:100%;min-height:42px}.hat-row p{font-size:12px;margin:4px 0}.hat-swatch{margin:0}.mobile-menu-grid{gap:8px}.burrow-materials label{font-size:12px}.burrow-materials input{font-size:16px;min-height:44px}#groupPanel{width:660px}#burrowDeleteControls{margin-top:18px;padding-top:10px;border-top:1px solid #79664a}#burrowDeleteControls .danger-button{margin-top:6px}#burrowDeleteControls .secondary{margin-top:8px}.group-row button,.group-request button,.member button{min-height:44px}#burrowForm button,#burrowRepairForm button{margin-top:8px}#groupPanel .burrow-heading{font-family:Lilita,sans-serif;margin:18px 0 8px}#groupRequestNotice{top:72px;right:155px;background:#d6bd77;color:#292f23;font-size:12px;max-width:240px}
@media(max-width:1050px){#hud #hotbarSlots{grid-template-columns:repeat(8,43px);gap:4px}#hud .bottom-hud .actionbar{left:calc(50% + 193px)}#hud .top-actions .small-button{font-size:12px;padding:5px 8px}#hud .vitals{width:215px}#hud .identity h1{font-size:17px}#hud .progress-panel{width:320px}.book-art{padding:0}.book-body{grid-template-columns:1fr 1fr}}
@media(max-width:800px){#hud .topbar{top:0;left:auto;right:0;width:auto}#hud .top-actions .small-button:not(#openInventory){display:none}#hud .top-actions .icon-button{display:flex}#hud #openHelp,#hud #settings{display:none}#hud #mobileMenuButton{display:flex}#hud .vitals{width:205px}#hud .minimap-panel{top:78px;right:12px;width:102px}#hud .minimap-panel canvas{width:88px;height:88px}#hud .minimap-panel span{display:none}#hud .live-ranking{display:none}#hud #resourceHud{right:12px;width:88px;bottom:90px}#hud .resource-row{padding:3px 6px;gap:4px}#hud .resource-row b{font-size:13px}#hud .resource-row .item-art{width:25px;height:25px}#hud #hotbarSlots{grid-template-columns:repeat(8,39px);gap:4px}#hud .bottom-hud .actionbar{left:calc(50% + 178px)}#hud .actionbar button{min-width:44px;max-width:44px}#hud .progress-panel{width:310px}#hud #trainingTools{bottom:48px;width:100px}.book-body{grid-template-columns:1fr 1fr}.book-body .starter-details{font-size:12px}.book-body #bookStats{font-size:12px}.book-art canvas{width:100%}#bookDetails .strength{display:block!important}#bookDetails>p{display:block}#bestiaryDialog .book-body{max-height:none}.lobby-bottom{display:none}}
@media(max-width:520px){#lobby{padding:12px;gap:10px}.lobby-world>h1{font-size:40px}.lobby-world h1 span{font-size:12px;margin-top:5px}.world-facts{font-size:11px;gap:10px;margin-top:6px}.entry-panel{padding:14px;gap:7px 9px;border-radius:14px}.entry-panel h2{font-size:21px;margin:0}.entry-panel fieldset{margin-top:3px}.starter-choices{gap:5px}.starter-choice{min-height:83px;padding:3px}.starter-choice canvas{width:58px;height:55px}.starter-choice b,#starterChoices .starter-choice b{font-size:11px;min-height:24px}.starter-details{margin-bottom:3px}.entry-panel .starter-details .strength{font-size:11px!important;-webkit-line-clamp:3}.entry-panel #lobbyShop,.entry-panel #lobbyOptions{font-size:12px;min-height:40px}.entry-panel #trainingButton{font-size:11px;min-height:32px}.entry-footer{font-size:11px}.entry-footer .text-button{font-size:11px}#lobbyControlHint{font-size:11px!important}.entry-panel #nickname{font-size:16px;min-height:42px}.entry-panel>#playButton{min-height:46px;font-size:22px}.entry-panel #lobbyBestiary{font-size:11px;min-height:24px}dialog,#hud .drawer{padding:15px;max-height:calc(100dvh - 16px);max-width:calc(100vw - 16px);border-radius:13px}dialog h2,#hud .drawer-head h2{font-size:23px}.dialog-head,.drawer-head{margin-bottom:10px}.fine{font-size:11px!important}.dialog-close,.close-panel{margin:-5px -5px 0 0}#attributeRows{gap:8px}.attribute-row{padding:10px;gap:8px}.attribute-row b{font-size:16px}.attribute-row p{font-size:11px}.attribute-row small{font-size:11px;line-height:1.35}#attributeSummary{font-size:12px;margin:8px 0}#attributeCurrent{font-size:11px!important;margin:8px 0}#evolutionDialog>p:last-child{font-size:11px!important;line-height:1.4}#inventoryContents{grid-template-columns:1fr 1fr;gap:7px}#hud .inventory-item{padding:8px;grid-template-columns:32px minmax(0,1fr);gap:5px}#hud .inventory-item .item-art,#hud .food-item-icon{width:32px;height:32px}#hud .inventory-item b{font-size:12px}#hud .inventory-item p{font-size:11px!important;-webkit-line-clamp:2}#hud .inventory-item .item-actions button{min-height:42px;font-size:11px}#hud .equipment-summary{font-size:12px}#hud .equipment-summary>span{font-size:11px}#hud #equipmentSlots{margin-bottom:10px}#hud .equipment-slot{width:40px;min-height:40px;height:40px}#hud .equipment-slot .item-art{width:32px;height:32px}#hud .inventory-tabs button{font-size:11px;padding:6px;min-height:40px}#hud #benchState{font-size:11px;line-height:1.3;margin-bottom:8px}#hud .vitals{top:8px;left:8px;padding:6px 8px;width:180px;border-radius:11px}#hud .identity{min-height:37px;margin-bottom:4px;gap:6px}#hud .identity canvas{width:38px;height:38px}#hud .identity h1{font-size:15px}#hud .identity span,#hud .identity small{font-size:11px}#hud .bar-label{font-size:11px}#hud #combat{font-size:11px}#hud .topbar{padding:8px}#hud .small-button,#hud .icon-button{min-height:44px;height:44px;width:44px;padding:5px}#hud #openInventory kbd{display:none}#hud .minimap-panel{right:8px;top:61px;width:82px;padding:4px}#hud .minimap-panel canvas{width:70px;height:70px}#hud #resourceHud{top:155px;right:8px;bottom:auto;width:78px;gap:3px}#hud .resource-row{min-height:28px;padding:2px 5px}#hud .resource-row .item-art{width:23px;height:23px}#hud .resource-row b{font-size:12px}#hud .world-status{left:8px;bottom:8px;font-size:11px;min-height:24px}#hud #evolutionStrip{top:104px;left:8px}#hud #attributeNotice{font-size:11px;min-height:40px;max-width:195px;white-space:normal}#hud #itemChoiceStrip{top:151px!important;left:8px;max-width:210px}#quickItems{max-width:190px;gap:3px}#quickItems button{width:58px;min-height:63px}#quickItems .item-art{width:30px;height:30px}#quickItems button span{font-size:11px}#hud #hotbar{bottom:42px}#hud #hotbarSlots{grid-template-columns:repeat(8,37px);gap:4px}#hud .hotbar-slot{height:49px;min-height:49px;padding:9px 2px 3px}#hud .hotbar-slot .item-art{width:32px;height:32px}#hud .progress-panel{display:block;bottom:96px;width:310px;max-width:80vw}#hud .progress-copy{display:flex}#hud .bottom-hud .actionbar{left:auto;right:0;bottom:0;transform:none}#hud .actionbar button{height:44px;min-height:44px}#hud .bottom-hud #nearHelp{bottom:115px!important;font-size:12px;max-width:250px}#hud #trainingTools{bottom:38px;left:8px;max-width:100px}#hud #toast{top:105px;font-size:12px}#hud #connection{top:155px;font-size:12px}#groupRequestNotice{top:104px;right:8px;max-width:180px;font-size:11px}.book-body{grid-template-columns:1fr}.book-art{display:none}#bestiaryDialog .evolution-choices{gap:5px}#bestiaryDialog .evolution-choice canvas{max-width:100%;height:auto}#bestiaryDialog .evolution-choice{padding:5px}#bestiaryDialog .evolution-choice b{font-size:11px}#bookDetails>p{font-size:12px}#shopDialog #shopContents{gap:8px}#shopContents .inventory-item{padding:8px;gap:6px}#shopContents .inventory-item b{font-size:13px}#shopContents .inventory-item p{font-size:11px}#groupPanel p{font-size:12px}.burrow-materials{gap:6px}.burrow-materials input{padding:7px}#groupPanel .burrow-heading{font-size:20px}}
@media(max-height:760px) and (min-width:650px){#lobby{display:grid;grid-template-columns:minmax(180px,300px) minmax(380px,550px);gap:26px;padding:16px;justify-content:center;align-items:center}.lobby-world>h1{font-size:48px}.lobby-world h1 span{line-height:1.5}.world-facts{flex-direction:column;gap:5px}.entry-panel{padding:12px 18px;gap:5px 12px}.entry-panel h2{font-size:21px}.entry-panel fieldset{margin-top:0}.entry-panel .starter-choice{min-height:75px}.entry-panel .starter-choice canvas{width:54px;height:48px}.entry-panel .starter-details .strength{-webkit-line-clamp:2;font-size:11px!important}.entry-panel .starter-details{margin:0 0 3px}.entry-panel #lobbyControlHint{display:none}.entry-panel #trainingButton{min-height:30px}.entry-panel #nickname{min-height:38px}.entry-panel #playButton{min-height:43px}.entry-panel #lobbyShop,.entry-panel #lobbyOptions{min-height:37px}.lobby-bottom{display:none}#hud #inventoryContents{grid-template-columns:repeat(3,minmax(0,1fr))}#hud .drawer .equipment-summary,#hud #equipmentSlots{display:none}#hud .drawer{padding:14px}#hud .drawer-head{margin-bottom:8px}#hud .inventory-tabs{margin-bottom:8px}#hud .inventory-item p{display:none}#attributeRows{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.attribute-row{padding:10px}.attribute-row p{display:none}#evolutionDialog{width:min(900px,calc(100vw - 24px))}#attributeCurrent{margin:8px 0}.attribute-row small{font-size:11px}#evolutionDialog>p:last-child{font-size:11px!important}#hud .minimap-panel{display:none}#hud #resourceHud{top:72px;bottom:auto}}
@media(max-width:380px){#hud #hotbarSlots{grid-template-columns:repeat(8,34px);gap:3px}.entry-panel{padding:11px}.starter-choice canvas{width:52px}.entry-panel .starter-details .strength{-webkit-line-clamp:2}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media(max-height:720px) and (max-width:649px){#lobby{gap:6px;padding:8px}.lobby-world>h1{font-size:32px}.lobby-world h1 span,.world-facts{display:none}.entry-panel{padding:10px 12px;gap:5px 8px}.entry-panel h2{font-size:19px}.entry-panel .starter-choice{min-height:72px}.entry-panel .starter-choice canvas{height:43px;width:48px}.entry-panel .starter-details .strength{-webkit-line-clamp:2}.entry-panel #lobbyControlHint{display:none}.entry-panel #lobbyBestiary{min-height:22px}.entry-panel #trainingButton{min-height:28px;font-size:11px}.entry-footer{min-height:25px}}

dialog .dialog-head,#hud .drawer-head{position:sticky;top:-16px;background:#342e27;z-index:2;padding-top:4px;padding-bottom:5px}.ui-icon,.item-art{background-color:transparent}@media(max-height:720px) and (max-width:649px){.attribute-row p{display:none}.attribute-row{gap:6px;padding:9px}.attribute-row small{font-size:11px}.attribute-row button{min-height:44px}#evolutionDialog>p:last-child{font-size:11px!important;line-height:1.3}}

@media(max-width:520px){#hud .resource-row{padding:3px 5px}}



.entry-panel{flex-shrink:0}

/* Item conditions stay readable; complete explanations also work by touch. */
#hud .inventory-item .equipped-label{display:block;overflow:visible;white-space:normal;-webkit-line-clamp:unset}#hud .inventory-item>div:first-of-type>p:first-of-type{display:block;overflow:visible;-webkit-line-clamp:unset}#hud .inventory-item .item-actions button{min-height:44px}#itemDetailsDialog{width:430px}#itemDetailsText{font-size:15px;line-height:1.6}

/* The HUD uses icons at every desktop window size; text lives in accessible names. */
#hud .top-actions>button{width:44px;min-width:44px;height:44px;min-height:44px;padding:6px}#hud .top-actions kbd,#hud #groupCount{display:none}#hud .top-actions svg{width:25px;height:25px;fill:none;stroke:#f1d18c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#hud #openInventory{width:44px}#hud .topbar{max-width:100%;width:auto}#hud .top-actions{flex-wrap:nowrap}
html:not(.touch-ui) #hud #resourceHud{top:auto;bottom:14px}html:not(.touch-ui) #hud .minimap-panel{display:block;top:72px;bottom:auto}html:not(.touch-ui) #hud .bottom-hud .actionbar{position:fixed;left:calc(50% + 224px);right:auto;bottom:14px}#hud .actionbar kbd{display:none}#hud .actionbar button{width:48px;height:54px;min-height:54px}
#rotateScreen{position:fixed;inset:0;z-index:300;background:#192b24;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:28px;text-align:center}#rotateScreen[hidden]{display:none}#rotateScreen>svg{width:100px;height:80px;fill:none;stroke:#edc36d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#rotateScreen h2{font-size:30px;margin:0}#rotateScreen p{max-width:330px;margin:0}#rotateScreen button{width:min(300px,100%)}
@media(max-height:700px){html:not(.touch-ui) #hud .live-ranking{display:none}html:not(.touch-ui) #hud .minimap-panel{width:98px}html:not(.touch-ui) #hud .minimap-panel canvas{width:84px;height:84px}html:not(.touch-ui) #hud .minimap-panel span{display:none}}
@media(max-width:800px){html:not(.touch-ui) #hud .bottom-hud .actionbar{left:calc(50% + 175px)}}

/* Approved original SVGs share one centred icon frame; labels remain accessible. */
#hud .top-actions>button{display:grid;place-items:center;gap:0}#hud .top-actions .ui-icon{width:30px;height:30px;margin:0}#hud #skillButton,#touchSkill{position:relative;display:grid;place-items:center}#skillButton .ui-icon,#touchSkill .ui-icon{width:34px;height:34px}#hud #skillCd,#touchCooldown{position:absolute;inset:auto 2px 2px auto;font:700 12px Figtree,sans-serif;background:#302b25;color:#fff1d2;border-radius:4px;padding:1px 3px}#skillCd:empty,#touchCooldown:empty{display:none}
