/* Lane LOOKS (2026-11-16): the killer's card on the deploy screen, the award winners on the results, the ready-made
   looks' grid, the first free look and the locker's grid. State is opacity (picked at full, the
   rest dimmer), never a coloured frame, side border, outline or glow; buttons are the game's dark ones (.btn). */
.wd { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--hudfont); }
.wd-line { min-height: 15px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); }
.wd-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); grid-auto-flow: row dense; align-content: start; gap: 10px; padding-right: 4px; }
.wd-empty { grid-column: 1 / -1; padding: 20px; text-align: center; opacity: 0.6; }
.btn.wd-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 6px 10px; background: rgba(30, 30, 30, 0.72); opacity: 0.55; }
.btn.wd-tile:hover:not(:disabled) { opacity: 0.85; }
.btn.wd-tile.on, .btn.wd-tile.sel { opacity: 1; }
.btn.wd-tile.owned { opacity: 0.32; }
.btn.wd-tile.owned.sel { opacity: 0.8; }
/* Lane LOOKVIEW: the figure fills its card (160 x 192 drawn, lookview.js CARD); names in the buttons' white Fira Code. */
.wd-thumb { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 160 / 192; object-fit: contain; }
.wd-name { max-width: 100%; font-family: "Fira Code", ui-monospace, Menlo, monospace; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-sub { max-width: 100%; font-family: "Fira Code", ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: 0.08em; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 46px; }
.wd-pick { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.btn.wd-go { padding: 10px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; opacity: 1; }
.wd-msg { flex-basis: 100%; font-size: 14px; font-weight: 700; color: var(--gold); }
.wd-hint { font-size: 13px; opacity: 0.7; }

/* The first free look: the ready-made grid in its own window; its offer on the deploy card. */
.lb-win.wd-win { width: min(940px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; }
.wd-slot { flex: 1; min-height: 0; display: flex; }
.btn.fl-starter { width: 100%; margin-bottom: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--gold); opacity: 1; }

/* The locker (plan #24): the soldier on the left, the grid on the right; its ‹ › rows give way to the grid. */
.lb-win.cr-win.wd-on { width: min(1120px, 100%); height: min(760px, 100%); }
.cr-row { flex: 1; display: flex; gap: 16px; min-height: 0; margin-top: 4px; }
.cr-row .cr-slot { flex: 0 0 340px; margin-top: 0; }
.cr-win.wd-on .fl-pick { display: none; }
.cr-grid { flex: 1; min-width: 0; min-height: 0; display: flex; }
.wd-tabs { display: flex; gap: 8px; }
.wd-tab { padding: 8px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; opacity: 0.5; }
.wd-tab:hover:not(:disabled) { opacity: 0.8; }
.wd-tab.on { opacity: 1; }
.wd-plus { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 160px; aspect-ratio: 160 / 192; font-size: 48px; opacity: 0.8; }

/* The kill cam's band (lane KILLCAM, client/killcam.js): the killer's name, rank, what killed you and the round's kills
   between you, at the foot of the screen while the camera follows them; under every menu, as the HUD's flyers are. */
.kcam { position: absolute; left: 50%; bottom: 11vh; z-index: 6; transform: translateX(-50%); min-width: 300px; max-width: min(560px, calc(100vw - 32px)); padding: 9px 22px 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: var(--ui-radius); background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--ui-shadow); text-shadow: var(--ui-text); font-family: var(--hudfont); color: #fff; text-align: center; pointer-events: none; animation: kcam-in 0.22s ease-out; }
@keyframes kcam-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
#hud:has(.tabboard:not(.hidden), .escwin:not(.hidden), .panel.results:not(.hidden):not(.solo), .modal:not(.hidden), .flow:not(.hidden), .bigmap:not(.hidden):not(.pinned)) .kcam { visibility: hidden; }
.kcam-top { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.3em; }
.kcam-head { opacity: 0.7; }
.kcam-nem { color: var(--red); letter-spacing: 0.24em; }
.kcam-row { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; }
.kcam-name { min-width: 0; font-size: 28px; font-weight: 700; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcam.quant .kcam-name { color: var(--q-ink); -webkit-text-stroke: 0.7px var(--q-edge); paint-order: stroke fill; text-shadow: none; }
.kcam.mouse .kcam-name { color: var(--m-ink); }
.kcam-rank { display: flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; opacity: 0.85; }
.kcam-rank .pf-insignia { width: auto; height: 18px; }
.kcam-how { max-width: 100%; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcam-how b { color: var(--gold); }
.kcam-how em { font-style: normal; font-weight: 700; color: var(--red); }
.kcam-dot { opacity: 0.5; }
.kcam-vs { font-size: 15px; font-weight: 600; letter-spacing: 0.16em; }
.kcam-vs b { font-size: 18px; font-weight: 700; }
.kcam-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.kcam-bar i { display: block; height: 100%; background: rgba(255, 255, 255, 0.5); transform-origin: left center; }

/* The winners stand over their award cards. */
.rs-award.wn { grid-template-areas: "f f" "t x" "n u" "w w"; }
.wn-fig { grid-area: f; justify-self: center; width: 120px; height: 150px; margin-bottom: 2px; }

/* Tints of a look you own (plan #13): round swatches, the picked one at full. */
.wd-tints { display: flex; gap: 6px; }
.btn.wd-swatch { width: 28px; height: 28px; padding: 0; border-radius: 50%; opacity: 0.55; }
.btn.wd-swatch:hover:not(:disabled) { opacity: 0.85; }
.btn.wd-swatch.on { opacity: 1; }

/* Lane LOOKVIEW (2026-11-16): the picker's two views, after Finder's first and last (locker.js, lookview.js). State is
   opacity and size, never a coloured frame, outline or glow. */
.wd-views { display: flex; gap: 6px; margin-left: auto; margin-right: 10px; }
.btn.wd-view { display: flex; align-items: center; justify-content: center; padding: 5px 8px; line-height: 0; opacity: 0.42; }
.btn.wd-view svg { fill: currentColor; }
.btn.wd-view:hover:not(:disabled) { opacity: 0.75; }
.btn.wd-view.on { opacity: 1; }
/* Keyboard focus shows as hover does (opacity), never the browser's ring (the arrows leave it on the last clicked). */
.wd .btn:focus, .wd-views .btn:focus { outline: none; }
.wd .btn.wd-tile:focus-visible:not(.on):not(.sel), .btn.wd-view:focus-visible:not(.on) { opacity: 0.75; }
.wd-win .lb-head, .cr-win.wd-on .lb-head { gap: 8px; }
/* GRID: the pick grown in place to two cards' room each way (lookview.js GROWN), its name bigger. */
.btn.wd-tile.big { grid-column: span 2; grid-row: span 2; }
.btn.wd-tile.big.one { grid-column: auto; }
.btn.wd-tile.big .wd-thumb { max-width: 336px; aspect-ratio: 336 / 404; }
.btn.wd-tile.big .wd-name { font-size: 18px; }
.btn.wd-tile.big .wd-sub { font-size: 11px; }
/* GALLERY: the pick big and centred (drawn live, a drag turns it), a strip of small cards under it. */
.wd-gal { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
/* The gallery's window takes the screen's height (up to 900 px): the figure gets it. */
.lb-win.wd-win:has(.wd[data-view="gallery"]), .lb-win.cr-win.wd-on:has(.wd[data-view="gallery"]) { height: min(900px, 100%); }
.wd-stage { flex: 1; min-height: 200px; display: flex; flex-direction: column; border-radius: var(--ui-radius); background: rgba(30, 30, 30, 0.45); overflow: hidden; }
.wd-stageview { position: relative; flex: 1; min-height: 0; }
.wd-stagecv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.wd-stage.dragging .wd-stagecv { cursor: grabbing; }
.wd-stagecap { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 12px 10px; }
.wd-stagename { max-width: 100%; font-family: "Fira Code", ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-stagesub { font-family: "Fira Code", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.1em; opacity: 0.7; }
.wd-stagehint { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 5px; font-family: "Fira Code", ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: 0.08em; opacity: 0.55; pointer-events: none; }
.wd-stagehint kbd { min-width: 1.6em; padding: 0 4px; text-align: center; font-family: inherit; font-size: 10px; line-height: 15px; color: #fff; background: #1e1e1e; border: 1px solid #3a3a3a; border-radius: 4px; }
.wd-strip { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 6px; }
.wd-strip .btn.wd-tile { flex: 0 0 auto; width: 100px; padding: 5px 4px 7px; }
.wd-strip .wd-thumb, .wd-strip .wd-plus { width: 92px; max-width: none; aspect-ratio: 92 / 110; }
.wd-strip .wd-plus { font-size: 32px; }
.wd-strip .wd-name { font-size: 11px; }
.wd-strip .wd-sub { display: none; }
/* The pick in the strip: bigger, at full. */
.wd-strip .btn.wd-tile.sel { width: 120px; }
.wd-strip .btn.wd-tile.sel .wd-thumb { width: 112px; }
/* The locker's gallery is the whole window: the soldier beside the grid steps aside (and so is not drawn) unless the
   generator's panel is open in it or a look of yours is being made. */
.cr-win.wd-on:has(.wd[data-view="gallery"]) .cr-row > .cr-slot:not(:has(.fl-gen:not(.hidden), .fl-gennote.busy:not(.hidden))) { display: none; }
@media (max-height: 820px) {
  /* A short screen (1280 x 720): a grown card, two rows tall, still fits the grid's view whole. */
  .wd-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
  .wd-thumb, .wd-plus { max-width: 136px; }
  .btn.wd-tile.big .wd-thumb { max-width: 286px; }
  .lb-win.cr-win.wd-on > .lb-text { display: none; }
  .wd-win .lb-text { margin: 6px 0 10px; font-size: 15px; }
  /* A short screen gives the gallery's figure the window's words' room (the gold line still says what it costs). */
  .lb-win:has(.wd[data-view="gallery"]) > .lb-text { display: none; }
  .wd-stage { min-height: 170px; }
  .wd-strip .btn.wd-tile { width: 88px; }
  .wd-strip .wd-thumb, .wd-strip .wd-plus { width: 80px; }
  .wd-strip .btn.wd-tile.sel { width: 104px; }
  .wd-strip .btn.wd-tile.sel .wd-thumb { width: 96px; }
}
@media (max-width: 560px) {
  .lb-win.wd-win, .lb-win.cr-win.wd-on { padding: 14px 12px; }
  .wd-win .lb-tag, .cr-win.wd-on .lb-tag { font-size: 18px; letter-spacing: 0.12em; }
  .wd-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
  .wd-stagehint { display: none; }
  .wd-stagename { font-size: 18px; }
}
