/* Tela Garagens (client/garages.js, docs/garagens.md). Arte em assets/garages.png (tools/garages.mjs):
   5 raridades de 48×40 lado a lado e o ícone 16×16 em x = 240. Cores do selo = as dos tiers (style.css). */
.g-carport { --gc: var(--common); } .g-lockup { --gc: var(--uncommon); } .g-workshop { --gc: var(--rare); }
.g-showroom { --gc: var(--mythic); } .g-museum { --gc: var(--legendary); }
.gar-ico { --s: 16px; display: inline-block; flex: none; width: var(--s); height: var(--s); image-rendering: pixelated;
  background: url('assets/garages.png') calc(var(--s) * -15) 0 / calc(var(--s) * 16) calc(var(--s) * 2.5) no-repeat; }
.gar-art { --k: 1; --gi: 0; display: inline-block; flex: none; width: calc(48px * var(--k)); height: calc(40px * var(--k)); image-rendering: pixelated;
  background: url('assets/garages.png') calc(var(--gi) * -48px * var(--k)) 0 / calc(256px * var(--k)) calc(40px * var(--k)) no-repeat; }
.gar-art.big { --k: 2; }
.gseal { font: 700 10.5px/1 var(--pixel); padding: 3px 6px; border-radius: 4px; background: #0a0614; color: var(--gc); box-shadow: inset 0 0 0 2px currentColor; white-space: nowrap; }
.gseal.g-museum { color: #fff; background: var(--legendary); box-shadow: inset 0 0 0 2px #ffb0d0; }
.gar .gar-what { margin: 2px 0 8px; font-size: 13px; color: var(--ink2); }
.gar .gar-empty { padding: 14px 4px; color: var(--ink2); text-align: center; }
.gar .gar-note { display: block; margin-top: 6px; color: var(--ink2); }
.gar-rars { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.gar-rar { display: flex; align-items: center; gap: 8px; font-size: 12px; } .gar-rar small { display: block; margin-top: 4px; color: var(--ink2); }
.gar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 10px; margin-bottom: 10px; }
.gar-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: 'art info acts' 'art slots acts'; column-gap: 10px; row-gap: 4px; align-items: center; padding: 8px; border-radius: 6px;
  background: var(--w-dark); box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gc); }
.gar-card.stored { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--w-light); }
.gar-card.stored .gar-art { filter: grayscale(.7) brightness(.8); }
.gar-card.g-showroom:not(.stored), .gar-card.g-museum:not(.stored) { background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 16%, var(--w-dark)), var(--w-dark)); }
.gar-card > .gar-art { grid-area: art; } .gar-card .gar-info { grid-area: info; } .gar-card .gar-slots { grid-area: slots; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .gar-card .acts { grid-area: acts; }
.gar-card .gar-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .gar-card .gar-info > small { color: var(--ink2); }
.gar-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .gar-no { font-family: var(--pixel); font-variant-numeric: tabular-nums; }
.gar-name .tag.on { color: #06202a; background: var(--cash); }
.gar-card .acts .btn { min-height: 32px; font-size: 11px; }
.gar-slot { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; background: #0a061466; min-height: 40px; }
.gar-slot .btn { min-height: 28px; font-size: 11px; padding: 0 8px; }
.gar-slot .gar-veh { flex: 1; min-width: 0; } .gar-slot .gar-veh b, .gar-slot .gar-veh small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gar-slot .gar-veh small { color: var(--ink2); } .gar-slot.inteam .gar-veh small { color: var(--gold); }
.gar-slot.free { justify-content: space-between; } .gar-slot-empty { color: var(--ink2); font-style: italic; }
.gar-pick { box-shadow: inset 0 0 0 2px var(--line), inset 0 0 0 4px var(--gold); }
.gar-pick > small { display: block; color: var(--ink2); margin: 2px 0 6px; }
.gar-picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; }
.gar-pickitem { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 0; border-radius: 4px; background: var(--w-mid); color: var(--ink); text-align: left; cursor: pointer; font: inherit; box-shadow: inset 0 0 0 2px var(--line); }
.gar-pickitem:hover, .gar-pickitem:focus-visible { background: var(--w-warm); box-shadow: inset 0 0 0 2px var(--gold); }
.gar-pickitem b, .gar-pickitem small { display: block; } .gar-pickitem small { color: var(--ink2); } .gar-pickitem.inteam small { color: var(--gold); }
html.mobile .gar-list { grid-template-columns: minmax(0, 1fr); }
html.mobile .gar-card { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: 'art info' 'slots slots' 'acts acts'; row-gap: 6px; }
html.mobile .gar-card .acts { display: flex; } html.mobile .gar-card .acts .btn { flex: 1; }
html.mobile .gar-rars, html.mobile .gar-picklist { grid-template-columns: minmax(0, 1fr); }
html.mobile .gar-build .row { flex-wrap: wrap; } html.mobile .gar-build .row > div { min-width: 0; flex: 1 1 200px; } html.mobile .gar-build .btn { flex: 1 1 100%; }
