/* Landscape inventory: equipment and backpack share one compact screen. */
@media (pointer:coarse) and (hover:none) and (orientation:landscape) {
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) {padding:6px!important;overflow:hidden!important;display:flex;flex-direction:column;background:radial-gradient(ellipse at 20% 45%,#263333,#11181d 60%);border-radius:5px}
 .touch-game body #inventory-dialog:not([open]) {display:none!important}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open)>.mobile-panel-tabs {display:none!important}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open)>.bag-header {display:contents}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #close-inventory {top:6px;right:6px}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open)>.mobile-stats-button {top:6px;right:54px;min-width:70px}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-layout {display:grid!important;grid-template-columns:minmax(250px,.9fr) minmax(0,1.1fr)!important;grid-template-rows:minmax(0,1fr);gap:8px;margin:0!important;flex:1;min-height:0;overflow:hidden}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-character {display:block!important;position:relative;min-height:0;height:100%;width:100%;max-width:none;margin:0;overflow:auto;border:0;border-right:1px solid #645438;border-radius:0;background:radial-gradient(ellipse at center,#39403b66,transparent 70%)}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #equipment-slots {display:grid;grid-template-columns:48px minmax(110px,1fr) 48px;grid-template-rows:repeat(5,48px);gap:5px;margin:12px 8px;padding:0;min-height:260px}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #equipment-slots .equipment-slot {width:48px;height:48px;min-width:48px;min-height:48px;padding:2px;gap:0;border-radius:3px;justify-content:center}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #equipment-slots .equipment-slot :is(small,b) {display:none!important}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #equipment-slots .equipment-slot-icon {width:40px;height:40px}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #armor-preview {display:flex!important;left:59px;right:59px;top:12px;bottom:auto;height:260px;gap:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #armor-preview canvas {width:100%;max-width:208px;max-height:260px;height:auto;object-fit:contain}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-bag {display:flex!important;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;padding:0;gap:4px}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .bag-toolbar {order:0;padding:0 124px 0 0!important;min-height:44px;margin:0;flex-shrink:0;font-size:12px;gap:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .bag-toolbar label {display:none}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .bag-body {display:block;flex:1;min-height:0;overflow:auto;padding:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #inventory-items {display:grid!important;grid-template-columns:repeat(auto-fill,64px)!important;grid-auto-rows:64px!important;gap:3px!important;justify-content:start;align-content:start;overflow:visible!important;max-height:none;padding:0!important;margin:0;border:0;background:#080e1280;border-radius:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #inventory-items :is(.bag-item,.empty-slot,.soul-inventory-item) {width:64px;height:64px;min-height:64px;border-radius:2px;margin:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-bag>.inventory-tabs {order:2;display:flex;gap:4px;margin:0;padding:0;flex-shrink:0;border:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .inventory-tabs button {flex:1;min-height:36px;padding:4px;font-size:12px;border-radius:2px}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #item-detail {display:none!important}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #gear-message {margin:0;font-size:12px;flex-shrink:0}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) #gear-message:empty {display:none}
}
@media (pointer:coarse) and (hover:none) and (orientation:landscape) {
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-layout {align-items:stretch!important;height:100%}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-bag>.craft-source-tabs {display:none!important}
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open) .armory-bag>.inventory-tabs:not(.craft-source-tabs) {margin-top:auto}
}
@media (pointer:coarse) and (hover:none) and (orientation:landscape) {
 .touch-game body #inventory-dialog:not(.shopping):not(.crafting-open)>.merchant-layout {display:flex;flex:1;min-height:0;overflow:hidden;margin:0;padding:0}
}
