#style-game .boutique-title{padding:9px 12px;font-size:10px}
#style-game .game-toolbar{padding:10px 12px;gap:10px;flex-wrap:nowrap}
#style-game .game-toolbar label{gap:3px;min-width:0}
#style-game .game-toolbar select{max-width:160px;width:100%;padding:6px;font-size:12px}
#style-game .game-toolbar small{margin-bottom:3px}
#style-game .game-toolbar strong{font-size:17px}
#style-game .game-toolbar #game-reset{padding:6px;font-size:10px}
#style-game .game-browse-header{padding:10px 12px 5px;background:#f8f2e6}
#style-game .shop-sign{font-size:22px;margin:0 0 8px}
#style-game .shop-sign span{display:none}
#style-game .game-tabs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
#style-game .game-tabs button{min-width:0;padding:6px 2px;font-size:10px;min-height:38px}
#style-game .wardrobe-count{margin:5px 0;font-size:10px}
#style-game .game-floor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:440px;min-height:0}
#style-game .game-store{padding:8px 12px;display:flex;flex-direction:column;min-height:0;min-width:0}
#style-game #game-rack{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:100%!important;min-height:0!important;flex:1;align-content:start;gap:8px!important;padding:4px 6px 10px!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
#style-game #game-rack button{padding:6px 4px!important;gap:3px!important;box-shadow:2px 3px 0 #d8c69c!important;border-radius:8px!important}
#style-game #game-rack svg{height:95px!important;max-height:95px!important;flex:none}
#style-game #game-rack b{font:12px/1.2 Georgia!important;padding:2px 0!important;overflow-wrap:anywhere}
#style-game #game-rack small{font-size:10px!important}
#style-game .game-note{font:10px/1.3 monospace;margin:6px 0 0}
#style-game .game-fitting{padding:8px 10px;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;border-top:0;border-left:1px solid #c6a349}
#style-game .fitting-sign{font-size:9px;letter-spacing:.12em;padding:5px 7px;flex:none}
#style-game .game-model{width:100%;max-width:225px;height:auto;min-height:0;flex:1;margin:8px auto;border-width:5px!important;box-shadow:inset 0 0 0 3px #806b30,2px 3px 0 #d1c6b7!important}
#style-game .game-selection{width:100%;min-height:0;max-height:30px;overflow-y:auto;font:9px/1.3 monospace;margin:5px 0 0}
#style-game .game-total{padding:6px 0;font-size:9px;width:100%;gap:4px}
#style-game #game-finish{min-height:34px;padding:6px;font-size:10px;flex:none}
#style-game .game-status{padding:7px 10px;font-size:9px;line-height:1.4}
@media(max-width:800px){
#style-game{padding-left:10px;padding-right:10px}
#style-game .game-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
#style-game .game-tabs button{font-size:9px;min-height:34px}
#style-game .game-floor{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);height:clamp(300px,calc(100svh - 340px),440px)}
#style-game .game-store{padding:5px 5px 7px}
#style-game #game-rack{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:3px 4px 8px!important}
#style-game #game-rack svg{height:68px!important;max-height:68px!important}
#style-game #game-rack b{font-size:10px!important}
#style-game #game-rack small{font-size:9px!important}
#style-game .game-fitting{padding:5px 7px 7px}
#style-game .game-toolbar select{max-width:125px;font-size:10px}
#style-game .game-toolbar label,#style-game .game-toolbar small{font-size:9px}
#style-game .game-toolbar strong{font-size:14px}
#style-game .game-toolbar #game-reset{font-size:9px;max-width:75px}
#style-game .game-total{font-size:8px}
}

/* Cards own their labels and tap targets; rows never compress below their contents. */
#style-game #game-rack{grid-auto-rows:max-content!important;align-items:start!important}
#style-game #game-rack button{height:auto!important;min-height:148px!important;overflow:hidden!important;justify-content:flex-start!important;align-self:start!important;position:relative!important}
#style-game #game-rack button>svg{flex:0 0 95px!important;pointer-events:none}
#style-game #game-rack button>b{flex:none!important;position:static!important;white-space:normal!important;width:100%;line-height:1.25!important;min-height:0!important;margin:3px 0 0!important;pointer-events:none}
#style-game #game-rack button>small{position:static!important;flex:none!important;margin:3px 0 0!important;line-height:1.3!important;pointer-events:none}
@media(max-width:800px){#style-game #game-rack button>svg{flex-basis:68px!important}#style-game #game-rack button{min-height:124px!important}}
