:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --card: #1d1d1d;
  --line: #2e2e2e;
  --text: #ffffff;
  --muted: #a9a9a9;
  --primary: #c19656;
  --primary-2: #e3c48f;
  --accent: #e3c48f;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", Inter, sans-serif; line-height: 1.1; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

/* Botones */
.btn {
  border: 0; border-radius: 999px; padding: .75rem 1.3rem;
  font-weight: 600; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: .5rem;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0a0a0a; box-shadow: 0 8px 24px rgba(193, 150, 86, .35);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(193, 150, 86, .55); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 1.2rem; padding: .3rem .5rem; }
.icon-btn:hover { color: var(--text); }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 10, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.topbar__nav { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: "Bricolage Grotesque"; font-size: 1.3rem; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); font-weight: 800; color: #0a0a0a;
  transform: rotate(-8deg);
}
.logo__text b { color: var(--primary); }
.cart-btn {
  position: relative; background: var(--card); border: 1px solid var(--line); color: var(--text);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
}
.cart-btn__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.2); } }

/* Hero */
.hero {
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(193, 150, 86, .25), transparent 70%),
    radial-gradient(500px 400px at 10% 80%, rgba(255, 23, 37, .15), transparent 70%);
  padding: 72px 0 56px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255, 23, 37, .12); color: #ff5a63; border: 1px solid rgba(255, 23, 37, .35);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
.hero__lead { color: var(--muted); font-size: 1.1rem; margin: 18px 0 26px; max-width: 520px; }
.hero__date { margin: 14px 0 26px; color: var(--muted); }
.hero__date strong { color: var(--text); }
.draw-rule {
  display: inline-block; margin-bottom: 26px; padding: 14px 20px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--primary);
  font-family: "Bricolage Grotesque"; font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: .02em; text-transform: uppercase;
}

.hero__art { position: relative; height: 380px; }
.sticker {
  position: absolute; display: grid; place-items: center; font-size: 4rem; color: #fff;
  border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.sticker--a { width: 190px; height: 190px; left: 10%; top: 10%; background: linear-gradient(135deg, #ff3d8b, #ff1725); transform: rotate(-10deg); }
.sticker--b { width: 150px; height: 150px; right: 6%; top: 0; background: linear-gradient(135deg, #39e6c4, #2d6bff); border-radius: 50%; animation-delay: -2s; }
.sticker--c { width: 140px; height: 140px; right: 14%; bottom: 4%; background: linear-gradient(135deg, #ff8a3d, #ffd23d); animation-delay: -4s; }
.sticker--d { width: 110px; height: 110px; left: 18%; bottom: 2%; background: linear-gradient(135deg, #ff1725, #39e6c4); border-radius: 50%; animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -14px; } }

/* Beneficios */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.perk { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.perk__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800;
  background: rgba(193, 150, 86, .15); color: var(--primary); margin-bottom: 14px; font-size: 1.2rem;
}
.perk h3 { font-size: 1.15rem; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: .95rem; }

/* Progreso */
.progress { margin-top: 64px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.progress__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.progress__head h2 { font-size: 1.5rem; }
.progress__head b { color: var(--accent); font-size: 1.3rem; }
.progress__bar { height: 16px; background: var(--card); border-radius: 999px; overflow: hidden; }
.progress__fill {
  height: 100%; width: 0; border-radius: inherit; transition: width 1.2s ease;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.progress p { margin-top: 10px; font-size: .9rem; }

/* Paquetes */
.packs { margin-top: 72px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 32px; }
.packs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }
.pack {
  position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 24px;
  padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, border-color .2s;
}
.pack:hover { transform: translateY(-4px); border-color: var(--primary); }
.pack--featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(193, 150, 86, .12), var(--shadow); }
.pack__ribbon {
  position: absolute; top: -13px; left: 50%; translate: -50% 0; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); padding: .3rem .9rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700; color: #0a0a0a;
}
.pack__name { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.pack__qty { font-family: "Bricolage Grotesque"; font-size: 3rem; font-weight: 800; line-height: 1; }
.pack__qty small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.pack__price { font-size: 1.6rem; font-weight: 700; }
.pack__unit { color: var(--muted); font-size: .85rem; }
.pack ul { list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: .93rem; flex: 1; }
.pack li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.pack__actions { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.pack--custom { border-style: dashed; }
.pack__qty--sm { font-size: 2rem; }
.custom-qty { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.custom-qty input {
  background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem;
  color: var(--text); font: inherit; font-size: 1.2rem; font-weight: 700; width: 100%;
}
.custom-qty input:focus { outline: none; border-color: var(--primary); }

/* Premio mayor (arriba) */
.main-prize { margin: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.main-prize__photo { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 6rem; background: linear-gradient(135deg, rgba(193, 150, 86, .25), rgba(255, 23, 37, .18)); }
.main-prize__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-prize figcaption { padding: 16px 20px 20px; display: grid; gap: 2px; }
.main-prize figcaption span { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.main-prize figcaption b { font-family: "Bricolage Grotesque"; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.15; }

/* Números premiados (diseño dorado) */
.lucky { margin-top: 72px; }
.lucky .section-title { margin-bottom: 10px; }
.lucky__lead { text-align: center; margin-bottom: 28px; }
.lucky__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.lucky__item {
  position: relative; overflow: hidden; border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; color: #3b2600;
  background: linear-gradient(135deg, #fff3b0 0%, #f7d35c 22%, #d9a521 48%, #fbe38b 68%, #b8811a 100%);
  border: 2px solid #ffe9a3; box-shadow: 0 8px 28px rgba(217, 165, 33, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.lucky__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  translate: -100% 0; animation: gold-shine 3.5s ease-in-out infinite;
}
@keyframes gold-shine { 60%, 100% { translate: 100% 0; } }
.lucky__tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #6b4300; }
.lucky__item b { font-family: "Bricolage Grotesque"; font-size: 2rem; letter-spacing: .06em; color: #2a1a00; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.lucky__item p { font-size: .95rem; font-weight: 600; }
.lucky__item--won { filter: saturate(.6) brightness(.85); }
.lucky__item--won::after { display: none; }
.lucky__item--won b { text-decoration: line-through; text-decoration-thickness: 2px; }

/* Número ganador en resultados, consulta y panel */
.numbers span.win, .order-block .numbers span.win {
  color: #2a1a00; font-weight: 800; border: 1px solid #ffe9a3;
  background: linear-gradient(135deg, #fff3b0, #f7d35c 35%, #d9a521 65%, #fbe38b);
  box-shadow: 0 2px 10px rgba(217, 165, 33, .45);
}
.win-box {
  margin-top: 14px; border-radius: 16px; padding: 14px 18px; text-align: left; color: #2a1a00;
  background: linear-gradient(135deg, #fff3b0 0%, #f7d35c 30%, #d9a521 60%, #fbe38b 100%);
  border: 2px solid #ffe9a3; box-shadow: 0 8px 24px rgba(217, 165, 33, .35);
}
.win-box b { color: #2a1a00; }
.win-box p { margin: 3px 0; }
.win-box .muted { color: #5a3d00; }
.win-num { font-family: "Bricolage Grotesque"; font-size: 1.15rem; letter-spacing: .05em; }

/* Mensaje de edición agotada */
.sold-out {
  margin-top: 16px; padding: 16px 20px; border-radius: 14px; text-align: center;
  font-family: "Bricolage Grotesque"; font-weight: 800; font-size: clamp(1.1rem, 3vw, 1.5rem); text-transform: uppercase; letter-spacing: .03em;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #0a0a0a;
}

/* Resumen de la compra en el formulario */
.checkout-choice { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 4px; }
.checkout-choice span { color: var(--accent); font-weight: 700; white-space: nowrap; }
.qty { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; color: var(--text); width: 34px; height: 40px; font-size: 1.1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.pack__actions .btn { flex: 1; }

/* Premio */
.prize { margin-top: 80px; background: linear-gradient(135deg, rgba(193, 150, 86, .18), rgba(255, 23, 37, .12)); border-block: 1px solid var(--line); }
.prize__inner { display: flex; gap: 28px; align-items: center; padding: 48px 0; }
.prize__badge { font-size: 4rem; width: 110px; height: 110px; flex: none; display: grid; place-items: center; background: var(--card); border-radius: 50%; border: 1px solid var(--line); }
.prize h2 { font-size: 2rem; margin-bottom: 8px; }
.prize p { max-width: 640px; }
.prize p + p { margin-top: 8px; font-size: .9rem; }

/* Footer */
.footer { padding: 56px 0 28px; background: var(--bg-2); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer h4 { margin-bottom: 10px; }
.footer p { margin-top: 6px; font-size: .93rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.logo--light { color: var(--text) !important; }
.footer__copy { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--muted); font-size: .85rem; }

/* Carrito (drawer) */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 100%); background: var(--bg-2);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; translate: 100% 0; transition: translate .3s ease;
}
.drawer.open .drawer__panel { translate: 0 0; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }
.drawer__foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; }
.row--total { font-size: 1.15rem; padding: 4px 0 6px; }
.cart-item { display: flex; gap: 12px; align-items: center; background: var(--card); padding: 12px; border-radius: 14px; }
.cart-item__thumb { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--primary), #ff1725); }
.cart-item__info { flex: 1; }
.cart-item__info p { font-size: .85rem; color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal__box {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  width: min(460px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow);
  translate: 0 12px; transition: translate .2s;
}
.modal.open .modal__box { translate: 0 0; }
.modal__box--wide { width: min(640px, 100%); }
.modal__box h3 { font-size: 1.5rem; margin-bottom: 16px; padding-right: 30px; }
.modal__x { position: absolute; top: 18px; right: 16px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.form input {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: .75rem .9rem;
  color: var(--text); font: inherit;
}
.form input:focus { outline: none; border-color: var(--accent); }
.form .check { display: flex; gap: 8px; align-items: center; }
.form--inline { grid-template-columns: 1fr auto; margin-bottom: 16px; }
.numbers { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; max-height: 260px; overflow-y: auto; }
.numbers span {
  font-family: "Bricolage Grotesque"; font-weight: 700; padding: .3rem .6rem; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--accent);
}
.order-block { background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.order-block .numbers { margin: 10px 0 0; }
.order-block .numbers span { background: var(--bg-2); }
.terms p { color: var(--muted); margin-bottom: 10px; }

.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.demo-banner { background: #ffd23d; color: #0a0a0a; text-align: center; font-weight: 600; font-size: .85rem; padding: .45rem 16px; }
.form-error { background: rgba(193, 150, 86, .12); border: 1px solid rgba(193, 150, 86, .4); color: #ff8a8f; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; }
.fatal { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 10px; padding: 16px; color: var(--muted); }

/* Página de resultado */
.result { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 32px 0; }
.result__card { width: min(560px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 32px; text-align: center; box-shadow: var(--shadow); }
.result__icon { font-size: 3.4rem; margin-bottom: 10px; }
.result__card h1 { font-size: 1.9rem; margin-bottom: 10px; }
.result__card p { color: var(--muted); }
.result__card .numbers { justify-content: center; }
.result__actions { display: grid; gap: 10px; margin-top: 22px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--primary); margin: 0 auto 16px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Página de pago manual */
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.pay { text-align: left; }
.pay h1 { text-align: center; }
.pay > p:first-of-type { text-align: center; }
.pay-total { text-align: center; font-family: "Bricolage Grotesque"; font-size: 2.6rem; font-weight: 800; margin: 6px 0 18px; color: var(--accent); }
.pay-step { color: var(--text) !important; margin: 14px 0 10px; }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--primary); }
.pay-method input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.pay-method__body { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.pay-method__body .muted { font-size: .8rem; }
.pay-method__value { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.upload { display: grid !important; place-items: center; gap: 10px; min-height: 120px; padding: 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line) !important; border-radius: 14px; color: var(--muted) !important; background: var(--card); }
.upload:hover { border-color: var(--accent) !important; }
.upload img { max-width: 100%; max-height: 260px; border-radius: 10px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 120px; z-index: 60;
  background: var(--accent); color: #0a0a0a; font-weight: 600; padding: .8rem 1.3rem; border-radius: 999px;
  transition: translate .3s; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
.toast.show { translate: -50% 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .main-prize { order: -1; }
  .sticker--a { width: 140px; height: 140px; }
  .sticker--b { width: 110px; height: 110px; }
  .sticker--c { width: 100px; height: 100px; }
  .sticker--d { width: 80px; height: 80px; }
  .sticker { font-size: 2.6rem; border-width: 4px; }
  .perks { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .prize__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .topbar .btn--ghost { padding: .55rem .8rem; font-size: .8rem; }
  .logo__text { display: none; }
  .hero { padding-top: 40px; }
}

/* Botón de ayuda por WhatsApp */
.footer a.whatsapp-btn {
  margin-top: 14px; display: inline-flex; align-items: center; gap: .55rem;
  background: #25d366; color: #fff; font-weight: 700; font-size: .92rem;
  padding: .7rem 1.1rem; border-radius: 12px; box-shadow: 0 6px 18px rgba(37, 211, 102, .3);
  transition: transform .15s, background .15s;
}
.footer a.whatsapp-btn:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }

/* Indicador "EN VIVO" de la barra de ventas */
.progress__head { align-items: center; }
.live {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #ff5a63;
  background: rgba(255, 23, 37, .1); border: 1px solid rgba(255, 23, 37, .45);
}
.live i { width: 9px; height: 9px; border-radius: 50%; background: #ff1725; animation: live-blink 1.1s ease-in-out infinite; }
@keyframes live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 23, 37, .7); }
  50% { opacity: .2; box-shadow: 0 0 0 6px rgba(255, 23, 37, 0); }
}
@media (prefers-reduced-motion: reduce) { .live i { animation-duration: 2.4s; } }

/* Tablero de la rifa pequeña */
.board { margin-top: 72px; }
.board__lead { text-align: center; margin: -16px 0 18px; }
.board__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.board__legend span { display: inline-flex; align-items: center; gap: .45rem; }
.board__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.board__pages button {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.board__pages button.active { background: var(--primary); border-color: var(--primary); color: #0a0a0a; }
.board__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 640px; margin: 0 auto; }
.cell {
  position: relative; aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  transition: transform .1s, background .15s, border-color .15s;
}
.cell:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-1px); }
.cell--picked { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: var(--primary-2); color: #0a0a0a; }
.cell--sold { color: var(--muted); opacity: .6; cursor: not-allowed; }
.cell--sold::before, .cell--sold::after {
  content: ""; position: absolute; left: 16%; right: 16%; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: #ff1725;
}
.cell--sold::before { transform: rotate(45deg); }
.cell--sold::after { transform: rotate(-45deg); }
.cell--held { opacity: .5; border-style: dashed; cursor: not-allowed; }
.cell--mini { display: inline-block; width: 18px; height: 18px; border-radius: 5px; }
.board-bar {
  position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 30; width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(20, 20, 20, .96); border: 1px solid var(--primary); box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.board-bar__info { flex: 1; min-width: 0; display: grid; }
.board-bar__info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-bar__total { font-family: "Bricolage Grotesque"; font-size: 1.25rem; color: var(--accent); white-space: nowrap; }
body.has-board-bar { padding-bottom: 110px; }
@media (max-width: 560px) {
  .board__grid { gap: 4px; }
  .cell { font-size: .8rem; border-radius: 8px; }
  .board-bar { flex-wrap: wrap; }
  .board-bar__info { flex-basis: 100%; }
  .board-bar #boardPay { flex: 1; }
}
