/* ============================================================
   Sistema de diseño — modo oscuro corporativo
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0a0d16; --surface: #10152a; --card: #141a2e; --card2: #1a2240; --line: #262f4d; --line2: #34406a;
  --text: #eef1fb; --muted: #8e99bd; --accent: #f5b83d; --accent-ink: #1a1200; --accent2: #e04a5f;
  --ok: #2fd08c; --warn: #f5b83d; --bad: #ff6b81; --info: #6aa8ff;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 15% -10%, #1b2552 0%, transparent 60%), radial-gradient(800px 500px at 100% 0%, #2a1740 0%, transparent 55%), var(--bg); background-attachment: fixed; min-height: 100vh; }
.hidden { display: none !important; }
main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 48px; }
h1 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.01em; } h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.005em; }
strong, td, .balances strong, .kpi strong { font-variant-numeric: tabular-nums; }
a { color: var(--info); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 10px 16px;
  background: rgba(12, 16, 32, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 18px; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #e8891d); color: var(--accent-ink); font-size: 16px; box-shadow: 0 4px 14px rgba(245, 184, 61, .35); }
.who { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.who #whoName { color: var(--text); font-weight: 600; }
.pill { background: rgba(245, 184, 61, .12); border: 1px solid rgba(245, 184, 61, .35); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--accent); font-weight: 600; }
.balances { display: flex; gap: 8px; }
.balances > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 5px 12px; min-width: 88px; }
.balances small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.balances strong { font-size: 15px; }
.balances > div:last-child strong { color: var(--accent); }

/* Superficies */
.card { background: linear-gradient(180deg, var(--card), #111628); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); overflow-x: auto; }
.narrow { max-width: 440px; margin: 28px auto; }
.auth { text-align: center; padding: 28px 24px 24px; }
.auth .logo-lg { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, var(--accent), #e8891d); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(245, 184, 61, .35); }
.auth h1 { font-size: 22px; margin-bottom: 4px; } .auth form { text-align: left; margin-top: 18px; }
.muted { color: var(--muted); font-size: 13px; }

/* Formularios */
label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
input, select { width: 100%; background: #0c1122; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; font: inherit; font-size: 16px; min-height: 46px; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder { color: #566086; }
input:hover, select:hover { border-color: var(--line2); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 184, 61, .18); }
.field.valid input { border-color: rgba(47, 208, 140, .7); } .field.invalid input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 107, 129, .14); }
.hint { min-height: 16px; font-size: 12px; font-weight: 500; color: var(--muted); }
.field.invalid .hint { color: var(--bad); } .field.valid .hint { color: var(--ok); }
.pw { position: relative; display: block; } .pw input { padding-right: 56px; }
.pw .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; color: var(--muted); border: 0; padding: 8px 10px; font-size: 12px; font-weight: 600; min-height: 0; }
.pw .eye:hover { color: var(--text); }
.form-error { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 107, 129, .1); border: 1px solid rgba(255, 107, 129, .45); color: #ffc0ca; font-size: 13px; text-align: left; }
.rules { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--muted); text-align: left; }
.rules li::before { content: '○'; margin-right: 6px; } .rules li.ok { color: var(--ok); } .rules li.ok::before { content: '✔'; }
.meter { height: 5px; border-radius: 3px; background: #0c1122; overflow: hidden; margin: -4px 0 12px; } .meter > i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .25s var(--ease), background .25s; }

/* Botones */
button { font: inherit; font-weight: 700; font-size: 15px; background: linear-gradient(180deg, #ffc94f, var(--accent)); color: var(--accent-ink); border: 0; border-radius: var(--radius-sm); padding: 12px 18px; min-height: 46px; cursor: pointer; transition: transform .12s var(--ease), box-shadow .15s, filter .15s, opacity .15s; box-shadow: 0 6px 18px rgba(245, 184, 61, .22); }
button:hover { filter: brightness(1.06); } button:active { transform: translateY(1px) scale(.99); }
button:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.3); box-shadow: none; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); box-shadow: none; } button.ghost:hover { background: rgba(255, 255, 255, .05); }
button.small { padding: 6px 11px; font-size: 12px; min-height: 32px; }
button.block { width: 100%; }
button.loading { position: relative; color: transparent !important; pointer-events: none; }
button.loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(26, 18, 0, .25); border-top-color: var(--accent-ink); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; } .row label, .row .field { margin-bottom: 0; }

/* Avisos */
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: #2b1620; border: 1px solid var(--bad); color: #ffd7de; box-shadow: var(--shadow); animation: toastIn .25s var(--ease); }
.toast.ok { background: #0f2a20; border-color: var(--ok); color: #cffbe7; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.notice { margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: rgba(47, 208, 140, .08); border: 1px solid rgba(47, 208, 140, .5); }
.notice code { font-size: 17px; background: #0a1a14; padding: 2px 8px; border-radius: 6px; user-select: all; }

/* Estados */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tag.ok { background: rgba(47, 208, 140, .12); color: var(--ok); } .tag.warn { background: rgba(245, 184, 61, .13); color: var(--warn); } .tag.bad { background: rgba(255, 107, 129, .13); color: var(--bad); }
.tag.warn.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(245, 184, 61, .35); border-top-color: var(--warn); animation: spin .8s linear infinite; }

/* Tablas */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.grid th { color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; }
table.grid tr:hover td { background: rgba(255, 255, 255, .02); }
.pos { color: var(--ok); } .neg { color: var(--bad); }

/* Compra de fichas */
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0 0 14px; }
.amt { background: #0c1122; color: var(--text); border: 1px solid var(--line); box-shadow: none; padding: 12px 6px; font-size: 15px; }
.amt:hover { border-color: var(--accent); filter: none; } .amt.on { background: rgba(245, 184, 61, .14); border-color: var(--accent); color: var(--accent); }
.quote { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; background: #0c1122; border: 1px dashed var(--line2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.quote b { font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.paystate { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid var(--line); background: #0c1122; }
.paystate .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; flex: none; }
.paystate.pending { border-color: rgba(245, 184, 61, .5); } .paystate.pending .ico { background: rgba(245, 184, 61, .13); }
.paystate.ok { border-color: rgba(47, 208, 140, .55); } .paystate.ok .ico { background: rgba(47, 208, 140, .15); color: var(--ok); }
.paystate.bad { border-color: rgba(255, 107, 129, .55); } .paystate.bad .ico { background: rgba(255, 107, 129, .15); color: var(--bad); }
.paystate .spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(245, 184, 61, .25); border-top-color: var(--warn); animation: spin .8s linear infinite; }

/* Modales */
.dlg { background: linear-gradient(180deg, var(--card2), var(--card)); color: var(--text); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; width: min(440px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.dlg[open] { animation: dlgIn .22s var(--ease); }
.dlg::backdrop { background: rgba(4, 6, 14, .72); backdrop-filter: blur(4px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg h2 { font-size: 19px; } .dlg dl { margin: 0 0 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; } .dlg dt { color: var(--muted); } .dlg dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dlg dd.total { color: var(--accent); font-size: 18px; }
.dlg .actions { display: flex; gap: 10px; } .dlg .actions > * { flex: 1; }

/* Transiciones entre pantallas */
.view-in { animation: viewIn .28s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.skel { border-radius: 10px; background: linear-gradient(90deg, #141a2e 25%, #1e2646 37%, #141a2e 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Móvil */
@media (max-width: 640px) {
  main { padding: 12px 12px 40px; } .card { padding: 16px; border-radius: 12px; } .narrow { margin: 14px auto; }
  .topbar { padding: 8px 12px; gap: 8px 10px; } .who { order: 3; flex-basis: 100%; } .balances { flex: 1; justify-content: flex-end; }
  .balances > div { min-width: 0; padding: 4px 9px; } .balances small:nth-of-type(1) { font-size: 9px; }
  .row > * { flex: 1 1 100%; } .rules { grid-template-columns: 1fr; }
  h1 { font-size: 21px; }
}

/* Tragamonedas */
.slot { text-align: center; }
.reels { display: inline-flex; gap: 10px; padding: 14px; background: #0a0d1c; border: 3px solid var(--accent); border-radius: 16px; }
.reel { width: 92px; background: #fff; border-radius: 10px; overflow: hidden; }
.cell { height: 76px; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #222; border-bottom: 1px solid #ddd; }
.cell:last-child { border-bottom: 0; }
.cell.mid { background: #fff7d6; box-shadow: inset 0 0 0 2px var(--accent); }
.cell .bar { font-size: 22px; font-weight: 900; border: 3px solid #222; padding: 0 8px; border-radius: 4px; }
.reel.spinning .cell { filter: blur(2px); }
.slotmsg { margin: 14px 0; min-height: 28px; font-size: 18px; }
.slotmsg.win { color: var(--ok); font-weight: 700; }
.controls { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
button.big { font-size: 20px; padding: 14px 36px; background: var(--accent2); color: #fff; }
.paytable { margin-top: 14px; text-align: left; }
.paytable table { margin-top: 8px; border-collapse: collapse; }
.paytable td { padding: 3px 14px 3px 0; }

/* ===== Lobby ===== */
.lobby-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.lobby-head h1 { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #12162a; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.chip.on { background: var(--accent); color: #1a1500; border-color: var(--accent); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gcard { position: relative; border-radius: 16px; padding: 14px 12px 12px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; color: #fff; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(160deg, var(--g1), var(--g2)); box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.gcard::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.14), transparent 60%); pointer-events: none; }
.gcard:hover, .gcard:focus-visible { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 2px var(--acc); }
.gcard .prev { font-size: 34px; letter-spacing: 2px; text-shadow: 0 4px 10px rgba(0,0,0,.5); min-height: 48px; }
.gcard .prev .sym { font-size: 34px; }
.gcard .gname { font-weight: 800; font-size: 15px; line-height: 1.15; }
.gcard .gtag { font-size: 11px; opacity: .75; margin-top: 2px; }
.gcard .badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.gcard .badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); color: var(--acc); font-weight: 700; }
.gcard .play { position: absolute; right: 10px; top: 10px; background: var(--acc); color: #111; border-radius: 999px; font-size: 10px; font-weight: 900; padding: 3px 9px; z-index: 1; }

/* ===== Pantalla de juego ===== */
.gamescreen { position: fixed; inset: 0; z-index: 50; background: #000; }
.gs { position: relative; height: 100%; display: flex; flex-direction: column; color: #fff; user-select: none; background: radial-gradient(120% 90% at 50% 0%, var(--g1), var(--g2) 70%); overflow: hidden; }
.gs.fs { background: radial-gradient(120% 90% at 50% 0%, #4a1478, #0a0220 70%); }
.gs-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: linear-gradient(#0008, #0000); }
.gs-title { text-align: center; font-weight: 900; font-size: clamp(16px, 3.4vw, 24px); letter-spacing: .5px; text-shadow: 0 2px 10px #000a; }
.gs-title small { display: block; font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.gs-tools { display: flex; gap: 6px; }
.gs-btn { background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.gs-btn.sm { padding: 6px 11px; font-size: 14px; }
.gs-btn.toggle.on { background: var(--acc); color: #111; border-color: var(--acc); }
.gs-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.gs-frame { position: relative; padding: 12px; border-radius: 22px; background: linear-gradient(145deg, #3b2a0a, #120a02); border: 3px solid var(--acc); box-shadow: 0 0 0 4px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--acc) 45%, transparent), inset 0 0 30px #000; --cw: min(15.5vw, 11vh, 98px); --ch: var(--cw); }
.gs-frame.c3 { --cw: min(26vw, 16vh, 128px); --ch: var(--cw); }
.gs-reels { display: flex; gap: 6px; }
.reel { position: relative; width: var(--cw); height: calc(var(--ch) * var(--rows)); overflow: hidden; border-radius: 12px; background: linear-gradient(#e8e8e8, var(--reelbg) 15%, var(--reelbg) 85%, #cfcfcf); box-shadow: inset 0 6px 14px rgba(0,0,0,.35), inset 0 -6px 14px rgba(0,0,0,.35); }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.35), transparent 22%, transparent 78%, rgba(0,0,0,.35)); }
.reel .strip { will-change: transform; }
.reel.moving .strip .cell { filter: blur(1.6px); }
.reel.bump { animation: bump .22s ease-out; }
@keyframes bump { 0% { transform: translateY(0); } 40% { transform: translateY(5px); } 100% { transform: translateY(0); } }
.cell { height: var(--ch); display: flex; align-items: center; justify-content: center; font-size: calc(var(--ch) * .58); color: #222; transition: opacity .25s, transform .25s; }
.cell .sym { display: block; line-height: 1; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.cell .sym.low { font-weight: 900; font-size: .8em; font-family: Georgia, serif; background: linear-gradient(#ffe27a, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px #5a3a00; }
.cell .sym.t-wild { animation: glow 1.4s ease-in-out infinite; }
.cell .sym.t-scat { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 10px var(--acc)) brightness(1.15); } }
.cell.hit { animation: hit .7s ease-in-out infinite alternate; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 55%, transparent), transparent 70%); z-index: 2; }
.cell.dim { opacity: .35; }
@keyframes hit { from { transform: scale(1); } to { transform: scale(1.14); } }
.gs-flash { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; opacity: 0; box-shadow: inset 0 0 60px var(--acc); transition: opacity .3s; }
.gs-flash.on { opacity: 1; }
.gs-msg { min-height: 26px; font-size: clamp(14px, 2.6vw, 18px); text-shadow: 0 2px 6px #000; }
.gs-msg.win { color: #ffe27a; font-weight: 800; }
.gs-fsbar { display: flex; gap: 14px; align-items: center; background: rgba(0,0,0,.55); border: 1px solid var(--acc); border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: 13px; }
.fs-badge { color: var(--acc); }
.gs-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(#0000, #000c 40%); flex-wrap: wrap; }
.gs-box { background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 6px 14px; min-width: 100px; text-align: center; }
.gs-box small { display: block; font-size: 10px; letter-spacing: 1px; opacity: .65; }
.gs-box strong { font-size: clamp(15px, 3vw, 20px); color: #ffe27a; font-variant-numeric: tabular-nums; }
.gs-box.win strong { color: #7dffb0; }
.betctl { display: flex; align-items: center; gap: 8px; justify-content: center; }
.gs-mid { display: flex; align-items: center; gap: 10px; }
.gs-spin { width: clamp(72px, 14vw, 96px); height: clamp(72px, 14vw, 96px); border-radius: 50%; border: 4px solid #fff6; background: radial-gradient(circle at 35% 30%, #7dffb0, #1fb36b 60%, #0c6b40); color: #04210f; font-size: 14px; font-weight: 900; box-shadow: 0 6px 18px #0009, inset 0 -6px 12px #0004; transition: transform .1s; padding: 0; }
.gs-spin:active { transform: scale(.94); }
.gs-spin.busy { filter: grayscale(.6) brightness(.8); }
.gs-automenu { position: absolute; bottom: 118px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.85); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--acc); font-size: 13px; z-index: 5; }
.gs-overlay { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(0,0,0,.55), rgba(0,0,0,.85)); text-align: center; animation: pop .35s ease-out; }
.ov-title { font-size: clamp(26px, 7vw, 54px); font-weight: 900; color: #ffe27a; text-shadow: 0 0 24px var(--acc), 0 4px 0 #7a4a00; letter-spacing: 2px; }
.ov-big { font-size: clamp(54px, 15vw, 120px); font-weight: 900; color: #fff; text-shadow: 0 0 30px var(--acc); font-variant-numeric: tabular-nums; }
.ov-sub { font-size: clamp(14px, 3vw, 20px); opacity: .85; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
.coin { position: absolute; top: -30px; z-index: 6; animation: fall 2.4s linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
.gs-modal { position: absolute; inset: 0; background: rgba(0,0,0,.78); z-index: 8; display: flex; align-items: center; justify-content: center; padding: 14px; }
.gs-modal-in { background: #14172b; border: 1px solid var(--acc); border-radius: 16px; padding: 18px; max-width: 520px; width: 100%; max-height: 88vh; overflow: auto; font-size: 14px; }
.gs-modal-in h2 { color: var(--acc); }
.gs-modal-in .rtp { background: rgba(255,255,255,.07); border-radius: 10px; padding: 8px 10px; }
.pt-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.pt-sym { width: 44px; text-align: center; font-size: 28px; }
.pt-sym .sym.low { font-weight: 900; font-family: Georgia, serif; color: #ffd24a; }
.pt-pays { display: flex; gap: 14px; flex-wrap: wrap; }
.pt-pays b { color: #ffe27a; }
@media (max-height: 560px) { .gs-top { padding: 4px 10px; } .gs-stage { gap: 4px; } }

/* Ajustes para los componentes del juego (que traen su propio estilo) */
.chip, .gs-btn, .gs-spin, .gcard { box-shadow: none; min-height: 0; }
.chip { padding: 8px 16px; } .gs-btn { padding: 8px 12px; }
.gcard { min-height: 170px; }
.row > label, .row > .field { flex: 1 1 180px; }
.lobby-head h1 { font-size: 22px; }
.chips .chip:hover { border-color: var(--accent); filter: none; }
