:root {
  --bg: #0a0605;
  --bg-2: #120b08;
  --panel: #1a110c;
  --panel-2: #24160e;
  --line: #3d2616;
  --text: #fff6ef;
  --muted: #bfa594;
  --v1: #fdba74;
  --v2: #fb923c;
  --v3: #f97316;
  --v4: #ea580c;
  --grad: linear-gradient(135deg, #fbbf24, #f97316 45%, #c2410c);
  --gold: #fbbf24;
  --green: #4ade80;
  --red: #fb4f6f;
  --radius: 18px;
  --top-h: 70px;
  --side-w: 248px;
  --font-head: Fredoka, Nunito, system-ui, sans-serif;
  color-scheme: dark; /* site-ul e doar pe tema inchisa: formularele si scrollbar-ele urmeaza tema */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* nimic nu are voie sa iasa in lateral: pe telefon ecranul nu se mai misca stanga-dreapta */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
/* butoanele: fara zoom la dublu-tap, fara selectare de text la apasare lunga, fara flash gri pe iPhone */
button, a, label, [role="button"], .card, .case, .bt-case, .bt-row, .up-skin, .inv-item {
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
input, textarea { -webkit-user-select: text; user-select: text; } /* in campuri se poate scrie si selecta normal */
/* ferestrele jocurilor nu se pot derula in lateral, chiar daca o animatie iese putin din ecran */
.modal-box { overflow-x: clip; }
/* pe telefon campurile au 16px, altfel iPhone-ul face zoom cand scrii in ele (si pagina "fuge" in lateral) */
@media (max-width: 760px) { input, select, textarea { font-size: 16px !important; } }body {
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 600;
  background:
    radial-gradient(1000px 600px at 75% -10%, rgba(249,115,22,.22), transparent 60%),
    radial-gradient(800px 500px at -10% 40%, rgba(245,158,11,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #4a3020; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--v4); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--top-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px;
  background: rgba(11,7,5,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--panel); }
.menu-btn { display: none; }

.logo { display: flex; align-items: center; gap: 10px; }
/* logo-ul rotund FLAME CSN: un inel de foc care se roteste in jurul lui + glow care palpaie ca o flacara */
.void-logo {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--logo-a, 0deg), #f97316, #fde047, #dc2626, #f97316 40%, #2a0a04 60%, #f97316);
  animation: logoRing 3.2s linear infinite, logoGlow 1.9s ease-in-out infinite;
}
.void-logo img {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; /* flame-icon.webp e deja rotund */
  transition: transform .3s;
}
.logo:hover .void-logo img { transform: scale(1.08); }
@property --logo-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes logoRing { to { --logo-a: 360deg; } }
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(249,115,22,.6), 0 0 22px rgba(220,38,38,.3); }
  35%      { box-shadow: 0 0 14px rgba(253,224,71,.75), 0 0 30px rgba(249,115,22,.45); }
  60%      { box-shadow: 0 0 18px rgba(249,115,22,.95), 0 0 40px rgba(220,38,38,.55); }
}
/* "animatii reduse" din sistem: inelul sta pe loc, ramane doar glow-ul (lumina, nu miscare) */
@media (prefers-reduced-motion: reduce) { .void-logo { animation: logoGlow 2.6s ease-in-out infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.logo-text b { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 9px 16px; border-radius: 99px;
  color: var(--muted); font-weight: 700; font-size: 14px;
  transition: .15s;
}
.main-nav a:hover { color: var(--text); background: var(--panel); }
.main-nav a.active { color: #fff; background: rgba(249,115,22,.2); box-shadow: inset 0 0 0 1px rgba(251,146,60,.35); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ---------- selector limba ---------- */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 10px;
  border-radius: 99px; background: var(--panel); border: 1px solid var(--line);
  font-weight: 800; font-size: 13px; letter-spacing: .5px; transition: border-color .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--v3); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; stroke: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
  list-style: none; padding: 6px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid rgba(251,146,60,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  animation: menuIn .18s ease;
}
.lang-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; text-align: left;
}
.lang-menu button:hover { background: rgba(249,115,22,.15); }
.lang-menu button.active { background: rgba(249,115,22,.25); color: #fff; }
.lang-menu button span { flex: 1; }
.lang-menu button em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.side-link i { font-style: normal; }
.balance {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 99px;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.coin {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; color: #3b2300;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 55%, #b77d06);
  box-shadow: 0 0 12px rgba(251,191,36,.45);
}
/* moneda = logo-ul de Gold din Standoff 2 (incarcat in game-art.js) */
/* logo-ul are aceeasi inaltime cu textul de langa el (1em) */
html.gold-logo .coin,
html.gold-logo .mp-bet .coin {
  font-size: inherit; width: 1.1em; height: 1.1em;
  background: var(--gold-logo) center / contain no-repeat; color: transparent; box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(251,191,36,.4));
}
.stat-val { white-space: nowrap; }
html.gold-logo .stat-val::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 4px; vertical-align: -.12em;
  background: var(--gold-logo) center / contain no-repeat;
}
.bonus-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 14px rgba(249,115,22,.6);
}
.bonus-btn:hover { filter: brightness(1.15); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff;
  background: var(--grad);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(251,146,60,.5);
  transition: box-shadow .15s;
}
.avatar:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--v2); }
.side-avatar {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-head); font-size: 12px; font-weight: 700; color: #fff; background: var(--grad);
}
/* vizitator (fara cont): iconita de om in loc de initiala */
.avatar.guest, .side-link .side-avatar.guest { background: var(--panel); border: 1px solid var(--line); }
.avatar.guest svg, .side-avatar.guest svg { width: 55%; height: 55%; fill: none; stroke: var(--v2); stroke-width: 2; stroke-linecap: round; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--side-w) 1fr; }

.sidebar {
  position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto;
  padding: 20px 14px;
  border-right: 1px solid var(--line);
  background: rgba(18,11,7,.6);
}
.side-group { margin-bottom: 26px; }
.side-title {
  font-family: var(--font-head);
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); margin: 0 12px 8px;
}
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 14px;
  font-size: 15px; font-weight: 700; color: #efd9c9;
}
.side-link span { width: 22px; text-align: center; }
/* textul din meniul lateral: contur mov + glow mov */
.side-link > i {
  color: #fff; -webkit-text-stroke: 1px #f97316; paint-order: stroke fill;
  text-shadow: 0 0 6px rgba(249,115,22,.85), 0 0 14px rgba(249,115,22,.45);
  transition: text-shadow .2s;
}
.side-link:hover > i, .side-link.active > i {
  text-shadow: 0 0 8px rgba(251,146,60,1), 0 0 20px rgba(249,115,22,.7);
}
/* logo-ul mic din "All games": acelasi inel + glow ca in header, scalat la marimea iconitelor */
.side-link .void-logo.side-logo {
  width: 24px; height: 24px; padding: 1.5px;
  animation: logoRing 4s linear infinite, logoGlowSm 2.6s ease-in-out infinite;
}
@keyframes logoGlowSm {
  0%, 100% { box-shadow: 0 0 5px rgba(249,115,22,.55), 0 0 10px rgba(249,115,22,.25); }
  50%      { box-shadow: 0 0 8px rgba(251,146,60,.9), 0 0 16px rgba(249,115,22,.5); }
}
@media (prefers-reduced-motion: reduce) { .side-link .void-logo.side-logo { animation: logoGlowSm 2.6s ease-in-out infinite; } }
.side-link:hover { background: var(--panel); color: var(--text); }
.side-link.active { background: linear-gradient(90deg, rgba(249,115,22,.28), rgba(249,115,22,.05)); color: #fff; }

.vip-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.vip-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vip-img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(249,115,22,.5)); }
.vip-rank { display: block; font-family: var(--font-head); font-size: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-pct { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .6s; }
.vip-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

.main { padding: 24px 32px 40px; min-width: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid rgba(251,146,60,.3);
  background:
    radial-gradient(circle at 80% 50%, rgba(249,115,22,.35), transparent 55%),
    linear-gradient(160deg, #2e1409, #140b07 60%, #0e0806);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 70% 40%, rgba(255,255,255,.3), transparent);
}
/* ---------- Hero cu logo-ul animat (FLAME CSN) ---------- */
/* Emblema decupata, in doua straturi: cartile (cu flacarile de sus) se leagana, placa "FLAME CSN" bate ca o inima.
   Peste fiecare strat e o copie "in flacari": aceeasi imagine, deformata de un filtru de caldura animat (#flameHeat,
   in index.html) si pusa in modul "screen" — asa flacarile par ca danseaza, iar textul ramane clar.
   In spate: aura de foc care se roteste; dedesubt: scantei care urca. Pivotul cartilor e pe marginea de sus a placii. */
.hero.hero-logo {
  display: grid; place-items: center; padding: 30px 16px 26px; min-height: 380px; margin-bottom: 18px; isolation: isolate;
  background: transparent; border: 0; overflow: visible;
}
.hero.hero-logo::before { display: none; }
.hl-emblem {
  position: relative; width: min(400px, 82vw); aspect-ratio: 784 / 796;
  animation: hlFloat 5s ease-in-out infinite, hlEmblemGlow 2.3s linear infinite;
}
.hl-layer { position: absolute; inset: 0; }
.hl-layer img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.hl-cards { transform-origin: 51% 57.5%; animation: hlCards 4.2s ease-in-out infinite; }
.hl-plate { transform-origin: 51% 72%; animation: hlBeat 2.6s ease-in-out infinite; }
/* copia "in flacari" */
.hl-layer img.hl-fire {
  position: absolute; inset: 0; mix-blend-mode: screen; filter: url(#flameHeat) saturate(1.4) brightness(1.15);
  animation: hlFlicker 1.7s steps(1, end) infinite;
}
.hl-plate img.hl-fire { animation-duration: 2.1s; animation-delay: -.6s; }
.hl-layer .hl-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,247,214,.6) 49%, rgba(251,146,60,.35) 53%, transparent 62%);
  background-size: 300% 100%; mix-blend-mode: screen;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
}
.hl-cards .hl-shine { --m: url("img/flame-cards.webp"); animation: hlShine 5s ease-in-out infinite; }
.hl-plate .hl-shine { --m: url("img/flame-plate.webp"); animation: hlShine 3.6s ease-in-out .8s infinite; }
@keyframes hlCards {
  0%, 100% { transform: rotate(-1.4deg) translateY(0) scale(1); }
  25%      { transform: rotate(0deg) translateY(-7px) scale(1.025); }
  50%      { transform: rotate(1.4deg) translateY(0) scale(1); }
  75%      { transform: rotate(0deg) translateY(-4px) scale(1.015); }
}
@keyframes hlBeat {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  12%      { transform: scale(1.045); filter: brightness(1.22) saturate(1.15); }
  24%      { transform: scale(1.01); filter: brightness(1.05); }
  36%      { transform: scale(1.035); filter: brightness(1.15); }
  55%      { transform: scale(1); filter: brightness(1); }
}
/* palpaitul flacarilor: intensitate neregulata, ca un foc adevarat */
@keyframes hlFlicker {
  0% { opacity: .55; } 9% { opacity: .8; } 18% { opacity: .45; } 27% { opacity: .9; } 36% { opacity: .6; }
  45% { opacity: .75; } 54% { opacity: .4; } 63% { opacity: .85; } 72% { opacity: .55; } 81% { opacity: .95; } 90% { opacity: .5; }
}
@keyframes hlEmblemGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(249,115,22,.75)) drop-shadow(0 0 28px rgba(220,38,38,.35)); }
  20%      { filter: drop-shadow(0 0 16px rgba(253,186,116,.95)) drop-shadow(0 0 44px rgba(249,115,22,.5)); }
  35%      { filter: drop-shadow(0 0 11px rgba(249,115,22,.8)) drop-shadow(0 0 30px rgba(220,38,38,.4)); }
  60%      { filter: drop-shadow(0 0 20px rgba(253,224,71,.9)) drop-shadow(0 0 56px rgba(249,115,22,.6)); }
  80%      { filter: drop-shadow(0 0 13px rgba(249,115,22,.85)) drop-shadow(0 0 36px rgba(220,38,38,.45)); }
}
.hl-aura {
  position: absolute; z-index: -1; width: min(540px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(249,115,22,0), rgba(251,146,60,.5), rgba(220,38,38,0), rgba(253,224,71,.35), rgba(220,38,38,.4), rgba(249,115,22,0));
  filter: blur(48px); animation: hlSpin 12s linear infinite, hlBreath 3.2s ease-in-out infinite;
}
/* scantei de foc care urca, se leagana si se sting */
.hl-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hl-sparks i {
  position: absolute; bottom: 4%; left: var(--x); width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, #fff7d6, #fbbf24 45%, #f97316 70%); box-shadow: 0 0 8px #f97316, 0 0 16px rgba(220,38,38,.6);
  opacity: 0; animation: hlEmber var(--t) ease-out var(--d) infinite;
}
@keyframes hlSpin { to { transform: rotate(360deg); } }
@keyframes hlBreath { 0%, 100% { opacity: .65; scale: .92; } 50% { opacity: 1; scale: 1.06; } }
@keyframes hlFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes hlShine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes hlEmber {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  40%  { transform: translate(var(--dx, 12px), -140px) scale(.9); }
  70%  { transform: translate(calc(var(--dx, 12px) * -.6), -260px) scale(.7); opacity: .8; }
  100% { transform: translate(var(--dx, 12px), -380px) scale(.3); opacity: 0; }
}
@media (max-width: 760px) {
  .hero.hero-logo { min-height: 0; padding: 22px 16px 18px; margin-bottom: 14px; }
  .hl-emblem { width: min(300px, 80vw); }
}
/* "animatii reduse": totul sta pe loc, ramane doar glow-ul */
@media (prefers-reduced-motion: reduce) {
  .hl-aura, .hl-cards, .hl-plate, .hl-layer .hl-shine, .hl-sparks i, .hl-layer img.hl-fire { animation: none; }
  .hl-layer img.hl-fire { display: none; }
  .hl-emblem { animation: hlEmblemGlow 3s ease-in-out infinite; }
}
/* ---------- Bannerul de bonus in flacari (prima pagina) ---------- */
/* Fiecare rand are 2 straturi facute din acelasi text (data-text): ::before = flacarile (portocaliu, cu umbre in sus,
   deformate de filtrul #flameRise din index.html, ca focul sa urce), ::after = textul cu degrade de foc si glow.
   Textul propriu-zis e transparent (doar pastreaza marimea). La click se deschide depozitul. */
.hl-promo {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 26px 10px 18px;
  background: none; border: 0; cursor: pointer; color: inherit; text-align: center;
  animation: hlFloat 5s ease-in-out infinite; transition: scale .25s;
}
.hl-promo:hover { scale: 1.03; }
.hl-promo:focus-visible { outline: 2px solid #fb923c; outline-offset: 6px; border-radius: 18px; }
.hp-line {
  position: relative; display: block; font-family: "Bungee", "Russo One", Fredoka, sans-serif; font-weight: 400;
  line-height: 1.02; letter-spacing: .02em; color: transparent; white-space: nowrap;
}
.hp-big   { font-size: clamp(72px, 15vw, 150px); }
.hp-mid   { font-size: clamp(36px, 7.4vw, 76px); }
.hp-small { font-size: clamp(16px, 3.4vw, 30px); letter-spacing: .1em; margin-top: 6px; }
.hp-line::before, .hp-line::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
/* flacarile din spatele textului */
.hp-line::before {
  color: #ff7a00; z-index: 0; transform-origin: 50% 100%; opacity: .75; transform: translateY(-8px) scaleY(1.08);
  text-shadow: 0 -4px 8px #ff9a1f, 0 -10px 18px #ff6a00, 0 -18px 30px #e2380a, 0 -28px 46px rgba(185,28,28,.85);
  filter: url(#flameRise); animation: hpFlames 1.3s steps(1, end) infinite;
}
/* textul cu degrade de foc */
.hp-line::after {
  z-index: 1; background: linear-gradient(0deg, #9f1d0a 0%, #e2380a 22%, #f97316 42%, #fbbf24 66%, #fff7d6 92%);
  background-size: 100% 180%; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #4a1103; paint-order: stroke fill;
  filter: drop-shadow(0 0 4px rgba(255,180,80,.75)) drop-shadow(0 0 16px rgba(249,115,22,.7)) drop-shadow(0 3px 0 #3b0d02);
  animation: hpGlow 1.8s ease-in-out infinite alternate;
}
.hp-mid::before { animation-delay: -.4s; }
/* randul mic: fara deformare (s-ar citi greu), doar o stralucire de foc */
.hp-small::before { filter: none; text-shadow: 0 0 8px #ff7a00, 0 -4px 14px rgba(226,56,10,.8); animation: none; opacity: .9; }
.hp-mid::after { animation-delay: -.6s; } .hp-small::after { animation-delay: -1.1s; }
/* flacarile stau mai sus decat literele (transform-origin jos) si palpaie, ca focul sa iasa din text */
@keyframes hpFlames {
  0%   { opacity: .7;  transform: translateY(-6px) scaleY(1.05); }
  15%  { opacity: .9;  transform: translateY(-10px) scaleY(1.12); }
  30%  { opacity: .6;  transform: translateY(-7px) scaleY(1.06); }
  45%  { opacity: .85; transform: translateY(-11px) scaleY(1.14); }
  60%  { opacity: .65; transform: translateY(-8px) scaleY(1.08); }
  75%  { opacity: .9;  transform: translateY(-12px) scaleY(1.16); }
  90%  { opacity: .6;  transform: translateY(-7px) scaleY(1.05); }
}
@keyframes hpGlow {
  from { background-position: 0 100%; filter: drop-shadow(0 0 4px rgba(255,180,80,.7)) drop-shadow(0 0 14px rgba(249,115,22,.6)) drop-shadow(0 3px 0 #3b0d02); }
  to   { background-position: 0 0;    filter: drop-shadow(0 0 7px rgba(255,214,120,.95)) drop-shadow(0 0 26px rgba(249,115,22,.9)) drop-shadow(0 3px 0 #3b0d02); }
}
@media (prefers-reduced-motion: reduce) {
  .hl-promo, .hp-line::before, .hp-line::after { animation: none; }
}
.hero-orb {
  position: absolute; width: 460px; height: 460px; right: -120px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.35), transparent 65%);
  filter: blur(20px);
}
.hero-content { position: relative; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--v2); margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05;
  margin-bottom: 16px;
}
.hero-sub { color: #ead3c2; max-width: 46ch; line-height: 1.6; margin-bottom: 26px; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 24px; border-radius: 99px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; letter-spacing: .3px;
  transition: transform .12s, filter .12s, background .12s;
}
.btn:active { transform: scale(.97); }
.btn-main { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(249,115,22,.45); }
.btn-main:hover { filter: brightness(1.12); }
.btn-ghost { border: 2px solid rgba(251,146,60,.45); color: var(--v1); }
.btn-ghost:hover { background: rgba(249,115,22,.12); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn b { color: var(--gold); }

.featured {
  position: relative; text-align: center;
  padding: 22px 20px 20px; border-radius: 22px;
  background: rgba(10,6,4,.55);
  border: 1px solid rgba(251,146,60,.35);
  box-shadow: inset 0 0 50px rgba(249,115,22,.15);
}
.featured-tag {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(245,158,11,.15); color: var(--v1);
}
.featured-art {
  width: 130px; height: 130px; margin: 14px auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 66px;
  background: radial-gradient(circle, rgba(245,158,11,.45), rgba(234,88,12,.15) 60%, transparent 70%);
}
.featured-art img { width: 120px; height: 120px; object-fit: contain; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(125,211,252,.55)); }
@keyframes float { 50% { transform: translateY(-8px); } }
.featured-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.featured-sub { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 36px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.stat-val { font-family: var(--font-head); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-val::after { content: " G"; font-size: 14px; color: var(--gold); }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.section-sub { color: var(--muted); font-size: 14px; }

/* ---------- Cases (fereastra cu lista tuturor cutiilor) ---------- */
.games-section { margin-bottom: 40px; }
.cases-box { width: min(980px, 100%); padding-bottom: 24px; }
.cases {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px; padding: 10px 26px 0;
}
@media (max-width: 560px) {
  .cases { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 14px 0; }
}
.case {
  position: relative; text-align: center;
  padding: 18px 14px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; transition: transform .18s, border-color .18s;
  overflow: hidden;
}
.case::before {
  content: ""; position: absolute; left: 50%; top: 30px; width: 120px; height: 120px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 70%); opacity: .45;
}
.case:hover { transform: translateY(-4px); border-color: var(--c); }
.case-icon { position: relative; height: 100px; display: grid; place-items: center; transition: transform .25s; }
.case-icon img { height: 96px; width: 96px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.case:hover .case-icon { transform: scale(1.1) translateY(-3px); }
.case-name { position: relative; font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-top: 6px; }
.case-price {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 14px; border-radius: 99px; background: var(--bg-2);
  font-weight: 800; font-size: 14px; color: var(--gold);
}
.case-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.case-max { position: relative; font-size: 12px; color: var(--muted); margin-top: 4px; }
.case-max b { color: var(--text); }
.case-max span {
  display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 99px;
  font-size: 11px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--c) 45%, transparent);
}

/* ---------- Games ---------- */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 99px;
  padding: 0 16px; width: 260px; max-width: 100%;
}
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; padding: 11px 0; width: 100%; }
.search:focus-within { border-color: var(--v3); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 9px 18px; border-radius: 99px; font-size: 14px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line); color: #efd9c9;
}
.chip:hover { border-color: #5c3a1f; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(249,115,22,.4); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }

.card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(251,146,60,.6); box-shadow: 0 16px 36px rgba(124,45,18,.45); }
.card-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #140b07; }

/* ilustratiile jocurilor (game-art.js) */
.game-art { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; fill: none; display: block; }
.game-art .ga-body { transform-origin: 200px 115px; transition: transform .4s cubic-bezier(.2,1.4,.4,1); }
.card:hover .game-art .ga-body { transform: scale(1.08) translateY(-4px); }
.ga-title {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 3px;
  paint-order: stroke; stroke-width: 8px; stroke-linejoin: round;
}
.ga-mult { font-family: var(--font-head); font-weight: 700; font-size: 34px; }
.ga-pct  { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.card-sub { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; min-width: 0; }
.card-meta b { white-space: nowrap; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .8px;
  padding: 4px 10px; border-radius: 99px; background: rgba(249,115,22,.85); color: #fff;
}
.badge.hot { background: var(--red); }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; font-size: 16px;
  background: rgba(8,4,18,.5); color: #fff; opacity: .8;
}
.fav-btn:hover { opacity: 1; }
.fav-btn.on { color: var(--gold); opacity: 1; }
.play-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: rgba(11,7,5,.5); opacity: 0; transition: opacity .18s;
}
.card:hover .play-overlay { opacity: 1; }
.play-overlay span {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  background: var(--grad); color: #fff; font-size: 22px;
  box-shadow: 0 0 34px rgba(249,115,22,.8);
}
.card-meta { display: flex; justify-content: space-between; padding: 11px 14px; font-size: 13px; color: var(--muted); }
.card-meta b { color: var(--green); }

.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- Lower ---------- */
.lower { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 40px; }
.promo {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 28px; border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245,158,11,.4), transparent 50%),
    linear-gradient(160deg, #5a2810, #22110a);
  border: 1px solid rgba(251,146,60,.35);
}
.promo h3 { font-family: var(--font-head); font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.promo p { color: #f2dccc; line-height: 1.5; }
.promo p b { color: var(--gold); }
.promo .btn { align-self: flex-start; }
.promo { position: relative; overflow: hidden; }
.promo-gift {
  position: absolute; right: -18px; top: -14px; width: 130px; height: 130px; opacity: .85;
  transform: rotate(12deg); filter: drop-shadow(0 12px 24px rgba(0,0,0,.5));
  animation: float 3s ease-in-out infinite; pointer-events: none;
}
.promo > div { position: relative; max-width: 64%; }
#dailyBtn { background: linear-gradient(135deg, #fde68a, #f59e0b 50%, #d97706); color: #2a1600; box-shadow: 0 8px 28px rgba(245,158,11,.45); }
#dailyBtn.waiting { background: rgba(255,255,255,.08); color: var(--muted); box-shadow: none; }

.feed { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.feed-head h3 { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.live-dot { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--red); display: flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

#feed { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: hidden; }
#feed li {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 6px 14px 6px 6px; border-radius: 14px; background: var(--bg-2);
  font-size: 14px; animation: slideIn .35s ease;
}
#feed .thumb {
  width: 72px; height: 42px; border-radius: 10px; overflow: hidden;
  border-bottom: 3px solid var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent);
}
#feed .thumb { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 45%, transparent), #140b07 75%); }
#feed .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); }
#feed .s b { display: block; color: var(--text); }
#feed .s small { color: var(--muted); font-size: 12px; }
#feed .w { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
#feed .thumb { display: grid; place-items: center; }
#feed .thumb i { font-style: normal; font-size: 22px; line-height: 1; }  /* iconita jocului (Mines, Plinko...) */
#feed .s { min-width: 0; }
#feed .s b, #feed .s small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#feed .lb-you { font-size: 9px; padding: 1px 5px; vertical-align: 2px; }
#feed li.feed-empty { display: block; padding: 18px 12px; text-align: center; color: var(--muted); font-size: 13px; background: none; animation: none; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }

.footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 13px 22px; border-radius: 99px;
  background: var(--panel-2); border: 1px solid rgba(251,146,60,.5);
  font-weight: 700; font-size: 14px; box-shadow: 0 10px 40px rgba(124,45,18,.5);
  transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .lower { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: var(--top-h); z-index: 40; width: var(--side-w);
    background: var(--bg-2); transform: translateX(-100%); transition: transform .25s;
  }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .main { padding: 16px; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .logo-text { font-size: 17px; }
  .void-logo { width: 40px; height: 40px; }
  .avatar { display: none; }
  .lang-btn { padding: 0 8px; gap: 4px; }
  .lang-btn .lang-code { display: none; }
  .topbar-right { gap: 8px; }
  .hero { padding: 24px 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .card-art { font-size: 50px; }
  .card-name { font-size: 15px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .stat-val { font-size: 20px; }
}

/* =====================================================
   DESCHIDERE CUTII
   ===================================================== */
body.no-scroll { overflow: hidden; }

#feed li.mine { background: linear-gradient(90deg, rgba(249,115,22,.22), var(--bg-2) 60%); box-shadow: inset 0 0 0 1px rgba(251,146,60,.35); }

.inv-badge {
  margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800;
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px;
  display: inline-grid; place-items: center; background: var(--grad); color: #fff;
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(6,4,3,.75); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s;
}
.modal-box {
  position: relative; width: min(1060px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  border-radius: 28px; border: 1px solid rgba(251,146,60,.3);
  background:
    radial-gradient(800px 300px at 50% -10%, color-mix(in srgb, var(--c, #f97316) 28%, transparent), transparent 70%),
    linear-gradient(180deg, #21130b, #130b08);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
  opacity: 0; transform: translateY(24px) scale(.96);
  transition: opacity .25s, transform .3s cubic-bezier(.2,1.2,.4,1);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-box { opacity: 1; transform: none; }

.cm-head { display: flex; align-items: center; gap: 14px; padding: 22px 26px 8px; }
.cm-rank { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 70%, transparent)); }
.cm-title { flex: 1; min-width: 0; }
.cm-title h3 { font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.1; }
.cm-title p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cm-title p b { color: var(--gold); }
.cm-icon {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 17px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.cm-icon:hover { background: rgba(255,255,255,.1); }
/* butonul de inventar din bara de sus */
.inv-top {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-size: 19px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s;
}
.inv-top:hover { border-color: var(--v3); }
.inv-top .inv-badge { position: absolute; top: -6px; right: -8px; margin: 0; min-width: 20px; height: 20px; font-size: 11px; }
/* pe telefon nu incape in bara; inventarul ramane in meniul ☰ */
@media (max-width: 520px) { .inv-top { display: none; } }

/* fereastra de confirmare */
.confirm-modal { z-index: 260; }
.confirm-box { width: min(400px, 100%); padding: 26px; text-align: center; }
.confirm-text { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 22px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-actions .btn { min-width: 120px; }

/* soldul din antetul ferestrelor de joc */
.modal-bal { padding: 7px 16px 7px 8px; flex: none; }
@media (max-width: 520px) {
  .modal-bal { padding: 5px 10px 5px 6px; font-size: 13px; }
  .cm-head { gap: 8px; }
}

/* ---------- reels ---------- */
.cm-stage { position: relative; padding: 14px 26px; transition: min-height .3s; }
.cm-stage:has(.cm-result:not([hidden])) { min-height: 430px; }
.reels { display: flex; flex-direction: column; gap: 10px; --iw: 168px; --ih: 150px; }
.reels.n2 { --iw: 150px; --ih: 128px; }
.reels.n3 { --iw: 132px; --ih: 104px; }
.reels.n4, .reels.n5 { --iw: 118px; --ih: 84px; }

.reel {
  position: relative; overflow: hidden; border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(10,6,4,.95), rgba(10,6,4,.4) 20%, rgba(10,6,4,.4) 80%, rgba(10,6,4,.95)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 2px, transparent 2px 24px),
    #0d0806;
  border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* indicatorul din mijloc */
.reel::before, .reel::after {
  content: ""; position: absolute; left: 50%; z-index: 3; pointer-events: none;
  transform: translateX(-50%);
}
.reel::before {
  top: 0; bottom: 0; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--v1), var(--v3), var(--v1));
  box-shadow: 0 0 14px var(--v3), 0 0 30px var(--v3);
}
.reel::after {
  top: -2px; width: 0; height: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 12px solid var(--v1);
  filter: drop-shadow(0 0 6px var(--v3));
}
.reel.spinning::before { animation: markerPulse .5s ease-in-out infinite alternate; }
@keyframes markerPulse { to { box-shadow: 0 0 22px var(--v1), 0 0 50px var(--v3); } }

.reel-track { display: flex; gap: 8px; padding: 10px 0; will-change: transform; }
.reel.spinning .reel-track { filter: blur(.4px); }

/* card de skin in stil ggstand: arma transparenta pe glow de raritate */
.reel-item {
  position: relative; flex: 0 0 var(--iw); height: var(--ih); border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 42%, color-mix(in srgb, var(--c) 50%, transparent), transparent 75%),
    linear-gradient(180deg, #22150d, #170d08);
  border: 1px solid rgba(255,255,255,.05);
  border-bottom: 3px solid var(--c);
  transition: transform .3s, box-shadow .3s;
}
.reel-item::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c) 30%, transparent), transparent);
}
.reel-item img {
  position: relative; display: block; width: 92%; height: 64%; margin: 6% auto 0; object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.55));
  pointer-events: none; user-select: none;
}
.reel-item span {
  position: absolute; left: 8px; right: 8px; bottom: 6px; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px #000;
}
.reel-item span small { display: block; font-size: 10px; font-weight: 700; color: #cbb3a2; }
.reel-item span b { display: block; font-size: 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.reels.n4 .reel-item span small, .reels.n5 .reel-item span small { display: none; }
.reels.n4 .reel-item span b, .reels.n5 .reel-item span b { font-size: 10px; }
.reel-item.win {
  z-index: 2;
  animation: winPop .7s cubic-bezier(.2,1.6,.4,1) both;
  box-shadow: 0 0 0 2px var(--c), 0 0 30px var(--c), 0 0 60px color-mix(in srgb, var(--c) 50%, transparent);
}
@keyframes winPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1.06); } }

/* ---------- rezultat ---------- */
.cm-result {
  position: absolute; inset: 0; z-index: 5; margin: 0 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 18px; border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(60,22,10,.88), rgba(10,6,4,.94));
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease both;
  min-height: 100%;
}
.cm-result[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.cm-result-title { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.cm-result-title b { color: var(--gold); }
.cm-result-title .up { color: var(--green); }
.cm-result-title .down { color: var(--red); }
.cm-result-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.cm-wins { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.win-card {
  position: relative; width: 220px; padding: 12px 12px 14px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #21130b), #170d08);
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c) 35%, transparent);
  animation: cardIn .65s cubic-bezier(.2,1.5,.4,1) both; animation-delay: var(--d);
  isolation: isolate;
}
.cm-wins.n3 .win-card { width: 170px; }
.cm-wins.n4 .win-card, .cm-wins.n5 .win-card { width: 140px; padding: 8px 8px 10px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.6) rotateX(50deg); } }
.win-card.epic-glow::before {
  content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 24px;
  background: var(--c); filter: blur(16px); opacity: .55;
  animation: glowPulse 1.6s ease-in-out infinite alternate;
}
@keyframes glowPulse { to { opacity: .95; filter: blur(22px); } }
.win-card.epic-glow .win-art { position: relative; }
.win-card.epic-glow .win-art::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 2.4s ease-in-out infinite;
}
.win-art {
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(65% 60% at 50% 50%, color-mix(in srgb, var(--c) 55%, transparent), #0e0806 80%);
}
.win-art img { width: 94%; height: 90%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); animation: winFloat 3s ease-in-out infinite; }
@keyframes winFloat { 50% { transform: translateY(-5px) rotate(-2deg); } }
.win-rarity { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c); }
.win-name { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.15; margin-top: 2px; }
.cm-wins.n4 .win-name, .cm-wins.n5 .win-name { font-size: 13px; }
.win-value { margin-top: 6px; font-weight: 800; color: var(--gold); font-size: 16px; }

/* ---------- controale ---------- */
.cm-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 26px 22px; }
.cm-count { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.cm-count button { padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--muted); }
.cm-count button:hover { color: var(--text); }
.cm-count button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.45); }
.cm-fast { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.cm-fast input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: .2s; }
.cm-fast input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .2s; }
.cm-fast input:checked { background: var(--v4); border-color: var(--v3); }
.cm-fast input:checked::after { left: 20px; background: #fff; }
.cm-open { margin-left: auto; padding: 15px 34px; font-size: 18px; position: relative; overflow: hidden; }
.cm-open::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 60%, 100% { left: 130%; } }
.cm-open.poor { filter: grayscale(.6) brightness(.8); }
.case-box.daily .cm-count { opacity: .35; pointer-events: none; }

/* cardul Daily Case din lista de cutii */
.case-daily { background: linear-gradient(180deg, #2a1a08, var(--panel) 70%); border-color: rgba(245,158,11,.35); }
.case-daily .case-price { color: var(--muted); }
.case-daily.ready { animation: dailyGlow 1.8s ease-in-out infinite alternate; }
.case-daily.ready .case-price { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1600; }
.case-daily.ready .case-icon img { animation: float 2.4s ease-in-out infinite; }
/* cutia Nameless: auriu, cu glow care respira */
.case-special { background: linear-gradient(180deg, #2b2208, var(--panel) 70%); border-color: rgba(255,209,102,.45); animation: namelessGlow 2.4s ease-in-out infinite alternate; }
.case-special .case-price { background: linear-gradient(135deg, #fff1b8, #ffd166 50%, #d99a1e); color: #2a1600; }
.case-special .case-icon img { width: 110px; height: 110px; filter: drop-shadow(0 0 14px rgba(255,209,102,.6)); }
@keyframes namelessGlow { to { box-shadow: 0 0 0 1px rgba(255,209,102,.6), 0 0 30px rgba(255,209,102,.3); } }
@keyframes dailyGlow { to { box-shadow: 0 0 0 1px rgba(245,158,11,.6), 0 0 28px rgba(245,158,11,.35); } }
.case-box.free .cm-open { background: linear-gradient(135deg, #fde68a, #f59e0b 50%, #d97706); color: #2a1600; box-shadow: 0 8px 28px rgba(245,158,11,.5); }
.case-box.busy .cm-open, .case-box.busy .cm-count, .case-box.busy [data-close], .case-box.busy .cm-fast { pointer-events: none; opacity: .5; }

/* ---------- continut cutie / inventar ---------- */
.cm-contents { padding: 6px 26px 26px; border-top: 1px solid var(--line); }
.cm-contents h4 { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin: 16px 0 12px; }
.cm-items, .inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cm-item, .inv-item {
  position: relative; border-radius: 16px; overflow: hidden; padding-bottom: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, #1b110b), #150c08);
  border: 1px solid var(--line); border-bottom: 3px solid var(--c);
  transition: transform .15s, border-color .15s;
}
.cm-item:hover, .inv-item:hover { transform: translateY(-3px); border-color: var(--c); }
.cm-item-art {
  aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(65% 60% at 50% 50%, color-mix(in srgb, var(--c) 45%, transparent), transparent 80%);
}
.cm-item-art img { width: 90%; height: 85%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); transition: transform .25s; }
.cm-item:hover .cm-item-art img, .inv-item:hover .cm-item-art img { transform: scale(1.08) rotate(-3deg); }
.cm-item-name { padding: 6px 10px 0; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-item-meta { display: flex; justify-content: space-between; padding: 2px 10px 0; font-size: 12px; }
.cm-item-meta span { color: var(--c); font-weight: 700; }
.cm-item-meta b { color: var(--gold); }
.cm-item-chance {
  position: absolute; top: 6px; right: 6px; padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 800; background: rgba(8,4,18,.75); color: #ffeee0;
}

.inv-box { padding-bottom: 24px; }
.inv-grid { padding: 14px 26px 0; }
.inv-box .empty { padding: 40px 0 20px; }
.inv-sell {
  display: block; margin: 8px 10px 0; width: calc(100% - 20px); padding: 7px; border-radius: 99px;
  font-weight: 800; font-size: 13px; background: rgba(249,115,22,.18); color: var(--v1);
  border: 1px solid rgba(251,146,60,.35);
}
.inv-sell:hover { background: var(--grad); color: #fff; }

/* ---------- efecte ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 300; pointer-events: none; }
.flash { position: fixed; inset: 0; z-index: 290; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, #fff) 70%, #fff), transparent 70%); }
.flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }

.shake { animation: shake .45s ease; }
.shake-strong { animation: shakeStrong .7s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes shakeStrong {
  10% { transform: translate(-10px, 4px) rotate(-.6deg); } 20% { transform: translate(10px, -4px) rotate(.6deg); }
  30% { transform: translate(-8px, 2px); } 45% { transform: translate(8px, -2px); }
  60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); }
}

@media (max-width: 700px) {
  .modal { padding: 0; }
  .modal-box { border-radius: 0; max-height: 100vh; height: 100vh; }
  .cm-head, .cm-stage, .cm-controls, .cm-contents { padding-left: 14px; padding-right: 14px; }
  .cm-result { margin: 0 14px; }
  .reels { --iw: 120px; --ih: 104px; }
  .reels.n2, .reels.n3 { --iw: 104px; --ih: 80px; }
  .reels.n4, .reels.n5 { --iw: 92px; --ih: 64px; }
  .cm-open { margin-left: 0; width: 100%; }
  .win-card { width: 160px; }
  .cm-items, .inv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   MINES
   ===================================================== */
.mines-box { --c: #facc15; width: min(980px, 100%); }
.m-logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(135deg, #d97706, #450a0a); box-shadow: 0 0 22px rgba(250,204,21,.4);
}
.m-logo img { width: 42px; height: 42px; }
.mp-gems img { width: 22px; height: 17px; }
.mines-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 20px; padding: 14px 26px 26px; }

.mines-panel {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 20px; background: rgba(10,6,4,.55); border: 1px solid var(--line);
}
.mp-label { font-size: 13px; font-weight: 800; color: var(--muted); }
.mp-label b { color: var(--text); }
.mp-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.mp-gems { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #facc15; }
.mp-bet {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 10px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.mp-bet:focus-within { border-color: var(--v3); }
.mp-bet .coin { width: 22px; height: 22px; font-size: 11px; flex: none; }
.mp-bet input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text);
  font: inherit; font-weight: 800; font-size: 16px;
}
.mp-bet input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mp-bet button, .mp-quick button {
  padding: 7px 10px; border-radius: 10px; font-weight: 800; font-size: 12px;
  background: rgba(255,255,255,.06); color: #efd9c9;
}
.mp-bet button:hover, .mp-quick button:hover { background: rgba(249,115,22,.3); color: #fff; }

.mp-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; outline: none;
  background: linear-gradient(90deg, #facc15 0 var(--p, 10%), var(--bg-2) var(--p, 10%));
}
.mp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  background: #fff; box-shadow: 0 0 0 4px rgba(250,204,21,.35), 0 2px 8px rgba(0,0,0,.4);
}
.mp-range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.mp-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.mp-play { margin-top: 8px; width: 100%; padding: 15px; font-size: 18px; }
.mp-play:disabled { opacity: .6; cursor: default; filter: grayscale(.4); }
.mp-play.cash { background: linear-gradient(135deg, #6ee7b7, #10b981 50%, #047857); color: #022c22; box-shadow: 0 8px 28px rgba(16,185,129,.45); animation: cashPulse 1.2s ease-in-out infinite alternate; }
.mp-play.cash b { color: #022c22; }
@keyframes cashPulse { to { box-shadow: 0 8px 36px rgba(16,185,129,.75); } }
.mp-random { width: 100%; padding: 11px; font-size: 14px; }
.mines-box:not(.active) .mp-random { opacity: .4; pointer-events: none; }
.mines-box.active .mp-bet, .mines-box.active .mp-range, .mines-box.active .mp-quick { opacity: .45; pointer-events: none; }

.mp-stats { margin-top: 6px; display: grid; gap: 6px; }
.mp-stats div {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 12px; background: var(--bg-2); font-size: 13px;
}
.mp-stats span { color: var(--muted); font-weight: 700; }
.mp-stats b { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
#mMult { color: #facc15; }
#mProfit { color: var(--green); }

/* ---------- grila ---------- */
.mines-board-wrap {
  position: relative; display: grid; place-items: center; padding: 18px; border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(250,204,21,.1), transparent 70%), rgba(10,6,4,.45);
  border: 1px solid var(--line);
}
.mines-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: min(100%, 470px); }
.m-tile {
  position: relative; aspect-ratio: 1; border-radius: 14px; cursor: default; perspective: 400px;
  background: linear-gradient(180deg, #c2410c, #7c2d12);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.15);
  transition: transform .12s, filter .12s, background .2s;
}
.mines-board.live .m-tile:not(.open) { cursor: pointer; }
.mines-board.live .m-tile:not(.open):hover { transform: translateY(-3px); filter: brightness(1.2); }
.mines-board.live .m-tile:not(.open):active { transform: translateY(1px) scale(.97); }
.m-face { position: absolute; inset: 0; display: grid; place-items: center; }
.m-ico { width: 62%; height: 62%; object-fit: contain; user-select: none; pointer-events: none; }
.m-gold { width: 76%; height: 76%; filter: drop-shadow(0 0 10px rgba(250,204,21,.5)); }
.m-bomb { width: 58%; height: 58%; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }

.m-tile.open { box-shadow: none; animation: tileFlip .35s ease both; }
.m-tile.gem { background: radial-gradient(circle, rgba(250,204,21,.3), #1c1206 75%); box-shadow: 0 0 0 2px rgba(250,204,21,.65), 0 0 18px rgba(250,204,21,.35); }
.m-tile.gem .m-ico { animation: gemPop .45s cubic-bezier(.2,1.6,.4,1) both; }
.m-tile.bomb { background: radial-gradient(circle, rgba(251,79,111,.4), #2a0610 75%); box-shadow: 0 0 0 2px rgba(251,79,111,.7); }
.m-tile.bomb.hit { animation: tileFlip .3s ease both, bombHit .6s ease .3s; box-shadow: 0 0 0 3px #fb4f6f, 0 0 40px rgba(251,79,111,.8); z-index: 2; }
.m-tile.dim { opacity: .4; filter: saturate(.6); box-shadow: none; }
.m-tile.dim .m-ico { animation: none; width: 50%; height: 50%; }
@keyframes tileFlip { from { transform: rotateY(90deg) scale(.9); } }
@keyframes gemPop { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
@keyframes bombHit { 30% { transform: scale(1.25); } 100% { transform: scale(1); } }

.m-result {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 30px; border-radius: 20px; text-align: center; pointer-events: none; z-index: 5;
  background: rgba(10,6,4,.88); backdrop-filter: blur(6px);
  animation: resIn .45s cubic-bezier(.2,1.5,.4,1) both;
}
.m-result[hidden] { display: none; }
.m-result.win { border: 2px solid #10b981; box-shadow: 0 0 40px rgba(16,185,129,.45); }
.m-result.lose { border: 2px solid #fb4f6f; box-shadow: 0 0 40px rgba(251,79,111,.45); }
.m-result b { font-family: var(--font-head); font-size: 30px; }
.m-result.lose b { color: #fb4f6f; }
.m-res-mult { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: #6ee7b7; line-height: 1; }
.m-result.win span b { font-size: inherit; color: var(--gold); }
@keyframes resIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }

@media (max-width: 760px) {
  .mines-wrap { grid-template-columns: 1fr; padding: 10px 14px 20px; }
  .mines-board-wrap { order: -1; padding: 10px; }
  .mines-board { gap: 7px; }
}

/* =====================================================
   PLINKO
   ===================================================== */
.plinko-box { --c: #f472b6; }
.p-logo { background: linear-gradient(135deg, #dc2626, #450a0a); box-shadow: 0 0 22px rgba(249,115,22,.45); }
.p-logo i {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #f472b6 70%);
  box-shadow: 0 0 14px rgba(244,114,182,.8);
}

/* butoane segmentate (risc / randuri) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { padding: 9px 6px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--muted); transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.4); }
.plinko-box.busy-balls .seg { opacity: .45; pointer-events: none; }
.plinko-box .mp-play { background: linear-gradient(135deg, #f9a8d4, #ec4899 50%, #9d174d); box-shadow: 0 8px 28px rgba(236,72,153,.45); }
#pMax { color: #fde047; }
#pLast { color: var(--green); font-size: 14px; }

.plinko-board-wrap {
  background: radial-gradient(circle at 50% 30%, rgba(244,114,182,.12), transparent 70%), rgba(10,6,4,.45);
  padding: 12px; min-height: 420px;
}
#pCanvas { display: block; max-width: 100%; }

/* ultimele rezultate, in dreapta tablei */
.p-history {
  position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 5px;
}
.p-history span {
  min-width: 52px; padding: 5px 8px; border-radius: 9px; text-align: center;
  font-size: 12px; font-weight: 800; color: #2a1600; background: var(--c);
  animation: histIn .3s ease both;
}
.p-history span:first-child { box-shadow: 0 0 14px var(--c); }
@keyframes histIn { from { opacity: 0; transform: translateY(-8px) scale(.8); } }

@media (max-width: 760px) {
  .plinko-board-wrap { min-height: 0; }
  .p-history { flex-direction: row; top: auto; bottom: 8px; right: 50%; transform: translateX(50%); }
  .p-history span:nth-child(n+5) { display: none; }
}

/* =====================================================
   COINFLIP
   ===================================================== */
.ga-coin { font-family: var(--font-head); font-weight: 700; }
.coinflip-box { --c: #fbbf24; }
.cf-logo { background: linear-gradient(135deg, #1d4ed8, #7c2d12); box-shadow: 0 0 22px rgba(251,191,36,.35); }
.cf-logo i {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #93c5fd, #2563eb 60%, #1e3a8a);
  box-shadow: 0 0 0 3px #f59e0b;
}
.coinflip-box .mp-play { background: linear-gradient(135deg, #fde68a, #f59e0b 50%, #b45309); color: #2a1600; box-shadow: 0 8px 28px rgba(245,158,11,.45); }
.coinflip-box.flipping .mp-play, .coinflip-box.flipping .cf-sides { opacity: .6; pointer-events: none; }
#cfProfit { color: var(--green); }
#cfLast .up { color: var(--green); }
#cfLast .down { color: var(--red); }
#cfStreak { color: #fb923c; }
.cf-hint { font-size: 12px; color: var(--muted); text-align: center; }

/* alegerea partii */
.cf-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-sides button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  border-radius: 16px; background: var(--bg-2); border: 2px solid var(--line);
  font-weight: 800; font-size: 13px; color: var(--muted); transition: .15s;
}
.cf-sides button:hover { border-color: #5c3a1f; color: var(--text); }
.cf-sides button[data-side="ct"].active { border-color: #7dd3fc; background: rgba(125,211,252,.14); color: #fff; box-shadow: 0 0 20px rgba(125,211,252,.35); }
.cf-sides button[data-side="t"].active { border-color: #f97316; background: rgba(249,115,22,.15); color: #fff; box-shadow: 0 0 20px rgba(249,115,22,.3); }
.cf-chip {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff;
  box-shadow: 0 0 0 3px #f59e0b, 0 4px 10px rgba(0,0,0,.4);
}
/* ICE: albastru-gheata cu rama argintie; FIRE: foc cu rama de aur */
.cf-chip.ct { background: radial-gradient(circle at 35% 30%, #f0f9ff, #7dd3fc 45%, #0369a1 85%); box-shadow: 0 0 0 3px #cbd5e1, 0 0 14px rgba(125,211,252,.6), 0 4px 10px rgba(0,0,0,.4); }
.cf-chip.t  { background: radial-gradient(circle at 35% 30%, #fff7c2, #f97316 50%, #991b1b 90%); box-shadow: 0 0 0 3px #fbbf24, 0 0 14px rgba(249,115,22,.7), 0 4px 10px rgba(0,0,0,.4); }

/* tabla */
.cf-board {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 430px; padding: 18px;
  background:
    radial-gradient(circle at 25% 55%, rgba(59,130,246,.16), transparent 50%),
    radial-gradient(circle at 75% 55%, rgba(249,115,22,.14), transparent 50%),
    rgba(10,6,4,.45);
}
.cf-history { align-self: stretch; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; min-height: 30px; }
.cf-history span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; animation: histIn .3s ease both;
  box-shadow: 0 0 0 2px rgba(245,158,11,.7);
}
.cf-history .ct { background: #2563eb; }
.cf-history .t { background: #ea580c; }

/* moneda 3D */
.cf-scene { position: relative; perspective: 900px; display: grid; place-items: center; height: 260px; width: 100%; }
.cf-toss { transform-style: preserve-3d; }
.cf-toss.toss { animation: cfToss 1.7s cubic-bezier(.3,.7,.4,1) both; }
@keyframes cfToss {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-120px) scale(1.12); }
  75%  { transform: translateY(0) scale(1); }
  85%  { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}
.cf-coin {
  position: relative; width: 190px; height: 190px; transform-style: preserve-3d;
  transition: transform 1.7s cubic-bezier(.2,.8,.25,1);
}
.cf-face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 9px solid #f59e0b;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), inset 0 -10px 30px rgba(0,0,0,.35), 0 10px 40px rgba(0,0,0,.45);
}
.cf-face::before {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.35);
}
.cf-face b { font-family: var(--font-head); font-size: 72px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 4px 12px rgba(0,0,0,.4); }
.cf-face small { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,.75); }
.cf-face.ct { background: radial-gradient(circle at 35% 30%, #f0f9ff, #7dd3fc 40%, #0369a1 78%, #082f49); border-color: #cbd5e1; box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), inset 0 -10px 30px rgba(8,47,73,.5), 0 0 40px rgba(125,211,252,.45), 0 10px 40px rgba(0,0,0,.45); }
.cf-face.t  { background: radial-gradient(circle at 35% 30%, #fff7c2, #fbbf24 30%, #f97316 58%, #991b1b 88%); border-color: #f59e0b; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), inset 0 -10px 30px rgba(69,10,10,.5), 0 0 44px rgba(249,115,22,.55), 0 10px 40px rgba(0,0,0,.45); transform: rotateY(180deg); }
.cf-face b { filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.cf-face small { font-size: 13px !important; letter-spacing: 4px !important; color: #fff !important; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.cf-shadow {
  position: absolute; bottom: 4px; width: 150px; height: 18px; border-radius: 50%;
  background: radial-gradient(rgba(0,0,0,.5), transparent 70%);
}

.cf-result { min-height: 40px; font-family: var(--font-head); font-size: 28px; font-weight: 700; text-align: center; }
.cf-result.win { color: var(--green); animation: resPop .45s cubic-bezier(.2,1.5,.4,1) both; }
.cf-result.lose { color: var(--red); animation: resPop .45s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes resPop { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 760px) {
  .cf-board { min-height: 0; }
  .cf-scene { height: 220px; }
  .cf-coin { width: 150px; height: 150px; }
  .cf-face b { font-size: 56px; }
}

/* =====================================================
   CRASH AWM
   ===================================================== */
.crash-box { --c: #fb923c; }
.cr-logo { background: linear-gradient(135deg, #ea580c, #450a0a); box-shadow: 0 0 22px rgba(251,146,60,.45); }
.cr-logo svg { width: 36px; height: 36px; }
.cr-x { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.cr-quick { grid-template-columns: repeat(5, 1fr); }
.crash-box .mp-play { background: linear-gradient(135deg, #fdba74, #f97316 50%, #c2410c); box-shadow: 0 8px 28px rgba(249,115,22,.45); }
.crash-box .mp-play.cash { background: linear-gradient(135deg, #6ee7b7, #10b981 50%, #047857); color: #022c22; box-shadow: 0 8px 28px rgba(16,185,129,.45); animation: cashPulse 1.2s ease-in-out infinite alternate; }
.crash-box .mp-play.cash b { color: #022c22; }
.crash-box .mp-play:disabled { opacity: .7; cursor: default; }
.crash-box.running .mp-bet, .crash-box.running .cr-quick { opacity: .45; pointer-events: none; }
#crLast .up { color: var(--green); }
#crLast .down { color: var(--red); }

.cr-board {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 14px 12px 12px;
  background: radial-gradient(circle at 30% 80%, rgba(251,146,60,.14), transparent 60%), rgba(10,6,4,.45);
}
.cr-history { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; min-height: 28px; padding: 0 6px; }
.cr-history span {
  padding: 5px 9px; border-radius: 9px; font-size: 12px; font-weight: 800; animation: histIn .3s ease both;
  font-variant-numeric: tabular-nums;
}
.cr-history .bad  { background: rgba(251,79,111,.15); color: #fb7185; }
.cr-history .good { background: rgba(74,222,128,.16); color: var(--green); }
.cr-history .gold { background: rgba(250,204,21,.18); color: #facc15; }

.cr-graph { position: relative; display: grid; place-items: center; width: 100%; }
#crCanvas { display: block; }
.cr-center {
  position: absolute; left: 0; right: 0; top: 18%; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.cr-mult {
  font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.crash-box.running .cr-mult { color: #fed7aa; }
.crash-box.crashed .cr-mult { color: var(--red); animation: crashHit .5s ease; }
@keyframes crashHit { 20% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cr-banner { min-height: 34px; padding: 7px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; opacity: 0; }
.cr-banner.win  { opacity: 1; background: rgba(16,185,129,.18); color: var(--green); border: 1px solid rgba(74,222,128,.5); animation: resPop .4s cubic-bezier(.2,1.5,.4,1) both; }
.cr-banner.win b { color: var(--gold); }
.cr-banner.lose { opacity: 1; background: rgba(239,68,68,.16); color: #fb7185; border: 1px solid rgba(239,68,68,.5); animation: resPop .4s cubic-bezier(.2,1.5,.4,1) both; }

@media (max-width: 760px) {
  .cr-mult { font-size: 44px; }
}

/* =====================================================
   UPGRADER
   ===================================================== */
.upgrader-box { --c: #34d399; width: min(1060px, 100%); }
.up-logo { background: linear-gradient(135deg, #f97316, #7f1d1d); box-shadow: 0 0 22px rgba(249,115,22,.45); font-size: 28px; color: #ffedd5; font-weight: 800; }

.up-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; padding: 10px 26px 16px; }
.up-card {
  display: flex; flex-direction: column; border-radius: 20px; padding: 14px;
  background: rgba(10,6,4,.55); border: 1px solid var(--line); min-height: 250px;
}
.up-card-title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.up-card-title b { color: var(--gold); font-size: 15px; }
.up-card-body { flex: 1; display: grid; place-items: center; }
.up-ph { color: var(--muted); font-size: 13px; text-align: center; padding: 0 10px; }
.up-gold-in { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 30px; }
.up-gold-in .coin { font-size: 30px; }
.up-in-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; width: 100%; }
.up-in-list.n1 { grid-template-columns: 1fr; }

/* cartonas de skin (folosit peste tot in Upgrader) */
.up-skin {
  position: relative; width: 100%; border-radius: 14px; padding: 6px 8px 8px; text-align: left;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #1b110b), #150c08);
  border-bottom: 3px solid var(--c);
}
.up-skin-art { aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--c) 45%, transparent), transparent 80%); }
.up-skin-art img { width: 92%; height: 88%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.up-skin-name { font-size: 12px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-skin-name small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.up-skin-val { font-size: 12px; font-weight: 800; color: var(--gold); }
.up-skin.big { padding: 10px 12px 12px; }
.up-skin.big .up-skin-name { font-size: 16px; }
.up-skin.big .up-skin-name small { font-size: 12px; }
.up-skin.big .up-skin-val { font-size: 15px; }
.up-skin.big .up-skin-art img { animation: winFloat 3s ease-in-out infinite; }
.up-skin.mini .up-skin-name small { display: none; }

/* roata */
.up-center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.up-wheel { position: relative; width: 230px; height: 230px; }
.up-wheel svg { width: 100%; height: 100%; stroke: none; filter: drop-shadow(0 0 18px rgba(52,211,153,.25)); }
#upArc { transition: stroke-dasharray .35s ease; }
.up-needle {
  position: absolute; inset: 0; transform: rotate(0deg);
  transition: transform 4.2s cubic-bezier(.12,.82,.22,1);
}
.up-needle i {
  position: absolute; left: 50%; top: 2px; width: 0; height: 0; transform: translateX(-50%);
  border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 26px solid #fff;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.8));
}
.up-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.up-mid b { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: #6ee7b7; font-variant-numeric: tabular-nums; }
.up-mid span { font-size: 14px; font-weight: 800; color: var(--muted); }
/* ⓘ jos de tot in Upgrader: la hover / atingere arata sansa reala */
.up-foot { display: flex; justify-content: center; padding: 14px 0 4px; }
.up-real {
  position: relative; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--muted);
  background: rgba(255,255,255,.06); border: 1px solid var(--line); cursor: help;
}
.up-real:hover, .up-real.open { color: var(--text); border-color: var(--v3); }
.up-real::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 4;
  padding: 6px 10px; border-radius: 10px; white-space: nowrap; font-size: 12px; font-weight: 800; color: var(--text);
  background: rgba(10,6,4,.95); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.up-real:hover::after, .up-real.open::after { opacity: 1; }
.up-result {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: none; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  padding: 12px 16px; border-radius: 16px; background: rgba(10,6,4,.92); min-width: 170px; z-index: 3;
}
.up-result.win, .up-result.lose { display: flex; animation: resIn .45s cubic-bezier(.2,1.5,.4,1) both; }
.up-result.win { border: 2px solid #10b981; box-shadow: 0 0 40px rgba(16,185,129,.5); }
.up-result.win b { color: var(--green); font-family: var(--font-head); font-size: 18px; }
.up-result.win span { font-size: 12px; font-weight: 800; color: var(--gold); }
.up-result.lose { border: 2px solid #fb4f6f; box-shadow: 0 0 40px rgba(251,79,111,.45); }
.up-result.lose b { color: var(--red); font-family: var(--font-head); font-size: 18px; }
.up-go { width: 200px; background: linear-gradient(135deg, #6ee7b7, #10b981 50%, #047857); color: #022c22; box-shadow: 0 8px 28px rgba(16,185,129,.45); }
.up-go:disabled { opacity: .6; cursor: default; }

/* jos: inventar / gold + skinuri tinta */
.up-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 26px 26px; }
.up-pane { border-radius: 20px; padding: 14px; background: rgba(10,6,4,.45); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.up-source { width: 100%; }
.up-hint { font-size: 12px; color: var(--muted); }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.up-pick { border-radius: 14px; transition: transform .12s, box-shadow .12s; }
.up-pick:hover { transform: translateY(-2px); }
.up-pick.on { box-shadow: 0 0 0 2px #34d399, 0 0 18px rgba(52,211,153,.4); }
.up-pane .empty { padding: 20px 0; }
.up-target-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.up-quick { flex: 1; min-width: 220px; }
.up-search { width: 180px; }
.upgrader-box.spinning .up-bottom { opacity: .5; pointer-events: none; }

@media (max-width: 900px) {
  .up-top { grid-template-columns: 1fr 1fr; padding: 10px 14px; }
  .up-center { grid-column: 1 / -1; order: -1; }
  .up-bottom { grid-template-columns: 1fr; padding: 0 14px 20px; }
  .up-card { min-height: 190px; }
}

/* =====================================================
   FERESTRE DE JOC PE TOT ECRANUL
   ===================================================== */
.game-modal { padding: 0; }
.game-modal .modal-box {
  width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  border-radius: 0; border: 0; display: flex; flex-direction: column;
}
.game-modal .cm-head { flex: none; padding: 16px 28px 10px; }
.game-modal .mines-wrap { flex: 1; min-height: 0; grid-template-columns: 330px 1fr; grid-template-rows: minmax(0, 1fr); padding: 10px 28px 24px; }
.game-modal .mines-panel { overflow-y: auto; }
.game-modal .mines-board-wrap { min-height: 0; height: 100%; }

/* Mines: grila cat de mare permite ecranul */
.game-modal .mines-board { width: min(100%, calc(100vh - 190px), 760px); gap: 12px; }

/* Coinflip: moneda mai mare */
.game-modal .cf-scene { height: 380px; }
.game-modal .cf-coin { width: 260px; height: 260px; }
.game-modal .cf-face b { font-size: 96px; }
.game-modal .cf-face small { font-size: 11px; }

/* Crash: graficul umple tabla */
.game-modal .cr-board { height: 100%; }
.game-modal .cr-graph { flex: 1; min-height: 0; }
.game-modal .cr-mult { font-size: 84px; }

/* Cases: banda mai mare */
.game-modal .reels { --iw: 200px; --ih: 176px; }
.game-modal .reels.n2 { --iw: 170px; --ih: 140px; }
.game-modal .reels.n3 { --iw: 150px; --ih: 116px; }
.game-modal .reels.n4, .game-modal .reels.n5 { --iw: 132px; --ih: 92px; }
.game-modal .cm-stage { padding: 14px 28px; }
.game-modal .cm-controls, .game-modal .cm-contents { padding-left: 28px; padding-right: 28px; }

/* Upgrader: roata mai mare */
.game-modal .up-top { padding: 10px 28px 16px; }
.game-modal .up-bottom { padding: 0 28px 24px; flex: 1; min-height: 0; }
.game-modal .up-wheel { width: 280px; height: 280px; }
.game-modal .up-mid b { font-size: 42px; }
.game-modal .up-grid { max-height: none; }
.game-modal .up-pane { min-height: 0; }
.game-modal .upgrader-box { overflow-y: auto; }

/* Pe telefon: fereastra se deruleaza normal (tabla sus, comenzile dedesubt, fiecare cu marimea lui),
   iar bara de sus (sold, sunet, inchidere) ramane lipita sus. */
@media (max-width: 760px) {
  .game-modal .modal-box { overflow-y: auto; overscroll-behavior: contain; }
  .game-modal .cm-head {
    position: sticky; top: 0; z-index: 5; padding: 10px 14px 8px;
    background: linear-gradient(180deg, #21130b 75%, rgba(28,16,9,.85));
  }
  .game-modal .mines-wrap {
    flex: none; min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; padding: 6px 12px 24px;
  }
  .game-modal .mines-panel { overflow: visible; padding: 14px; gap: 10px; }
  .game-modal .mines-board-wrap { height: auto; min-height: 0; padding: 8px; }
  .game-modal .mines-board { width: 100%; gap: 6px; }
  .game-modal .cr-board { height: auto; }
  .game-modal .cr-graph { flex: none; }
  .game-modal .up-top { padding: 6px 12px 12px; }
  .game-modal .up-bottom { flex: none; padding: 0 12px 24px; }
  .game-modal .up-grid { max-height: 340px; } /* listele lungi de skinuri se deruleaza in chenarul lor */
  .game-modal .cm-stage { padding: 10px 12px; }
  .game-modal .cm-controls, .game-modal .cm-contents { padding-left: 12px; padding-right: 12px; }
  .game-modal .m-logo { width: 38px; height: 38px; }
  .game-modal .cm-title h3 { font-size: 22px; }
  .game-modal .cm-title p { font-size: 12px; line-height: 1.3; }
  .game-modal .cm-rank { width: 42px; height: 42px; }
  .game-modal .cm-icon { width: 36px; height: 36px; }
  .game-modal .cf-scene { height: 210px; }
  .game-modal .cf-coin { width: 150px; height: 150px; }
  .game-modal .cf-face b { font-size: 56px; }
  .game-modal .cf-face small { font-size: 7px; letter-spacing: .5px; }
  .game-modal .cr-mult { font-size: 48px; }
  .game-modal .reels { --iw: 120px; --ih: 104px; }
  .game-modal .up-wheel { width: 220px; height: 220px; }
}

/* =====================================================
   CASHBACK PE RANG
   ===================================================== */
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cb-pct { font-size: 13px; font-weight: 800; color: #6ee7b7; }
.cb-btn {
  padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, #6ee7b7, #10b981); color: #022c22;
  box-shadow: 0 4px 14px rgba(16,185,129,.35); white-space: nowrap;
}
.cb-btn:disabled { background: rgba(255,255,255,.07); color: var(--muted); box-shadow: none; cursor: default; }
.vip-link { display: block; margin-top: 10px; padding: 0; text-align: left; color: var(--v2); font-weight: 700; }
.vip-link:hover { color: #fff; }

.ranks-box { width: min(620px, 100%); padding-bottom: 22px; }
.ranks-cb {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; align-items: stretch; margin: 6px 26px 16px;
}
.ranks-cb .btn { grid-column: 1 / -1; }
.ranks-cb .btn:disabled { opacity: .5; cursor: default; }
.rcb-rank, .rcb-stat { border-radius: 16px; padding: 12px 14px; background: rgba(10,6,4,.55); border: 1px solid var(--line); }
.rcb-rank { display: flex; align-items: center; gap: 10px; border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.rcb-rank img { width: 52px; height: 52px; object-fit: contain; }
.rcb-rank small, .rcb-stat small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
.rcb-rank b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--c); }
.rcb-rank span { font-size: 13px; font-weight: 800; color: #6ee7b7; }
.rcb-stat b { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.rcb-stat b.gold { color: var(--gold); }

.ranks-list { display: flex; flex-direction: column; gap: 6px; padding: 0 26px; }
.rank-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px;
  padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent;
}
.rank-row img { width: 44px; height: 44px; object-fit: contain; }
.rank-name b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--c); }
.rank-name small { font-size: 12px; color: var(--muted); font-weight: 700; }
.rank-cb { font-weight: 800; font-size: 14px; color: #6ee7b7; }
.rank-row.current { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg-2)); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 25%, transparent); }
.rank-row.locked { opacity: .55; }
.rank-row.locked img { filter: grayscale(.7); }
.rank-lock { font-style: normal; font-size: 14px; }

/* ---------- istoric ---------- */
.hist-box { width: min(720px, 100%); padding-bottom: 22px; }
.hist-box .cm-head .btn[hidden] { display: none; }
.hist-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 26px 14px; }
.hist-sum .rcb-stat b { font-size: 19px; }
.hist-box .up, .hist-row .up { color: var(--green); }
.hist-box .down, .hist-row .down { color: var(--red); }
.hist-chips { margin: 0 26px 12px; }
.hist-chips[hidden] { display: none; }
.hist-chips .chip { padding: 7px 14px; font-size: 13px; }
.hist-list { display: flex; flex-direction: column; gap: 6px; padding: 0 26px; }
.hist-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent;
}
.hist-row:hover { border-color: var(--line); }
.hist-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.04);
}
.hist-icon img { width: 100%; height: 100%; object-fit: contain; }
.hist-main { min-width: 0; }
.hist-main b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.hist-main small, .hist-amt small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-amt { text-align: right; }
.hist-amt b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .hist-sum { grid-template-columns: 1fr 1fr; margin: 6px 14px 14px; }
  .hist-chips { margin: 0 14px 12px; }
  .hist-list { padding: 0 14px; }
  .hist-row { grid-template-columns: 38px 1fr auto; gap: 10px; padding: 8px 10px; }
  .hist-icon { width: 38px; height: 38px; font-size: 19px; }
}

/* ---------- Gates of Fire (slot) ---------- */
.gg-logo { background: linear-gradient(135deg, #f59e0b, #7c2d12); box-shadow: 0 0 22px rgba(251,191,36,.45); font-size: 24px; }
.gg-spin { background: linear-gradient(135deg, #fde68a, #f59e0b 50%, #b45309); color: #2a1600; box-shadow: 0 8px 28px rgba(245,158,11,.45); }
.gg-buy {
  background: linear-gradient(135deg, #fb923c, #ea580c 55%, #431407); color: #fff; padding: 12px; border-radius: 14px;
  font-weight: 800; box-shadow: 0 6px 20px rgba(234,88,12,.4);
}
.gg-buy b { color: #fde68a; }
.gates-box.busy .mp-bet, .gates-box.busy .gg-buy, .gates-box.busy .gg-spin { opacity: .55; pointer-events: none; }

/* scena: fundal de "templu" auriu-violet */
.gg-stage {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(251,191,36,.18), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(249,115,22,.25), transparent 70%),
    linear-gradient(180deg, #22140b, #0e0806);
}
.fs-mode .gg-stage { box-shadow: inset 0 0 0 2px #fbbf24, inset 0 0 60px rgba(251,191,36,.25); }
.gg-board {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, 1fr); grid-auto-flow: column;
  gap: 6px; width: min(100%, 680px, calc((100vh - 200px) * 1.2)); aspect-ratio: 6 / 5; margin: 0 auto;
  padding: 8px; border-radius: 18px; background: rgba(8,5,3,.6); border: 2px solid rgba(251,191,36,.35);
  overflow: hidden; /* simbolurile care cad apar din marginea de sus a tablei, nu de deasupra ei */
}
.gg-cell { position: relative; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.03); min-width: 0; min-height: 0; }
.gg-cell.drop { animation: ggDrop .42s cubic-bezier(.3,1.4,.5,1) both; animation-delay: var(--d, 0ms); }
@keyframes ggDrop { from { transform: translateY(-140%); opacity: 0; } }
.gg-cell.win { animation: ggWin .55s ease-in-out infinite alternate; background: rgba(251,191,36,.18); box-shadow: 0 0 0 2px #fbbf24, 0 0 22px rgba(251,191,36,.6); z-index: 2; }
@keyframes ggWin { to { transform: scale(1.1); } }
.gg-cell.pop { animation: ggPop .26s ease-in forwards; }
@keyframes ggPop { to { transform: scale(1.5); opacity: 0; filter: brightness(3); } }
.gg-sym { width: 100%; height: 100%; display: grid; place-items: center; }
.gg-sym img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); pointer-events: none; }
/* simbolurile mari (skinuri): cartonas cu glow in culoarea raritatii, ca sa iasa in evidenta fata de cristale */
.gg-sym.hi {
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 70%, transparent), color-mix(in srgb, var(--c) 15%, #140b07) 75%);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--c) 40%, transparent);
}
.gg-sym.hi img { width: 112%; height: 112%; transform: rotate(-14deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)) brightness(1.25) saturate(1.2); }
.gg-sym.gem img { width: 70%; height: 70%; }
.gg-sym.sc img { width: 84%; height: 84%; border-radius: 50%; box-shadow: 0 0 14px rgba(251,146,60,.9); animation: ggScatter 1.6s ease-in-out infinite; }
@keyframes ggScatter { 50% { box-shadow: 0 0 26px rgba(253,186,116,1); transform: scale(1.05); } }
/* multiplicatorul: bara de aur de la Mines, cu valoarea peste ea; glow-ul creste cu valoarea */
.gg-sym.orb { position: relative; border-radius: 12px; background: radial-gradient(circle at 50% 50%, rgba(250,204,21,var(--og)), transparent 70%); }
.gg-sym.orb img { width: 92%; height: 80%; filter: drop-shadow(0 0 8px rgba(250,204,21,.8)) drop-shadow(0 4px 5px rgba(0,0,0,.5)); }
.gg-sym.orb b {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 0 6px; border-radius: 99px;
  font-family: var(--font-head); font-size: clamp(11px, 2vw, 19px); font-weight: 700; line-height: 1.3; white-space: nowrap;
  color: #2a1600; background: linear-gradient(180deg, #fff7c2, #fbbf24); box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.gg-sym.orb.t1 { --og: .18; }
.gg-sym.orb.t2 { --og: .3; }
.gg-sym.orb.t3 { --og: .45; }
.gg-sym.orb.t4 { --og: .65; }
.gg-sym.orb.t3 b { background: linear-gradient(180deg, #fde68a, #f97316); }
.gg-sym.orb.t4 b { background: linear-gradient(180deg, #fff, #facc15 40%, #ea580c); color: #3b0a00; }
.gg-cell.charge .orb img { animation: ggCharge .5s ease-in-out infinite alternate; }
@keyframes ggCharge { to { transform: scale(1.15) rotate(-4deg); filter: drop-shadow(0 0 18px #fde047) drop-shadow(0 0 30px #facc15); } }

/* text care apare peste tabla: castigul pe tumble, multiplicatorul, BIG WIN */
.gg-float {
  position: absolute; left: 50%; top: 46%; z-index: 6; pointer-events: none; text-align: center; white-space: nowrap;
  font-family: var(--font-head); font-size: 34px; font-weight: 700; color: #fde68a;
  text-shadow: 0 0 20px rgba(251,191,36,.9), 0 3px 0 #92400e; opacity: 0; transform: translate(-50%, -50%);
}
.gg-float.show { animation: ggFloat 1.1s ease-out forwards; }
.gg-float.mult { font-size: 64px; color: #fff; text-shadow: 0 0 26px #f97316, 0 4px 0 #7c2d12; }
.gg-float.scatter { font-size: 26px; color: #fdba74; text-shadow: 0 0 18px #f97316; }
.gg-float.big { font-size: 46px; line-height: 1.1; }
.gg-float.big.show { animation-duration: 2.4s; }
@keyframes ggFloat {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  75% { opacity: 1; transform: translate(-50%, -55%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -75%) scale(.95); }
}
.gg-overlay {
  position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle, rgba(67,20,7,.85), rgba(8,5,3,.92)); animation: resIn .4s ease both;
}
.gg-overlay[hidden] { display: none; }
.gg-overlay b { font-family: var(--font-head); font-size: 64px; font-weight: 700; color: #fde68a; text-shadow: 0 0 30px rgba(251,191,36,.9); }
.gg-overlay span { font-family: var(--font-head); font-size: 26px; letter-spacing: 2px; color: #fdba74; }
.gg-fsbar {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 8px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(251,191,36,.2), rgba(249,115,22,.2)); border: 1px solid rgba(251,191,36,.5);
  font-weight: 800; font-size: 14px; color: var(--muted);
}
.gg-fsbar[hidden] { display: none; }
.gg-fsbar b { color: #fde68a; font-family: var(--font-head); font-size: 18px; }
@media (max-width: 760px) {
  .gg-board { width: 100%; gap: 4px; padding: 5px; }
  .gg-float { font-size: 26px; }
  .gg-float.mult { font-size: 48px; }
  .gg-overlay b { font-size: 46px; }
  .gg-overlay span { font-size: 20px; }
}

/* ---------- Fishing Fire (slot cu role, lac de lava) ---------- */
.fg-logo { background: linear-gradient(135deg, #f97316, #7f1d1d); box-shadow: 0 0 22px rgba(249,115,22,.55); font-size: 24px; }
.fg-spin { background: linear-gradient(135deg, #fdba74, #f97316 50%, #b91c1c); color: #fff; box-shadow: 0 8px 28px rgba(249,115,22,.5); }
.fg-buy { background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #92400e); color: #2a1600; padding: 12px; border-radius: 14px; font-weight: 800; box-shadow: 0 6px 20px rgba(245,158,11,.4); }
.fg-buy b { color: #3b0a00; }
.fishing-box.busy .mp-bet, .fishing-box.busy .fg-buy, .fishing-box.busy .fg-spin { opacity: .55; pointer-events: none; }
.fg-stage {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px; overflow: hidden;
  background:
    radial-gradient(80% 45% at 50% 100%, rgba(249,115,22,.4), transparent 70%),
    radial-gradient(70% 50% at 50% 0%, rgba(251,191,36,.12), transparent 70%),
    linear-gradient(180deg, #1c0806, #2a0b05 55%, #3b0d04);
}
.fs-mode .fg-stage { box-shadow: inset 0 0 0 2px #f97316, inset 0 0 70px rgba(249,115,22,.4); }
.fg-fsbar { background: linear-gradient(90deg, rgba(220,38,38,.25), rgba(251,191,36,.2)); border-color: rgba(249,115,22,.6); }

/* aparatul: 5 role x 3 randuri, cu liniile desenate peste */
.fg-machine {
  position: relative; width: min(100%, 720px, calc((100vh - 210px) * 1.67)); aspect-ratio: 5 / 3; margin: 0 auto;
  padding: 8px; border-radius: 20px; background: linear-gradient(180deg, #3b1208, #1a0704); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 30px rgba(249,115,22,.35), inset 0 0 0 3px #f97316;
}
.fg-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; height: 100%; }
.fg-reel { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #4a1606, #2a0b05 45%, #5c1a06); box-shadow: inset 0 0 14px rgba(249,115,22,.35), inset 0 -18px 26px rgba(220,38,38,.35); }
.fg-strip { display: flex; flex-direction: column; height: 100%; }
.fg-strip.spinning { height: auto; }
.fg-strip.spinning .fg-cell { flex: none; }
.fg-cell { flex: 1 1 0; min-height: 0; display: grid; place-items: center; position: relative; }
.fg-sym { position: relative; width: 88%; height: 88%; display: grid; place-items: center; border-radius: 12px; }
.fg-sym span { font-size: clamp(22px, 5vw, 46px); line-height: 1; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.fg-sym.lo span {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 4.6vw, 44px); color: var(--c);
  -webkit-text-stroke: 2px #2a0703; paint-order: stroke fill; filter: drop-shadow(0 3px 0 #2a0703) drop-shadow(0 0 6px rgba(249,115,22,.5));
}
.fg-sym.hi { background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); }
.fg-sym.fish { background: radial-gradient(circle, rgba(251,191,36,.35), transparent 70%); }
/* pestii de foc: emoji-ul albastru 🐟 rotit spre portocaliu-rosu, cu glow */
.fg-sym.fish span { filter: hue-rotate(165deg) saturate(1.6) brightness(1.05) drop-shadow(0 0 6px rgba(249,115,22,.8)) drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.fg-sym.fish b, .fg-sym i {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); padding: 0 6px; border-radius: 99px; white-space: nowrap;
  font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: clamp(9px, 1.6vw, 14px); line-height: 1.35;
}
.fg-sym.fish b { color: #2a1600; background: linear-gradient(180deg, #fff7c2, #fbbf24); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.fg-sym.fish.rare { background: radial-gradient(circle, rgba(244,114,182,.5), transparent 70%); }
.fg-sym.fish.rare b { background: linear-gradient(180deg, #fbcfe8, #ec4899); color: #fff; }
.fg-sym.wild { background: linear-gradient(180deg, #fff7d1, #fcd34d); box-shadow: 0 0 0 2px #f59e0b; }
.fg-sym.wild i { color: #fff; background: linear-gradient(180deg, #f87171, #b91c1c); }
/* pescarul desenat (WILD) + iconita lui mica din texte */
.fg-fisher { width: 82%; height: 82%; object-fit: contain; margin-bottom: 8%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.fg-fisher-ic { width: 1.4em; height: 1.4em; vertical-align: -.35em; object-fit: contain; }
.fg-sym.sc { background: radial-gradient(circle, rgba(249,115,22,.45), transparent 70%); }
.fg-sym.sc img { width: 78%; height: 78%; object-fit: contain; border-radius: 50%; box-shadow: 0 0 14px rgba(251,146,60,.9); }
.fg-sym.sc i { color: #fff; background: linear-gradient(180deg, #fb923c, #ea580c); font-size: clamp(7px, 1.2vw, 11px); }
.fg-cell.win .fg-sym { animation: fgWin .5s ease-in-out infinite alternate; box-shadow: 0 0 0 3px #fde047, 0 0 22px rgba(253,224,71,.7); }
@keyframes fgWin { to { transform: scale(1.08); } }
.fg-cell.collect .fg-sym { animation: fgWin .35s ease-in-out infinite alternate; box-shadow: 0 0 0 3px #fbbf24, 0 0 30px #fbbf24; }
.fg-cell.caught .fg-sym { animation: fgCaught .7s ease-in forwards; }
@keyframes fgCaught { 40% { transform: scale(1.15); } to { transform: scale(.6) translateY(-30%); opacity: .35; } }
.fg-lines { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
@media (max-width: 760px) {
  .fg-machine { width: 100%; padding: 5px; border-radius: 14px; }
  .fg-reels { gap: 3px; }
  .fg-lines { inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); }
}

/* ---------- Fire Gold (fructe + zaruri, tema de foc) ---------- */
.mo-logo { background: linear-gradient(135deg, #fbbf24, #ea580c 50%, #7f1d1d); box-shadow: 0 0 22px rgba(249,115,22,.55); font-size: 24px; }
.mo-spin { background: linear-gradient(135deg, #fde68a, #f97316 45%, #b91c1c); color: #fff; box-shadow: 0 8px 28px rgba(249,115,22,.5); }
.moregold-box.busy .mp-bet, .moregold-box.busy .mo-spin { opacity: .55; pointer-events: none; }
.mo-stage {
  position: relative; display: flex; flex-direction: column; justify-content: center; padding: 14px; overflow: hidden;
  background: radial-gradient(80% 45% at 50% 100%, rgba(249,115,22,.4), transparent 70%), radial-gradient(70% 55% at 50% 0%, rgba(251,191,36,.15), transparent 70%), linear-gradient(180deg, #1c0806, #2e0c05 55%, #3b0d04);
}
.mo-machine { background: linear-gradient(180deg, #3b1208, #1a0704); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 30px rgba(249,115,22,.35), inset 0 0 0 3px #f97316; }
.mo-board {
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); grid-auto-flow: column;
  gap: 6px; width: 100%; height: 100%; overflow: hidden;
}
.mo-cell { position: relative; display: grid; place-items: center; min-height: 0; border-radius: 12px; background: linear-gradient(180deg, #fff3e0, #fdba74); box-shadow: inset 0 0 10px rgba(154,52,18,.45); }
/* rola din mijloc: aici aterizeaza zarurile */
.mo-cell[data-pos^="2-"] { background: linear-gradient(180deg, #fde68a, #f97316 70%, #dc2626); box-shadow: inset 0 0 0 2px rgba(220,38,38,.6), inset 0 0 16px rgba(127,29,29,.5), 0 0 12px rgba(249,115,22,.45); }
.mo-cell.drop { animation: ggDrop .42s cubic-bezier(.3,1.4,.5,1) both; animation-delay: var(--d, 0ms); }
.mo-sym { position: relative; width: 90%; height: 90%; display: grid; place-items: center; border-radius: 12px; }
.mo-sym span { font-size: clamp(24px, 5vw, 50px); line-height: 1; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.mo-sym.seven span { font-family: var(--font-head); font-weight: 700; color: #ef4444; -webkit-text-stroke: 3px #7f1d1d; paint-order: stroke fill; filter: drop-shadow(0 3px 0 #fbbf24); }
.mo-sym.dice span { animation: moDice .6s ease-in-out infinite alternate; }
@keyframes moDice { to { transform: rotate(14deg) scale(1.1); } }
.mo-cell.pulse { box-shadow: 0 0 0 3px #fbbf24, 0 0 22px rgba(251,191,36,.8); }
/* zarul devenit WILD in mijloc: fata zarului + valoarea multiplicatorului */
.mo-sym.wild { background: radial-gradient(circle, #fff7c2, #f59e0b 70%); box-shadow: 0 0 0 3px #b45309, 0 0 18px rgba(251,191,36,.9); }
.mo-face { font-size: clamp(30px, 6vw, 58px) !important; color: #7c2d12; filter: none !important; line-height: .9 !important; }
.mo-sym.wild i, .mo-sym.wild b {
  position: absolute; left: 50%; transform: translateX(-50%); padding: 0 6px; border-radius: 99px; white-space: nowrap;
  font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: clamp(9px, 1.5vw, 13px); line-height: 1.35;
}
.mo-sym.wild i { top: 3%; color: #fff; background: #b91c1c; }
.mo-sym.wild b { bottom: 3%; color: #fff; background: linear-gradient(180deg, #f97316, #c2410c); }
.mo-sym.wild.rolling .mo-face { animation: moDice .1s linear infinite alternate; }
.mo-cell.landed .mo-sym { animation: winPop .6s cubic-bezier(.2,1.6,.4,1) both; }
.mo-cell.win .mo-sym { animation: fgWin .5s ease-in-out infinite alternate; box-shadow: 0 0 0 3px #22c55e, 0 0 22px rgba(34,197,94,.7); }
.mo-flyer { position: fixed; z-index: 400; display: grid; place-items: center; font-size: clamp(30px, 6vw, 56px); pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
@media (max-width: 760px) { .mo-board { gap: 3px; } }

/* ---------- Case Battle ---------- */
.bt-logo { background: linear-gradient(135deg, #f97316, #7f1d1d); box-shadow: 0 0 22px rgba(251,191,36,.4); font-size: 24px; }
.battle-box { overflow-y: auto; }
.bt-h { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.bt-lobby { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; padding: 10px 28px 28px; }
.bt-lobby[hidden], .bt-view[hidden] { display: none; }
.bt-create, .bt-lists { display: flex; flex-direction: column; gap: 12px; }
.bt-create { padding: 18px; border-radius: 22px; background: rgba(10,6,4,.55); border: 1px solid var(--line); position: sticky; top: 0; }

.bt-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bt-case {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: transform .12s, border-color .12s;
}
.bt-case:hover { transform: translateY(-2px); border-color: var(--c); }
.bt-case.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--bg-2)); }
.bt-case[data-full]:not(.on) { opacity: .45; }
.bt-case img { width: 40px; height: 40px; object-fit: contain; }
.bt-case span { font-size: 12px; font-weight: 800; }
.bt-case b { font-size: 11px; color: var(--gold); }
.bt-case em {
  position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 11px; font-weight: 800;
  padding: 1px 6px; border-radius: 99px; background: var(--c); color: #140b07;
}
.bt-selected { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; align-items: center; }
.bt-chip {
  display: flex; align-items: center; gap: 2px; padding: 3px 8px 3px 4px; border-radius: 99px; font-size: 11px; font-weight: 800;
  background: color-mix(in srgb, var(--c) 22%, var(--bg-2)); border: 1px solid var(--c); color: var(--muted);
}
.bt-chip img { width: 26px; height: 26px; object-fit: contain; }
.bt-chip:hover { color: #fff; }
.bt-hint { font-size: 12px; color: var(--muted); }
.bt-go { background: linear-gradient(135deg, #fbbf24, #ef4444 55%, #7f1d1d); box-shadow: 0 8px 28px rgba(239,68,68,.4); }
.bt-go.dim { opacity: .55; }

.bt-list { display: flex; flex-direction: column; gap: 8px; }
.bt-list .empty { padding: 18px 0; }
.bt-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.bt-row:hover { border-color: #5c3a1f; transform: translateY(-1px); }
.bt-row.mine { border-color: rgba(251,146,60,.5); background: color-mix(in srgb, #f97316 10%, var(--bg-2)); }
.bt-row-cases { display: flex; gap: 2px; flex-wrap: wrap; }
.bt-row-cases img { width: 34px; height: 34px; object-fit: contain; }
.bt-row-players { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bt-row-players .lb-av, .bt-slot-empty { width: 32px; height: 32px; font-size: 14px; }
.bt-slot-empty {
  display: grid; place-items: center; border-radius: 50%; flex: none; border: 2px dashed #5c3a1f; color: var(--muted);
  font-family: var(--font-head); font-weight: 700;
}
.bt-vs { font-style: normal; font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.bt-row-cost { display: flex; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 17px; color: var(--gold); white-space: nowrap; }
.bt-row-win { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Void Bots: buton, avatar (logo-ul casinoului) si eticheta BOT */
.bt-row-act, .bt-view-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.btn-bots {
  color: #fff; background: linear-gradient(135deg, #22d3ee, #ea580c 60%, #f97316);
  box-shadow: 0 6px 18px rgba(234,88,12,.4), 0 0 12px rgba(34,211,238,.25);
}
.btn-bots:hover { filter: brightness(1.12); }
.bt-bot-av { padding: 2px; background: conic-gradient(#f97316, #fde047, #dc2626, #f97316); box-shadow: 0 0 10px rgba(249,115,22,.6); overflow: hidden; }
.bt-bot-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bt-bot-tag {
  font-style: normal; font-family: Nunito, system-ui, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 6px; border-radius: 99px; vertical-align: 2px; color: #fff; background: linear-gradient(135deg, #22d3ee, #ea580c);
}
.bt-row-win b { color: var(--text); }
.bt-row-win span { color: var(--gold); font-weight: 800; }
.bt-in, .bt-time { font-size: 12px; font-weight: 800; color: var(--v2); white-space: nowrap; }
.bt-time { color: var(--muted); }

/* un battle: cate o banda orizontala pe jucator (aceeasi banda ca la deschiderea cutiilor) */
.bt-view { padding: 6px 28px 28px; }
.bt-view-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.bt-view-cases { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.bt-view-cost { display: flex; align-items: center; gap: 4px; margin-left: 8px; font-family: var(--font-head); font-size: 18px; color: var(--gold); }
/* runda: cutia curenta mare si luminata, cele trecute stinse */
.bt-round {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .25s, border-color .25s, opacity .25s, box-shadow .25s;
}
.bt-round img { width: 38px; height: 38px; object-fit: contain; }
.bt-round i { position: absolute; bottom: -6px; right: -4px; font-style: normal; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.bt-round.cur { transform: scale(1.18); border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.bt-round.cur i { background: var(--c); color: #140b07; }
.bt-round.past { opacity: .4; }

/* marimea skinurilor pe banda, dupa numarul de jucatori */
.game-modal .bt-reels { gap: 12px; --iw: 150px; --ih: 120px; }
.game-modal .bt-reels.n3 { --iw: 132px; --ih: 100px; }
.game-modal .bt-reels.n4 { --iw: 118px; --ih: 84px; }
.bt-lane {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px;
  align-items: center; padding: 10px 12px; border-radius: 20px; background: rgba(10,6,4,.55); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.bt-lane.me { border-color: rgba(251,146,60,.45); }
.bt-lane.winner { border-color: #fbbf24; box-shadow: 0 0 30px rgba(251,191,36,.35); background: linear-gradient(90deg, rgba(251,191,36,.14), rgba(10,6,4,.55) 45%); }
.bt-lane-head { grid-row: 1 / 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.bt-lane-head > div { min-width: 0; }
.bt-lane-head .lb-av, .bt-lane-head .bt-slot-empty { width: 46px; height: 46px; font-size: 20px; }
.bt-lane-head b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-total { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.bt-winner { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fbbf24; animation: resIn .45s cubic-bezier(.2,1.5,.4,1) both; }
.bt-lane .reel { border-radius: 16px; }
.bt-lane .reel-track { padding: 8px 0; }
/* skinurile castigate pana acum, sub banda */
.bt-won { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; min-height: 34px; }
.bt-mini {
  display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 2px; border-radius: 10px; font-size: 11px;
  background: color-mix(in srgb, var(--c) 18%, var(--bg-2)); border-bottom: 2px solid var(--c); animation: btLand .35s cubic-bezier(.2,1.6,.4,1);
}
.bt-mini img { width: 42px; height: 28px; object-fit: contain; }
.bt-mini b { color: var(--gold); }
@keyframes btLand { from { transform: scale(.6); opacity: 0; } }
.bt-lane.empty { grid-template-rows: auto; opacity: .7; }
.bt-lane.empty .bt-lane-head { grid-row: auto; }
.bt-lane-wait { display: grid; place-items: center; min-height: 90px; border: 2px dashed var(--line); border-radius: 16px; }
.bt-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--v2); animation: spin 1s linear infinite; }

@media (max-width: 900px) {
  .bt-lobby { grid-template-columns: 1fr; padding: 8px 12px 24px; }
  .bt-create { position: static; }
  .bt-view { padding: 6px 12px 24px; }
}
@media (max-width: 560px) {
  .bt-row { grid-template-columns: 1fr auto; gap: 8px; }
  .bt-row-players { grid-column: 1 / -1; order: 3; }
  /* pe telefon: numele si totalul deasupra benzii */
  .bt-lane { grid-template-columns: minmax(0, 1fr); padding: 8px; border-radius: 16px; }
  .bt-lane-head { grid-row: auto; }
  .bt-lane-head .lb-av, .bt-lane-head .bt-slot-empty { width: 34px; height: 34px; font-size: 15px; }
  .bt-lane-head > div { display: flex; align-items: baseline; gap: 8px; }
  .bt-lane-head b { font-size: 14px; }
  .bt-total { font-size: 16px; }
  .bt-won { grid-column: 1; }
  .game-modal .bt-reels, .game-modal .bt-reels.n3 { --iw: 104px; --ih: 82px; }
  .game-modal .bt-reels.n4 { --iw: 92px; --ih: 68px; }
  .bt-round { width: 40px; height: 40px; }
  .bt-round img { width: 30px; height: 30px; }
}

/* ---------- admin ---------- */
.side-link[hidden] { display: none; }
.admin-link { color: #fca5a5; }
.role-badge {
  font-style: normal; font-family: Nunito, system-ui, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 99px; vertical-align: 3px; color: #fff; background: linear-gradient(135deg, #38bdf8, #2563eb);
}
.role-badge.owner { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1600; }
.role-badge.banned { background: linear-gradient(135deg, #fb7185, #be123c); }
.pf-id .role-badge { font-size: 12px; vertical-align: 6px; }
.btn-xs { padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn-danger { background: linear-gradient(135deg, #fb7185, #e11d48 55%, #9f1239); color: #fff; box-shadow: 0 6px 18px rgba(225,29,72,.35); }
.btn-danger:hover { filter: brightness(1.1); }

.admin-box { width: min(860px, 100%); padding-bottom: 22px; }
.adm-tabs { margin: 8px 26px 6px; }
.adm-pane { padding: 6px 26px 0; }
.adm-pane[hidden] { display: none; }
.adm-search { width: 100%; margin-bottom: 10px; }
.adm-list, .adm-log { display: flex; flex-direction: column; gap: 8px; }
.adm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.adm-row.is-banned { border-color: rgba(251,79,111,.4); background: color-mix(in srgb, #fb4f6f 7%, var(--bg-2)); }
.adm-row.is-banned .lb-av { filter: grayscale(.8); }
.adm-user { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 280px; }
.adm-info { min-width: 0; }
.adm-info b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.adm-info small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.adm-info small img { width: 16px; height: 16px; object-fit: contain; }
.adm-info small strong { color: var(--gold); }
.adm-info .adm-ban-info { color: #fda4af; }
.adm-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-give {
  display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 8px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}
.adm-give input { width: 90px; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-weight: 800; }
.adm-give input::-webkit-inner-spin-button { -webkit-appearance: none; }
.adm-req-amount { display: flex; align-items: center; gap: 4px; margin-right: 4px; font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.adm-tabs .inv-badge { margin-left: 4px; }
.admin-link .inv-badge { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1600; }
.adm-log-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.adm-log-icon { width: 22px; text-align: center; }
.adm-log-text { flex: 1; min-width: 0; color: var(--muted); }
.adm-log-text b { color: var(--text); }
.adm-log-row small { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) {
  .adm-tabs { margin: 8px 14px 6px; }
  .adm-pane { padding: 6px 14px 0; }
  .adm-actions { width: 100%; }
  .adm-give { flex: 1; }
  .adm-give input { flex: 1; width: auto; min-width: 0; }
}

/* ---------- pop-up: Gold primit de la admin ---------- */
.gift-modal { z-index: 250; }
.gift-box {
  width: min(400px, 100%); overflow: hidden; padding: 30px 26px 26px; text-align: center;
  border-color: rgba(251,191,36,.45);
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(251,191,36,.28), transparent 70%),
    linear-gradient(180deg, #33200f, #140b07);
}
.gift-rays {
  position: absolute; left: 50%; top: 70px; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none;
  background: repeating-conic-gradient(rgba(251,191,36,.10) 0deg 10deg, transparent 10deg 30deg);
  mask-image: radial-gradient(circle, #000 20%, transparent 65%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  animation: spin 24s linear infinite;
}
.gift-icon { position: relative; font-size: 64px; line-height: 1; animation: giftPop .6s cubic-bezier(.2,1.6,.4,1) both, float 2.6s ease-in-out .6s infinite; }
@keyframes giftPop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.gift-title { position: relative; margin-top: 12px; font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.gift-amount {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 14px;
  font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--gold);
  text-shadow: 0 0 30px rgba(251,191,36,.45);
}
.gift-amount .coin { font-size: 40px; }
.gift-list { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.gift-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px;
  background: rgba(10,6,4,.55); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.gift-row b { color: var(--text); }
.gift-row .gold { color: var(--gold); white-space: nowrap; }
.gift-note { position: relative; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.gift-ok { position: relative; width: 100%; }

/* ---------- clasament ---------- */
.lb-box { width: min(640px, 100%); padding-bottom: 22px; }
.lb-tabs { margin: 8px 26px 4px; }
.lb-tabs button { white-space: nowrap; }
.lb-box .up { color: var(--green); }
.lb-box .down { color: var(--red); }
.lb-av {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff;
}
.lb-av.guest { background: var(--panel-2); border: 1px solid var(--line); }
.lb-av.guest svg { width: 55%; height: 55%; fill: none; stroke: var(--v2); stroke-width: 2; stroke-linecap: round; }
.lb-you {
  font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 99px; background: var(--grad); color: #fff; vertical-align: 2px;
}

.lb-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding: 26px 26px 0; }
.lb-pod { flex: 1; max-width: 190px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lb-medal { font-size: 26px; line-height: 1; }
.lb-pod .lb-av { width: 58px; height: 58px; font-size: 26px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--c) 60%, transparent); }
.lb-pod.place1 .lb-av { width: 72px; height: 72px; font-size: 32px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fbbf24, 0 0 30px rgba(251,191,36,.4); }
.lb-pod-name { max-width: 100%; font-family: var(--font-head); font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pod-rank { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--c); }
.lb-pod-rank img, .lb-row-name small img { width: 18px; height: 18px; object-fit: contain; }
.lb-pod-val b { font-family: var(--font-head); font-size: 18px; font-weight: 600; white-space: nowrap; }
.lb-step {
  width: 100%; margin-top: 6px; display: grid; place-items: center; border-radius: 14px 14px 0 0;
  font-family: var(--font-head); font-size: 28px; font-weight: 700; color: rgba(255,255,255,.85);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 40%, var(--panel-2)), var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-bottom: 0;
}
.lb-pod.place1 .lb-step { height: 92px; }
.lb-pod.place2 .lb-step { height: 66px; }
.lb-pod.place3 .lb-step { height: 48px; }
.lb-pod.me .lb-pod-name { color: var(--v1); }

.lb-list { display: flex; flex-direction: column; gap: 6px; padding: 0 26px; border-top: 1px solid var(--line); padding-top: 12px; }
.lb-list:empty { display: none; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid transparent; }
.lb-row.me { border-color: var(--v3); background: color-mix(in srgb, #f97316 12%, var(--bg-2)); }
.lb-pos { width: 34px; text-align: center; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--muted); }
.lb-row-name { flex: 1; min-width: 0; }
.lb-row-name b { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row-name small { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--c); }
.lb-row-val b { font-family: var(--font-head); font-size: 17px; font-weight: 600; white-space: nowrap; }
.lb-note { margin: 14px 26px 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.lb-note b { color: var(--text); }
@media (max-width: 560px) {
  .lb-tabs { margin: 8px 14px 4px; grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .lb-podium { padding: 22px 14px 0; gap: 6px; }
  .lb-pod-name { font-size: 14px; }
  .lb-pod-val b { font-size: 15px; }
  .lb-list { padding: 12px 14px 0; }
  .lb-note { margin: 14px 14px 0; }
}

/* ---------- depozit ---------- */
/* plusul de langa soldul din ferestrele jocurilor */
.modal-bal .bonus-btn { width: 26px; height: 26px; font-size: 16px; margin: -2px -8px -2px 2px; }
.deposit-modal { z-index: 230; } /* peste ferestrele jocurilor */
.deposit-box { width: min(460px, 100%); padding-bottom: 24px; }
.dep-body { display: flex; flex-direction: column; gap: 10px; padding: 10px 26px 0; }
.dep-bal {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.dep-bal b { display: flex; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--text); }
.dep-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dep-pack {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line); font-family: var(--font-head); font-size: 17px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.dep-pack:hover { border-color: var(--v3); transform: translateY(-2px); }
.dep-pack.active { border-color: var(--gold); background: linear-gradient(160deg, rgba(251,191,36,.14), var(--bg-2)); box-shadow: 0 0 18px rgba(251,191,36,.2); }
.dep-body .mp-label { margin-top: 4px; }
.dep-tabs { margin: 8px 26px 2px; }
/* cererea de depozit in asteptare inlocuieste formularul */
.has-pending:not(.withdraw) :is(.dep-packs, .dep-amount, #depSubmit) { display: none; }
.dep-pending {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(251,191,36,.12), var(--bg-2)); border: 1px solid rgba(251,191,36,.4);
}
.dep-pending-icon { font-size: 26px; animation: float 2.4s ease-in-out infinite; }
.dep-pending-text { flex: 1; min-width: 0; }
.dep-pending-text b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--gold); }
.dep-pending-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.withdraw .dep-pending { display: none; }
.dep-pack small { font-family: Nunito, system-ui, sans-serif; font-size: 12px; font-weight: 800; color: var(--muted); }
.dep-pack:disabled { opacity: .4; cursor: default; transform: none; }
/* retragere: pachetele sunt procente din sold (pe doua randuri), accentul e rosu */
.withdraw .dep-packs { grid-template-columns: repeat(4, 1fr); }
.withdraw .dep-pack { flex-direction: column; gap: 2px; }
.withdraw .dep-pack.active { border-color: var(--red); background: linear-gradient(160deg, rgba(251,79,111,.14), var(--bg-2)); box-shadow: 0 0 18px rgba(251,79,111,.2); }
.withdraw #depSubmit { background: linear-gradient(135deg, #fb7185, #e11d48 55%, #9f1239); box-shadow: 0 8px 28px rgba(225,29,72,.4); }
@media (max-width: 560px) {
  .dep-body { padding: 10px 14px 0; }
  .dep-tabs { margin: 8px 14px 2px; }
  .dep-packs, .withdraw .dep-packs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- setari / support / despre ---------- */
.settings-box { width: min(600px, 100%); padding-bottom: 24px; }

/* ---------- Auto spin (sloturi, autospin.js) ---------- */
.auto-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auto-label { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.auto-counts { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.auto-counts button {
  padding: 7px 0; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.auto-counts button:hover:not(:disabled) { border-color: var(--v3); background: rgba(249,115,22,.15); }
.auto-counts button:disabled { opacity: .45; cursor: not-allowed; }
.auto-stop { width: 100%; color: #fff; background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 6px 18px rgba(225,29,72,.35); }

/* ---------- "Cum se joaca" (sloturi) ---------- */
#slotInfoModal { z-index: 230; } /* peste fereastra jocului */
.si-box { width: min(560px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; }
.si-body { overflow-y: auto; padding: 4px 26px 24px; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; color: #efd9c9; font-size: 14px; }
.si-body h4 { margin-top: 10px; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--text); }
.si-body b { color: var(--text); }
.si-idea { padding: 12px 14px; border-radius: 14px; background: rgba(249,115,22,.12); border: 1px solid rgba(251,146,60,.3); color: var(--text); font-weight: 700; }
.si-with-ic { display: flex; align-items: flex-start; gap: 10px; }
.si-with-ic img { width: 38px; height: 38px; flex: none; object-fit: contain; }
.si-with-ic img.si-round { border-radius: 50%; object-fit: cover; }
.si-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; }
.si-table th { font-size: 12px; font-weight: 800; color: var(--muted); text-align: right; padding: 0 10px; }
.si-table td { padding: 6px 10px; text-align: right; font-weight: 800; color: var(--gold); background: var(--bg-2); }
.si-table td:first-child { border-radius: 12px 0 0 12px; }
.si-table td:last-child { border-radius: 0 12px 12px 0; }
.si-table td.si-ic { width: 52px; text-align: center; }
.si-ic img { width: 34px; height: 34px; object-fit: contain; display: block; margin: 0 auto; }
.si-emoji { font-size: 26px; line-height: 1; }
.si-letter { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.si-seven { color: #f43f5e; text-shadow: 0 0 8px rgba(244,63,94,.6); }
.si-note { font-size: 12px; color: var(--muted); }
.si-btn { font-size: 18px; }
@media (max-width: 760px) { .si-body { padding: 4px 16px 20px; } }
.set-tabs { margin: 8px 26px 6px; }
.set-pane { display: flex; flex-direction: column; gap: 10px; padding: 12px 26px 0; }
.set-pane[hidden] { display: none; }
.set-pane > .btn { align-self: stretch; }
.set-h { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-top: 8px; }
.set-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.set-who b { color: var(--text); }
.set-who .side-avatar { width: 30px; height: 30px; font-size: 15px; }
.set-form { display: flex; flex-direction: column; gap: 8px; }
.set-form .mp-label { margin-top: 4px; }
.set-form .btn:disabled { opacity: .6; cursor: default; }

.about-intro { font-size: 15px; line-height: 1.55; color: #efd9c9; }
.about-games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.about-game { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.about-icon { font-size: 20px; width: 26px; text-align: center; flex: none; }
.about-name { flex: 1; min-width: 0; }
.about-name b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.about-name small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.about-game em { font-style: normal; font-family: var(--font-head); font-size: 16px; font-weight: 600; color: #6ee7b7; }
.about-note { font-size: 12px; color: var(--muted); }
.about-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; font-size: 14px; line-height: 1.45; color: #efd9c9; }
.about-list li::marker { color: var(--v3); }
.about-list b { color: var(--text); }
.about-foot { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }

.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s; }
.faq details[open] { border-color: rgba(251,146,60,.45); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; font-weight: 800; font-size: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--v2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 14px 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sup-contacts { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sup-contacts li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.sup-contacts b { flex: 1; }
.sup-contacts a, .sup-contacts code { color: var(--v2); font-family: inherit; font-weight: 800; }

/* legarea cu Discord, in panoul Account din Profil */
.dc-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 14px;
  background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.45);
}
.dc-box.linked { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); }
.dc-logo { font-size: 22px; }
.dc-text { flex: 1; min-width: 140px; }
.dc-text b { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.dc-text small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.dc-code { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-code small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.dc-code code {
  flex: 1; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed #5865f2;
  font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; color: #c7d2fe; user-select: all;
}
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pf-actions .pf-logout { margin-top: 0; }

@media (max-width: 560px) {
  .set-tabs { margin: 8px 14px 6px; }
  .set-pane { padding: 12px 14px 0; }
  .about-games { grid-template-columns: 1fr; }
}

/* ---------- login / cont nou ---------- */
/* fara cont, login-ul e obligatoriu: fara buton de inchidere, fond mai opac */
.need-login #authModal [data-close].cm-icon { display: none; }
.need-login #authModal .modal-backdrop { background: rgba(6,4,3,.9); cursor: default; }
.auth-box { width: min(420px, 100%); padding-bottom: 24px; }
.auth-tabs { margin: 8px 26px 4px; }
.auth-form { display: flex; flex-direction: column; gap: 8px; padding: 12px 26px 0; }
.auth-form .mp-label { margin-top: 6px; }
.auth-input {
  width: 100%; padding: 12px 14px; border-radius: 14px; font: inherit; font-weight: 700; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); outline: none; transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus { border-color: var(--v3); box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
/* ochiul din dreapta parolei */
.pw-wrap { position: relative; display: block; }
.pw-wrap > input { padding-right: 46px; }
.pw-eye {
  position: absolute; top: 50%; right: 6px; translate: 0 -50%; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s;
}
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--v1); background: rgba(249,115,22,.14); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* fara ochiul propriu al browserului (Edge), ca sa nu apara doi */
.pw-wrap > input::-ms-reveal { display: none; }
.auth-reg { display: flex; flex-direction: column; gap: 8px; }
.auth-reg[hidden] { display: none; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.auth-check input { margin-top: 2px; accent-color: var(--v3); }
.auth-error { min-height: 20px; font-size: 13px; font-weight: 800; color: var(--red); }
.auth-submit { margin-top: 2px; }
.auth-submit:disabled { opacity: .6; cursor: default; }

/* ---------- pagina de profil ---------- */
/* apare in locul lobby-ului (body.on-profile, adresa #profile) */
.profile-page { display: none; }
body.on-profile .profile-page { display: block; }
body.on-profile .main > :not(.profile-page):not(.footer) { display: none; }
body.on-profile .main-nav a.active { background: none; color: inherit; }

.pf-back { display: inline-block; margin-bottom: 14px; font-weight: 800; font-size: 14px; color: var(--v2); }
.pf-back:hover { color: #fff; }

.pf-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 28px; border-radius: 26px; border: 1px solid rgba(251,146,60,.3);
  background:
    radial-gradient(600px 260px at 85% 0%, color-mix(in srgb, var(--c, #f97316) 35%, transparent), transparent 70%),
    radial-gradient(500px 240px at 0% 100%, rgba(249,115,22,.25), transparent 70%),
    linear-gradient(160deg, #301a0d, var(--panel));
}
/* logo-ul Void pe fundalul bannerului: transparent, rotund, cu glow care pulseaza */
.pf-bg-logo {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; width: 240px; height: 240px; translate: -50% -50%;
  opacity: .22; animation: pfLogoGlow 3.2s ease-in-out infinite;
}
.pf-bg-logo img { display: block; width: 100%; height: 100%; object-fit: contain; } /* emblema FLAME CSN, fara fundal */
@keyframes pfLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(249,115,22,.8)) drop-shadow(0 0 30px rgba(220,38,38,.4)); opacity: .22; }
  50%      { filter: drop-shadow(0 0 22px rgba(253,186,116,1)) drop-shadow(0 0 50px rgba(249,115,22,.6)); opacity: .32; }
}
@media (prefers-reduced-motion: reduce) { .pf-bg-logo { animation: none; filter: drop-shadow(0 0 18px rgba(249,115,22,.9)); } }
.pf-banner > :not(.pf-bg-logo) { position: relative; z-index: 1; }
.pf-avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 46px; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px rgba(251,146,60,.5), 0 10px 40px rgba(249,115,22,.45);
}
.pf-avatar.guest { background: var(--panel-2); }
button.pf-avatar { border: 0; padding: 0; cursor: pointer; }
.pf-av-cam {
  position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; font-style: normal;
  background: var(--grad); box-shadow: 0 0 0 3px var(--bg); transition: transform .2s;
}
button.pf-avatar:hover .pf-av-cam { transform: scale(1.12); }
/* bifa de verificare: alb pe rosu (owner) / alb pe verde (admin) */
.pf-av-check { width: 24px; height: 24px; right: 0; bottom: 0; --g: 239,68,68; animation: checkGlow 2.2s ease-in-out infinite; }
.pf-av-check.owner { background: #ef4444; --g: 239,68,68; }
.pf-av-check.admin { background: #22c55e; --g: 34,197,94; }
.pf-av-check svg {
  width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; animation: checkDraw 2.2s ease-in-out infinite;
}
/* glow care pulseaza + bifa care se "redeseneaza" */
@keyframes checkGlow {
  0%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 6px rgba(var(--g), .55); }
  50%      { box-shadow: 0 0 0 2px var(--bg), 0 0 14px rgba(var(--g), 1), 0 0 24px rgba(var(--g), .5); }
}
@keyframes checkDraw {
  0%   { stroke-dashoffset: 24; }
  35%, 100% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-av-check { animation: checkGlow 2.2s ease-in-out infinite; }
  .pf-av-check svg { animation: none; }
}
/* poza de profil: umple cercul avatarului, oriunde apare */
.av-img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-av-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-av-row .side-avatar { width: 44px; height: 44px; font-size: 20px; }
.pf-avatar.guest svg { width: 52%; height: 52%; fill: none; stroke: var(--v2); stroke-width: 2; stroke-linecap: round; }
.pf-id { flex: 1; min-width: 160px; }
.pf-id b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1.1; word-break: break-all; }
.pf-id small { font-size: 14px; color: var(--muted); }
/* numele owner-ului: alb, contur rosu, glow rosu care pulseaza */
.owner-name {
  font-family: "Russo One", var(--font-head); font-weight: 400; letter-spacing: .04em; color: #fff;
  -webkit-text-stroke: 1.5px #ef4444; paint-order: stroke fill;
  animation: ownerGlow 2.4s ease-in-out infinite;
}
.pf-id .owner-name { -webkit-text-stroke-width: 3px; }
@keyframes ownerGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(239,68,68,.7), 0 0 14px rgba(239,68,68,.35); }
  50%      { text-shadow: 0 0 10px rgba(248,113,113,1), 0 0 24px rgba(239,68,68,.75), 0 0 40px rgba(239,68,68,.4); }
}
@media (prefers-reduced-motion: reduce) {
  .owner-name { animation: none; text-shadow: 0 0 8px rgba(239,68,68,.9), 0 0 20px rgba(239,68,68,.5); }
}

.pf-rankbox {
  display: flex; align-items: center; gap: 12px; width: min(320px, 100%); padding: 12px 16px; text-align: left;
  border-radius: 18px; background: rgba(10,6,4,.55); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  transition: border-color .15s, transform .15s;
}
.pf-rankbox:hover { border-color: var(--c); transform: translateY(-2px); }
.pf-rankbox img { width: 58px; height: 58px; object-fit: contain; flex: none; }
.pf-rankinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-rankline { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pf-rankline b { font-family: var(--font-head); font-size: 20px; color: var(--c); }
.pf-rankline em { font-style: normal; font-size: 12px; font-weight: 800; color: #6ee7b7; white-space: nowrap; }
.pf-rankinfo .bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #fff), var(--c)); }
.pf-rankinfo small { font-size: 12px; font-weight: 700; color: var(--muted); }

.pf-main-stats { margin: 18px 0 12px; }
.pf-main-stats .stat { padding: 20px 22px; }
.pf-main-stats .stat-val { font-size: 32px; }
.pf-main-stats .stat:first-child { border-color: rgba(251,191,36,.35); background: linear-gradient(160deg, rgba(251,191,36,.10), var(--panel)); }
.pf-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.pf-extra .rcb-stat b { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.pf-panel { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pf-panel h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.pf-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pf-panel-head .vip-link { margin: 0; }
.pf-panel-head .vip-link[hidden] { display: none; }
.pf-panel .hist-list { padding: 0; }
.pf-panel .empty { padding: 20px 0; }
.pf-panel .empty[hidden] { display: none; }
.pf-cta { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pf-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-colors button {
  width: 32px; height: 32px; border-radius: 50%; background: var(--sw);
  box-shadow: 0 0 0 2px var(--bg); transition: transform .15s, box-shadow .15s;
}
.pf-colors button:hover { transform: scale(1.1); }
.pf-colors button.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.pf-logout { align-self: flex-start; margin-top: 6px; }

@media (max-width: 960px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-extra { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .auth-tabs { margin: 8px 14px 4px; }
  .auth-form { padding-left: 14px; padding-right: 14px; }
  .pf-banner { padding: 20px; gap: 16px; }
  .pf-avatar { width: 72px; height: 72px; font-size: 34px; }
  .pf-id b { font-size: 26px; }
  .pf-rankbox { width: 100%; }
  .pf-main-stats .stat-val { font-size: 24px; }
  .ranks-cb { grid-template-columns: 1fr 1fr; margin: 6px 14px 14px; }
  .ranks-cb .rcb-rank { grid-column: 1 / -1; }
  .ranks-list { padding: 0 14px; }
}

/* ---------- full screen pe telefon (ecranul principal): nimic sub notch ---------- */
/* (la final, ca sa fie peste regulile de mai sus; in browser normal env() = 0, deci nu schimba nimic) */
header.topbar { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); }
.modal.game-modal .cm-head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
@media (max-width: 760px) { .modal.game-modal .cm-head { padding-top: calc(10px + env(safe-area-inset-top, 0px)); } }

/* ---------- Gates of Fire & Fishing Fire: foc animat in fundalul tablei ---------- */
/* o banda de flacari jos (degrade + forme de limbi de foc) care palpaie si urca, sub simboluri */
.gg-stage, .fg-stage, .mo-stage, .bj-stage { isolation: isolate; }
.gg-stage::after, .fg-stage::after, .mo-stage::after, .bj-stage::after {
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -6px; height: 38%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(14% 70% at 8% 100%, rgba(253,224,71,.55), transparent 70%),
    radial-gradient(12% 85% at 24% 100%, rgba(249,115,22,.6), transparent 70%),
    radial-gradient(16% 75% at 42% 100%, rgba(253,186,116,.5), transparent 70%),
    radial-gradient(12% 90% at 58% 100%, rgba(249,115,22,.6), transparent 70%),
    radial-gradient(15% 70% at 76% 100%, rgba(253,224,71,.5), transparent 70%),
    radial-gradient(13% 85% at 92% 100%, rgba(249,115,22,.6), transparent 70%),
    linear-gradient(0deg, rgba(220,38,38,.55), transparent);
  filter: blur(6px); transform-origin: 50% 100%; animation: stageFire 1.6s ease-in-out infinite alternate;
}
.gg-stage::before, .fg-stage::before, .mo-stage::before, .bj-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(2px 2px at 12% 80%, #fde047, transparent), radial-gradient(2px 2px at 33% 60%, #fb923c, transparent),
    radial-gradient(1.5px 1.5px at 55% 75%, #fde047, transparent), radial-gradient(2px 2px at 72% 55%, #f97316, transparent),
    radial-gradient(1.5px 1.5px at 88% 70%, #fdba74, transparent), radial-gradient(2px 2px at 22% 40%, #f97316, transparent),
    radial-gradient(1.5px 1.5px at 64% 35%, #fde047, transparent);
  animation: stageEmbers 4s linear infinite;
}
@keyframes stageFire {
  0%   { transform: scaleY(1) scaleX(1);    opacity: .8; }
  30%  { transform: scaleY(1.12) scaleX(.98); opacity: 1; }
  60%  { transform: scaleY(.95) scaleX(1.02); opacity: .75; }
  100% { transform: scaleY(1.18) scaleX(1);  opacity: .95; }
}
@keyframes stageEmbers { from { transform: translateY(12%); opacity: 0; } 20% { opacity: .8; } to { transform: translateY(-30%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gg-stage::after, .fg-stage::after, .mo-stage::after, .bj-stage::after, .gg-stage::before, .fg-stage::before, .mo-stage::before, .bj-stage::before { animation: none; } }

/* ---------- Coinflip: monedele desenate FIRE / ICE (COIN_FIRE / COIN_ICE din game-art.js) ---------- */
/* moneda e imaginea intreaga (rama, fata, emblema); fetele nu mai au rama/culoare din CSS, doar glow */
.cf-face, .cf-face.t, .cf-face.ct { border: 0; background: none; }
.cf-face::before { display: none; }
.cf-face .cf-art { width: 100%; height: 100%; display: block; border-radius: 50%; }
.cf-face.t  { box-shadow: 0 0 46px rgba(249,115,22,.55), 0 12px 40px rgba(0,0,0,.5); }
.cf-face.ct { box-shadow: 0 0 46px rgba(125,211,252,.5), 0 12px 40px rgba(0,0,0,.5); }
.cf-chip, .cf-chip.t, .cf-chip.ct { background: none; overflow: hidden; }
.cf-chip .cf-art { width: 100%; height: 100%; display: block; }
.cf-chip.t  { box-shadow: 0 0 14px rgba(249,115,22,.7), 0 4px 10px rgba(0,0,0,.4); }
.cf-chip.ct { box-shadow: 0 0 14px rgba(125,211,252,.6), 0 4px 10px rgba(0,0,0,.4); }
.cf-logo { background: none !important; padding: 0; overflow: hidden; }
.cf-logo .cf-art { width: 100%; height: 100%; display: block; }

/* ---------- Blackjack (blackjack.js) ---------- */
.bj-logo { background: linear-gradient(135deg, #f97316, #7f1d1d); box-shadow: 0 0 22px rgba(249,115,22,.55); font-size: 24px; }
.bj-deal { background: linear-gradient(135deg, #fde68a, #f97316 50%, #b91c1c); color: #fff; box-shadow: 0 8px 28px rgba(249,115,22,.5); }
.bj-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bj-actions[hidden] { display: none; }
.bj-act { padding: 13px 8px; border-radius: 14px; font-weight: 800; color: #fff; transition: transform .1s, filter .15s, opacity .15s; }
.bj-act:disabled { opacity: .35; pointer-events: none; }
.bj-act.hit    { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 6px 18px rgba(249,115,22,.4); }
.bj-act.stand  { background: linear-gradient(135deg, #dc2626, #450a0a); box-shadow: 0 6px 18px rgba(220,38,38,.4); }
.bj-act.double { background: linear-gradient(135deg, #fbbf24, #c2410c); box-shadow: 0 6px 18px rgba(251,191,36,.35); color: #2a1600; }
.bj-act.split  { background: linear-gradient(135deg, #b45309, #431407); box-shadow: 0 6px 18px rgba(180,83,9,.4); }
.bj-act:hover { filter: brightness(1.12); }
.blackjack-box.busy .mp-bet { opacity: .5; pointer-events: none; }

/* masa: postav verde cu rama de lemn-foc */
.bj-stage { position: relative; display: grid; place-items: center; padding: 14px; overflow: hidden;
  background: radial-gradient(80% 45% at 50% 100%, rgba(249,115,22,.35), transparent 70%), linear-gradient(180deg, #1c0806, #2a0b05 55%, #3b0d04); }
.bj-table {
  position: relative; width: min(100%, 860px); height: 100%; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 20px 30px; border-radius: 180px 180px 28px 28px / 120px 120px 28px 28px;
  background: radial-gradient(120% 90% at 50% 0%, #6b1a0c, #3a0d06 50%, #1a0603), radial-gradient(60% 40% at 50% 100%, rgba(249,115,22,.25), transparent 70%);
  background-blend-mode: normal;
  box-shadow: inset 0 0 0 10px #1a0704, inset 0 0 0 13px #f97316, inset 0 0 0 16px #7c2d12, inset 0 0 70px rgba(0,0,0,.6), 0 0 50px rgba(249,115,22,.4), 0 20px 50px rgba(0,0,0,.5);
}
.bj-felt-text {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-head); font-size: 13px; letter-spacing: 3px; color: rgba(253,186,116,.4); text-shadow: 0 0 10px rgba(249,115,22,.5);
}
.bj-row { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bj-label { font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.bj-label b { margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: rgba(0,0,0,.45); color: #fff; letter-spacing: 0; }
.bj-label b:empty { display: none; }
.bj-cards { display: flex; justify-content: center; min-height: calc(var(--cw, 78px) * 1.4); }
.bj-hands { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.bj-hand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; transition: background .2s, box-shadow .2s; }
.bj-hand.cur { background: rgba(249,115,22,.1); box-shadow: 0 0 0 2px rgba(251,146,60,.75), 0 0 26px rgba(249,115,22,.5); }
.bj-hand-info { display: flex; align-items: center; gap: 8px; }
.bj-total { min-width: 34px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.5); color: #fff; font-family: var(--font-head); font-size: 16px; text-align: center; }
.bj-total.bust { background: #b91c1c; }
.bj-hand-bet { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #fde68a; font-size: 13px; }
.bj-res { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.res-win .bj-res, .res-blackjack .bj-res { background: linear-gradient(135deg, #fbbf24, #ea580c); color: #fff; }
.res-blackjack .bj-res { background: linear-gradient(135deg, #fbbf24, #f97316); color: #2a1600; }
.res-push .bj-res { background: #64748b; color: #fff; }
.res-lose .bj-res, .res-bust .bj-res { background: #b91c1c; color: #fff; }
.res-lose .bj-cards, .res-bust .bj-cards { opacity: .6; filter: grayscale(.4); }

/* cartile */
.bj-card {
  --cw: 78px; position: relative; width: var(--cw); height: calc(var(--cw) * 1.4); margin-left: calc(var(--cw) * -.32);
  border-radius: 9px; background: linear-gradient(160deg, #ffffff, #f1ece4); color: #111827;
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.12); font-family: Georgia, "Times New Roman", serif;
}
.bj-cards .bj-card:first-child { margin-left: 0; }
.bj-card.red { color: #dc2626; }
.bj-corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.bj-corner b { font-size: calc(var(--cw) * .26); font-weight: 700; }
.bj-corner i { font-style: normal; font-size: calc(var(--cw) * .22); }
.bj-corner.tl { top: 5px; left: 6px; }
.bj-corner.br { bottom: 5px; right: 6px; rotate: 180deg; }
.bj-pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cw) * .58); }
.bj-card.back {
  background:
    repeating-linear-gradient(45deg, rgba(249,115,22,.22) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, rgba(249,115,22,.22) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #7f1d1d, #2a0a03);
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 4px #f8ead8, inset 0 0 0 6px #b45309;
  display: grid; place-items: center;
}
.bj-card.back img { width: 62%; border-radius: 50%; box-shadow: 0 0 10px rgba(249,115,22,.7); }
/* impartirea: cartea vine din dreapta-sus (sabotul) si se roteste usor */
.bj-card.deal { animation: bjDeal .38s cubic-bezier(.2,.8,.3,1.1) both; }
@keyframes bjDeal { from { transform: translate(260px, -220px) rotate(25deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* mesajul din mijloc */
.bj-msg { position: relative; z-index: 1; min-height: 40px; text-align: center; font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.bj-msg.win { color: #fde047; text-shadow: 0 0 16px rgba(249,115,22,.9), 0 2px 10px rgba(0,0,0,.6); }
.bj-msg.lose { color: #fca5a5; }
.bj-msg.push { color: #e2e8f0; }
.bj-msg.big { font-family: "Bungee", var(--font-head); font-size: 34px; color: #fde047; text-shadow: 0 0 18px rgba(249,115,22,.95), 0 3px 0 #7c2d12; animation: winPop .6s cubic-bezier(.2,1.6,.4,1) both; }

@media (max-width: 760px) {
  .bj-table { min-height: 360px; padding: 18px 8px 22px; border-radius: 90px 90px 20px 20px / 70px 70px 20px 20px; }
  .bj-card { --cw: 56px; }
  .bj-cards { min-height: calc(56px * 1.4); }
  .bj-hands { gap: 14px; }
  .bj-felt-text { font-size: 9px; letter-spacing: 1.5px; }
  .bj-msg { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bj-card.deal { animation: none; } }

/* ---------- Bannerul "+100 FREE GOLD" ca SVG (font Anton, litere metalice, flacari adevarate) ---------- */
.hl-promo .hp-svg { display: block; width: min(760px, 94vw); height: auto; overflow: visible; }
.hp-svg .hp-fire { animation: hpFireFlicker 1.4s steps(1, end) infinite; transform-origin: 50% 80%; }
.hp-svg .hp-fire2 { animation-duration: 1.9s; animation-delay: -.5s; }
@keyframes hpFireFlicker {
  0% { opacity: .9; } 12% { opacity: 1; } 25% { opacity: .75; } 37% { opacity: .95; } 50% { opacity: .8; }
  62% { opacity: 1; } 75% { opacity: .7; } 87% { opacity: .92; }
}
.hl-promo:hover .hp-svg { filter: brightness(1.08) drop-shadow(0 0 18px rgba(249,115,22,.5)); }
@media (prefers-reduced-motion: reduce) { .hp-svg .hp-fire { animation: none; } }
