/* ============================================================================
   Supernova Casino — POARTA, comună tuturor meselor pe xEGLD
   ============================================================================
   ⚠️ FIȘIER PARTAJAT (2026-08-21). Până acum existau TREI copii identice, câte
   una în `slot-xegld/`, `roulette-xegld/` și `blackjack-xegld/` — iar pokerul,
   care n-avea poartă deloc, ar fi făcut a patra și a cincea. Verificat cu `diff`
   înainte de unificare: cele trei erau identice byte cu byte.

   Îl încarcă toate cele CINCI pagini de joc, de la rădăcina lui `public/`:

       <link rel="stylesheet" href="/casino-gate.css?v=1">

   ⚠️ O schimbare aici se vede la toate mesele deodată. Aia e și ideea: poarta
   trebuie să arate la fel peste tot, ca butonul de lobby (regula 1ter).
   ========================================================================== */
/* ============================================================================
   Supernova Slot xEGLD — the layer the arcade cabinet does not have

   ⚠️ EVERYTHING xEGLD-SPECIFIC LIVES HERE, AND NOTHING ELSE DOES. `slot.css` is
   kept BYTE-IDENTICAL with slot/slot7/slot.css so the two can be compared with a
   plain `diff` instead of text anchors — the technique CLAUDE.md warns about,
   because an anchor can match inside the block it was meant to end.

       diff slot/slot7/slot.css supernova-arcade-main/public/slot-xegld/slot.css

   If that ever prints anything, somebody edited the wrong file.
   ============================================================================ */

/* ---- the sub-line under CREDIT / BET / WIN: the same number in xEGLD ------
   ⚠️ Chips are the machine's idiom, but chips are also the thing nobody can
   value at a glance. Both are shown, always, so "10" can never be mistaken for
   ten of anything real. */
.info-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255, 214, 102, .62);
  margin-top: 2px;
  white-space: nowrap;
}
body.mobile-mode .info-sub { font-size: 11px; }

/* ---- the seat strip: what the contract holds, and the way out ------------ */
.seat-strip {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 8, 22, .82);
  border: 1px solid rgba(255, 214, 102, .28);
  backdrop-filter: blur(8px);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #f3ecd8;
  box-shadow: 0 6px 26px rgba(0, 0, 0, .5);
}
.seat-strip[hidden] { display: none; }
.seat-item { white-space: nowrap; }
.seat-sep { opacity: .35; }
.seat-commit {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  opacity: .6;
  cursor: help;
}
.seat-leave {
  margin-left: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 102, .45);
  background: linear-gradient(180deg, rgba(255, 214, 102, .18), rgba(255, 214, 102, .06));
  color: #ffd666;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.seat-leave:hover { filter: brightness(1.25); }
.seat-leave:active { transform: translateY(1px); }
.seat-leave[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

/* ---- the gate ------------------------------------------------------------
   ⚠️ This covers the machine until the server is up, the address is proven and
   the seat is funded. It is deliberately opaque: a half-visible machine invites
   people to press things that cannot work, and a spinner with no words is how
   an afternoon gets lost at the poker table. Every state here has a sentence. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(18, 10, 40, .93), rgba(4, 2, 12, .97));
  backdrop-filter: blur(6px);
}
.gate[hidden] { display: none; }
.gate-card {
  position: relative;   /* ⚠️ ancorează .gate-close — cerut de Vlad, 2026-08-19 */
  width: min(460px, 90vw);
  padding: 30px 30px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #191331, #0e0a20);
  border: 1px solid rgba(255, 214, 102, .3);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
  text-align: center;
  font-family: 'Roboto', sans-serif;
  color: #efe7d4;
}
/* ⚠️ AL DOILEA DRUM SPRE ACEEAȘI IEȘIRE, nu un al doilea buton (cerut de Vlad,
   2026-08-19): apasă exact `cashOutAndLeave`, funcția lui `.lobby-back` — pusă
   aici fiindcă `.lobby-back` stă sub acest overlay și, cât timp ecranul e
   deschis, nu poate fi atins. Nu contrazice regula „un singur buton de ieșire"
   (CLAUDE.md #1ter): e ACEEAȘI acțiune, doar al doilea loc din care se apasă. */
.gate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 102, .25);
  background: rgba(255, 255, 255, .04);
  color: #efe7d4;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}
.gate-close:hover { background: rgba(255, 214, 102, .15); border-color: rgba(255, 214, 102, .55); }
/* ⚠️⚠️ CÂT SE CONFIRMĂ SCAUNUL PE LANȚ, IEȘIRILE SUNT ÎNCHISE (2026-09-07, cerut de
   Vlad). ✕ e apăsat instinctiv în orice fereastră de așteptare — iar aici înseamnă „plec la
   lobby cât `sitDown` intră pe lanț", adică un scaun născut fără sesiune, blocat până la
   `release-seats.js`. Se ASCUNDE (un buton stins tot invită la apăsat), și odată cu el se
   stinge `.lobby-back`: stă la z-index:500, deci PESTE poartă, a doua ușă spre același loc.
   ⚠️ Regula stă și în cod (`setGateLock`) — CSS-ul singur se poate ocoli. */
body.gate-locked .gate-close,
.gate-close[hidden] { display: none; }
body.gate-locked .lobby-back { opacity: .3; pointer-events: none; }
.gate-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 900;
  color: #ffd666;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.gate-body {
  font-size: 14.5px;
  line-height: 1.6;
  opacity: .9;
  min-height: 44px;
}
.gate-body .hint { display: block; margin-top: 8px; font-size: 12.5px; opacity: .62; }
.gate-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, .38);
  padding: 2px 6px;
  border-radius: 5px;
}
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 18px;
}
.gate-actions:empty { margin-top: 0; }
.gate-btn {
  padding: 12px 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 214, 102, .5);
  background: linear-gradient(180deg, #ffd666, #e0a92c);
  color: #241a02;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.gate-btn:hover { filter: brightness(1.08); }
.gate-btn:active { transform: translateY(1px); }
.gate-btn.ghost {
  background: transparent;
  color: #ffd666;
  border-color: rgba(255, 214, 102, .34);
  font-weight: 500;
}
.gate-btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.gate-foot {
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: .03em;
  opacity: .5;
}

/* The buy-in field, on its own screen.
   ⚠️ TEXT FIELD, NOT A SLIDER (2026-08-15, replaced the old `input[type=range]` —
   same recipe as the lobby's amount screen: an empty field with a placeholder,
   never a value the player has to notice and clear). */
.gate-amount { margin-top: 16px; }
.gate-amount .amt {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffd666;
  margin-bottom: 6px;
}
/* ⚠️ CENUȘIU, NU AURIU-ESTOMPAT (2026-08-15, cerut de Vlad) — la fel ca la
   depunere/retragere în lobby: placeholder-ul și indiciul stau într-o culoare
   clar DIFERITĂ de textul chiar tastat (auriu), nu doar mai palidă în aceeași
   nuanță. Un auriu estompat tot arăta a „sumă deja scrisă acolo"; un gri nu
   se confundă cu nimic. Aceleași două nuanțe ca-n lobby (`#2f3b4d` placeholder,
   `#8a9bb4`/`--text-dim` indiciu), ajustate doar ca luminozitate pentru fundalul
   mov de-aici, nu ca familie de culoare. */
.gate-amount .range { font-size: 12px; color: #9ba3b4; margin-top: 6px; }
.gate-amount .amt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 214, 102, .35);
  border-radius: 12px;
  padding: 10px 14px;
}
.gate-amount .amt-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffd666;
  text-align: left;
}
.gate-amount .amt-input::placeholder { color: #5c6270; }
.gate-amount .amt-unit { font-size: 13px; opacity: .6; white-space: nowrap; }
.gate-amount .amt-max {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 102, .45);
  background: transparent;
  color: #ffd666;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.gate-amount .amt-max:hover { background: rgba(255, 214, 102, .14); }
.gate-amount .amt-max[hidden] { display: none; }
.gate-amount .amt-err { color: #ff6b6b; opacity: .9; }
.gate-amount .amt-err[hidden] { display: none; }

/* ⚠️ Practice mode must never look like the funded table. */
.gate-practice, .seat-practice {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(120, 200, 255, .6);
  color: #7ac8ff;
  font-size: 11.5px;
  letter-spacing: .04em;
}
