/* ============================================================
   CasinoWeb — "Midnight Deco" theme
   Night-navy lacquer, champagne gold leaf, Art Deco geometry.
   Cinzel (wordmark & monograms) · Kanit (Thai display) · Sarabun (body)
   ============================================================ */
:root {
  /* "Ruby Gold" — deep lacquer red, bright coin gold */
  --ink: #140406;
  --panel: #25090d;
  --panel-2: #300b12;
  --line: rgba(255, 200, 120, .22);
  --line-soft: rgba(255, 225, 200, .09);
  --gold: #FFCF4D;
  --gold-hi: #FFE59A;
  --gold-lo: #C8911F;
  --ruby: #E0233A;
  --text: #FFF3E9;
  --muted: #C99A86;
  --win: #4BD36B;
  --lose: #FF6B6B;
  --gold-leaf: linear-gradient(180deg, #FFF4CF 0%, #FFCF4D 45%, #D89A24 100%);

  --admin-bg: #120406;
  --admin-panel: #1f070b;
  --admin-panel-2: #2a0a10;
  --admin-ink: #FFF3E9;
  --admin-line: rgba(255,200,120,.16);
  --admin-line-soft: rgba(255,225,200,.07);
  --admin-muted: #B98F7F;
  --side: 248px;

  --wordmark: "Kanit", system-ui, sans-serif;
  --display: "Kanit", system-ui, sans-serif;
  --body: "Sarabun", system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --gutter: clamp(.85rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--ink);
  /* faint deco fan pattern in the lacquer */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255,207,77,.10), transparent 70%),
    repeating-radial-gradient(circle at 50% 120%, transparent 0 38px, rgba(255,207,77,.025) 38px 39px);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--gold-hi); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Announcement ---------- */
.announce {
  display: flex; align-items: center; gap: .75rem;
  padding: .3rem var(--gutter); font-size: .9rem;
  background: #0e0304; border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
}
.announce-icon { color: var(--gold); flex: none; }
.announce-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.announce-text { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; color: var(--gold-hi); }
.announce-sep { color: var(--gold); margin: 0 1.1rem; font-size: .7em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.topbar {
  display: flex; align-items: center; gap: 1.25rem;
  padding: .7rem var(--gutter);
  background: rgba(20, 4, 6, .88);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--wordmark); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em;
  text-decoration: none; white-space: nowrap;
  background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* uploaded logo image: sits inside the .brand anchor, scales to the header */
.brand-logo { display: block; height: 2.1em; width: auto; max-width: 240px; object-fit: contain; vertical-align: middle; }
.auth .brand-logo { height: 3em; margin: 0 auto; }
.footer .brand-logo { height: 2em; }
.topnav { display: flex; gap: 1.5rem; }
.topnav a { color: var(--muted); text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--gold-hi); border-bottom-color: var(--gold); }
.topbar .spacer { flex: 1; }
.user-menu { display: flex; align-items: center; gap: 1rem; }
.page { max-width: 1240px; margin: 0 auto; padding: 1.25rem var(--gutter) 5rem; }

/* balance shown as a gold coin */
.coin-balance {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .25rem .9rem .25rem .3rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-variant-numeric: tabular-nums;
}
.coin {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 35% 30%, var(--gold-hi) 0 18%, transparent 19%),
    radial-gradient(circle, var(--gold) 0 55%, var(--gold-lo) 56% 62%, var(--gold) 63% 100%);
  box-shadow: 0 0 0 1px var(--gold-lo), 0 2px 6px rgba(0,0,0,.4);
}
.coin-balance.bump .coin { animation: coin-flip .55s ease; }
@keyframes coin-flip { 50% { transform: rotateY(180deg) scale(1.15); } }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--display); font-size: 1rem; font-weight: 500;
  padding: .55rem 1.2rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent; color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--gold-leaf); border: 0; color: #2a0608; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 10px rgba(255,207,77,.25); }
.btn-gold:hover { color: #000; filter: brightness(1.06); }
.btn-ruby { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.btn-ruby:hover { color: #fff; filter: brightness(1.1); }
.btn-sm { padding: .3rem .8rem; font-size: .92rem; }
.btn-link { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.btn-link:hover { color: var(--text); }

.field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.field label { font-size: .92rem; color: var(--muted); }
.input, select.input, textarea.input {
  font: inherit; color: inherit; width: 100%;
  padding: .62rem .8rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: rgba(0,0,0,.3);
}
.input:focus { border-color: var(--gold); outline: none; }
.hint { font-size: .87rem; color: var(--muted); }
.alert { padding: .7rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; }
.alert-error { background: rgba(224,114,114,.12); border: 1px solid var(--lose); }
.alert-ok { background: rgba(95,203,149,.12); border: 1px solid var(--win); }

/* ---------- Deco frame (the signature element) ----------
   Stepped gold corners, drawn with gradients so any box can wear it. */
.deco { position: relative; border: 1px solid var(--line); }
.deco::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit;
  --c: var(--gold);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size: 22px 2px, 2px 22px, 22px 2px, 2px 22px, 22px 2px, 2px 22px, 22px 2px, 2px 22px;
  background-position: 6px 6px, 6px 6px, calc(100% - 6px) 6px, calc(100% - 6px) 6px,
                       6px calc(100% - 6px), 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) calc(100% - 6px);
}

/* ---------- Hero: banner carousel + player card ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; margin-bottom: 2rem; }
.carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; background-color: var(--panel); }
.slide {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: start;
  padding: 2.5rem clamp(1.5rem, 5vw, 3.5rem);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
  background-color: #2a0609;
  /* sunburst rising from the lower right */
  background-image:
    linear-gradient(90deg, #2a0609 35%, rgba(42,6,9,.2) 75%, transparent),
    repeating-conic-gradient(from 180deg at 88% 115%, rgba(255,207,77,.16) 0 4deg, transparent 4deg 10deg);
}
.slide.has-image { background-size: cover; background-position: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide-title {
  font-family: var(--display); font-weight: 600; line-height: 1.1;
  font-size: clamp(1.6rem, 4.2vw, 2.9rem); max-width: 17ch; margin: 0 0 .5rem;
  background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide-sub { font-size: 1.05rem; color: var(--text); max-width: 34ch; margin: 0 0 1.4rem; }
.slide-medal {
  position: absolute; right: clamp(1.5rem, 7vw, 4.5rem); top: 50%; translate: 0 -50%;
  width: clamp(110px, 16vw, 180px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 58%, var(--gold-lo) 59% 60%, transparent 61%),
    repeating-conic-gradient(var(--gold) 0 6deg, var(--gold-lo) 6deg 12deg);
  box-shadow: 0 0 0 6px #2a0609, 0 0 0 7px var(--gold), 0 20px 50px rgba(0,0,0,.55);
  display: grid; place-items: center;
}
.slide-medal span {
  width: 72%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #5a1a20, #2a0609 70%);
  font-family: var(--wordmark); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: var(--gold-hi); border: 1px solid var(--gold-lo);
}
.slide.has-image .slide-medal { display: none; }
.dots { position: absolute; left: clamp(1.5rem, 5vw, 3.5rem); bottom: 1.1rem; display: flex; gap: .45rem; z-index: 2; }
.dot { width: 26px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,230,210,.25); cursor: pointer; }
.dot[aria-current="true"] { background: var(--gold); }

.player-card {
  border-radius: var(--r-lg); background: var(--panel); padding: 1.4rem 1.3rem;
  display: grid; align-content: start; gap: .9rem;
}
.player-card .greet { color: var(--muted); margin: 0; }
.player-card .name { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.player-balance { font-family: var(--display); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.player-balance small { display: block; font-family: var(--body); font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.player-card .btn { width: 100%; }
.player-card .rule { height: 1px; background: var(--line); }

/* ---------- Categories (deco medallions) ---------- */
.cats { display: flex; gap: .9rem; overflow-x: auto; padding: .25rem .1rem 1rem; margin-bottom: 1rem; scrollbar-width: none; }
.cat {
  flex: 1 0 104px; display: grid; justify-items: center; gap: .45rem; padding: .9rem .5rem .8rem;
  border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--panel);
  color: var(--muted); font: inherit; cursor: pointer;
}
.cat-icon {
  width: 52px; height: 52px; display: grid; place-items: center; color: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--panel-2);
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-label { font-family: var(--display); font-size: .98rem; }
.cat-count { font-size: .78rem; color: var(--muted); }
.cat[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); background: linear-gradient(180deg, rgba(255,207,77,.12), var(--panel)); }
.cat[aria-pressed="true"] .cat-icon { background: var(--gold-leaf); color: #2a0608; }

/* ---------- Sections ---------- */
.section { margin-bottom: 2.25rem; }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: .7rem; }
.section-head h2::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: var(--gold); transform: rotate(45deg);
}
.section-head .grow { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); min-width: 40px; }
.section-head .input { width: 220px; }

/* providers */
.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.provider {
  display: grid; place-items: center; gap: .1rem; padding: 1rem .75rem; text-align: center;
  border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--panel);
  font: inherit; color: var(--text); cursor: pointer;
}
.provider-name { font-family: var(--wordmark); font-weight: 600; letter-spacing: .04em; font-size: 1.02rem; }
.provider-count { font-size: .8rem; color: var(--muted); }
.provider[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-hi); }

/* horizontal rail (เกมมาแรง / featured) — swipeable on touch */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 40vw, 168px);
  gap: 1rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; }

/* game tiles */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 1rem; }
.game { display: block; text-decoration: none; color: inherit; position: relative; }
.game-art {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, hsla(var(--h), 55%, 50%, .5), transparent 65%),
    linear-gradient(180deg, hsl(var(--h), 38%, 17%), #140406);
  border: 1px solid var(--line-soft);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.monogram {
  width: 58%; aspect-ratio: 1; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--gold-leaf);
}
.monogram span {
  width: calc(100% - 4px); aspect-ratio: 1; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: hsl(var(--h), 40%, 14%);
  font-family: var(--wordmark); font-weight: 700; font-size: 2.2rem; color: var(--gold-hi);
}
.game-play {
  position: absolute; inset: auto 0 0 0; padding: .6rem; display: flex; justify-content: center;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0; transition: opacity .2s;
}
.game:hover .game-play, .game:focus-visible .game-play { opacity: 1; }
.game:hover .game-art { border-color: var(--gold); }
/* touch devices never hover — keep the "เล่นเลย" call-to-action visible */
@media (hover: none) {
  .game-play { opacity: 1; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
}
.tag {
  position: absolute; top: .5rem; left: .5rem; font-size: .75rem; font-family: var(--display);
  padding: .05rem .5rem; border-radius: 4px; background: var(--ruby); color: #fff;
}
.tag-new {
  top: 2.1rem; left: .5rem; right: auto; background: var(--win); color: #06271a; font-weight: 500;
}
/* favorite heart (lobby tiles) */
.fav {
  position: absolute; top: .4rem; right: .4rem; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1rem; line-height: 1;
  border: 1px solid var(--line-soft); background: rgba(20,4,6,.55); color: rgba(255,255,255,.65);
  backdrop-filter: blur(2px); transition: color .15s, border-color .15s, transform .15s;
}
.fav:hover { color: #fff; border-color: var(--gold); transform: scale(1.08); }
.fav.on { color: var(--ruby); border-color: var(--ruby); background: rgba(176,38,63,.18); }
.game-name { font-family: var(--display); font-size: .98rem; margin-top: .5rem; line-height: 1.3; }
.game-provider { font-size: .8rem; color: var(--muted); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.empty h1 { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #0e0304; padding: 2rem var(--gutter) 6rem; color: var(--muted); font-size: .92rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer .brand { font-size: 1.25rem; display: inline-block; margin-bottom: .5rem; }
.footer h3 { color: var(--text); font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold-hi); }
.footer p { margin: 0 0 .5rem; max-width: 46ch; }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav { display: none; }

/* ---------- Auth ---------- */
.auth { max-width: 420px; margin: 6vh auto 0; padding: 2.4rem 2rem 2rem; border-radius: var(--r-lg); background: var(--panel); }
.auth .brand { display: block; text-align: center; font-size: 1.7rem; margin-bottom: 1.2rem; }
.auth h1 { font-size: 1.4rem; text-align: center; }
.auth > .hint { text-align: center; margin-top: -.3rem; }
.auth .btn { width: 100%; margin-top: .5rem; }
.auth .switch { margin-top: 1.25rem; text-align: center; color: var(--muted); }

/* ---------- Play ---------- */
.play-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.play-bar h1 { margin: 0; font-size: 1.3rem; flex: 1; }
.game-frame { width: 100%; height: min(78vh, 760px); border: 1px solid var(--line); border-radius: var(--r-md); background: #000; }

/* ---------- Demo slot ---------- */
.slot { max-width: 540px; margin: 0 auto; padding: 1.5rem 1rem; text-align: center; }
.slot h2 { font-family: var(--wordmark); color: var(--gold-hi); letter-spacing: .05em; }
.reels { display: flex; justify-content: center; gap: .75rem; margin: 1.5rem 0; padding: 1rem; border-radius: var(--r-lg); background: var(--panel); }
.reel {
  width: 110px; height: 120px; display: grid; place-items: center; font-size: 3.6rem;
  border-radius: var(--r-md); background: linear-gradient(180deg, #F7F1E1, #DCCFAE); color: #000;
  box-shadow: inset 0 -10px 18px rgba(0,0,0,.18), 0 0 0 2px var(--gold-lo);
}
.reels.spinning .reel { animation: reel-blur .12s linear infinite; }
@keyframes reel-blur { 50% { transform: translateY(4px); filter: blur(2px); } }
.slot-result { min-height: 1.8em; font-family: var(--display); font-size: 1.25rem; }
.slot-result.win { color: var(--gold-hi); }
.bet-row { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.bet-row output { min-width: 90px; font-family: var(--display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.paytable { margin: 2rem auto 0; border-collapse: collapse; color: var(--muted); }
.paytable td { padding: .2rem .8rem; }

/* ---------- Player tables / wallet ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: .55rem .6rem; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data th { font-weight: 500; color: var(--muted); font-size: .9rem; }
td.num, th.num { text-align: right; }
.pos { color: var(--win); }
.neg { color: var(--lose); }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; margin-top: 1rem; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tab { font: inherit; padding: .3rem .9rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-soft); background: transparent; color: var(--muted); }
.tab[aria-pressed="true"] { background: var(--gold-leaf); color: #2a0608; border-color: transparent; }
.wallet-top { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; margin-bottom: 2rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--panel); }
.wallet-balance { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-hi); flex: 1; }
.wallet-balance small { display: block; font-family: var(--body); font-size: .95rem; color: var(--muted); margin-top: .5rem; }

/* ============================================================
   Admin — royal-night, data first
   ============================================================ */
.adm-drawer-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; background: var(--admin-bg); color: var(--admin-ink); }
.adm-scrim { display: none; }
.admin-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
  background: linear-gradient(180deg, #1f060a, #120305); border-right: 1px solid var(--admin-line);
  padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: .1rem; scrollbar-width: thin;
}
.admin-side::-webkit-scrollbar { width: 6px; }
.admin-side::-webkit-scrollbar-thumb { background: var(--admin-line); border-radius: 3px; }
.admin-side .brand { display: flex; align-items: center; font-size: 1.25rem; margin: .2rem .4rem 1rem; }
.admin-side .navlbl { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--admin-muted); padding: .85rem .7rem .25rem; opacity: .7; }
.admin-side nav { display: grid; gap: .1rem; }
.admin-side nav a {
  display: flex; align-items: center; gap: .55rem; color: var(--admin-muted); text-decoration: none;
  padding: .5rem .7rem; border-radius: var(--r-sm); border: 1px solid transparent; font-size: .92rem;
}
.admin-side nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.admin-side nav a.active { color: var(--gold-hi); border-color: var(--admin-line); background: linear-gradient(90deg, rgba(255,207,77,.16), transparent); }
.admin-side .side-foot { margin-top: auto; padding: .9rem .6rem .2rem; border-top: 1px solid var(--admin-line-soft); font-size: .9rem; color: var(--admin-muted); display: flex; align-items: center; gap: .6rem; }
.admin-side .side-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--gold-hi); font-family: var(--wordmark); font-weight: 700; background: radial-gradient(circle at 30% 25%, #4a1016, #260810); }
.admin-wrap { min-width: 0; display: flex; flex-direction: column; }
.admin-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2rem); background: rgba(20,4,6,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--admin-line);
}
.admin-bar .burger { display: none; width: 38px; height: 38px; border-radius: 8px; place-items: center; background: var(--admin-panel-2); border: 1px solid var(--admin-line); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.admin-bar .bar-title { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--text); }
.admin-bar .sp { flex: 1; }
.admin-main { padding: clamp(1rem, 3vw, 2rem); min-width: 0; max-width: 1220px; width: 100%; }
.admin-main a { color: var(--gold-hi); }
.admin-main .btn-ruby { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.admin-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.3rem; }
.admin-head h1 { margin: 0; flex: 1; font-size: 1.5rem; }
.panel { background: var(--admin-panel); border: 1px solid var(--admin-line); border-radius: var(--r-md); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: 1rem; }
.filters .field { margin: 0; }
.filters .input { min-width: 150px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; background: none; border: 0; overflow: visible; margin-bottom: 1.3rem; }
.stat { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--admin-panel-2), var(--admin-panel)); border: 1px solid var(--admin-line); border-radius: var(--r-md); padding: 1rem 1.15rem; }
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gold-leaf); opacity: .85; }
.stat dt { font-size: .84rem; color: var(--admin-muted); }
.stat dd { margin: .3rem 0 0; font-family: var(--display); font-size: 1.6rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: .35rem; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 110px; gap: .6rem; align-items: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.bar-track { height: 14px; background: var(--ink); border: 1px solid var(--admin-line-soft); border-radius: 3px; position: relative; overflow: hidden; }
.bar-bet { position: absolute; inset: 0 auto 0 0; background: rgba(255,207,77,.4); }
.bar-win { position: absolute; inset: 0 auto 0 0; height: 50%; top: 25%; background: var(--gold); }
.legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--admin-muted); margin-bottom: .6rem; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: .3rem; vertical-align: -1px; }
.badge { display: inline-block; font-size: .78rem; padding: .08rem .55rem; border-radius: 999px; border: 1px solid var(--admin-line); color: var(--admin-muted); }
.badge-admin { background: rgba(255,207,77,.14); color: var(--gold-hi); border-color: var(--admin-line); }
.badge-banned { background: rgba(224,114,114,.12); color: var(--lose); border-color: rgba(224,114,114,.4); }
.badge-off { color: var(--admin-muted); }
.modal-back { position: fixed; inset: 0; background: rgba(10,2,3,.72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.modal { background: linear-gradient(180deg, var(--admin-panel-2), var(--admin-panel)); color: var(--admin-ink); border: 1px solid var(--admin-line); border-radius: var(--r-lg); padding: 1.4rem; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal h2, .modal h3 { color: var(--text); }
.modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.row-actions { display: flex; gap: .4rem; }
.toggle { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.banner-thumb { width: 160px; height: 60px; border-radius: 6px; background: var(--ink) center / cover; color: var(--gold-hi);
                display: grid; place-items: center; font-size: .8rem; padding: .25rem; text-align: center; overflow: hidden; border: 1px solid var(--admin-line-soft); }

/* ---------- Top-up ---------- */
.topup { display: grid; gap: 1.25rem; }
.step { border-radius: var(--r-lg); background: var(--panel); padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem); }
.step h2 { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.step-no {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: var(--gold-leaf); color: #2a0608; font-family: var(--wordmark); font-weight: 700; font-size: .95rem;
}
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem; }
.pkg {
  position: relative; display: grid; justify-items: center; gap: .25rem; text-align: center;
  padding: 1.3rem .75rem 1rem; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--line-soft); background: var(--panel-2); color: var(--text); font: inherit;
}
.pkg:hover { border-color: var(--line); }
.pkg.selected { border-color: var(--gold); background: linear-gradient(180deg, rgba(255,207,77,.14), var(--panel-2)); box-shadow: 0 0 0 1px var(--gold); }
.pkg-ribbon { position: absolute; top: .55rem; right: .55rem; font-size: .75rem; padding: .05rem .5rem; border-radius: 4px; background: var(--ruby); color: #fff; font-family: var(--display); }
.pkg-name { color: var(--muted); font-size: .92rem; }
.pkg-coins { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--display); font-size: 1.55rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.pkg-coins .coin { width: 22px; height: 22px; }
.pkg-bonus { font-size: .8rem; color: var(--win); }
.pkg-price { margin-top: .4rem; padding: .25rem .9rem; border-radius: 999px; background: rgba(0,0,0,.3); font-family: var(--display); }
.custom-amount { margin-top: 1.25rem; display: grid; gap: .35rem; }
.custom-amount label { color: var(--muted); font-size: .92rem; }
.custom-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.custom-row .input { max-width: 220px; }
.custom-result { color: var(--gold-hi); font-family: var(--display); }
.pay-amount { font-family: var(--display); font-size: 1.25rem; margin-bottom: 1rem; }
.pay-amount strong { font-size: 2.2rem; font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.pay-amount small { display: block; font-family: var(--body); font-size: .9rem; color: var(--muted); }
.pay-info { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin-bottom: .75rem; }
.pay-qr { width: 200px; height: 200px; object-fit: contain; background: #fff; border-radius: var(--r-md); padding: .5rem; }
.bank { margin: 0; display: grid; gap: .6rem; min-width: 240px; }
.bank div { display: grid; gap: .05rem; }
.bank dt { color: var(--muted); font-size: .85rem; }
.bank dd { margin: 0; font-family: var(--display); font-size: 1.15rem; }
.copyable { display: flex; align-items: center; gap: .75rem; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.slip-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem; margin-bottom: 1rem; border: 1px dashed var(--line); border-radius: var(--r-md); }
.slip-drop img { max-height: 220px; max-width: 160px; border-radius: var(--r-sm); object-fit: contain; background: #000; }
.slip-drop label.btn { cursor: pointer; }
.terms { display: flex; align-items: flex-start; margin: .5rem 0 1rem; color: var(--muted); font-size: .9rem; max-width: 70ch; }
.terms input { margin-top: .3rem; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1.08rem; }
.status { display: inline-block; font-size: .82rem; padding: .05rem .6rem; border-radius: 999px; border: 1px solid currentColor; }
.st-pending { color: var(--gold-hi); }
.st-approved { color: var(--win); }
.st-rejected { color: var(--lose); }
.st-cancelled { color: var(--muted); }

/* admin top-up queue */
.slip-thumb { width: 64px; height: 84px; object-fit: cover; border-radius: 4px; background: var(--admin-panel-2); cursor: zoom-in; border: 1px solid var(--admin-line); }
.slip-full { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto 1rem; border-radius: 6px; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.review dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .95rem; }
.review dt { color: var(--admin-muted); }
.review dd { margin: 0; font-variant-numeric: tabular-nums; }
.flag { color: var(--lose); font-size: .85rem; }
.count-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: .4rem;
             border-radius: 999px; background: var(--ruby); color: #fff; font-size: .75rem; }
@media (max-width: 760px) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-coins { font-size: 1.25rem; }
  .pay-qr { width: 160px; height: 160px; }
  .review { grid-template-columns: 1fr; }
  .mobile-nav .center .ico { font-family: var(--display); font-size: 1.9rem; font-weight: 500; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .player-card { grid-template-columns: 1fr auto; align-items: center; }
  .player-card .rule, .player-card .greet { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topnav, .user-menu .btn-link { display: none; }
  .topbar { gap: .75rem; }
  .carousel { min-height: 230px; }
  .slide { padding: 1.5rem 1.25rem 2.5rem; }
  .slide-medal { opacity: .35; right: -10px; }
  .dots { left: 1.25rem; }
  .player-card { grid-template-columns: 1fr auto; gap: .6rem 1rem; padding: 1rem 1.1rem; }
  .player-card .name, .player-card .history { display: none; }
  .player-card .player-balance { font-size: 1.6rem; }
  .player-card .btn { width: auto; }
  .cat { flex: 0 0 86px; padding: .7rem .3rem .6rem; }
  .cat-icon { width: 42px; height: 42px; }
  .section-head .input { width: 100%; }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  .rail { grid-auto-columns: 44vw; gap: .65rem; }
  .game-name { font-size: .88rem; }
  .monogram span { font-size: 1.5rem; }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel { width: 84px; height: 96px; font-size: 2.8rem; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; width: 264px; height: 100vh; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .adm-drawer-cb:checked ~ .admin .admin-side { transform: none; }
  .adm-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .adm-drawer-cb:checked ~ .admin .adm-scrim { opacity: 1; pointer-events: auto; }
  .admin-bar .burger { display: grid; }
  .admin-main { padding: 1rem; }
  .bar-row { grid-template-columns: 70px 1fr 80px; }

  .mobile-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .4rem .25rem calc(.4rem + env(safe-area-inset-bottom));
    background: rgba(14,3,4,.96); border-top: 1px solid var(--line);
  }
  .mobile-nav a { display: grid; justify-items: center; gap: .1rem; color: var(--muted); text-decoration: none; font-size: .78rem; }
  .mobile-nav a.active { color: var(--gold-hi); }
  .mobile-nav .ico { font-size: 1.2rem; line-height: 1; }
  .mobile-nav .center .ico {
    width: 54px; height: 54px; margin-top: -26px; display: grid; place-items: center; border-radius: 50%;
    background: var(--gold-leaf); color: #2a0608; font-size: 1.5rem;
    box-shadow: 0 0 0 4px var(--ink), 0 6px 18px rgba(255,207,77,.35);
  }
  .mobile-nav .center { color: var(--gold-hi); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .announce-text { padding-left: 0; }
}

/* Blazor error toast */
#blazor-error-ui {
  display: none; position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  padding: .8rem 1.2rem; border-radius: var(--r-md); background: var(--ruby); color: #fff; z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 2rem);
}
#blazor-error-ui .reload { color: #fff; text-decoration: underline; margin: 0 .5rem; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: .5rem; opacity: .8; }

/* Connection-lost overlay (states set by Blazor on #components-reconnect-modal) */
.reconnect-modal { display: none; position: fixed; inset: 0; z-index: 200; place-items: center;
  background: rgba(14, 3, 4, .72); backdrop-filter: blur(3px); padding: 1rem; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: grid; }
.reconnect-box {
  background: var(--panel); border-radius: var(--r-lg); padding: 2rem 2.25rem; text-align: center;
  max-width: 360px; color: var(--text); font-family: var(--display);
}
.reconnect-box p { margin: 0; line-height: 1.7; }
.reconnect-box .btn { margin-top: 1rem; }
.reconnect-retry, .reconnect-failed, .reconnect-rejected { display: none; }
.components-reconnect-show .reconnect-retry { display: block; }
.components-reconnect-failed .reconnect-failed { display: block; }
.components-reconnect-rejected .reconnect-rejected { display: block; }
.reconnect-spinner { display: none; width: 42px; height: 42px; margin: 0 auto 1rem;
  border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: reconnect-spin 1s linear infinite; }
.components-reconnect-show .reconnect-spinner { display: block; }
@keyframes reconnect-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reconnect-spinner { animation: none; } }

.more { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------- Replay popup ---------- */
.replay-modal {
  background: var(--panel); border-radius: var(--r-lg); overflow: hidden;
  width: min(900px, 100%); height: min(80vh, 720px); display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.replay-bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-family: var(--display); color: var(--gold-hi); }
.replay-bar .grow { flex: 1; }
.replay-frame { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 760px) {
  .replay-modal { width: 100%; height: 88vh; }
}

/* ---------- Redeem (free-credit code) page ---------- */
.redeem { max-width: 520px; margin: 4vh auto 0; }
.redeem-card { background: var(--panel); border-radius: var(--r-lg); padding: 2.4rem 2rem 2rem; text-align: center; position: relative; overflow: hidden; }
.redeem-card h1 { font-size: 1.5rem; margin: .4rem 0 .3rem; }
.redeem-medal { width: 64px; height: 64px; margin: 0 auto .6rem; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--gold-leaf); }
.redeem-medal span { font-size: 1.8rem; color: #2a0608; line-height: 1; }
.redeem-form { display: flex; gap: .6rem; margin: 1.4rem 0 .6rem; }
.redeem-form .code-input { flex: 1; text-align: center; letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--display); font-size: 1.15rem; }
.redeem-card .switch { color: var(--muted); margin-top: 1rem; }
@media (max-width: 760px) {
  .redeem-form { flex-direction: column; }
  .redeem-form .btn { width: 100%; }
}

/* ---------- Turnover progress (wallet) ---------- */
.wallet-turnover { background: var(--panel); border-radius: var(--r-md); padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.wallet-turnover p { margin: 0 0 .6rem; }
.wallet-turnover .turnover-ok { color: var(--gold-hi); margin: 0; }
.turnover-bar { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.turnover-bar > span { display: block; height: 100%; background: var(--gold-leaf); transition: width .4s ease; }

/* ---------- Lucky wheel ---------- */
.wheel-wrap { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2rem; align-items: center; margin-top: 1rem; }
.wheel-stage { position: relative; width: min(440px, 90vw); aspect-ratio: 1; margin: 0 auto; }
.wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 8px solid var(--gold-leaf); box-shadow: 0 0 0 4px var(--panel), 0 18px 50px rgba(0,0,0,.5);
  transition: transform 4s cubic-bezier(.16,1,.3,1);
}
.wheel-hub {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-leaf); color: #2a0608;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 0 0 5px var(--panel); pointer-events: none;
}
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent;
  border-top: 26px solid var(--gold-hi); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5));
}
.wheel-side { display: grid; gap: 1rem; align-content: start; }
.wheel-points { background: var(--panel); border-radius: var(--r-md); padding: 1rem 1.2rem; text-align: center; }
.wheel-points .pts { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--gold-hi); line-height: 1; }
.wheel-points small { color: var(--muted); }
.wheel-spin { width: 100%; font-size: 1.05rem; padding: .8rem; }
.wheel-legend { display: grid; gap: .35rem; font-size: .9rem; }
.wheel-legend .leg { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.wheel-legend .sw { width: 14px; height: 14px; border-radius: 3px; flex: none; }
@media (max-width: 760px) {
  .wheel-wrap { grid-template-columns: 1fr; }
  .wheel-legend { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wheel { transition: transform .6s ease; } }

/* ---------- Leaderboard ---------- */
.board { display: grid; gap: .5rem; max-width: 640px; margin-top: 1rem; }
.board-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 1rem;
  padding: .7rem 1rem; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-soft); }
.board-row.me { border-color: var(--gold); background: linear-gradient(180deg, rgba(255,207,77,.12), var(--panel)); }
.board-row .rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); color: var(--muted); font-family: var(--display); font-weight: 700; }
.board-row.top .rank-1 { background: var(--gold-leaf); color: #2a0608; }
.board-row.top .rank-2 { background: #C7CCD6; color: #2a0608; }
.board-row.top .rank-3 { background: #CD7F32; color: #2a0608; }
.board-row .who { font-family: var(--display); }
.board-row .amt { font-variant-numeric: tabular-nums; color: var(--gold-hi); font-family: var(--display); }

/* ---------- VIP (account) ---------- */
.vip-now { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.vip-badge { display: inline-block; padding: .25rem .9rem; border-radius: 999px; color: #2a0608;
  font-family: var(--display); font-weight: 700; letter-spacing: .03em; }
.vip-tiers { display: grid; gap: .4rem; margin-top: 1rem; }
.vip-tier { display: grid; grid-template-columns: 16px 90px auto 1fr; align-items: center; gap: .6rem;
  padding: .45rem .7rem; border-radius: var(--r-md); border: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); }
.vip-tier.on { border-color: var(--gold); color: var(--text); background: linear-gradient(180deg, rgba(255,207,77,.1), transparent); }
.vip-tier .dot { width: 14px; height: 14px; border-radius: 50%; }
.vip-tier .nm { font-family: var(--display); color: var(--text); }
.vip-tier .req { font-variant-numeric: tabular-nums; }
.vip-tier .perk { text-align: right; font-size: .82rem; }
@media (max-width: 760px) {
  .vip-tier { grid-template-columns: 14px 1fr auto; }
  .vip-tier .perk { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Missions / check-in ---------- */
.checkin { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.mission { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.mission.done { opacity: .7; }
.mission-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.mission-name { font-family: var(--display); }
.mission-reward { color: var(--gold-hi); font-family: var(--display); font-variant-numeric: tabular-nums; }
.mission-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; }

/* ============================================================
   Cinematic hero (B2 Showcase) — full-bleed spotlight + switcher
   ============================================================ */
.cine {
  position: relative;
  margin: -1.25rem calc(-1 * var(--gutter)) 1.5rem;
  min-height: clamp(340px, 50vw, 460px);
  display: flex; align-items: flex-end; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.cine-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.cine-welcome .cine-bg {
  background-image:
    radial-gradient(60% 80% at 72% 38%, rgba(255,207,77,.5), transparent 62%),
    linear-gradient(120deg, #3a0a10, var(--ink));
}
.cine::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,4,6,.94), rgba(20,4,6,.55) 45%, transparent 80%),
    linear-gradient(0deg, rgba(20,4,6,.96), transparent 55%);
}
.cine-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  padding: 2.4rem var(--gutter) 1.6rem;
}
.cine-l { flex: 1; min-width: min(100%, 280px); display: flex; flex-direction: column; gap: .55rem; }
.cine-rank { font-size: .8rem; color: var(--gold-hi); letter-spacing: .14em; text-transform: uppercase; }
.cine-title {
  font-family: var(--wordmark); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1; color: #fff; margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.cine-desc { margin: 0; color: #f3d9c8; max-width: 44ch; }
.cine-cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.cine-thumbs { display: flex; gap: .55rem; }
.cine-thumb {
  width: 58px; height: 78px; border-radius: 10px; flex: none; padding: 0;
  border: 1px solid var(--line); cursor: pointer; overflow: hidden;
  display: grid; place-items: center;
  background-size: cover; background-position: center;
  transition: border-color .2s, transform .15s;
}
.cine-thumb:hover, .cine-thumb.on { border-color: var(--gold-hi); transform: translateY(-2px); }
.cine-thumb b { font-family: var(--wordmark); color: var(--gold-hi); font-size: 1.3rem; }
@media (max-width: 620px) {
  .cine-thumb { width: 48px; height: 64px; }
}

/* quick actions bar */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0 0 1.5rem; }
.quick-i {
  display: flex; align-items: center; gap: .7rem; text-align: left;
  padding: .9rem 1rem; border-radius: var(--r-md); font: inherit; cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(255,207,77,.10), rgba(18,24,41,.55));
  color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.quick-i:hover { border-color: var(--gold); transform: translateY(-2px); }
.quick-i:disabled { opacity: .55; cursor: default; transform: none; }
.quick-i .qe { font-size: 1.7rem; flex: none; line-height: 1; }
.quick-i .qt { display: flex; flex-direction: column; }
.quick-i b { font-family: var(--display); font-weight: 500; }
.quick-i small { color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .quick { grid-template-columns: 1fr; } }

/* promo rail (admin banners) */
.promo-rail {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.promo-rail::-webkit-scrollbar { display: none; }
.promo-card {
  position: relative; flex: none; scroll-snap-align: start;
  min-width: min(80vw, 330px); height: 152px; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  background-size: cover; background-position: center;
  text-decoration: none; color: var(--text);
}
.promo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,4,6,.92), rgba(20,4,6,.35) 70%, transparent);
}
.promo-body {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 1.1rem 1.2rem;
}
.promo-body h3 { margin: 0; font-family: var(--display); }
.promo-body p { margin: 0; font-size: .85rem; color: #f3d9c8; }
.promo-body .btn { align-self: flex-start; margin-top: .3rem; }

/* ---------- Provider brand cards + provider page ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: .55rem; text-align: center;
  padding: 1.3rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); color: var(--text);
  text-decoration: none; transition: border-color .2s, transform .15s;
}
.brand-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.brand-logo-box {
  width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #4a1016, #260810); border: 1px solid var(--line-soft);
}
.brand-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.brand-logo-box .mono { font-family: var(--wordmark); font-weight: 700; font-size: 2rem;
  background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-card .bn { font-family: var(--display); }
.brand-card .bc { font-size: .8rem; color: var(--muted); }
.prov-hero {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 0 1rem;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 1.5rem;
}
.prov-hero .brand-logo-box { width: 72px; height: 72px; flex: none; }
.prov-hero h1 { margin: 0; font-family: var(--display); }
.prov-hero .pc { color: var(--muted); font-size: .9rem; }
@media (max-width: 620px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  .brand-card { padding: .9rem .5rem; }
  .brand-logo-box { width: 64px; height: 64px; }
}

/* ---------- Refer-a-friend (/invite) ---------- */
.invite-card { border-radius: var(--r-lg); padding: 1.5rem clamp(1.1rem,3vw,1.75rem); background: var(--panel); }
.invite-lead { margin: 0 0 1.2rem; color: var(--text); max-width: 60ch; }
.invite-lead b { color: var(--gold-hi); }
.invite-link { display: flex; gap: .6rem; margin: .3rem 0 .6rem; flex-wrap: wrap; }
.invite-link .input { flex: 1; min-width: 200px; font-variant-numeric: tabular-nums; }
.invite-link .btn { flex: none; }
.invite-code { color: var(--gold-hi); letter-spacing: .12em; font-family: var(--display); }
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.inv-stat { text-align: center; padding: 1rem .5rem; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--panel-2); }
.inv-stat b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.inv-stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Notification bell ---------- */
.bell-wrap { position: relative; display: inline-flex; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 1.05rem;
  display: grid; place-items: center; transition: border-color .2s; }
.bell:hover { border-color: var(--gold); }
.bell-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--ruby); color: #fff; font-size: .68rem; font-family: var(--display);
  display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--ink); }
.bell-bg { position: fixed; inset: 0; z-index: 40; }
.bell-panel { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 41; width: min(360px, 92vw);
  max-height: 70vh; overflow-y: auto; border-radius: var(--r-md); border: 1px solid var(--line-2, var(--line));
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.bell-head { padding: .8rem 1rem; font-family: var(--display); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0;
  background: var(--panel-2); }
.bell-empty { padding: 1.5rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.bell-item { display: grid; gap: .15rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--text); }
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: rgba(255,255,255,.03); }
.bell-item b { font-family: var(--display); font-weight: 500; }
.bell-item .bell-body { font-size: .88rem; color: #f3d9c8; }
.bell-item time { font-size: .76rem; color: var(--muted); }
@media (max-width: 760px) {
  .bell-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-height: 75vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ---------- Tournaments ---------- */
.tour-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 1.25rem clamp(1rem,3vw,1.5rem); margin-bottom: 1.25rem; }
.tour-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tour-head h2 { margin: 0; font-family: var(--display); }
.tour-head > div:first-child { flex: 1; min-width: 0; }
.tour-badge { flex: none; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line-soft); font-family: var(--display); }
.tb-active { color: var(--win); border-color: rgba(95,203,149,.4); background: rgba(95,203,149,.1); }
.tb-upcoming { color: var(--gold-hi); border-color: var(--line); background: rgba(255,207,77,.1); }
.tb-ended { color: var(--amber, #E0B35F); border-color: rgba(224,179,95,.4); background: rgba(224,179,95,.08); }
.tb-settled { color: var(--muted); }
.tour-prizes { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tour-prize { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .4rem; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--panel-2); font-variant-numeric: tabular-nums; }
.tour-prize b { font-family: var(--display); color: var(--gold-hi); }
.tour-prize .rank { width: 24px; height: 24px; font-size: .8rem; }

/* round tags in game history */
.rtag { display: inline-block; margin-left: .4rem; font-size: .68rem; padding: .05rem .45rem; border-radius: 5px; vertical-align: middle; font-family: var(--display); }
.rtag-fs { color: #06271a; background: var(--win); }
.rtag-bf { color: #1b1408; background: var(--gold-leaf); }

/* ---------- Announcement popup (gold frame) ---------- */
.pop-ov {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(60% 50% at 50% 45%, rgba(255,170,60,.16), transparent 70%), rgba(8,2,3,.78);
  backdrop-filter: blur(6px); animation: pop-fade .25s ease;
}
.pop {
  position: relative; width: min(440px, 100%); max-height: 92vh; overflow: auto; scrollbar-width: none;
  border-radius: 22px; border: 2px solid transparent;
  background: linear-gradient(180deg, #34090f, #1a0507) padding-box, linear-gradient(160deg, #fff4cf, #ffcf4d 30%, #9a6a14 55%, #ffcf4d 80%, #fff4cf) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 40px rgba(255,190,70,.35), 0 30px 80px rgba(0,0,0,.65);
  animation: pop-in .38s cubic-bezier(.2,1.3,.4,1);
}
.pop::-webkit-scrollbar { display: none; }
.pop-media { background: #000; border-radius: 20px 20px 0 0; overflow: hidden; line-height: 0; }
.pop-img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; margin: 0 auto; }
.pop-imgonly .pop-media { border-bottom: 1px solid rgba(255,207,77,.25); }
.pop-x {
  position: absolute; top: .65rem; right: .65rem; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: rgba(20,4,6,.75); border: 1.5px solid rgba(255,207,77,.7); color: var(--gold-hi);
  box-shadow: 0 4px 14px rgba(0,0,0,.5); backdrop-filter: blur(4px); transition: transform .15s, background .15s;
}
.pop-x:hover { transform: rotate(90deg); background: rgba(60,10,16,.9); }
.pop-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.pop-body { padding: 1.1rem 1.25rem 1.1rem; text-align: center; }
.pop-imgonly .pop-body { padding-top: 1rem; }
.pop-body h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.25; margin: 0 0 .45rem;
  background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pop-body p { margin: 0 0 1rem; color: #f3d9c8; white-space: pre-line; font-size: .95rem; }
.pop-actions { display: flex; gap: .6rem; }
.pop-cta, .pop-close {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  border-radius: 12px; font-family: var(--display); font-size: 1rem; text-decoration: none; cursor: pointer;
}
.pop-cta {
  border: 0; font-weight: 700; color: #2a0608; background: var(--gold-leaf);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 20px rgba(255,180,50,.4);
  animation: pop-pulse 2.4s ease-in-out .6s infinite;
}
.pop-cta:hover { filter: brightness(1.07); color: #000; }
.pop-close { flex: .7; background: transparent; border: 1px solid rgba(255,207,77,.35); color: var(--muted); }
.pop-close:hover { color: var(--text); border-color: var(--gold); }
.pop-dismiss {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .85rem;
  font-size: .85rem; color: var(--muted); cursor: pointer; user-select: none;
}
.pop-dismiss input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pop-dismiss .box {
  width: 18px; height: 18px; border-radius: 5px; flex: none; display: grid; place-items: center;
  border: 1.5px solid rgba(255,207,77,.6); background: rgba(0,0,0,.3); transition: background .15s;
}
.pop-dismiss input:checked + .box { background: var(--gold-leaf); border-color: transparent; }
.pop-dismiss input:checked + .box::after { content: ""; width: 9px; height: 5px; border: 2px solid #2a0608; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.pop-dismiss input:focus-visible + .box { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes pop-pulse { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 20px rgba(255,180,50,.4); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 30px rgba(255,200,80,.75); } }
@media (max-width: 480px) {
  .pop { border-radius: 18px; }
  .pop-media { border-radius: 16px 16px 0 0; }
  .pop-img { max-height: 58vh; }
}

/* banner slider wrapper (full-width promo carousel at the top) */
.hero-slider { margin-bottom: 1.75rem; }
.hero-slider .carousel { min-height: clamp(220px, 34vw, 340px); }

/* ============================================================
   Ruby Gold lobby (2026-10) — feature cards, 3D categories,
   gold-framed game cards, app-style dock, admin tabs
   ============================================================ */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 50% -12%, rgba(255,80,60,.24), transparent 60%),
    radial-gradient(700px 400px at 92% 18%, rgba(255,180,60,.10), transparent 55%),
    linear-gradient(180deg, #1c0609, var(--ink) 40%);
}
.art-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

/* header */
.topbar {
  background: linear-gradient(180deg, rgba(48,9,14,.97), rgba(22,4,7,.94));
  border-bottom: 1px solid rgba(255,207,77,.34);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.topnav { gap: 1.1rem; align-items: center; flex-wrap: nowrap; }
.topnav a { white-space: nowrap; font-family: var(--display); font-size: .95rem; }
.more-menu { position: relative; }
.more-menu summary {
  list-style: none; cursor: pointer; color: var(--muted); font-family: var(--display); font-size: .95rem;
  padding: .25rem .1rem; white-space: nowrap;
}
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary::after { content: " ▾"; font-size: .75em; }
.more-menu[open] summary, .more-menu summary:hover { color: var(--gold-hi); }
.more-list {
  position: absolute; top: calc(100% + .6rem); left: -.6rem; z-index: 30; min-width: 190px;
  display: grid; padding: .4rem; border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.more-list a { padding: .5rem .7rem; border-radius: var(--r-sm); border: 0 !important; }
.more-list a:hover, .more-list a.active { background: rgba(255,207,77,.1); color: var(--gold-hi); }
.auth-btn { gap: .4rem; }
.auth-btn svg.ic { width: 1.05em; height: 1.05em; }
.auth-reg { background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--gold-hi); border-color: var(--line); }
.logout-btn { display: inline-flex; align-items: center; gap: .35rem; }

/* announcement ticker */
.announce { background: rgba(10,2,3,.7); border-bottom: 1px solid var(--line-soft); }
.announce-tag {
  flex: none; display: inline-flex; align-items: center; gap: .35rem; color: var(--gold);
  font-family: var(--display); font-size: .82rem; padding-right: .7rem; border-right: 1px solid var(--line);
}

/* banner slider in red-gold */
.carousel { border: 1px solid var(--line); }
.slide { background-color: #2a0609; }

/* --- feature cards + 3D categories --- */
.lobby-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; margin: 0 0 1.6rem; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.feat {
  position: relative; overflow: hidden; display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: .4rem .45rem .7rem; border-radius: 14px; text-decoration: none; color: #fff;
  border: 1.5px solid rgba(255,255,255,.14); transform: skewX(-6deg);
  transition: transform .2s, box-shadow .2s;
}
.feat > * { transform: skewX(6deg); }
button.feat { font: inherit; cursor: pointer; width: 100%; }
.feat::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px);
}
.feat:hover { transform: skewX(-6deg) translateY(-3px); }
.feat-art { position: relative; width: 100%; height: clamp(86px, 9.5vw, 128px); display: block; transition: transform .25s; }
.feat-art svg { width: 100%; height: 100%; overflow: visible; display: block; }
.feat:hover .feat-art { transform: skewX(6deg) scale(1.06); }
.feat b {
  position: relative; font-family: var(--display); font-weight: 700; line-height: 1.1;
  font-size: clamp(1rem, 1.7vw, 1.3rem); text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.5);
}
.f-new { background: radial-gradient(80% 70% at 50% 38%, rgba(255,140,140,.5), transparent 70%), linear-gradient(160deg, #e3253a, #5c0710); }
.f-hot { background: radial-gradient(80% 70% at 50% 38%, rgba(210,140,255,.5), transparent 70%), linear-gradient(160deg, #7b2ff7, #2a0a5e); }
.f-fav { background: radial-gradient(80% 70% at 50% 38%, rgba(110,180,255,.5), transparent 70%), linear-gradient(160deg, #1e6fff, #0a1f5e); }
.feat.on { border-color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 26px rgba(190,120,255,.6); }

.cat3d { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; align-content: stretch; }
.c3 {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: .55rem .3rem .5rem; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text);
  background: linear-gradient(180deg, #3a0d15, var(--panel)); border: 1px solid var(--line-soft);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.c3:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.c3[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(255,207,77,.18), var(--panel)); box-shadow: 0 0 16px rgba(255,207,77,.25); }
.c3-ico { width: 46px; height: 46px; display: block; transition: transform .2s; }
.c3-ico svg { width: 100%; height: 100%; display: block; }
.c3:hover .c3-ico { transform: scale(1.1); }
.c3-txt { display: grid; justify-items: center; line-height: 1.2; }
.c3-txt b { font-family: var(--display); font-weight: 500; font-size: .95rem; }
.c3-txt small { font-size: .72rem; color: var(--muted); }

/* quick actions with 3D icons */
.quick { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quick-i { background: linear-gradient(110deg, rgba(255,207,77,.10), rgba(37,9,13,.7)); }
.quick-i .qe { width: 42px; height: 42px; display: block; flex: none; }
.quick-i .qe svg { width: 100%; height: 100%; display: block; }

/* section heads: gold bar + count */
.section-head h2::before { width: 4px; height: 1.15em; transform: none; border-radius: 2px; background: var(--gold-leaf); }
.section-head h2 .cnt { font-size: .82em; color: var(--muted); font-weight: 400; }
#fav, #hot, #new, #games { scroll-margin-top: 84px; }

/* game cards: gold frame, flame for featured, room above for the flame */
.rail { padding-top: .95rem; }
.game-grid { padding-top: .6rem; row-gap: 1.35rem; }
.game-art {
  border: 1.5px solid rgba(255,207,77,.55);
  box-shadow: inset 0 -24px 36px rgba(0,0,0,.35), 0 8px 22px rgba(0,0,0,.45);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game:hover .game-art { border-color: var(--gold-hi); transform: translateY(-4px); box-shadow: 0 0 20px rgba(255,200,80,.5), 0 14px 30px rgba(0,0,0,.6); }
.game.hot .game-art { border-color: var(--gold); }
.game-fire {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(255,120,0,.85)); pointer-events: none;
}
.tag-new { top: .45rem; left: .45rem; background: var(--gold-leaf); color: #2a0608; font-weight: 700; letter-spacing: .03em; }
.monogram { background: var(--gold-leaf); }
.game-name { text-align: center; }
.game-provider { text-align: center; }

/* app-style dock (mobile) */
.mobile-nav svg.ic { width: 1.45rem; height: 1.45rem; }

/* --- admin: icon sidebar + tabs --- */
.admin-side nav a svg.ic { width: 1.1rem; height: 1.1rem; opacity: .85; }
.admin-side nav a.active svg.ic { opacity: 1; color: var(--gold); }
.admin-side nav a .count-dot { margin-left: auto; }
.admin-bar { background: rgba(20,4,6,.9); }
.atabs {
  display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 1.1rem;
  padding: .3rem; border-radius: var(--r-md); background: var(--admin-panel); border: 1px solid var(--admin-line);
  position: sticky; top: 62px; z-index: 15;
}
.atabs::-webkit-scrollbar { display: none; }
.atab {
  flex: none; font: inherit; font-family: var(--display); font-size: .92rem; white-space: nowrap; cursor: pointer;
  padding: .45rem 1rem; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--admin-muted);
}
.atab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.atab.on { background: var(--gold-leaf); color: #2a0608; font-weight: 600; }

@media (max-width: 1100px) {
  .lobby-top { grid-template-columns: 1fr; }
  .cat3d { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
.more-list .nav-dup { display: none; }
@media (max-width: 1180px) {
  .logout-btn span { display: none; }
}
@media (max-width: 1040px) {
  .topnav .nav-wide { display: none; }
  .more-list .nav-dup { display: block; }
}
@media (max-width: 760px) {
  .user-menu .logout-btn { display: inline-flex; width: 36px; height: 36px; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); }
  .user-menu .logout-btn span { display: none; }
  .auth-btn { padding: .35rem .7rem; font-size: .85rem; }
  .feats { gap: .5rem; }
  .feat-art { height: 78px; }
  .feat b { font-size: .88rem; }
  .cat3d { display: flex; overflow-x: auto; gap: .5rem; padding: .1rem .1rem .3rem; scrollbar-width: none; }
  .cat3d::-webkit-scrollbar { display: none; }
  .c3 { flex: none; flex-direction: row; gap: .5rem; padding: .35rem .85rem .35rem .4rem; border-radius: 12px; transform: skewX(-6deg); }
  .c3 > * { transform: skewX(6deg); }
  .c3:hover { transform: skewX(-6deg); }
  .c3-ico { width: 38px; height: 38px; }
  .c3-txt small { display: none; }
  .c3-txt b { font-size: .88rem; white-space: nowrap; }
  /* quick actions: one swipeable row of small cards instead of a tall stack */
  .quick { display: flex; overflow-x: auto; gap: .5rem; scrollbar-width: none; margin-bottom: 1.2rem; }
  .quick::-webkit-scrollbar { display: none; }
  .quick-i { flex: none; width: 92px; flex-direction: column; text-align: center; gap: .3rem; padding: .6rem .35rem; }
  .quick-i .qe { width: 40px; height: 40px; }
  .quick-i .qt { align-items: center; }
  .quick-i b { font-size: .78rem; line-height: 1.2; }
  .quick-i small { display: none; }
  .rail { grid-auto-columns: 30vw; gap: .6rem; }
  .atabs { top: 58px; }

  .mobile-nav {
    background: linear-gradient(180deg, rgba(20,4,6,.6), #120305 55%); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,207,77,.3);
  }
  .mobile-nav a { font-size: .7rem; gap: .2rem; }
  .mobile-nav a.active { color: var(--gold); }
  .mobile-nav .center { color: var(--gold); }
  .mobile-nav .dock-btn {
    width: 54px; height: 54px; margin-top: -24px; border-radius: 16px; display: grid; place-items: center;
    background: var(--gold-leaf); color: #2a0608;
    box-shadow: 0 0 0 4px var(--ink), 0 8px 22px rgba(255,180,50,.5);
  }
  .mobile-nav .dock-btn svg.ic { width: 1.7rem; height: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feat, .feat:hover, .c3:hover, .game:hover .game-art { transform: none; }
  .feat:hover .feat-art, .c3:hover .c3-ico { transform: none; }
}
@media (max-width: 480px) {
  .topbar { gap: .45rem; padding-left: .7rem; padding-right: .7rem; }
  .topbar .brand { font-size: 1.12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar .brand-logo { max-width: 120px; }
  .user-menu { gap: .4rem; }
  .bell, .user-menu .logout-btn { width: 34px; height: 34px; }
  .coin-balance { padding: .2rem .6rem .2rem .25rem; font-size: .9rem; gap: .35rem; }
  .coin-balance .coin { width: 22px; height: 22px; }
  .auth-btn { padding: .32rem .55rem; font-size: .8rem; }
  .auth-btn svg.ic { display: none; }
}

/* admin tab panes kept in the DOM (Settings) — only the active one shows */
.tabpane[hidden] { display: none !important; }

/* ---------- Numbered pages for game lists ---------- */
.pnav { display: flex; justify-content: center; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: 1.8rem; }
.pn {
  min-width: 42px; height: 42px; padding: 0 .7rem; border-radius: 12px; cursor: pointer;
  font-family: var(--display); font-size: .98rem; font-variant-numeric: tabular-nums; color: var(--text);
  background: linear-gradient(180deg, #3a0d15, var(--panel)); border: 1px solid var(--line-soft);
  transition: border-color .15s, transform .15s, color .15s;
}
.pn:hover:not(:disabled):not(.on) { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.pn.on {
  background: var(--gold-leaf); color: #2a0608; font-weight: 700; border-color: transparent; cursor: default;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(255,180,50,.4);
}
.pn-arrow { font-size: 1.35rem; line-height: 1; color: var(--gold); }
.pn:disabled:not(.on) { opacity: .35; cursor: default; }
.pn-gap { color: var(--muted); padding: 0 .15rem; letter-spacing: .1em; }
.pn-info { text-align: center; color: var(--muted); font-size: .85rem; margin: .7rem 0 0; }
@media (max-width: 480px) {
  .pnav { gap: .25rem; flex-wrap: nowrap; }
  .pn { min-width: 32px; height: 38px; padding: 0 .4rem; font-size: .88rem; border-radius: 10px; }
  .pn-gap { padding: 0; }
  .pn.far { display: none; }
}

/* ---------- Full-screen game page ---------- */
html:has(.play-full), html:has(.play-full) body { overflow: hidden; }
.play-full {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #000;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.play-top {
  flex: none; height: 46px; display: flex; align-items: center; gap: .6rem; padding: 0 .6rem;
  background: linear-gradient(180deg, #33090f, #1a0507); border-bottom: 1px solid rgba(255,207,77,.3);
}
.play-title {
  flex: 1; min-width: 0; margin: 0; text-align: center; font-family: var(--display); font-weight: 500; font-size: 1rem;
  color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.play-btn {
  flex: none; display: inline-flex; align-items: center; gap: .3rem; height: 34px; padding: 0 .75rem 0 .55rem;
  border-radius: 10px; border: 1px solid rgba(255,207,77,.45); background: rgba(0,0,0,.3);
  color: var(--gold-hi); font: inherit; font-family: var(--display); font-size: .88rem; text-decoration: none; cursor: pointer;
}
.play-btn:hover { border-color: var(--gold); background: rgba(255,207,77,.1); color: #fff; }
.play-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.play-fs .fs-off, .is-fs .play-fs .fs-on { display: none; }
.is-fs .play-fs .fs-off { display: block; }
.no-fs .play-fs { display: none; }
.play-frame { flex: 1; width: 100%; min-height: 0; border: 0; display: block; background: #000; }
.play-error { flex: 1; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }

/* phone held sideways (short screen): the bar becomes a small floating pill so the game gets every pixel */
@media (max-height: 500px) and (orientation: landscape) {
  .play-top {
    position: absolute; top: calc(6px + env(safe-area-inset-top)); left: calc(6px + env(safe-area-inset-left)); z-index: 2;
    height: auto; padding: 4px; gap: 4px; border: 1px solid rgba(255,207,77,.35); border-radius: 12px;
    background: rgba(20,4,6,.55); backdrop-filter: blur(6px); opacity: .75;
  }
  .play-top:hover, .play-top:focus-within { opacity: 1; }
  .play-title, .play-btn span { display: none; }
  .play-btn { height: 30px; padding: 0 .45rem; }
}
/* in real full screen the slim bar is enough — same compact pill on every device */
.is-fs .play-title { display: none; }

/* ---------- Admin 2FA ---------- */
.otp-input { max-width: 180px; text-align: center; letter-spacing: .3em; font-family: var(--display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.auth .otp-input { max-width: none; font-size: 1.5rem; }
.tfa-setup { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; margin-bottom: .8rem; }
.tfa-qr { width: 190px; min-height: 190px; padding: 8px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.tfa-qr svg { width: 100%; height: auto; display: block; }
.tfa-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.tfa-key { display: inline-block; margin-top: .3rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--admin-line);
  color: var(--gold-hi); font-size: 1.05rem; letter-spacing: .08em; word-break: break-all; }
@media (max-width: 640px) { .tfa-setup { grid-template-columns: 1fr; } .tfa-qr { margin: 0 auto; } }

/* ---------- Recent winners ticker ---------- */
.winfeed {
  display: flex; align-items: center; gap: .8rem; margin: -.4rem 0 1.4rem; padding: .45rem .5rem .45rem .45rem;
  border-radius: 14px; border: 1px solid rgba(255,207,77,.28);
  background: linear-gradient(90deg, rgba(255,207,77,.12), rgba(37,9,13,.75) 30%);
}
.wf-tag { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding-right: .8rem; border-right: 1px solid var(--line); }
.wf-tag b { font-family: var(--display); font-weight: 600; color: var(--gold-hi); font-size: .92rem; white-space: nowrap; }
.wf-ico { width: 30px; height: 30px; display: block; }
.wf-ico svg { width: 100%; height: 100%; display: block; }
.wf-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.wf-run { display: inline-flex; gap: 2.2rem; white-space: nowrap; animation: wf-scroll var(--wf-dur, 30s) linear infinite; }
.winfeed:hover .wf-run { animation-play-state: paused; }
.wf-item { font-size: .9rem; color: var(--soft, #e7c9b6); }
.wf-item b { font-family: var(--display); font-weight: 500; color: var(--text); }
.wf-item em { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--gold); }
.wf-game { color: var(--muted); }
@keyframes wf-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 1.1rem)); } }
@media (max-width: 620px) {
  .wf-tag b { display: none; }
  .wf-tag { padding-right: .5rem; }
  .wf-item { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { .wf-run { animation: none; } .wf-track { overflow-x: auto; } }

/* ---------- Install-as-app banner ---------- */
.pwa-cta {
  display: flex; align-items: center; gap: .75rem; margin: -.4rem 0 1.2rem; padding: .55rem .55rem .55rem .6rem;
  border-radius: 14px; border: 1px solid rgba(255,207,77,.35);
  background: linear-gradient(100deg, rgba(255,207,77,.16), rgba(48,11,18,.9) 45%);
}
.pwa-cta[hidden] { display: none; }
.pwa-ico { width: 44px; height: 44px; border-radius: 11px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.pwa-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.pwa-txt b { font-family: var(--display); font-weight: 600; color: var(--gold-hi); }
.pwa-txt small { color: var(--muted); font-size: .8rem; }
.pwa-ios .pwa-btn { display: none; }
.pwa-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.pwa-x:hover { color: var(--text); border-color: var(--gold); }

/* installed app on iPhone draws under the status bar (black-translucent): keep the header clear of it */
.topbar { padding-top: calc(.7rem + env(safe-area-inset-top)); }
.admin-bar { padding-top: calc(.7rem + env(safe-area-inset-top)); }

/* ---------- Player limits (Account) + play-time reminder ---------- */
.limits-panel .stats { margin-bottom: 1rem; }
.break-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.break-row > span { font-family: var(--display); color: var(--muted); }
.play-remind { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1rem; background: rgba(8,2,3,.72); backdrop-filter: blur(4px); }
.pr-card { width: min(340px, 100%); text-align: center; padding: 1.3rem; border-radius: 18px; border: 1.5px solid rgba(255,207,77,.6);
  background: linear-gradient(180deg, #34090f, #1a0507); box-shadow: 0 0 30px rgba(255,190,70,.3); }
.pr-card b { font-family: var(--display); font-size: 1.2rem; color: var(--gold-hi); }
.pr-card p { margin: .5rem 0 1rem; color: var(--muted); font-size: .92rem; }
.pr-actions { display: flex; gap: .6rem; }
.pr-go, .pr-stop { flex: 1; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px;
  font-family: var(--display); text-decoration: none; cursor: pointer; font-size: .95rem; }
.pr-go { border: 0; font-weight: 700; color: #2a0608; background: var(--gold-leaf); }
.pr-stop { border: 1px solid rgba(255,207,77,.4); color: var(--gold-hi); }

/* ---------- Lobby jackpot banner ---------- */
.jackpot {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 3vw, 2rem);
  margin: 0 0 1.2rem; padding: .9rem 1rem; border-radius: 18px; text-align: center;
  border: 2px solid transparent;
  background: radial-gradient(60% 120% at 50% 0, rgba(255,207,77,.28), transparent 70%) padding-box,
              linear-gradient(180deg, #4a0b12, #1e0508) padding-box,
              linear-gradient(120deg, #fff4cf, #ffcf4d 30%, #9a6a14 55%, #ffcf4d 80%, #fff4cf) border-box;
  box-shadow: 0 0 34px rgba(255,190,70,.25);
}
.jackpot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 45%, transparent 60%);
  transform: translateX(-100%); animation: jp-shine 4.5s ease-in-out infinite;
}
.jp-body { display: grid; justify-items: center; gap: .1rem; min-width: 0; }
.jp-label { font-family: var(--display); font-weight: 700; letter-spacing: .22em; font-size: .78rem; color: var(--gold); }
.jp-amount {
  font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1;
  font-size: clamp(1.8rem, 6vw, 3rem);
  background: var(--gold-leaf); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255,180,50,.35));
}
.jp-last { font-size: .82rem; color: var(--muted); }
.jp-last b { color: var(--text); font-family: var(--display); font-weight: 500; }
.jp-coin { width: clamp(46px, 9vw, 82px); flex: none; display: block; animation: jp-bob 3.2s ease-in-out infinite; }
.jp-coin svg { width: 100%; height: auto; display: block; }
.jp-coin-r { animation-delay: -1.6s; }
@keyframes jp-shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes jp-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
@media (max-width: 480px) { .jp-coin-r { display: none; } .jp-last { font-size: .76rem; } }
@media (prefers-reduced-motion: reduce) { .jackpot::after, .jp-coin { animation: none; } }

/* ---------- Staff permissions ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; margin: .4rem 0 1.1rem; }
.perm-item { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .75rem; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--admin-line-soft); background: rgba(0,0,0,.18); }
.perm-item:has(input:checked) { border-color: var(--gold); background: rgba(255,207,77,.08); }
.perm-item input { margin-top: .25rem; accent-color: var(--gold); }
.perm-item span { display: grid; gap: .1rem; }
.perm-item small { color: var(--admin-muted); font-size: .8rem; line-height: 1.4; }

/* ---------- Support chat: player widget ---------- */
.sc-fab {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--gold-leaf); color: #2a0608; box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 3px rgba(20,4,6,.6);
  transition: transform .15s;
}
.sc-fab:hover { transform: scale(1.06); }
.sc-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-fab.on { background: linear-gradient(180deg, #4a0b12, #2a0609); color: var(--gold); }
.sc-dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--ruby); color: #fff; font-size: .72rem; font-family: var(--display); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ink); }
.sc-panel {
  position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 45;
  width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  border: 1.5px solid rgba(255,207,77,.45); background: linear-gradient(180deg, #2a0810, #160406);
  box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: pop-in .25s ease;
}
.sc-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: rgba(255,207,77,.07); }
.sc-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.3); }
.sc-title { flex: 1; display: grid; line-height: 1.25; }
.sc-title b { font-family: var(--display); color: var(--gold-hi); }
.sc-title small { color: var(--muted); font-size: .76rem; }
.sc-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.sc-body, .sup-body { flex: 1; overflow-y: auto; padding: .9rem .8rem; display: flex; flex-direction: column; gap: .55rem; }
.sc-empty { margin: auto 0; text-align: center; color: var(--muted); font-size: .9rem; padding: 0 1rem; }
.sc-msg { display: grid; max-width: 82%; gap: .15rem; }
.sc-msg.me { align-self: flex-end; justify-items: end; }
.sc-msg.them { align-self: flex-start; }
.sc-bubble { padding: .5rem .75rem; border-radius: 14px; white-space: pre-wrap; word-break: break-word; font-size: .93rem; line-height: 1.45; }
.sc-msg.me .sc-bubble { background: var(--gold-leaf); color: #2a0608; border-bottom-right-radius: 4px; }
.sc-msg.them .sc-bubble { background: #3a0d15; color: var(--text); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.sc-msg small { font-size: .7rem; color: var(--muted); }
.sc-off { margin: 0; padding: .7rem .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
body:has(.modal-back) .sc-fab { display: none; }
.sc-error { margin: 0; padding: .3rem .8rem; color: var(--lose); font-size: .85rem; }
.sc-input { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line); }
.sc-input .input { flex: 1; min-width: 0; }
.sc-send { width: 44px; flex: none; border: 0; border-radius: 12px; cursor: pointer; background: var(--gold-leaf); color: #2a0608; display: grid; place-items: center; }
.sc-send:disabled { opacity: .45; cursor: default; }
.sc-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 760px) {
  .sc-fab { bottom: calc(84px + env(safe-area-inset-bottom)); width: 50px; height: 50px; right: 12px; }
  .sc-panel { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; border: 0;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); z-index: 70; }
  html:has(.sc-panel) body { overflow: hidden; }
}

/* ---------- Support chat: admin inbox ---------- */
.sup { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; height: calc(100vh - 190px); min-height: 460px; }
.sup-list, .sup-conv { min-height: 0; border-radius: var(--r-md); border: 1px solid var(--admin-line); background: var(--admin-panel); display: flex; flex-direction: column; overflow: hidden; }
.sup-list { overflow-y: auto; }
.sup-filter { display: grid; gap: .5rem; padding: .7rem; border-bottom: 1px solid var(--admin-line-soft); position: sticky; top: 0; background: var(--admin-panel); z-index: 1; }
.sup-item { display: grid; gap: .2rem; text-align: left; padding: .7rem .8rem; border: 0; border-bottom: 1px solid var(--admin-line-soft); background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.sup-item:hover { background: rgba(255,255,255,.03); }
.sup-item.on { background: linear-gradient(90deg, rgba(255,207,77,.14), transparent); }
.sup-who { display: flex; align-items: baseline; gap: .45rem; min-width: 0; }
.sup-who b { font-family: var(--display); font-weight: 500; }
.sup-who small { color: var(--admin-muted); font-size: .78rem; }
.sup-prev { color: var(--admin-muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-meta { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; color: var(--admin-muted); }
.sup-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid var(--admin-line-soft); flex-wrap: wrap; }
.sup-head .sup-who { flex: 1; }
.sup-back { display: none; }
.sup-empty { margin: auto; color: var(--admin-muted); }
@media (max-width: 860px) {
  .sup { grid-template-columns: 1fr; height: calc(100vh - 160px); }
  .sup.has-sel .sup-list, .sup:not(.has-sel) .sup-conv { display: none; }
  .sup-back { display: inline-flex; }
}

/* ---------- Limits: pending change ---------- */
.limit-pending { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .4rem 0 .8rem; padding: .55rem .8rem;
  border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .9rem; }
.limit-pending span { flex: 1; min-width: 200px; }

/* ---------- Admin: provider RTP ---------- */
.rtp-opts { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .35rem; }

/* ---------- Admin: Neo downline ---------- */
.dl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .8rem; }
.dl-key { border-color: var(--gold, #d4a640); }
.dl-secret { word-break: break-all; user-select: all; }

/* ---------- Admin: Neo reconcile / rounds ---------- */
.rc-kind { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; white-space: nowrap; }
.rc-hard { background: rgba(220, 60, 60, .18); color: #ff8a8a; }
.rc-soft { background: rgba(212, 166, 64, .16); color: var(--gold, #d4a640); }
.rc-id { font-size: .75rem; word-break: break-all; }
.neo-poys { font-size: .85rem; margin: .2rem 0; }
