.ui06-tools{position: fixed; bottom: 10px; left: 10px; z-index: 10030; max-width: calc(-20px + 100vw); padding: 7px 10px; border: 1px solid rgb(187, 160, 105); border-radius: 8px; background: rgba(16, 35, 51, 0.96); color: rgb(240, 223, 188); font: 13px system-ui; box-shadow: rgba(0, 0, 0, 0.533) 0px 3px 12px;}
.ui06-tools summary{cursor: pointer; min-height: 28px; display: flex; align-items: center; gap: 8px;}
.ui06-tools[open]{width: 310px;}
.ui06-tools label{display: block; margin: 8px 0px;}
.ui06-tools select,.ui06-tools button{min-height: 40px; width: 100%; margin: 3px 0px;}
.ui06-tools p{font-size: 12px; line-height: 1.4;}
.ui06-tools textarea{width: 100%; height: 130px; font: 11px monospace;}
.ui06-tools output{display: block; font-size: 12px; margin: 6px 0px;}
body:has(#game.combatMode) .ui06-tools{display: none;}
body[data-ui06="A"]:has(#game.shopMode:not([hidden])),body[data-ui06="B"]:has(#game.shopMode:not([hidden])){display: block !important; height: auto !important; min-height: 100dvh !important; overflow: clip auto !important;}
body[data-ui06]:has(#game.shopMode:not([hidden])) > .wrap{min-height: 0px; height: auto !important; overflow: visible !important;}
body[data-ui06]:has(#game.shopMode:not([hidden])) > header{min-height: 58px; flex-wrap: wrap; height: auto !important;}
body[data-ui06] #game.shopMode:not([hidden]){min-height: 0px; height: auto !important; grid-template-rows: 28px auto auto auto !important;}
body[data-ui06] #game.shopMode .shopPanel{height: auto; min-height: 0px; padding: 10px;}
body[data-ui06] #game.shopMode #shop{container-type: inline-size; min-height: 0px; flex: 0 0 auto; overflow: visible; gap: 8px; height: auto !important; align-items: start !important;}
body[data-ui06] #game.shopMode .armyPanel,body[data-ui06] #game.shopMode .handZone{min-height: 0px; overflow: visible; padding: 8px 10px; height: auto !important;}
body[data-ui06] #game.shopMode #gameSidebar,body[data-ui06] #game.shopMode #gameSynergies,body[data-ui06] #game.shopMode #players{height: auto; min-height: 0px; overflow: visible;}
body[data-ui06] #game.shopMode .player{min-height: 60px; flex: 0 0 auto;}
body[data-ui06="A"]{--ui06-card-cap: 190px; --ui06-mobile-card: 180px;}
body[data-ui06="B"]{--ui06-card-cap: 230px; --ui06-mobile-card: 216px;}
@media (min-width: 1000px) {body[data-ui06="A"] #game.shopMode{column-gap: 10px; grid-template-columns: 120px minmax(0px, 1fr) 155px !important;}
body[data-ui06="B"] #game.shopMode{column-gap: 8px; grid-template-columns: 100px minmax(0px, 1fr) 140px !important;}
body[data-ui06="B"] #game.shopMode .shopPanel{padding: 16px 12px 20px; background: radial-gradient(rgba(41, 68, 67, 0.6), transparent 75%), linear-gradient(135deg, rgb(19, 43, 61), rgb(20, 33, 49)); border-color: rgba(180, 154, 90, 0.533);}}
@media (max-width: 1199px) {body[data-ui06] #game.shopMode .shopPanel{min-width: 0px; overflow: visible;}
body[data-ui06="B"] #game.shopMode .shopPanel{padding: 14px 8px 18px; background: radial-gradient(rgba(41, 68, 67, 0.6), transparent 80%), rgb(19, 39, 55);}}
@media (min-width: 650px) and (max-width: 1199px) {body[data-ui06="A"]{--ui06-mobile-card: 204px;}
body[data-ui06="B"]{--ui06-mobile-card: 232px;}}
@media (min-width: 1000px) {body[data-ui06="B"] #game.shopMode:not([hidden]){grid-template-areas: "bar" "controls" "encounters" "notice" "main" "players"; gap: 8px; grid-template-columns: minmax(0px, 1fr) !important; grid-template-rows: auto auto auto auto auto auto !important;}
body[data-ui06="B"] #game.shopMode #gameSynergies{display: grid; grid-template-columns: repeat(3, minmax(0px, 1fr)); gap: 8px; padding: 0px;}
body[data-ui06="B"] #game.shopMode .economyStrip{flex: 1 1 0%; display: flex; align-items: center;}
body[data-ui06="B"] #game.shopMode .wallet{flex-direction: row; gap: 18px; align-items: center;}
body[data-ui06="B"] #game.shopMode .wallet span{display: block;}
body[data-ui06="B"] #game.shopMode .launchbar{min-width: 220px; display: flex; align-items: center; gap: 10px;}
body[data-ui06="B"] #game.shopMode #players{display: grid; grid-template-columns: repeat(8, minmax(0px, 1fr)); gap: 8px;}
body[data-ui06="B"] #game.shopMode .player{padding: 7px; min-width: 0px;}}
@media (min-width: 1000px) and (max-width: 1199px) {body[data-ui06] #game.shopMode:not([hidden]){grid-template-areas: "bar" "controls" "encounters" "notice" "main" "players"; grid-template-columns: minmax(0px, 1fr) !important; grid-template-rows: auto auto auto auto auto auto !important;}
body[data-ui06] #game.shopMode #gameSynergies{display: flex; flex-direction: column;}
body[data-ui06] #game.shopMode #players{display: grid; grid-template-columns: repeat(4, minmax(0px, 1fr));}}
body[data-ui06]:has(#game.shopMode:not([hidden])) > .wrap{max-width: none;}
body[data-ui06="C"]{--ui06-card-cap: 190px; --ui06-mobile-card: 180px;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])){display: block !important; height: auto !important; min-height: 100dvh !important; overflow: clip auto !important;}
body[data-ui06="C"] #game.shopMode .shopPanel{padding: 5px 8px;}
body[data-ui06="C"] #game.shopMode .armyPanel,body[data-ui06="C"] #game.shopMode .handZone{padding: 4px 8px;}
body[data-ui06="C"] #game.shopMode #bar{margin: 0px; min-height: 0px; font-size: 12px;}
body[data-ui06="C"] #game.shopMode #notice{margin: 0px; padding: 0px; min-height: 0px; font-size: 11px; line-height: 1.25;}
body[data-ui06="C"] #game.shopMode #encounters{margin: 0px; padding: 0px; min-height: 0px; font-size: 11px;}
body[data-ui06="C"] #game.shopMode #encounters:empty{display: none;}
@media (min-width: 1200px) {body[data-ui06="C"] #game.shopMode:not([hidden]){gap: 3px 10px; grid-template-columns: 120px minmax(0px, 1fr) 155px !important; grid-template-rows: 22px auto auto auto !important;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > .wrap{padding: 3px 12px !important;}
body[data-ui06="C"] #game.shopMode #gameSidebar .player{min-height: 0px; padding: 5px;}
body[data-ui06="C"] #game.shopMode #players{gap: 4px;}
body[data-ui06="C"] #game.shopMode #gameSidebar .player small{font-size: 10px;}
body[data-ui06="C"] #game.shopMode #gameSidebar .scoutButton{min-height: 24px; padding: 3px 5px;}}
.ui06-header-content,.ui06-status-group{display: contents;}
.ui06-header-toggle{display: none;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header{position: relative; margin: 0px; z-index: 11000; overflow: visible; display: block !important; height: 22px !important; min-height: 22px !important; padding: 0px !important;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header .ui06-header-toggle{display: flex; align-items: center; justify-content: center; width: 100%; height: 22px; min-height: 22px; padding: 0px 8px; border: 0px; border-radius: 0px; font-size: 11px; background: rgb(16, 37, 56); color: rgb(235, 212, 158); cursor: pointer;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header .ui06-header-content{display: none; position: absolute; inset: 22px 0px auto; min-height: 58px; padding: 6px 12px; background: rgba(16, 37, 56, 0.98); border-bottom: 1px solid rgb(183, 154, 101); box-shadow: rgba(0, 0, 0, 0.533) 0px 8px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-height: calc(100dvh - 30px); overflow: auto;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header[data-ui06-header-open="true"] .ui06-header-content{display: flex;}
@media (hover: none), (pointer: coarse) {body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header{height: 44px !important; min-height: 44px !important;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header .ui06-header-toggle{height: 44px; min-height: 44px; font-size: 13px;}
body[data-ui06="C"]:has(#game.shopMode:not([hidden])) > header .ui06-header-content{top: 44px;}}
@media (min-width: 1200px) {body[data-ui06="C"] #game.shopMode:not([hidden]){grid-template-areas: "players status controls" "players main controls"; align-items: start; align-content: start; row-gap: 4px; grid-template-rows: max-content minmax(0px, 1fr) !important;}
body[data-ui06="C"] #game.shopMode .ui06-status-group{grid-area: status; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; min-width: 0px; align-self: start;}
body[data-ui06="C"] #game.shopMode .ui06-status-group #bar{flex: 1 1 0%; min-width: 180px; padding: 0px;}
body[data-ui06="C"] #game.shopMode .ui06-status-group #encounters{flex-basis: 100%;}
body[data-ui06="C"] #game.shopMode .ui06-status-group #notice{flex-basis: 100%;}}
body[data-ui06="C"] #sellZone{display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; max-height: 110px; min-width: 0px; padding: 5px; font-size: 11px; border: 2px dashed rgb(185, 146, 99); border-radius: 8px; cursor: pointer;}
body[data-ui06="C"] #sellZone.dropTarget{border-color: rgb(255, 206, 138); background: rgb(129, 80, 44); box-shadow: rgba(244, 188, 98, 0.4) 0px 0px 18px;}
body[data-ui06="C"] #game.shopMode #wallet{min-width: 0px; max-width: 100%; overflow-wrap: anywhere;}
body[data-ui06="C"] #game.shopMode #wallet strong{display: block; min-width: 0px; max-width: 100%; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.15; white-space: normal; overflow-wrap: anywhere;}
body[data-ui06="C"] #game.shopMode #wallet span{min-width: 0px; max-width: 100%; white-space: normal; overflow-wrap: anywhere;}
.ui06-card-actions{position: fixed; z-index: 10050; display: flex; align-items: stretch; gap: 4px; padding: 5px; width: 300px; max-width: calc(-16px + 100vw); box-sizing: border-box; background: rgba(16, 40, 63, 0.97); border: 1px solid rgb(212, 181, 106); border-radius: 8px; box-shadow: rgba(0, 0, 0, 0.6) 0px 5px 18px;}
.ui06-card-actions[hidden]{display: none !important;}
.ui06-card-actions button{flex: 1 1 0%; min-width: 0px; min-height: 44px; padding: 5px 3px; font-size: 11px; white-space: normal;}
@media (max-width: 999px) {body[data-ui06="C"] #sellZone{min-height: 70px;}}