/**
 * Shared private-casino chrome — one felt + gold language for all games.
 * Load AFTER game-specific CSS so tokens remap + chrome unify.
 */
:root {
  --nn-ink: #050806;
  --nn-cream: #f3ebd6;
  --nn-gold: #d4af37;
  --nn-gold-bright: #f5e6a8;
  --nn-gold-soft: #f0d78c;
  --nn-gold-dim: #8a7020;
  --nn-felt: #0b3d2c;
  --nn-felt-mid: #146347;
  --nn-felt-deep: #062419;
  --nn-panel: rgba(8, 16, 12, 0.88);
  --nn-line: rgba(212, 175, 55, 0.38);
  --nn-danger: #c41e3a;
  --nn-muted: rgba(243, 235, 214, 0.62);
  --nn-font-ui: "Noto Sans SC", "PingFang SC", sans-serif;
  --nn-font-display: "Cinzel", "Noto Serif SC", serif;
  --nn-font-cn-display: "Ma Shan Zheng", "Cinzel", cursive;

  /* Remap game tokens → same palette (no blue shells) */
  --bj-bg: var(--nn-ink);
  --bj-bg-mid: #0a1410;
  --bj-panel: #0c1612;
  --bj-text: var(--nn-cream);
  --bj-muted: var(--nn-muted);
  --bj-gold: var(--nn-gold);
  --bj-gold-soft: var(--nn-gold-soft);
  --bj-champagne: #e8d5a3;
  --bj-felt: var(--nn-felt);
  --bj-felt-mid: var(--nn-felt-mid);
  --bj-felt-dark: var(--nn-felt-deep);
  --bj-felt-deep: #042818;
  --bj-rail: rgba(212, 175, 55, 0.55);
  --bj-glow: rgba(212, 175, 55, 0.35);

  --dg-bg: #0a1210;
  --dg-bg-deep: var(--nn-ink);
  --dg-panel: #0e1814;
  --dg-panel-2: #12201a;
  --dg-blue: #0e3a2c;
  --dg-felt: var(--nn-felt);
  --dg-felt-mid: var(--nn-felt-mid);
  --dg-felt-dark: var(--nn-felt-deep);
  --dg-gold: var(--nn-gold);
  --dg-gold-bright: var(--nn-gold-bright);
  --dg-gold-soft: var(--nn-gold-soft);
  --dg-champagne: #e5b567;
  --dg-text: #ffffff;
  --dg-text-muted: var(--nn-muted);
  --dg-glow-gold: 0 0 18px rgba(212, 175, 55, 0.45);
  /* Keep baccarat spot colors (Player/Banker/Tie) */

  --felt: var(--nn-felt);
  --felt-mid: var(--nn-felt-mid);
  --felt-deep: var(--nn-felt-deep);
  --brass: var(--nn-gold);
  --brass-bright: var(--nn-gold-soft);
  --cream: var(--nn-cream);
  --ink: var(--nn-ink);
  --panel: var(--nn-panel);
  --line: var(--nn-line);
  --danger: var(--nn-danger);
  --font-ui: var(--nn-font-ui);
  --font-display: var(--nn-font-display);
}

/* ——— Unified page atmosphere (BJ / DG override blue shells) ——— */
body {
  font-family: var(--nn-font-ui);
  color: var(--nn-cream);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(180, 40, 40, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(212, 175, 55, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 45% at 10% 70%, rgba(20, 99, 71, 0.32), transparent 55%),
    linear-gradient(165deg, #050806 0%, #0a1410 45%, #071510 100%) !important;
}

.bj-ambient {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(212, 175, 55, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 45% at 0% 70%, rgba(10, 80, 50, 0.28), transparent 48%),
    radial-gradient(ellipse 45% 40% at 100% 80%, rgba(120, 40, 40, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1410 0%, #071510 40%, #050806 100%) !important;
}

.hh-atmosphere {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(18, 90, 60, 0.42), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(80, 55, 12, 0.16), transparent 50%),
    linear-gradient(180deg, #0a1210 0%, #050806 45%, #08140f 100%) !important;
}

/* ——— Unified sticky top chrome (hall + all game views) ——— */
.topbar,
.bj-top,
.dg-top,
.hh-top,
.hist-nav,
.nn-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px !important;
  margin: 0 0 12px !important;
  border-radius: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(18, 14, 8, 0.92), rgba(6, 10, 8, 0.78)),
    radial-gradient(ellipse 80% 120% at 10% 0%, rgba(212, 175, 55, 0.1), transparent 55%) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(212, 175, 55, 0.1);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nn-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.nn-top-center {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.nn-top-right,
.bj-top-right,
.dg-top-right,
.hh-top-right,
.hist-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Brand block — same crest as hall */
.nn-brand,
a.nn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px 2px 0;
  border-radius: 12px;
  text-align: left;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.nn-brand:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.nn-brand .brand-crest,
.bj-top .brand-crest,
.dg-top .brand-crest,
.hh-top .brand-crest,
.hist-nav .brand-crest {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: Cinzel, serif;
  font-size: 1.25rem;
  color: #1a1208;
  background: linear-gradient(145deg, #f0d78c, #d4af37 55%, #8a6a14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}
.nn-brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.nn-brand .brand,
.nn-brand .nn-brand-name {
  font-family: var(--nn-font-display), Cinzel, serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--nn-gold-bright);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35), 0 2px 0 #4a1508;
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
  font-weight: 700;
}
.nn-brand .brand-sub,
.nn-brand .nn-brand-sub {
  font-family: var(--nn-font-display);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: rgba(245, 230, 168, 0.55);
  white-space: nowrap;
}

.nn-game-title,
.bj-brand-main,
.hh-brand-text,
.dg-brand-main {
  font-family: var(--nn-font-display) !important;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--nn-gold-bright) !important;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.35);
}
.bj-brand,
.hh-brand,
.dg-brand {
  display: none; /* replaced by nn-game-title in center */
}

.nn-back,
.bj-back,
.dg-back,
.hh-back {
  color: var(--nn-gold-soft) !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.nn-back:hover,
.bj-back:hover,
.dg-back:hover,
.hh-back:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff !important;
}

/* Balance / user — hall gold pill + CSS coin (no emoji tofu) */
.tb-bal,
.bj-bal,
.dg-bal,
.hh-bal,
.nn-bal {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #8a7020, #d4af37 45%, #f5e6a8) !important;
  color: #1a1208 !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  white-space: nowrap;
}
.tb-bal::before,
.bj-bal::before,
.dg-bal::before,
.hh-bal::before,
.nn-bal::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 32% 28%, #fff8d6, #f0d78c 28%, #d4af37 58%, #8a6010 100%);
  box-shadow:
    inset 0 -1px 1px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(90, 60, 10, 0.35);
}
.tb-user,
.bj-user,
.dg-user,
.hh-user,
.nn-user {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(244, 240, 230, 0.9);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Text / logout / mute — shared pill buttons */
.bj-btn-text,
.dg-btn-text,
.hh-btn-text,
.nn-chrome-btn,
.tb-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  background: rgba(0, 0, 0, 0.38) !important;
  color: #f5e6a8 !important;
  font-weight: 800 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.bj-btn-text:hover,
.dg-btn-text:hover,
.hh-btn-text:hover,
.nn-chrome-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.65) !important;
  background: rgba(212, 175, 55, 0.12) !important;
}
#btnLogout.bj-btn-text,
#btnLogout.dg-btn-text,
#btnLogout.hh-btn-text,
.tb-auth--logout {
  border-color: rgba(220, 90, 90, 0.45) !important;
  color: #ffc8c8 !important;
  background: rgba(120, 30, 30, 0.28) !important;
}
#btnLogout.bj-btn-text:hover,
#btnLogout.dg-btn-text:hover,
#btnLogout.hh-btn-text:hover,
.tb-auth--logout:hover {
  border-color: rgba(240, 120, 120, 0.6) !important;
  background: rgba(140, 40, 40, 0.38) !important;
}

/* Header sound/voice toggles — pill style, hide native checkbox */
.bj-top .bj-sound-opt,
.bj-top .bj-voice-opt,
.dg-top .dg-sound-opt,
.hh-top .hh-sound-opt {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.38);
  color: #f5e6a8;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.bj-top .bj-sound-opt input,
.bj-top .bj-voice-opt input,
.dg-top .dg-sound-opt input,
.hh-top .hh-sound-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.bj-top .bj-sound-opt:has(input:checked),
.bj-top .bj-voice-opt:has(input:checked),
.dg-top .dg-sound-opt:has(input:checked),
.hh-top .hh-sound-opt:has(input:checked) {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.18);
  color: #fff6d0;
}

@media (max-width: 900px) {
  .nn-brand .brand-sub,
  .nn-brand .nn-brand-sub {
    display: none;
  }
  .nn-brand .brand,
  .nn-brand .nn-brand-name {
    font-size: 1.05rem;
  }
}

/* ——— Default CTAs: felt green (not navy blue) ——— */
.bj-btn,
.dg-btn,
.hh-btn {
  border-radius: 10px !important;
  padding: 8px 14px !important;
  cursor: pointer;
  font-weight: 700 !important;
  background: linear-gradient(180deg, #1c4535, #0e261c) !important;
  color: var(--nn-cream) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
  box-shadow: none;
}
.bj-btn:hover:not(:disabled),
.dg-btn:hover:not(:disabled),
.hh-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.bj-btn-gold,
.dg-btn-gold,
.hh-btn-gold,
.hist-btn-gold {
  background: linear-gradient(135deg, #8a6a14, #d4af37 50%, #f0d78c) !important;
  color: #1a1208 !important;
  border: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.bj-btn-ghost,
.dg-btn-ghost,
.hh-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  color: var(--nn-gold-soft) !important;
}
.bj-btn-danger,
.dg-btn-danger,
.hh-btn-danger {
  background: linear-gradient(180deg, #8a2438, #4a121c) !important;
  border-color: rgba(255, 120, 140, 0.3) !important;
  color: #ffe8e8 !important;
}

/* Lobby / create bars — dark green panels */
.bj-create-bar,
.dg-create-bar,
.hh-create-bar {
  background: linear-gradient(180deg, rgba(18, 28, 22, 0.96), rgba(8, 14, 12, 0.98)) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bj-inp,
.dg-inp,
.hh-inp {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.bj-inp:focus,
.dg-inp:focus,
.hh-inp:focus {
  outline: none;
  border-color: var(--nn-gold) !important;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Room cards — kill blue panels */
.dg-card {
  background: linear-gradient(145deg, #14241c 0%, #0e1814 55%, #0a1210 100%) !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
}
.bj-room-card {
  background: linear-gradient(145deg, #14241c 0%, #0e1814 100%) !important;
  border-color: rgba(212, 175, 55, 0.28) !important;
}

/* ——— Custom switches (lobby Demo etc.) — NOT header Voice/Ambience pills ——— */
.bj-switch,
.dg-switch,
.hh-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  color: var(--nn-muted);
  position: relative;
}
.bj-switch input[type="checkbox"],
.dg-switch input[type="checkbox"],
.hh-switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(80, 80, 80, 0.45);
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  vertical-align: middle;
}
.bj-switch input[type="checkbox"]::after,
.dg-switch input[type="checkbox"]::after,
.hh-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s, background 0.2s;
}
.bj-switch input[type="checkbox"]:checked,
.dg-switch input[type="checkbox"]:checked,
.hh-switch input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #8a6a14, #d4af37);
  border-color: rgba(240, 215, 140, 0.7);
}
.bj-switch input[type="checkbox"]:checked::after,
.dg-switch input[type="checkbox"]:checked::after,
.hh-switch input[type="checkbox"]:checked::after {
  transform: translateX(18px);
  background: #1a1208;
}

/* Header Voice / Ambience — text-only pills (no switch knob / no empty circle) */
.bj-top .bj-voice-opt,
.bj-top .bj-sound-opt,
.dg-top .dg-sound-opt,
.hh-top .hh-sound-opt {
  position: relative;
  gap: 0 !important;
  padding: 7px 14px !important;
}
.bj-top .bj-voice-opt input[type="checkbox"],
.bj-top .bj-sound-opt input[type="checkbox"],
.dg-top .dg-sound-opt input[type="checkbox"],
.hh-top .hh-sound-opt input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  pointer-events: none;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.bj-top .bj-voice-opt input[type="checkbox"]::after,
.bj-top .bj-sound-opt input[type="checkbox"]::after,
.dg-top .dg-sound-opt input[type="checkbox"]::after,
.hh-top .hh-sound-opt input[type="checkbox"]::after {
  content: none !important;
  display: none !important;
}

/* Lang switch already shared — slightly larger on tables */
.bj-top .nn-lang-switch,
.dg-top .nn-lang-switch,
.hh-top .nn-lang-switch {
  border-radius: 999px;
  padding: 3px;
  border-color: rgba(212, 175, 55, 0.4);
}

/* Meta / phase pills + table sub-bar (match top chrome) */
.bj-table-chrome .bj-meta-bar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bj-meta-bar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 12px !important;
  margin: 0 0 10px !important;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    linear-gradient(180deg, rgba(14, 18, 14, 0.88), rgba(6, 10, 8, 0.72));
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.08);
}
.bj-table-chrome .bj-meta-bar {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.bj-history-bar {
  border-radius: 12px !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  background: rgba(0, 0, 0, 0.28) !important;
  padding: 8px 12px !important;
}
.bj-table-chrome .bj-history-bar {
  border-radius: 0 !important;
  border: none !important;
  border-top: 1px solid rgba(212, 175, 55, 0.12) !important;
  background: rgba(0, 0, 0, 0.16) !important;
  padding: 0 !important;
}
.bj-hist-lab {
  font-family: var(--nn-font-display) !important;
  letter-spacing: 0.12em;
  font-size: 0.68rem !important;
  color: var(--nn-gold-soft) !important;
  font-weight: 700;
}
.bj-meta-bar .bj-btn-sm {
  border-radius: 999px !important;
  padding: 5px 11px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  background: rgba(0, 0, 0, 0.32) !important;
  color: #f5e6a8 !important;
}
.bj-pill,
.hh-chip {
  border-radius: 999px !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  background: rgba(0, 0, 0, 0.42) !important;
  color: rgba(244, 240, 230, 0.9) !important;
  font-weight: 600;
}
.bj-pill-phase {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  color: var(--nn-gold-soft) !important;
  font-weight: 700;
}

/* History page buttons match hall */
.hist-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  background: rgba(0, 0, 0, 0.38) !important;
  color: #f5e6a8 !important;
  font-weight: 800 !important;
}
.hist-nav {
  margin: -16px -16px 16px !important;
  border-radius: 0 !important;
}

@media (max-width: 720px) {
  .bj-brand-main,
  .hh-brand-text,
  .dg-brand-main {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }
  .bj-user,
  .dg-user,
  .hh-user {
    max-width: 72px;
  }
}

/* Hall Bootstrap switches → gold casino style */
.app .form-check-input {
  width: 2.4em;
  height: 1.25em;
  margin-top: 0.15em;
  background-color: rgba(80, 80, 80, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.35);
  cursor: pointer;
}
.app .form-check-input:checked {
  background-color: #d4af37;
  border-color: #f0d78c;
}
.app .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
}
.app .form-check-label {
  color: #f3ebd6;
  font-weight: 600;
}

/* Thin gold scrollbars (hide system chunky bars on felt / panels) */
.bj-seats,
.bj-hist-list,
.bj-chip-preset-list,
.bj-emote-grid,
.dg-room-list,
.hh-seats,
.nn-scroll,
.nn-room-list,
.hall-settings-panel,
.swal2-html-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.bj-seats::-webkit-scrollbar,
.bj-hist-list::-webkit-scrollbar,
.bj-chip-preset-list::-webkit-scrollbar,
.bj-emote-grid::-webkit-scrollbar,
.dg-room-list::-webkit-scrollbar,
.hh-seats::-webkit-scrollbar,
.nn-scroll::-webkit-scrollbar,
.nn-room-list::-webkit-scrollbar,
.hall-settings-panel::-webkit-scrollbar,
.swal2-html-container::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.bj-seats::-webkit-scrollbar-track,
.bj-hist-list::-webkit-scrollbar-track,
.bj-chip-preset-list::-webkit-scrollbar-track,
.bj-emote-grid::-webkit-scrollbar-track,
.dg-room-list::-webkit-scrollbar-track,
.hh-seats::-webkit-scrollbar-track,
.nn-scroll::-webkit-scrollbar-track,
.nn-room-list::-webkit-scrollbar-track,
.hall-settings-panel::-webkit-scrollbar-track,
.swal2-html-container::-webkit-scrollbar-track {
  background: transparent;
}
.bj-seats::-webkit-scrollbar-thumb,
.bj-hist-list::-webkit-scrollbar-thumb,
.bj-chip-preset-list::-webkit-scrollbar-thumb,
.bj-emote-grid::-webkit-scrollbar-thumb,
.dg-room-list::-webkit-scrollbar-thumb,
.hh-seats::-webkit-scrollbar-thumb,
.nn-scroll::-webkit-scrollbar-thumb,
.nn-room-list::-webkit-scrollbar-thumb,
.hall-settings-panel::-webkit-scrollbar-thumb,
.swal2-html-container::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.32);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
.bj-seats::-webkit-scrollbar-thumb:hover,
.bj-hist-list::-webkit-scrollbar-thumb:hover,
.bj-chip-preset-list::-webkit-scrollbar-thumb:hover,
.bj-emote-grid::-webkit-scrollbar-thumb:hover,
.dg-room-list::-webkit-scrollbar-thumb:hover,
.hh-seats::-webkit-scrollbar-thumb:hover,
.nn-scroll::-webkit-scrollbar-thumb:hover,
.nn-room-list::-webkit-scrollbar-thumb:hover,
.hall-settings-panel::-webkit-scrollbar-thumb:hover,
.swal2-html-container::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 215, 140, 0.55);
}
/* Hall settings: subtle thumb until panel hover */
.hall-settings-panel {
  scrollbar-color: rgba(212, 175, 55, 0.18) transparent;
}
.hall-settings-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
}
.hall-settings-panel::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.16);
}
.hall-settings-panel:hover {
  scrollbar-color: rgba(212, 175, 55, 0.42) transparent;
}
.hall-settings-panel:hover::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
}
.hall-settings-panel:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 215, 140, 0.62);
}
/* Felt seats: almost invisible until hover */
body.bj-at-table .bj-seats {
  scrollbar-color: rgba(212, 175, 55, 0.18) transparent;
}
body.bj-at-table .bj-seats::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.16);
}
body.bj-at-table .bj-seats:hover {
  scrollbar-color: rgba(212, 175, 55, 0.42) transparent;
}
body.bj-at-table .bj-seats:hover::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
}

/* —— 娱乐 / 非网赌免责声明（中英双语固定显示） —— */
.nn-disclaimer {
  max-width: 960px;
  margin: 10px auto 18px;
  padding: 10px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(6, 12, 10, 0.72);
  text-align: center;
  line-height: 1.45;
}
.nn-legal-bi {
  text-align: left;
}
.nn-disclaimer .nn-legal-bi {
  text-align: center;
}
.nn-legal-bi-kicker {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 215, 140, 0.78);
  font-family: var(--nn-font-display), Cinzel, serif;
  text-align: center;
}
.nn-legal-bi-zh,
.nn-legal-bi-en {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: rgba(243, 235, 214, 0.62);
  line-height: 1.5;
}
.nn-legal-bi-en {
  margin-bottom: 0;
  color: rgba(243, 235, 214, 0.5);
  font-size: 0.7rem;
}
.nn-legal-bi--compact {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(4, 10, 8, 0.55);
  max-height: 160px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) rgba(8, 14, 12, 0.9);
}
.nn-legal-bi--compact::-webkit-scrollbar {
  width: 6px;
}
.nn-legal-bi--compact::-webkit-scrollbar-track {
  background: rgba(8, 14, 12, 0.85);
  border-radius: 8px;
  margin: 4px 0;
}
.nn-legal-bi--compact::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 200, 110, 0.55), rgba(180, 140, 50, 0.4));
  border-radius: 8px;
  border: 1px solid rgba(8, 14, 12, 0.4);
}
.nn-legal-bi--compact::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(240, 215, 140, 0.75), rgba(212, 175, 55, 0.55));
}
.nn-legal-bi--compact::-webkit-scrollbar-corner {
  background: transparent;
}
.nn-legal-bi--compact::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}
.nn-legal-bi--compact .nn-legal-bi-zh,
.nn-legal-bi--compact .nn-legal-bi-en {
  font-size: 0.68rem;
}
.auth-legal-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: rgba(243, 235, 214, 0.78);
  cursor: pointer;
  line-height: 1.4;
}
.auth-legal-agree input {
  margin-top: 3px;
  flex-shrink: 0;
}
.nn-legal-copyright,
.login-copyright,
.pick-copyright {
  margin: 8px 0 0;
  width: 100%;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(240, 215, 140, 0.55);
  text-align: center;
}
.nn-legal-bi .nn-legal-copyright {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}
.nn-legal-bi--compact .nn-legal-copyright {
  font-size: 0.64rem;
}
.pick-legal,
.login-legal {
  margin-top: 8px !important;
  font-size: 0.78rem !important;
  color: rgba(240, 215, 140, 0.7) !important;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .nn-disclaimer {
    margin: 8px 10px 14px;
    padding: 8px 10px;
  }
  .nn-legal-bi-zh,
  .nn-legal-bi-en {
    font-size: 0.66rem;
  }
  .nn-legal-bi--compact {
    max-height: 140px;
  }
}

/* Soft maintenance */
.pick-card.is-maint {
  opacity: 0.72;
  position: relative;
  cursor: not-allowed;
}
.pick-card.is-maint .pick-cta span:first-child {
  text-decoration: line-through;
}
.pick-maint-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f5e6a8;
  background: rgba(20, 12, 4, 0.85);
}
.lobby-maint-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(196, 30, 58, 0.45);
  background: rgba(80, 12, 20, 0.35);
  color: #f3ebd6;
  font-size: 0.9rem;
  line-height: 1.45;
}
.lobby-maint-banner[hidden] {
  display: none !important;
}

