/* ---------------------------------------------------------------- LA BOUTIQUE del Club de la casa (v0.3.132, js/boutique.js)
   Misma escala y sistema que el Perfil (gx-stage con --k, rejilla de 12 columnas, papel con muesca, botones de laton).
   Izquierda (8 columnas): la oferta de la casa, los filtros y las mesas de 12 en 12 (4 x 3); derecha (4): la mesa elegida.
   Medidas pensadas en el espacio de diseno 1920 x 1080: las 12 caben sin desplazarse (en la Deck sobra alto). */
.bq-screen { z-index: 1; }
.bq-veil { background: radial-gradient(120% 90% at 50% 40%, rgba(4, 12, 9, .55), rgba(2, 6, 4, .86)); }
.bq-grid { grid-template-rows: auto minmax(0, 1fr); row-gap: 16px; }
.bq-head { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 24px; min-width: 0; }
.bq-head #hubBack .ic { width: 22px; height: 22px; }
.bq-h { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.bq-h > span:last-child { display: grid; gap: 6px; }
.bq-h .gx-eyb { font-size: 16px; }
.bq-hic .ic { display: block; width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(2, 6, 4, .7)); }
.bq-wal { grid-column: 4; display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 8px 12px; background: rgba(5, 14, 10, .72); box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 0 0 4px rgba(212, 160, 74, .55); }
.bq-wal b { font-family: var(--sans); font-weight: 400; font-size: 40px; line-height: 1; color: var(--gx-ttl); font-variant-numeric: tabular-nums; }
.bq-head .menu-tools { grid-column: 5; }
.bq-fi { width: 32px; height: 32px; image-rendering: pixelated; flex: none; display: inline-block; }
.bq-wal .bq-fi { width: 40px; height: 40px; }
.bq-fi.sm { width: 24px; height: 24px; }

.bq-left { grid-column: 1 / 9; grid-row: 2; min-width: 0; min-height: 0; }
.bq-cat { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 16px 20px 18px; }
.bq-gw { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-height: 0; }
.bq-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.bq-right { grid-column: 9 / 13; grid-row: 2; min-width: 0; min-height: 0; }

/* la oferta de la casa: terciopelo granate con filete de laton, como el cupon */
.bq-offer { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0; padding: 10px 18px 10px 12px; border: 0; text-align: left; font: inherit; cursor: pointer;
  color: #fff3d6; background: linear-gradient(90deg, #5a1420 0, #7a1c2c 60%, #6a1826 100%); clip-path: var(--gx-notch); box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 0 0 4px var(--gx-rim), inset 0 0 0 6px var(--gx-o); }
.bq-offer:hover, .bq-offer.pad-hov { filter: brightness(1.08); }
.bq-offer.sel { box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 0 0 5px var(--gx-rim-hi), inset 0 0 0 7px var(--gx-o); }
.bq-offer:focus { outline: none; }
.bq-offer:focus-visible, html[data-input="pad"] .bq-offer:focus { box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 0 0 5px var(--gx-gold-hi), inset 0 0 0 7px var(--gx-o); }
.bq-oth { display: block; width: 128px; aspect-ratio: 2.4 / 1; object-fit: cover; box-shadow: 0 0 0 2px var(--gx-o); }
.bq-otx { display: grid; gap: 4px; min-width: 0; }
.bq-otx .gx-eyb { color: var(--gx-gold-hi); font-size: 16px; }
.bq-otx b { font-family: var(--sans); font-weight: 400; font-size: 28px; line-height: 1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bq-otx b i { font-style: normal; font-family: var(--mono); font-size: 18px; padding: 3px 7px 2px; color: var(--gx-ink); background: var(--gx-gold); box-shadow: 0 0 0 2px var(--gx-o); }
.bq-offer .bq-pr { color: #fff3d6; }
.bq-offer .bq-pr s { color: #e6b8a8; }

/* los filtros */
.bq-tabs { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bq-tab { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 11px 6px; border: 0; font: inherit; font-family: var(--sans); font-size: 20px; white-space: nowrap; line-height: 1; cursor: pointer;
  color: var(--gx-ink); background: none; box-shadow: inset 0 0 0 2px var(--gx-line); }
.bq-tab i { font-style: normal; font-family: var(--mono); font-size: 16px; color: var(--gx-ink-2); }
.bq-tab:hover, .bq-tab.pad-hov { background: #fffaf0; }
.bq-tab.on { color: var(--gx-ttl); background: var(--gx-ink); box-shadow: inset 0 0 0 2px var(--gx-o); }
.bq-tab.on i { color: var(--gx-acc); }
.bq-tab:focus { outline: none; }
.bq-tab:focus-visible, html[data-input="pad"] .bq-tab:focus { box-shadow: inset 0 0 0 2px var(--gx-o), 0 0 0 2px var(--gx-red); }

/* las mesas: 4 x 3 */
.bq-items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 12px 14px; align-content: start; min-height: 0; }
.bq-it { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 7px; margin: 0; padding: 8px 8px 9px; align-content: start; border: 0; text-align: left; font: inherit; color: var(--gx-ink); background: none; cursor: pointer; box-shadow: inset 0 0 0 2px var(--gx-line); min-width: 0; }
.bq-it:hover, .bq-it.pad-hov { background: #fffaf0; box-shadow: inset 0 0 0 2px var(--gx-o); }
.bq-it.sel { background: #fffaf0; box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 0 0 5px var(--gx-rim), inset 0 0 0 7px var(--gx-o); }
.bq-it:focus { outline: none; }
.bq-it:focus-visible::after, html[data-input="pad"] .bq-it:focus::after { content: ""; position: absolute; inset: 8px; box-shadow: 0 0 0 2px var(--gx-red); animation: gx-focus 1.2s steps(2, end) infinite; pointer-events: none; }
.bq-th { position: relative; display: block; aspect-ratio: 2.6 / 1; box-shadow: 0 0 0 2px var(--gx-o), 0 4px 0 2px rgba(22, 36, 28, .3); }
.bq-th img { display: block; width: 100%; height: 100%; object-fit: none; object-position: 50% 50%; image-rendering: pixelated; }   /* la mesa a 1:1: un trozo de verdad, sin encoger ni recortar a escala rara */
.bq-it.leg .bq-th { box-shadow: 0 0 0 2px var(--gx-o), 0 0 0 4px var(--gx-rim), 0 0 0 6px var(--gx-o), 0 6px 0 4px rgba(22, 36, 28, .3); }
.bq-nm { display: block; font-family: var(--sans); font-weight: 400; font-size: 20px; line-height: 1; min-width: 0; overflow-wrap: anywhere; text-wrap: balance; padding: 0 2px; }
/* el precio (o tu estado) como una placa de papel abajo a la derecha de la captura */
.bq-pb { position: absolute; right: 5px; bottom: 5px; padding: 2px 6px 2px 3px; background: var(--gx-paper); box-shadow: 0 0 0 2px var(--gx-o); }
.bq-th .bq-own { position: absolute; right: 6px; bottom: 6px; }
.bq-pb .bq-pr { font-size: 20px; gap: 4px; }
.bq-pb .bq-fi { width: 18px; height: 18px; }
.bq-pb .bq-pr s { font-size: 16px; }
.bq-pr { display: inline-flex; align-items: center; gap: 6px; flex: none; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--gx-ink); font-variant-numeric: tabular-nums; }
.bq-pr .bq-fi { width: 26px; height: 26px; }
.bq-pr s { font-size: 18px; color: var(--gx-ink-2); margin-right: 2px; }
.bq-pr.big { font-size: 34px; gap: 8px; }
.bq-pr.big .bq-fi { width: 36px; height: 36px; }
.bq-pr.big s { font-size: 22px; }
.bq-own { flex: none; font-style: normal; font-family: var(--mono); font-size: 16px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px 3px; color: var(--gx-ink); background: var(--gx-paper); box-shadow: 0 0 0 2px var(--gx-o); }
.bq-own.on { background: var(--gx-rim); box-shadow: inset 0 2px 0 var(--gx-rim-hi), inset 0 -2px 0 var(--gx-rim-lo), 0 0 0 2px var(--gx-o); }
.bq-empty { grid-column: 1 / -1; margin: 18px 4px; font-size: 22px; line-height: 1.2; color: var(--gx-ink-2); }
.bq-pager { display: flex; align-items: center; gap: 12px; flex: none; font-family: var(--mono); font-size: 18px; color: var(--gx-ink-2); font-variant-numeric: tabular-nums; }
.bq-pager .gx-btn { min-width: 48px; font-size: 26px; }
.bq-pager .gx-btn[disabled] { opacity: .35; pointer-events: none; }
.bq-pager[hidden] { display: none; }

/* la mesa elegida */
.bq-det { height: 100%; display: grid; gap: 10px; align-content: start; padding: 18px 22px 20px; }
.bq-dth { position: relative; display: block; aspect-ratio: 2 / 1; box-shadow: 0 0 0 2px var(--gx-o), 0 6px 0 2px rgba(22, 36, 28, .3); overflow: hidden; }
.bq-dth img { display: block; width: 100%; height: 100%; object-fit: none; object-position: 50% 50%; image-rendering: pixelated; }
.bq-dth .sc-host img, .bq-th .sc-host img { object-fit: contain; }   /* v0.3.174: la moneda del pie de tu carta no es una mesa: entera, no un trozo a 1:1 */
.bq-dth.leg { box-shadow: 0 0 0 2px var(--gx-o), 0 0 0 5px var(--gx-rim), 0 0 0 7px var(--gx-o), 0 8px 0 4px rgba(22, 36, 28, .3); }
/* la legendaria tiene su brillo: un reflejo de laton que cruza la captura de vez en cuando (solo transform y opacity) */
.bq-dth.leg::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 28%; background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .35), transparent); transform: translateX(-120%) skewX(-18deg); animation: bq-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes bq-shine { 0%, 60% { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 62% { opacity: 1; } 100% { transform: translateX(420%) skewX(-18deg); opacity: 0; } }
html.reduce-motion .bq-dth.leg::after { animation: none; display: none; }
.bq-tier { margin-top: 4px; }
.bq-dn { color: var(--gx-ink); text-shadow: none; text-wrap: balance; }
.bq-dd { margin: 0; font-size: 21px; line-height: 1.18; color: var(--gx-ink); text-wrap: pretty; }
.bq-dp { display: flex; align-items: center; }
.bq-acts { display: grid; gap: 10px; margin-top: 4px; }
.bq-acts .gx-btn.wide { justify-content: space-between; }
.bq-bp { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
/* armado: la segunda pulsacion paga (rojo, como el «¿Seguro?» del resto del juego) */
.bq-acts .gx-btn.pri.armed { --h: var(--gx-red-hi); --m: var(--gx-red); --l: var(--gx-red-lo); color: #fff; }
.bq-acts .gx-btn.armed > span:first-child { white-space: normal; line-height: 1.05; text-align: left; }
.bq-short { opacity: .7; cursor: default; }
.bq-short:hover { transform: none; filter: none; }
.bq-no { animation: bq-no .32s steps(4, end); }
@keyframes bq-no { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* vendida: la captura salta y se le enciende el laton */
.bq-it.bq-sold .bq-th, .bq-det.bq-sold .bq-dth { animation: bq-sold .9s var(--gx-ease) both; }
@keyframes bq-sold { 0% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.06) rotate(-1deg); filter: brightness(1.45); } 100% { transform: scale(1); filter: brightness(1); } }
html.reduce-motion .bq-it.bq-sold .bq-th, html.reduce-motion .bq-det.bq-sold .bq-dth { animation: none; }

/* probar en el mapa: la boutique se aparta (y con ella la luz de la sala, que vive en #layer) y queda el mapa con un cartel abajo */
body.bq-try #layer { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.bq-tryl { position: fixed; left: 50%; bottom: 40px; z-index: 30; transform: translateX(-50%); zoom: var(--k); }
.bq-tryl .gx-paper { display: flex; align-items: center; gap: 22px; padding: 14px 18px 14px 24px; }
.bq-tryl b { font-family: var(--sans); font-weight: 400; font-size: 30px; line-height: 1; color: var(--gx-ink); white-space: nowrap; }


/* ---------------------------------------------------------------- v0.3.134: las dos secciones (Mesas y Vestuario) y el vestuario del crupier
   Las secciones van en la cabecera, entre el titulo y el monedero, como un selector de laton sobre la sala.
   Vestuario: las 12 piezas de 6 en 6 (retratos del crupier con esa pieza, a pixel entero: js/boutique.js fitThumbs) y, a la derecha,
   el probador: el crupier animado con lo que llevas mas la pieza elegida (A.crupier.mount con su propio atlas). */
.bq-cats { justify-self: center; display: flex; max-width: 100%; min-width: 0; overflow: hidden; padding: 4px; background: rgba(5, 14, 10, .72); box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 0 0 4px rgba(212, 160, 74, .55); }
.bq-cat-t { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 18px 9px 12px; border: 0; font: inherit; font-family: var(--sans); font-size: 26px; line-height: 1; white-space: nowrap; cursor: pointer; color: var(--gx-txt); background: none; }
.bq-cat-t .ic { width: 36px; height: 36px; image-rendering: pixelated; flex: none; }
.bq-cat-t:hover, .bq-cat-t.pad-hov { background: rgba(255, 243, 214, .08); }
.bq-cat-t.on { color: var(--gx-ink); background: linear-gradient(180deg, var(--gx-gold-hi) 0, var(--gx-gold) 55%, #e89a32 100%); box-shadow: inset 0 0 0 2px var(--gx-o), inset 0 -4px 0 rgba(0, 0, 0, .16); }
.bq-cat-t:focus { outline: none; }
.bq-cats.t1 .bq-cat-t { gap: 7px; padding: 7px 12px 8px 8px; font-size: 23px; }
.bq-cats.t1 .bq-cat-t .ic { width: 30px; height: 30px; }
.bq-cats.t2 .bq-cat-t:not(.on) { padding: 7px 9px 8px; }
.bq-cats.t2 .bq-cat-t:not(.on) span { display: none; }
.bq-cat-t:focus-visible, html[data-input="pad"] .bq-cat-t:focus { box-shadow: inset 0 0 0 3px var(--gx-red), inset 0 -4px 0 rgba(0, 0, 0, .16); }

.bq-cat.vest { grid-template-rows: minmax(0, 1fr); }
/* seis pestanas (trajes, antifaces, pajaritas, piezas, legendarias, tuyo): mas juntas para que quepan en una fila hasta en ruso */
.bq-cat.vest .bq-tabs { gap: 6px; }
.bq-cat.vest .bq-tab { gap: 6px; padding: 5px 8px 6px; font-size: 18px; }
.bq-cat.vest .bq-tab i { font-size: 14px; }
.bq-items.vest { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 14px; }
/* el retrato: sobre tapete, con un foco suave detras (la luz va detras del crupier, nunca encima) */
.bq-vth { aspect-ratio: 6 / 7; overflow: hidden; background: radial-gradient(62% 58% at 50% 46%, #3d8a5f 0, #23633f 52%, #123b25 100%); }
.bq-vth img { position: absolute; left: 0; top: 0; max-width: none; object-fit: fill; image-rendering: pixelated; }
.bq-vit { grid-template-rows: auto auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.bq-vp .bq-own { max-width: 100%; overflow: hidden; white-space: nowrap; }
.bq-vit .bq-nm { font-size: 19px; line-height: 1.02; overflow-wrap: break-word; hyphens: manual; }
.bq-vp { display: flex; align-items: flex-end; min-height: 26px; padding: 0 2px; }
.bq-vp .bq-pr { font-size: 22px; gap: 5px; }
.bq-vp .bq-fi { width: 22px; height: 22px; }

/* el probador */
.bq-det.vest { gap: 9px; }
.bq-prob { position: relative; display: block; height: 300px; overflow: hidden; background: radial-gradient(58% 64% at 50% 48%, #3d8a5f 0, #23633f 50%, #10351f 100%); box-shadow: 0 0 0 2px var(--gx-o), 0 6px 0 2px rgba(22, 36, 28, .3); }
.bq-prob.leg { box-shadow: 0 0 0 2px var(--gx-o), 0 0 0 5px var(--gx-rim), 0 0 0 7px var(--gx-o), 0 8px 0 4px rgba(22, 36, 28, .3); }
.bq-probh { position: absolute; inset: 0; }
.bq-probh .cr-cv { top: auto; bottom: 0; transform: translateX(-50%); }
.bq-probl { position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 16px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; padding: 4px 7px 3px; color: var(--gx-ink);
  background: var(--gx-rim); box-shadow: inset 0 2px 0 var(--gx-rim-hi), inset 0 -2px 0 var(--gx-rim-lo), 0 0 0 2px var(--gx-o); }
/* comprada: el probador se enciende (sin escalar: el crupier sigue a pixel entero) */
.bq-det.bq-sold .bq-prob { animation: bq-lit .9s var(--gx-ease) both; }
@keyframes bq-lit { 0% { filter: brightness(1); } 30% { filter: brightness(1.4); } 100% { filter: brightness(1); } }
html.reduce-motion .bq-det.bq-sold .bq-prob { animation: none; }

/* ---------------------------------------------------------------- los punteros (js/punteros.js): miniaturas animadas en lienzo, al pixel */
.bq-items.punt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bq-th.bq-pth { aspect-ratio: 4 / 3; overflow: hidden; }   /* alto para que todos los reticulos quepan a x2 en la Deck y a x3 a 1080p */
.bq-pth canvas, .bq-pprev canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
/* el precio y el estado van en la fila del nombre: nada tapa el dibujo */
.bq-prow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-width: 0; }
.bq-prow .bq-nm { flex: 1 1 auto; min-width: min-content; overflow-wrap: normal; padding: 0 2px; }   /* una palabra no se parte: antes baja la etiqueta */
.bq-prow .bq-pr { font-size: 20px; gap: 4px; }
.bq-prow .bq-pr .bq-fi { width: 18px; height: 18px; }
.bq-prow .bq-own { font-size: 14px; padding: 3px 5px 2px; }
/* la vista grande: 16:10 si cabe, y si la descripcion es larga (ruso a 720) cede lo que falte; el lienzo llena su caja (js/boutique.js lo mide en
   pixeles reales), asi la caja no depende del lienzo y la etiqueta nunca pisa el marco */
.bq-det.punt { grid-template-rows: minmax(0, auto) auto auto auto auto; }
.bq-dth.bq-pprev { aspect-ratio: 16 / 10; width: 100%; align-self: stretch; min-height: 0; margin-bottom: 8px; }   /* stretch explicito: con aspect-ratio Chrome no estira y la caja se salia de su fila */
.bq-pprev canvas { position: absolute; inset: 0; }
.bq-tryt { display: grid; gap: 4px; }
.bq-tryt i { font-style: normal; font-family: var(--sans); font-size: 20px; line-height: 1; color: var(--gx-ink-2); }

/* ---------------------------------------------------------------- «Tu carta» (js/socio.js): iconos y titulos */
.bq-items.carta { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bq-th.bq-cth { aspect-ratio: 1 / 1; overflow: hidden; background: #245a41; }
.bq-cth canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.bq-cth.bq-cmk { display: grid; place-items: center; overflow: visible; }                   /* v0.3.174: un marco = tu chapa con ese marco (lo que asoma, por fuera) */
.bq-cbadge.lk { filter: grayscale(1) brightness(.62); }
.bq-cth.bq-ttl { display: grid; place-items: center; padding: 0 8px; background: radial-gradient(62% 58% at 50% 46%, #3d8a5f 0, #23633f 52%, #123b25 100%); }
.bq-tplate { display: grid; place-items: center; min-height: 34px; max-width: 100%; padding: 4px 8px 5px; font-size: 19px; text-align: center; color: #ffd98a; background: #2a1e14; box-shadow: inset 0 2px 0 #4a3624, 0 0 0 2px #120e1c, 0 4px 0 2px rgba(2, 6, 4, .45); font-family: var(--sans); font-size: 20px; line-height: 1; text-shadow: 0 2px 0 #120e1c; }
.bq-tplate span { text-wrap: balance; }
.bq-cth.bq-ttl.off .bq-tplate { color: #9a8a70; background: #241c14; filter: grayscale(.6); }
.bq-own.lk { display: inline-grid; place-items: center; padding: 2px 4px; }
.bq-own.lk .ic { width: 18px; height: 18px; image-rendering: pixelated; }
.bq-cit.bq-ttl .bq-nm { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--gx-ink-2); }
.bq-det.carta { grid-template-rows: auto auto auto auto auto; }
.bq-dth.bq-cprev { aspect-ratio: auto; display: grid; place-items: center; padding: 14px 0 18px; background: radial-gradient(58% 64% at 50% 48%, #3d8a5f 0, #23633f 50%, #10351f 100%); }
.bq-how { font-weight: 400; color: var(--gx-ink); }
.bq-acts .gx-btn .ic { width: 22px; height: 22px; image-rendering: pixelated; }
.bq-cit .bq-nm { font-size: 18px; line-height: 1; }
.bq-cit .bq-prow { align-items: flex-start; }
.bq-cat.carta .bq-tabs { flex-wrap: nowrap; min-width: 0; }
.bq-cat.carta .bq-tab { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
