@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #0b0c0b;
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, 0.64);
  --ink-3: rgba(244, 241, 234, 0.4);
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.035);
  --emerald: #2fbf8a;
  --emerald-deep: #0d3b2c;
  --gold: #e2c27a;
  --gold-2: #b8914a;
  --ruby: #ff5d6c;
  --card: #f7f4ee;
  --card-red: #c8283c;
  --card-black: #121212;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --bezel: 0.375rem;
  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.85em; color: var(--gold); }
svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(226, 194, 122, 0.3); }

/* ---------- Atmósfera ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.orb-a { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(47, 191, 138, 0.35), transparent 65%); }
.orb-b { width: 44vw; height: 44vw; right: -12vw; top: 30vh; background: radial-gradient(circle, rgba(226, 194, 122, 0.18), transparent 65%); }
main, .footer { position: relative; z-index: 2; }

/* ---------- Navegación isla ---------- */
.nav-wrap { position: fixed; top: 1.25rem; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; padding: 0 1rem; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 1.75rem;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem; border-radius: 999px;
  background: rgba(14, 15, 14, 0.62); border: 1px solid var(--hair);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; letter-spacing: -0.02em; }
.brand em, .felt-logo em { font-style: normal; color: var(--gold); font-weight: 400; }
.brand-mark { width: 22px; height: 22px; color: var(--gold); }
.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--ink-2); }
.nav-links a { transition: color 0.4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-user { display: flex; align-items: center; gap: 0.9rem; font-size: 0.9rem; }
.nav-name { color: var(--ink-2); }
.balance { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-weight: 500; color: var(--gold); }
.chip-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 32%, #6e5526 34% 44%, var(--gold) 46% 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.burger { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--glass); border: 1px solid var(--hair); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.4px; background: var(--ink); transition: transform 0.6s var(--ease); }
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: 2rem; background: rgba(5, 5, 5, 0.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
.menu-overlay > * { font-size: 2.4rem; font-weight: 500; letter-spacing: -0.03em; text-align: left; opacity: 0; transform: translateY(2.5rem); animation: rise 0.8s var(--ease) forwards; }
.menu-overlay > :nth-child(2) { animation-delay: 0.06s; }
.menu-overlay > :nth-child(3) { animation-delay: 0.12s; }
.menu-overlay > :nth-child(4) { animation-delay: 0.18s; color: var(--gold); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Botones ---------- */
.btn-pill {
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem; white-space: nowrap;
  padding: 0.4rem 0.4rem 0.4rem 1.35rem; border-radius: 999px; font-weight: 550; letter-spacing: -0.01em;
  color: #17130a; background: linear-gradient(180deg, #f1d79a, var(--gold) 55%, #c9a35c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 30px -12px rgba(226, 194, 122, 0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.3s;
}
.btn-pill:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 40px -12px rgba(226, 194, 122, 0.7); }
.btn-pill:active { transform: scale(0.98); }
.btn-pill:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(23, 19, 10, 0.12); transition: transform 0.5s var(--ease);
}
.btn-icon svg { width: 15px; height: 15px; stroke-width: 1.8; }
.btn-pill:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); }
.btn-pill.sm { padding: 0.3rem 0.3rem 0.3rem 1rem; font-size: 0.88rem; }
.btn-pill.sm .btn-icon { width: 1.75rem; height: 1.75rem; }
.btn-pill.lg { padding: 0.5rem 0.5rem 0.5rem 1.6rem; font-size: 1.02rem; }
.btn-pill.lg .btn-icon { width: 2.4rem; height: 2.4rem; }
.btn-pill.full { width: 100%; justify-content: space-between; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.4rem; border-radius: 999px;
  color: var(--ink); background: var(--glass); border: 1px solid var(--hair);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--hair-2); }
.btn-ghost:active { transform: scale(0.98); }
.btn-ghost.sm { padding: 0.45rem 0.95rem; font-size: 0.86rem; }
.btn-ghost.lg { padding: 0.95rem 1.6rem; }
.i { width: 16px; height: 16px; }

/* ---------- Doble bisel ---------- */
.bezel {
  padding: var(--bezel); border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--hair);
}
.core {
  height: 100%; padding: 1.75rem; border-radius: calc(var(--r-xl) - var(--bezel));
  background: linear-gradient(180deg, rgba(22, 24, 22, 0.92), rgba(12, 13, 12, 0.92));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.07);
}
.bezel.compact { border-radius: var(--r-lg); }
.bezel.compact .core { border-radius: calc(var(--r-lg) - var(--bezel)); padding: 1rem 1rem 1rem 1.4rem; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2); background: var(--glass); border: 1px solid var(--hair);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(47, 191, 138, 0.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 191, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 138, 0); } }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
h1 { font-size: clamp(3rem, 7.6vw, 6.6rem); margin: 1.4rem 0 1.6rem; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 1.1rem 0 3rem; }
h3 { font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.2; margin: 1.1rem 0 0.6rem; }
.gold { background: linear-gradient(100deg, #f6e2b0, var(--gold) 40%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 34rem; margin: 0; }
.muted { color: var(--ink-3); }
.sub { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.1rem; line-height: 1.4; }
.label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(3rem); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero-copy .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero-copy .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Landing ---------- */
.view { padding: 0 1.5rem; max-width: 1240px; margin: 0 auto; }
.hero { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; padding: 8rem 0 4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.hero-stats { display: flex; gap: 2.75rem; margin: 3.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--hair); }
.hero-stats dt { font-size: 0.74rem; color: var(--ink-3); letter-spacing: 0.06em; }
.hero-stats dd { margin: 0.2rem 0 0; font-family: var(--mono); font-size: 1.35rem; font-weight: 500; }

.hero-art { position: relative; height: 560px; display: grid; place-items: center; }
.fan { position: relative; width: 340px; height: 420px; }
.fan .pcard { position: absolute; left: 50%; top: 50%; transform-origin: 50% 120%; animation: deal 1.4s var(--ease-out) both; }
.fan .r1 { --rot: -24deg; --x: -150%; animation-delay: 0.25s; }
.fan .r2 { --rot: -12deg; --x: -100%; animation-delay: 0.35s; }
.fan .r3 { --rot: 0deg; --x: -50%; animation-delay: 0.45s; }
.fan .r4 { --rot: 12deg; --x: 0%; animation-delay: 0.55s; }
.fan .r5 { --rot: 24deg; --x: 50%; animation-delay: 0.65s; }
.fan .pcard { transform: translate(calc(-50% + var(--x) * 0.35), -50%) rotate(var(--rot)); }
@keyframes deal { from { opacity: 0; transform: translate(-50%, 10%) rotate(0deg) scale(0.9); } }
.hero-art:hover .fan .pcard { transition: transform 0.9s var(--ease); }
.hero-art:hover .fan .r1 { transform: translate(calc(-50% + var(--x) * 0.45), -52%) rotate(-30deg); }
.hero-art:hover .fan .r5 { transform: translate(calc(-50% + var(--x) * 0.45), -52%) rotate(30deg); }
.chips-stack { position: absolute; right: 8%; bottom: 10%; display: flex; flex-direction: column-reverse; }
.chips-stack span {
  width: 76px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(ellipse at center, #1c7a59 0 40%, #f4f1ea 42% 48%, #1c7a59 50%);
  box-shadow: 0 4px 0 #0e4a35, 0 10px 24px -6px rgba(0, 0, 0, 0.7);
}
.chips-stack span:nth-child(even) { background: radial-gradient(ellipse at center, #1a1a1a 0 40%, var(--gold) 42% 48%, #1a1a1a 50%); box-shadow: 0 4px 0 #000, 0 10px 24px -6px rgba(0, 0, 0, 0.7); }

.section { padding: 7rem 0; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.feature { padding: 2.25rem; }
.feature p { color: var(--ink-2); margin: 0; max-width: 36rem; }
.ficon { width: 34px; height: 34px; color: var(--gold); stroke-width: 1.1; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; color: var(--ink-2); font-size: 0.95rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: center; }
.ticks li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(47, 191, 138, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fbf8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3 3 7-7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.split { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.mini-felt { display: flex; gap: 0.5rem; padding: 1.4rem; border-radius: 1.25rem; background: radial-gradient(ellipse at 50% 35%, #17614a, var(--emerald-deep) 75%); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5); }
.mini-felt .pcard:first-child { transform: rotate(-6deg); }
.mini-felt .pcard:last-child { transform: rotate(5deg); }

.cta-final .core { text-align: center; padding: 5rem 2rem; background: radial-gradient(ellipse at 50% 0%, rgba(47, 191, 138, 0.16), transparent 60%), linear-gradient(180deg, rgba(22, 24, 22, 0.92), rgba(12, 13, 12, 0.92)); }
.cta-core h2 { margin-bottom: 1rem; }
.cta-core .lead { margin: 0 auto 2.4rem; }

/* ---------- Tarjetas de mesa ---------- */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.tcard .core { display: flex; flex-direction: column; gap: 1.2rem; padding: 1.5rem; }
.tcard-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tcard h3 { margin: 0; font-size: 1.3rem; }
.tcard .stakes { font-family: var(--mono); color: var(--gold); font-size: 0.92rem; }
.seat-dots { display: flex; gap: 5px; }
.seat-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--hair-2); }
.seat-dots span.on { background: var(--emerald); box-shadow: 0 0 8px rgba(47, 191, 138, 0.6); }
.tcard-foot { flex-wrap: wrap; row-gap: 0.6rem; }
.tcard-foot .btn-pill { margin-left: auto; }
.tcard-foot { gap: 0.75rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.86rem; color: var(--ink-2); }
.tcard { transition: transform 0.7s var(--ease); }
.tcard:hover { transform: translateY(-4px); }

/* ---------- Lobby ---------- */
.lobby { padding: 8rem 0 5rem; }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.lobby-title { font-size: clamp(2.4rem, 5vw, 4rem); margin: 1rem 0 0; }
.wallet { display: flex; align-items: center; gap: 2rem; }
.wallet-amount { font-family: var(--mono); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.03em; }
.lobby-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.side { display: grid; gap: 1.1rem; align-content: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.stats dt { font-size: 0.78rem; color: var(--ink-3); }
.stats dd { margin: 0.2rem 0 0; font-family: var(--mono); font-size: 1.6rem; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; counter-reset: lb; }
.leaderboard li { counter-increment: lb; display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair); font-size: 0.92rem; }
.leaderboard li:last-child { border-bottom: 0; }
.leaderboard li::before { content: counter(lb); width: 1.4rem; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.leaderboard li:nth-child(-n + 3)::before { color: var(--gold); }
.leaderboard .lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard .lb-chips { font-family: var(--mono); color: var(--ink-2); }

/* ---------- Cartas ---------- */
.pcard {
  --w: 54px; position: relative; width: var(--w); aspect-ratio: 5 / 7; border-radius: calc(var(--w) * 0.11);
  background: linear-gradient(160deg, #fff, var(--card) 60%, #e9e4da); color: var(--card-black);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 24px -10px rgba(0, 0, 0, 0.8);
  font-family: var(--font); user-select: none;
}
.pcard.red { color: var(--card-red); }
.pcard b { position: absolute; top: 7%; left: 10%; font-size: calc(var(--w) * 0.34); font-weight: 650; line-height: 1; letter-spacing: -0.05em; }
.pcard i { position: absolute; top: calc(7% + var(--w) * 0.34); left: 11%; font-style: normal; font-size: calc(var(--w) * 0.26); line-height: 1.1; }
.pcard s { position: absolute; right: 9%; bottom: 4%; text-decoration: none; font-size: calc(var(--w) * 0.62); line-height: 1; opacity: 0.92; }
.pcard.big { --w: 150px; }
.pcard.sm { --w: 44px; }
.pcard.back {
  background:
    repeating-linear-gradient(45deg, rgba(226, 194, 122, 0.16) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(226, 194, 122, 0.16) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #183f31, #0b2219);
  box-shadow: inset 0 0 0 3px #0b2219, inset 0 0 0 4px rgba(226, 194, 122, 0.45), 0 10px 24px -10px rgba(0, 0, 0, 0.8);
}
.pcard.win { box-shadow: 0 0 0 2px var(--gold), 0 0 26px rgba(226, 194, 122, 0.55); }
.pcard.dim { opacity: 0.38; }
.pcard.enter { animation: flip 0.7s var(--ease-out) both; }
@keyframes flip { from { opacity: 0; transform: translateY(-18px) rotateY(80deg) scale(0.92); } }

/* ---------- Mesa ---------- */
#view-table { max-width: 1320px; padding-top: 6.5rem; padding-bottom: 12rem; }
.table-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.table-meta { text-align: center; display: flex; flex-direction: column; }
.table-meta strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.table-meta span { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.table-tools { display: flex; justify-content: flex-end; gap: 0.5rem; }
#back-lobby { justify-self: start; }

.felt-wrap { padding: 4.5rem 5.5rem; }
.felt {
  position: relative; aspect-ratio: 2.05 / 1; border-radius: 999px; padding: 14px;
  background: linear-gradient(180deg, #2a2117, #120d08);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 50px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(226, 194, 122, 0.12);
}
.felt-inner {
  position: absolute; inset: 14px; border-radius: 999px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  background: radial-gradient(ellipse at 50% 38%, #1d7457 0%, #145240 45%, #0b3024 100%);
  box-shadow: inset 0 0 0 2px rgba(226, 194, 122, 0.22), inset 0 0 90px rgba(0, 0, 0, 0.55);
}
.felt-inner::after { content: ''; position: absolute; inset: 9%; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.06); pointer-events: none; }
.felt-logo { position: absolute; top: 15%; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.11); }
.felt-logo em { color: rgba(226, 194, 122, 0.22); }
.board { display: flex; gap: 0.5rem; min-height: calc(62px * 1.4); }
.board .pcard { --w: 62px; }
.pot { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-family: var(--mono); font-size: 0.95rem; color: var(--gold); }
.status { min-height: 1.4rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); text-align: center; padding: 0 1rem; }
.status strong { color: var(--gold); font-weight: 550; }

.seats { position: absolute; inset: 0; pointer-events: none; }
.seat { position: absolute; width: 150px; transform: translate(-50%, -50%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; }
.pos-0 { left: 50%; top: 100%; }
.pos-1 { left: 6%; top: 82%; }
.pos-2 { left: 6%; top: 18%; }
.pos-3 { left: 50%; top: 0%; }
.pos-4 { left: 94%; top: 18%; }
.pos-5 { left: 94%; top: 82%; }

.seat-cards { display: flex; height: 58px; margin-bottom: -16px; position: relative; z-index: 1; }
.seat-cards .pcard { --w: 46px; }
.seat-cards .pcard + .pcard { margin-left: -14px; transform: rotate(6deg) translateY(2px); }
.seat-cards .pcard:first-child { transform: rotate(-4deg); }
.seat.me .seat-cards { height: 82px; margin-bottom: -20px; }
.seat.me .seat-cards .pcard { --w: 64px; }

.plate {
  position: relative; z-index: 2; width: 100%; padding: 0.55rem 0.9rem; border-radius: 1.1rem; text-align: center;
  background: linear-gradient(180deg, rgba(28, 30, 28, 0.96), rgba(14, 15, 14, 0.96));
  border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px -14px rgba(0, 0, 0, 0.9);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.4s;
}
.plate .p-name { font-size: 0.84rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate .p-stack { font-family: var(--mono); font-size: 0.82rem; color: var(--gold); }
.seat.turn .plate { border-color: rgba(226, 194, 122, 0.7); box-shadow: 0 0 0 3px rgba(226, 194, 122, 0.12), 0 0 30px rgba(226, 194, 122, 0.25); }
.seat.folded .plate, .seat.away .plate { opacity: 0.5; }
.seat.winner .plate { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(47, 191, 138, 0.15), 0 0 34px rgba(47, 191, 138, 0.35); }
.timer { position: absolute; left: 10%; right: 10%; bottom: 5px; height: 2px; border-radius: 2px; background: var(--gold); transform-origin: left; }
.timer.run { animation: drain var(--dur, 20s) linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }

.p-action {
  position: absolute; top: -0.6rem; right: -0.4rem; z-index: 3; padding: 0.12rem 0.5rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; color: #17130a; background: var(--ink);
  animation: pop 0.45s var(--ease-out);
}
.p-action.fold { background: #3a3b3a; color: var(--ink-2); }
.p-action.allin { background: var(--ruby); color: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
.bet {
  position: absolute; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.55rem 0.15rem 0.25rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45); font-family: var(--mono); font-size: 0.78rem; color: var(--ink); white-space: nowrap; animation: pop 0.45s var(--ease-out);
}
.pos-0 .bet { top: -58px; }
.pos-3 .bet { bottom: -42px; }
.pos-1 .bet, .pos-2 .bet { left: 118%; top: 40%; }
.pos-4 .bet, .pos-5 .bet { right: 118%; top: 40%; }
.dealer {
  position: absolute; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.68rem; font-weight: 700; color: #111; background: linear-gradient(180deg, #fff, #ddd); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.pos-0 .dealer { left: -18px; top: 30%; }
.pos-3 .dealer { right: -18px; bottom: 0; }
.pos-1 .dealer, .pos-2 .dealer { right: -22px; top: 70%; }
.pos-4 .dealer, .pos-5 .dealer { left: -22px; top: 70%; }

.empty-seat {
  width: 92px; height: 92px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.2); color: var(--ink-2);
  background: rgba(0, 0, 0, 0.25); font-size: 0.8rem; transition: transform 0.5s var(--ease), border-color 0.4s, color 0.4s;
}
.empty-seat:hover:not(:disabled) { transform: scale(1.05); border-color: var(--gold); color: var(--gold); }
.empty-seat:disabled { cursor: default; opacity: 0.4; }

/* ---------- Barra de acciones ---------- */
.action-bar, .sitback {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 20; width: min(720px, calc(100% - 2rem));
  padding: 0.6rem; border-radius: 1.75rem; background: rgba(14, 15, 14, 0.78); border: 1px solid var(--hair);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.95);
  animation: slideup 0.6s var(--ease-out);
}
@keyframes slideup { from { opacity: 0; transform: translate(-50%, 30px); } }
.sitback { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.6rem 0.6rem 1.4rem; font-size: 0.92rem; color: var(--ink-2); }
.raise-panel { padding: 0.4rem 0.5rem 0.8rem; }
.presets { display: flex; gap: 0.4rem; margin-bottom: 0.7rem; }
.presets button { flex: 1; padding: 0.4rem; border-radius: 999px; font-size: 0.8rem; color: var(--ink-2); background: var(--glass); border: 1px solid var(--hair); transition: background 0.3s var(--ease), color 0.3s; }
.presets button:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.raise-row { display: flex; gap: 0.75rem; align-items: center; }
.raise-row input[type='number'] { width: 110px; padding: 0.45rem 0.7rem; border-radius: 0.8rem; border: 1px solid var(--hair); background: rgba(0, 0, 0, 0.35); font-family: var(--mono); text-align: right; }
input[type='range'] { flex: 1; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(226, 194, 122, 0.18); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(226, 194, 122, 0.18); cursor: grab; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.act {
  padding: 1rem 0.5rem; border-radius: 1.25rem; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  background: var(--glass); border: 1px solid var(--hair); transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.act:active { transform: scale(0.97); }
.act span { font-family: var(--mono); font-weight: 500; }
.act.fold:hover { border-color: rgba(255, 93, 108, 0.5); color: #ffb3ba; }
.act.check, .act.call { background: rgba(47, 191, 138, 0.14); border-color: rgba(47, 191, 138, 0.35); }
.act.check:hover, .act.call:hover { background: rgba(47, 191, 138, 0.22); }
.act.raise { color: #17130a; background: linear-gradient(180deg, #f1d79a, var(--gold)); border-color: transparent; }
.act:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Modales ---------- */
.modal { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(440px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); }
.modal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in 0.6s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.modal-core { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 2rem; }
.modal h2 { font-size: 1.9rem; margin: 0.2rem 0; letter-spacing: -0.035em; line-height: 1.1; }
.close { position: absolute; top: 1.1rem; right: 1.1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--glass); transition: color 0.3s, transform 0.5s var(--ease); }
.close:hover { color: var(--ink); transform: rotate(90deg); }
.close svg { width: 16px; height: 16px; }
.tabs { display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hair); }
.tabs button { padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.86rem; color: var(--ink-2); transition: background 0.4s var(--ease), color 0.3s; }
.tabs button[aria-selected='true'] { background: rgba(255, 255, 255, 0.09); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.84rem; color: var(--ink-2); }
.field input {
  padding: 0.85rem 1rem; border-radius: 1rem; border: 1px solid var(--hair); background: rgba(0, 0, 0, 0.35); color: var(--ink); font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus { outline: none; border-color: rgba(226, 194, 122, 0.6); box-shadow: 0 0 0 4px rgba(226, 194, 122, 0.12); }
.hint { color: var(--ink-3); font-size: 0.78rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.84rem; color: var(--ink-2); }
.check input { margin-top: 0.2rem; accent-color: var(--gold); }
.form-error { min-height: 1.2rem; margin: 0; color: var(--ruby); font-size: 0.86rem; }
.buyin-amount { font-family: var(--mono); font-size: 2.6rem; font-weight: 500; letter-spacing: -0.04em; color: var(--gold); }
.buyin-limits { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 5.5rem; right: 1.25rem; z-index: 40; display: grid; gap: 0.5rem; pointer-events: none; }
.toast {
  max-width: 340px; padding: 0.8rem 1.1rem; border-radius: 1rem; font-size: 0.9rem;
  background: rgba(20, 21, 20, 0.92); border: 1px solid var(--hair); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  animation: toast-in 0.5s var(--ease-out);
}
.toast.err { border-color: rgba(255, 93, 108, 0.4); }
.toast.ok { border-color: rgba(47, 191, 138, 0.4); }
.toast.out { opacity: 0; transform: translateX(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); margin-top: 2rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; display: flex; justify-content: space-between; gap: 2rem; font-size: 0.82rem; color: var(--ink-2); }
.footer-inner .muted { max-width: 520px; text-align: right; }
body.at-table .footer { display: none; }

/* ---------- Visibilidad según sesión ---------- */
body:not(.authed) .user-only { display: none !important; }
body.authed .guest-only { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .felt-wrap { padding: 4rem 3.5rem; }
}
@media (max-width: 768px) {
  .nav { gap: 0.75rem; padding-left: 1rem; }
  .nav-links, .nav .btn-pill.guest-only { display: none; }
  .burger { display: block; }
  body.authed .burger { display: none; }
  .nav-name { display: none; }
  .view { padding: 0 1rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 6rem 0 3rem; gap: 0; }
  h1 { margin-top: 1rem; }
  .hero-art { height: 250px; order: -1; margin-top: -1rem; }
  .fan { transform: translateY(-80px) scale(0.5); }
  .hero-stats { gap: 1.5rem; }
  .hero-stats dd { font-size: 1.1rem; }
  .section { padding: 4.5rem 0; }
  .bento { grid-template-columns: 1fr; gap: 1rem; }
  .span-7, .span-5 { grid-column: span 1; }
  .feature { padding: 1.6rem; }
  .split { grid-template-columns: 1fr; }
  .chips-stack { display: none; }
  .lobby { padding-top: 6.5rem; }
  .wallet { gap: 1rem; }
  .footer-inner { flex-direction: column; }
  .footer-inner .muted { text-align: left; }

  /* Mesa vertical en móvil */
  #view-table { padding-top: 5.5rem; padding-bottom: 15rem; }
  .table-top { grid-template-columns: auto 1fr; }
  .table-meta { text-align: right; }
  .table-tools { grid-column: 1 / -1; justify-content: center; }
  .felt-wrap { padding: 3.5rem 1.6rem 4.5rem; }
  .felt { aspect-ratio: 0.62 / 1; border-radius: 180px; }
  .felt-inner { border-radius: 170px; }
  .felt-inner::after { border-radius: 150px; }
  .board { gap: 0.25rem; min-height: 60px; }
  .board .pcard { --w: 42px; }
  .seat { width: 104px; }
  .plate { padding: 0.4rem 0.5rem; }
  .plate .p-name { font-size: 0.74rem; }
  .plate .p-stack { font-size: 0.74rem; }
  .seat-cards .pcard { --w: 34px; }
  .seat-cards { height: 44px; margin-bottom: -12px; }
  .seat.me .seat-cards .pcard { --w: 52px; }
  .seat.me .seat-cards { height: 70px; }
  .pos-0 { left: 50%; top: 100%; }
  .pos-1 { left: 4%; top: 68%; }
  .pos-2 { left: 4%; top: 30%; }
  .pos-3 { left: 50%; top: 0%; }
  .pos-4 { left: 96%; top: 30%; }
  .pos-5 { left: 96%; top: 68%; }
  .pos-1 .bet, .pos-2 .bet { left: 70%; top: auto; bottom: -26px; }
  .pos-4 .bet, .pos-5 .bet { right: 70%; top: auto; bottom: -26px; }
  .empty-seat { width: 68px; height: 68px; font-size: 0.72rem; }
  .act { padding: 0.85rem 0.25rem; font-size: 0.86rem; }
  .toasts { left: 1rem; right: 1rem; top: auto; bottom: 1rem; }
}

/* ---------- Blackjack ---------- */
#view-blackjack { max-width: 1100px; padding-top: 6.5rem; padding-bottom: 14rem; }
#bj-back { justify-self: start; }
.bj-felt {
  position: relative; margin-top: 1.5rem; min-height: 560px; padding: 2.5rem 2rem 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  border-radius: 2.5rem 2.5rem 50% 50% / 2.5rem 2.5rem 34% 34%;
  background: radial-gradient(ellipse at 50% 20%, #1d7457 0%, #145240 50%, #0b3024 100%);
  box-shadow: inset 0 0 0 2px rgba(226, 194, 122, 0.22), inset 0 0 120px rgba(0, 0, 0, 0.5), 0 0 0 14px #1d1610, 0 0 0 15px rgba(226, 194, 122, 0.15), 0 50px 120px -40px rgba(0, 0, 0, 0.95);
}
.bj-zone { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; min-height: 150px; }
.bj-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.bj-cards { display: flex; min-height: calc(76px * 1.4); }
.bj-cards .pcard { --w: 76px; }
.bj-cards .pcard + .pcard { margin-left: -26px; }
.bj-total {
  min-width: 2.6rem; padding: 0.15rem 0.7rem; border-radius: 999px; text-align: center;
  font-family: var(--mono); font-size: 0.9rem; background: rgba(0, 0, 0, 0.45); color: var(--ink);
}
.bj-total.bust { background: rgba(255, 93, 108, 0.85); color: #fff; }
.bj-total.bj { background: var(--gold); color: #17130a; }
.bj-rules { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; text-align: center; }
.bj-rules strong { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(226, 194, 122, 0.55); }
.bj-rules span { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.3); }
.bj-result { min-height: 2.4rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; text-align: center; }
.bj-result.win { color: var(--gold); animation: pop 0.6s var(--ease-out); }
.bj-result.lose { color: rgba(255, 255, 255, 0.6); animation: pop 0.6s var(--ease-out); }
.bj-result.push { color: var(--ink); animation: pop 0.6s var(--ease-out); }
.bj-hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem; margin-top: auto; }
.bj-hand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.9rem 0.9rem 0.7rem; border-radius: 1.4rem; transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s; }
.bj-hand.active { background: rgba(0, 0, 0, 0.18); box-shadow: 0 0 0 1px rgba(226, 194, 122, 0.5), 0 0 34px rgba(226, 194, 122, 0.18); }
.bj-hand.waiting { opacity: 0.55; }
.bj-hand-meta { display: flex; align-items: center; gap: 0.5rem; }
.bj-hand-meta .bet { position: static; }
.bj-outcome { position: absolute; top: -0.5rem; right: -0.5rem; z-index: 3; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 650; animation: pop 0.45s var(--ease-out); }
.bj-outcome.win, .bj-outcome.blackjack { background: var(--gold); color: #17130a; }
.bj-outcome.push { background: var(--ink); color: #17130a; }
.bj-outcome.lose, .bj-outcome.bust { background: #3a3b3a; color: var(--ink-2); }

.bj-bar { display: grid; gap: 0.75rem; padding: 0.9rem; }
.bj-chips { display: flex; justify-content: center; gap: 0.6rem; }
.chip-btn {
  --c: #e8e4dc; --t: #17130a; width: 54px; height: 54px; border-radius: 50%; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--t);
  background: radial-gradient(circle, var(--c) 0 52%, transparent 53%), repeating-conic-gradient(var(--c) 0 20deg, #fff 20deg 30deg);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.15), 0 8px 18px -8px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s var(--ease);
}
.chip-btn:hover:not(:disabled) { transform: translateY(-4px); }
.chip-btn:active:not(:disabled) { transform: scale(0.94); }
.chip-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.chip-btn.c50 { --c: #c8283c; --t: #fff; }
.chip-btn.c100 { --c: #1c7a59; --t: #fff; }
.chip-btn.c500 { --c: #1a1a1a; --t: var(--gold); }
.chip-btn.c1000 { --c: var(--gold); --t: #17130a; }
.bj-bet-row { display: flex; align-items: center; gap: 1rem; padding: 0 0.3rem 0 0.8rem; }
.bj-bet-row > div { flex: 1; }
.bj-bet-amount { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; color: var(--gold); }
.bj-actions { grid-template-columns: repeat(4, 1fr); }
.bj-ins-actions { grid-template-columns: repeat(2, 1fr); }
.bj-ins-text { margin: 0; padding: 0.2rem 0.6rem 0; text-align: center; font-size: 0.95rem; color: var(--ink-2); }
.bj-ins-text strong { color: var(--gold); font-weight: 600; }
.bj-sub { display: block; margin-top: 0.2rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.act kbd { margin-left: 0.3rem; padding: 0 0.3rem; border-radius: 4px; font-family: var(--mono); font-size: 0.68rem; opacity: 0.5; border: 1px solid currentColor; }
.tcard-head { gap: 0.75rem; }
.tcard h3, .tcard .stakes { white-space: nowrap; }
.seat-dots { flex: none; padding-top: 0.45rem; }
.tcard.casino .seat-dots { gap: 3px; }
.tcard.casino .seat-dots span { width: 5px; height: 5px; }
.tcard.casino .core { background: radial-gradient(ellipse at 100% 0%, rgba(226, 194, 122, 0.14), transparent 60%), linear-gradient(180deg, rgba(22, 24, 22, 0.92), rgba(12, 13, 12, 0.92)); }
.tcard .mini-cards { display: flex; }
.tcard .mini-cards .pcard { --w: 30px; }
.tcard .mini-cards .pcard + .pcard { margin-left: -10px; transform: rotate(8deg); }
body.at-table .footer { display: none; }

@media (max-width: 768px) {
  #view-blackjack { padding-top: 5.5rem; padding-bottom: 15rem; }
  #view-blackjack .table-top { margin-bottom: 0; }
  .bj-felt { min-height: 0; gap: 0.9rem; margin-top: 0.75rem; padding: 1.2rem 1rem 2rem; border-radius: 2rem 2rem 50% 50% / 2rem 2rem 22% 22%; }
  .bj-zone { min-height: 0; gap: 0.4rem; }
  .bj-cards { min-height: 0; }
  .bj-cards .pcard { --w: 52px; }
  .bj-result { min-height: 1.8rem; font-size: 1.2rem; }
  .bj-rules span { display: none; }
  .bj-cards .pcard + .pcard { margin-left: -20px; }
  .bj-hands { gap: 0.8rem; }
  .bj-hands.many .pcard { --w: 44px; }
  .bj-rules strong { font-size: 0.78rem; }
  .chip-btn { width: 48px; height: 48px; font-size: 0.76rem; }
  .bj-actions { grid-template-columns: repeat(2, 1fr); }
  .act kbd { display: none; }
}

/* ---------- Blackjack en vivo ---------- */
#view-bjlive { max-width: 1240px; padding-top: 6.5rem; padding-bottom: 14rem; }
#bjl-back { justify-self: start; }
.bjl-felt { min-height: 700px; padding-bottom: 0; }
.bjl-status { min-height: 1.6rem; font-size: 1rem; text-align: center; color: rgba(255, 255, 255, 0.78); }
.bjl-status strong { color: var(--gold); font-weight: 600; }
.bjl-status .win { color: var(--gold); }
.bjl-seats { position: absolute; inset: 0; pointer-events: none; }
.bjl-seat {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 150px;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; pointer-events: auto;
}
.bjl-hands { display: flex; gap: 0.5rem; align-items: flex-end; min-height: 68px; }
.bjl-hand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.3rem; border-radius: 0.9rem; transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease); }
.bjl-hand.active { background: rgba(0, 0, 0, 0.2); box-shadow: 0 0 0 1px rgba(226, 194, 122, 0.6), 0 0 24px rgba(226, 194, 122, 0.2); }
.bjl-hand .bj-cards { min-height: 0; }
.bjl-hand .bj-cards .pcard { --w: 42px; }
.bjl-hand .bj-cards .pcard + .pcard { margin-left: -24px; }
.bjl-hand .bj-total { font-size: 0.72rem; padding: 0.05rem 0.45rem; min-width: 0; }
.bjl-hand .bj-outcome { top: -0.6rem; right: -0.8rem; font-size: 0.64rem; }
.bjl-seat .plate { width: 100%; }
.bjl-seat.me .plate { border-color: rgba(226, 194, 122, 0.55); }
.bjl-seat.turn .plate { border-color: rgba(226, 194, 122, 0.85); box-shadow: 0 0 0 3px rgba(226, 194, 122, 0.12), 0 0 30px rgba(226, 194, 122, 0.25); }
.bjl-seat.away .plate { opacity: 0.55; }
.bjl-seat .p-net { font-family: var(--mono); font-size: 0.76rem; }
.bjl-seat .p-net.pos { color: var(--gold); }
.bjl-seat .p-net.neg { color: var(--ink-3); }
.bjl-chipbet { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.1rem 0.5rem 0.1rem 0.2rem; border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-family: var(--mono); font-size: 0.74rem; }
.bjl-seat .empty-seat { width: 76px; height: 76px; }
.bjl-ins-tag { font-size: 0.66rem; color: var(--gold); }

@media (max-width: 768px) {
  #view-bjlive { padding-top: 5.5rem; padding-bottom: 15rem; }
  .bjl-felt { min-height: 0; padding-bottom: 1.6rem; border-radius: 2rem; }
  .bjl-seats { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; width: 100%; direction: rtl; }
  .bjl-seat { position: static; transform: none; width: auto; direction: ltr; }
  .bjl-seat .empty-seat { width: 100%; height: 44px; border-radius: 999px; }
  .bjl-hand .bj-cards .pcard { --w: 36px; }
}

/* ---------- Secciones por juego ---------- */
.games { display: grid; gap: 3.5rem; }
.games[data-filter='poker'] .game-section[data-game='blackjack'],
.games[data-filter='blackjack'] .game-section[data-game='poker'] { display: none; }
.game-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.6rem; }
.game-icon {
  flex: none; width: 56px; height: 56px; border-radius: 1.1rem; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 1.25rem; border: 1px solid var(--hair);
}
.game-icon svg { width: 26px; height: 26px; }
.game-icon.poker { color: var(--emerald); background: radial-gradient(circle at 30% 20%, rgba(47, 191, 138, 0.25), rgba(47, 191, 138, 0.06)); border-color: rgba(47, 191, 138, 0.3); }
.game-icon.bj { color: var(--gold); background: radial-gradient(circle at 30% 20%, rgba(226, 194, 122, 0.25), rgba(226, 194, 122, 0.06)); border-color: rgba(226, 194, 122, 0.3); }
.game-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.1; }
.game-title em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 0.35rem; }
.game-desc { margin: 0.35rem 0 0; color: var(--ink-2); font-size: 0.95rem; max-width: 40rem; }
.game-sub { display: flex; align-items: center; gap: 0.55rem; margin: 1.8rem 0 0.9rem; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); line-height: 1.4; }
.game-head + .game-sub { margin-top: 0; }

.game-tabs { display: inline-flex; padding: 4px; margin-bottom: 2.2rem; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hair); }
.game-tabs button { padding: 0.5rem 1.2rem; border-radius: 999px; font-size: 0.9rem; color: var(--ink-2); transition: background 0.4s var(--ease), color 0.3s; }
.game-tabs button[aria-selected='true'] { background: rgba(255, 255, 255, 0.09); color: var(--ink); }

.game-badge {
  align-self: flex-start; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.game-badge.poker { color: var(--emerald); background: rgba(47, 191, 138, 0.12); }
.game-badge.bj-live, .game-badge.bj-solo { color: var(--gold); background: rgba(226, 194, 122, 0.12); }
.tcard .core { gap: 1rem; }
.tcard.poker .core { background: radial-gradient(ellipse at 100% 0%, rgba(47, 191, 138, 0.12), transparent 60%), linear-gradient(180deg, rgba(22, 24, 22, 0.92), rgba(12, 13, 12, 0.92)); }
.tcard.bj-live .core, .tcard.bj-solo .core { background: radial-gradient(ellipse at 100% 0%, rgba(226, 194, 122, 0.12), transparent 60%), linear-gradient(180deg, rgba(22, 24, 22, 0.92), rgba(12, 13, 12, 0.92)); }
.tcard.bj-live .seat-dots { gap: 3px; }
.tcard.bj-live .seat-dots span { width: 5px; height: 5px; }
.tcard.bj-live .seat-dots span.on, .tcard.bj-solo .seat-dots span.on { background: var(--gold); box-shadow: 0 0 8px rgba(226, 194, 122, 0.6); }
.tcard-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.86rem; color: var(--ink-2); }
.tcard-details li { display: flex; align-items: center; gap: 0.5rem; }
.tcard-details li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.occupancy { font-size: 0.8rem; color: var(--ink-3); }
.tcard.poker .stakes { color: var(--emerald); }
#landing-poker, #landing-bj-live, #landing-bj-solo { text-align: left; }

@media (max-width: 768px) {
  .games { gap: 2.5rem; }
  .game-icon { width: 46px; height: 46px; border-radius: 0.9rem; font-size: 1.05rem; }
  .game-tabs { display: flex; }
  .game-tabs button { flex: 1; padding: 0.5rem 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
