/* ==========================================================================
   shell.css — Responsive App Shell (loaded last, owns the page layout)
   Two layout families, selected via html[data-layout]:
     classic : game pills in the top bar (Emerald / Belle Epoque)
     rail    : vertical game dock on the left (Salle Blanche / Riviera)
   Viewport tiers (html[data-vp] set by shell.js, mirrored by media queries):
     desktop >= 1280 : sidebar inline
     tablet  760-1279: sidebar becomes a slide-in drawer
     phone   < 760   : compact top bar, bottom tab bar, drawer chat
   ========================================================================== */

:root {
  --shell-hdr-h: 56px;
  --shell-rail-w: 96px;
  --shell-side-w: 320px;
  --shell-perk-h: 34px;
  --shell-tab-h: 64px;
  --shell-gap: 10px;
}

/* Unfinished WIP modules hidden cleanly without breaking layout/DOM structure */
html[data-perks-hidden="true"] {
  --shell-perk-h: 0px;
}

html #casino-app > #gadgets-perks-dock.feature-wip-hidden,
html #casino-app .feature-wip-hidden,
.feature-wip-hidden {
  display: none !important;
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* ---------- App frame ---------- */
html #casino-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* ---------- Top bar ---------- */
html #casino-app > .master-header {
  position: relative;
  top: auto;
  flex: 0 0 var(--shell-hdr-h);
  height: var(--shell-hdr-h);
  min-height: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-luxury, rgba(212, 175, 55, 0.35));
  background: var(--bg-glass, rgba(6, 14, 11, 0.96));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  z-index: 60;
  pointer-events: auto;
}

html .master-header > .header-left,
html .master-header > .header-center,
html .master-header > .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  order: initial;
  width: auto;
  border-top: none;
}

html .master-header > .header-left { flex: 1 1 auto; overflow: hidden; }
html .master-header > .header-center { flex: 0 1 auto; overflow: hidden; }
html .master-header > .header-right { flex: 0 0 auto; justify-content: flex-end; }

html .brand-badge { flex: 0 0 auto; }

/* Game pills: never wrap, scroll horizontally with soft edge fade */
html .game-nav-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
  padding: 0 14px 0 6px;
}
html .game-nav-pills::-webkit-scrollbar { display: none; }
html .game-nav-pills .game-pill { flex: 0 0 auto; white-space: nowrap; }

html .header-center .phase-badge { flex: 0 0 auto; white-space: nowrap; }
html .header-center .history-strip { flex: 0 1 auto; overflow: hidden; flex-wrap: nowrap; max-width: 200px; }

/* Services grouped into one segmented control */
html .services-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.2));
  background: rgba(0, 0, 0, 0.25);
}
html .services-group .btn-service-hud { border: none; background: transparent; white-space: nowrap; }
html .services-group .btn-service-hud:hover { background: rgba(255, 255, 255, 0.06); }

html .header-right > * { flex: 0 0 auto; }
html .player-badge { min-width: 0; }
html .player-badge .player-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
html .player-badge .player-chips { white-space: nowrap; }

/* Social toggle button (hidden on desktop) */
.btn-social-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-luxury, rgba(212, 175, 55, 0.4));
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold-primary, #d4af37);
  font: 600 0.8rem/1 Inter, sans-serif;
  cursor: pointer;
}
.btn-social-toggle:hover { background: rgba(212, 175, 55, 0.12); }

/* Theme switcher: dropdown always on top, never clipped */
html .theme-switcher-container { position: relative; }
html .theme-dropdown-menu { z-index: 400; right: 0; left: auto; max-height: calc(100dvh - 80px); overflow-y: auto; }

/* ---------- Main area ---------- */
html #casino-app > .main-viewport {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
}

/* Left rail (dock) — permanently active on desktop & tablet for Obsidian Salle Blanche */
html #dock-sidebar-left {
  display: flex !important;
  flex: 0 0 var(--shell-rail-w);
  width: var(--shell-rail-w);
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 7px;
  overflow-y: auto;
  scrollbar-width: none;
  background: rgba(10, 11, 15, 0.94);
  border-right: 1px solid var(--border-subtle, rgba(238, 213, 162, 0.22));
  z-index: 40;
}
html #dock-sidebar-left::-webkit-scrollbar { display: none; }
html #dock-sidebar-left .dock-mode-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 2px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.22);
  margin-bottom: 2px;
  flex: 0 0 auto;
}
html #dock-sidebar-left .dock-filter-btn {
  border: none;
  background: transparent;
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.44rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 4px 0;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.16s ease, color 0.16s ease;
}
html #dock-sidebar-left .dock-filter-btn.active {
  background: rgba(212, 175, 55, 0.22);
  color: #fde047;
}
html #dock-sidebar-left .dock-cat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 2px 2px;
  margin-top: 2px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  flex: 0 0 auto;
}
html #dock-sidebar-left .dock-cat-header[data-cat-header="multi"] {
  border-top: none;
  margin-top: 0;
  padding-top: 2px;
}
html #dock-sidebar-left .dock-cat-header span {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(229, 193, 88, 0.78);
  text-align: center;
  white-space: nowrap;
}
html #dock-sidebar-left .dock-left-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  width: 100%;
  padding: 5px 3px;
  border-radius: 11px;
  border: 1px solid rgba(238, 213, 162, 0.18);
  flex: 0 0 auto;
  position: relative;
}
html #dock-sidebar-left .dock-left-btn svg { width: 19px; height: 19px; }
html #dock-sidebar-left .dock-left-btn span { font-size: 0.63rem; line-height: 1.05; white-space: nowrap; }
html #dock-sidebar-left .dock-player-count {
  position: absolute;
  top: 3px;
  right: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  background: rgba(15, 23, 42, 0.86);
  color: rgba(148, 163, 184, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
html #dock-sidebar-left .dock-player-count.has-players {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.28);
}
html #dock-sidebar-left[data-dock-filter="multi"] [data-category="solo"],
html #dock-sidebar-left[data-dock-filter="multi"] [data-cat-header="solo"],
html #dock-sidebar-left[data-dock-filter="solo"] [data-category="multi"],
html #dock-sidebar-left[data-dock-filter="solo"] [data-cat-header="multi"] {
  display: none !important;
}

/* Play area: always reachable — scrolls only if a game genuinely needs it */
html #casino-app .play-area {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 0 var(--shell-gap);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) transparent;
  scroll-behavior: smooth;
}
html #casino-app .play-area::-webkit-scrollbar { width: 8px; }
html #casino-app .play-area::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.4); border-radius: 8px; }
html #casino-app .play-area::-webkit-scrollbar-track { background: transparent; }

html .game-view-pane { flex: 1 0 auto; min-height: 0; }

/* Sidebar (social) */
html #casino-app .social-sidebar {
  position: relative;
  top: auto;
  flex: 0 0 var(--shell-side-w);
  width: var(--shell-side-w);
  max-width: 100vw;
  height: auto;
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: none;
  border-left: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.22));
  background: var(--bg-glass, rgba(6, 14, 11, 0.96));
  z-index: 70;
}
html #casino-app .social-sidebar .chat-drawer { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
html #casino-app .social-sidebar .sidebar-tab-pane.active { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.social-backdrop { display: none; }

/* Chat input never pushes the send button out of view */
html .chat-input-bar { display: flex; gap: 6px; min-width: 0; box-sizing: border-box; width: 100%; }
html .chat-input-bar input { flex: 1 1 auto; min-width: 0; width: auto; }
html .chat-input-bar button { flex: 0 0 auto; }

/* ---------- Perks bar (bottom) ---------- */
html #casino-app > #gadgets-perks-dock {
  position: relative !important;
  left: auto; right: auto; bottom: auto; top: auto;
  transform: none !important;
  flex: 0 0 var(--shell-perk-h);
  height: var(--shell-perk-h);
  width: 100%;
  display: flex !important;
  align-items: center;
  padding: 0 12px;
  border-top: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.2));
  background: rgba(0, 0, 0, 0.45);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 30;
}
html #gadgets-perks-dock .dock-perks-container { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
html #gadgets-perks-dock .dock-perks-container > * { flex: 0 0 auto; white-space: nowrap; }

/* Toasts: compact pill above the bottom bar — never over headers, game buttons, or chat */
html #toast-container {
  position: fixed;
  top: auto;
  bottom: calc(var(--shell-perk-h) + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: min(380px, calc(100vw - 24px));
  z-index: 500;
  pointer-events: none;
}
html #toast-container > * {
  pointer-events: auto;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Renzo preview dock floats bottom-left, never over the chat */
html .renzo-preview-dock { z-index: 450; max-width: min(560px, calc(100vw - 24px)); }

/* Modals always fit the screen */
html .modal-overlay { z-index: 600; padding: 12px; }
html .modal-overlay .modal-content { max-height: calc(100dvh - 24px); overflow-y: auto; max-width: calc(100vw - 24px); }

/* ==========================================================================
   OBSIDIAN SALLE BLANCHE RAIL LAYOUT (DEFAULT FOR EVERYONE)
   ========================================================================== */
html .master-header .game-nav-pills { display: none !important; }
html .master-header > .header-left { flex: 0 0 auto; }
html .master-header > .header-center { flex: 1 1 auto; justify-content: center; }

/* ==========================================================================
   GAME FIT — compact spacing so games fit common laptop heights
   ========================================================================== */
html #blackjack-view { padding: 12px 18px; max-width: 1240px; }
html .bj-table-header { margin-bottom: 10px; padding: 8px 16px; }
html .bj-felt-stage { min-height: clamp(240px, 42vh, 440px); }
html .board-section { padding: 12px 18px; }

@media (max-height: 820px) {
  :root { --shell-hdr-h: 50px; --shell-perk-h: 30px; }
  html[data-perks-hidden="true"] { --shell-perk-h: 0px; }
  html #blackjack-view { padding: 8px 14px; }
  html .bj-table-header { margin-bottom: 6px; padding: 6px 12px; }
  html .bj-felt-stage { padding: 12px 14px 16px; }
  html .bj-seats-arc { margin: 12px auto 4px; }
  html .board-section { padding: 8px 14px; }
}

/* ==========================================================================
   TIER: large desktop
   ========================================================================== */
@media (min-width: 1680px) {
  :root { --shell-side-w: 340px; --shell-rail-w: 102px; }
}

/* ==========================================================================
   TIER: medium desktop / laptop (1280–1499) — tighten top bar
   ========================================================================== */
@media (max-width: 1599px) {
  html .services-group .lottery-hud-timer { display: none; }
  html .hud-live-pill { height: 28px; padding: 0 8px; gap: 4px; font-size: 0.7rem; }
  html .header-center .history-strip { max-width: 112px; }
}

@media (max-width: 1499px) {
  :root { --shell-side-w: 290px; }
  html .services-group .btn-service-hud { padding: 5px 9px; gap: 6px; }
  html .services-group .lottery-hud-pot { display: inline-flex; }
  html .theme-current-label { display: none; }
  html .header-center .history-strip { max-width: 112px; }
}

@media (max-width: 1399px) {
  html #casino-app > .master-header { gap: 8px; padding: 0 10px; }
  html .master-header > .header-left,
  html .master-header > .header-center,
  html .master-header > .header-right { gap: 6px; }
  html .header-center .history-strip { display: none; }
  html .wheel-hud-label { display: none; }
  html .hud-pot-pill .hud-pot-label { display: none; }
  html .services-group .lottery-hud-timer { display: none; }
  html .services-group .btn-service-hud { padding: 5px 8px; gap: 5px; }
}

/* ==========================================================================
   TIER: tablet (< 1280) — sidebar becomes a drawer
   ========================================================================== */
@media (max-width: 1279px) {
  .btn-social-toggle { display: inline-flex; }

  html #casino-app .social-sidebar {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 92vw);
    flex: none;
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 90;
  }
  html #casino-app.social-open .social-sidebar { transform: translateX(0); }

  html #casino-app .social-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 85;
  }
  html #casino-app.social-open .social-backdrop { opacity: 1; pointer-events: auto; }

  html .header-center .history-strip { display: none; }
  html .wheel-hud-label { display: none; }

  /* Tablet: pills get too cramped on top -> every layout uses the left rail */
  html[data-layout] #dock-sidebar-left { display: flex !important; }
  html[data-layout] .master-header .game-nav-pills { display: none !important; }
  html .master-header > .header-left { flex: 0 0 auto; }
  html .master-header > .header-center { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 1023px) {
  html .player-badge .player-name { display: none; }
  html .brand-badge .brand-sub { display: none; }
  html .btn-wheel-hud .wheel-hud-cooldown { display: none; }
}

/* ==========================================================================
   TIER: phone (< 760) — compact bar, bottom tab bar, scrollable stage
   ========================================================================== */
@media (max-width: 759px) {
  :root { --shell-hdr-h: 48px; }

  html #casino-app > .master-header { flex: 0 0 auto; height: auto; gap: 4px; padding: 5px 6px; }
  html .master-header > .header-left { flex: 0 0 auto; }
  html .master-header > .header-center { flex: 0 0 auto; justify-content: flex-start; min-width: 0; }
  html .master-header > .header-right { flex: 1 1 auto; gap: 4px; justify-content: flex-end; min-width: 0; flex-wrap: nowrap; }
  html .master-header .game-nav-pills { display: none !important; }
  html .brand-badge .brand-crest { font-size: 0.85rem; }
  html .services-group { padding: 1px; flex-shrink: 0; }
  html .services-group .btn-service-hud { padding: 4px 6px; gap: 4px; }
  html .services-group .lottery-hud-label,
  html .services-group .lottery-hud-pot { display: none; }
  html .services-group .lottery-hud-timer { display: inline-flex; font-size: 10px; padding: 1px 5px; }
  html .btn-wheel-hud { display: none; }
  html .brand-badge { display: none; }
  html .player-badge { padding: 3px 6px; flex-shrink: 1; }
  html .player-badge .avatar-disc { display: none !important; }
  html .player-badge .player-info { display: flex; }
  html .player-badge .player-chips { font-size: 0.68rem; }
  html .theme-switcher-container .btn-theme-switcher { padding: 6px 8px; }
  html .theme-renzo-badge { display: none; }
  html .social-toggle-label { display: none; }
  html .btn-social-toggle { height: 28px; padding: 0 7px; }
  html .btn-bank { padding: 4px 8px; font-size: 0.7rem; }
  html .phase-badge { padding: 3px 7px; font-size: 0.7rem; }
  html .phase-badge .phase-title { display: none; }

  /* Roulette: fit 100% natively on 360-430px phone screens without clipping */
  html .board-container { padding: 6px 2px; overflow-x: hidden; }
  html .roulette-board, html .outside-row { min-width: 0 !important; width: 100%; }
  html .cell-zero { width: 26px; min-height: 114px; height: 114px; font-size: 0.78rem; }
  html .number-row { height: 38px; }
  html .columns-container { width: 30px; }
  html .column-cell { height: 38px; width: 30px; font-size: 0.58rem; padding: 0; }
  html .outside-row { margin-left: 26px; margin-right: 30px; }
  html .dozens-row, html .even-money-row { height: 34px; }
  html .grid-cell { font-size: 0.72rem; }
  html .dozen-cell, html .cell-outside { font-size: 0.68rem; }

  /* Blackjack & Poker table headers wrap cleanly on narrow screens */
  html .bj-table-header, html .poker-table-header { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px 10px; text-align: center; }

  /* Crash: stack chart above roster */
  html .crash-main-arena { display: flex !important; flex-direction: column; grid-template-columns: none; }
  html .crash-stage-container { min-height: 300px; height: 46vh; }
  html .crash-top-header { flex-wrap: wrap; gap: 6px; }
  html .crash-history-strip { max-width: 100%; overflow-x: auto; }
  html .crash-controls-panel { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; }
  html .crash-controls-panel > * { width: 100%; min-width: 0; }
  html .crash-bet-input-row, html .crash-chip-selector { flex-wrap: wrap; }
  html .crash-players-list { max-height: 180px; }
  html .player-badge .avatar-disc { display: none; }

  /* Bottom tab bar = the rail, rotated, for ALL layout families */
  html[data-layout] #dock-sidebar-left,
  html #dock-sidebar-left {
    display: flex !important;
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    height: calc(var(--shell-tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: none;
    border-top: 1px solid var(--border-luxury, rgba(212, 175, 55, 0.35));
    background: var(--bg-glass, rgba(6, 14, 11, 0.98));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    z-index: 80;
  }
  html #dock-sidebar-left .dock-mode-filter,
  html #dock-sidebar-left .dock-cat-header { display: none !important; }
  html #dock-sidebar-left .dock-left-btn { min-width: 68px; width: 68px; min-height: 0; height: 100%; gap: 2px; padding: 3px 2px; }
  html #dock-sidebar-left .dock-left-btn .dock-player-count { top: 2px; right: 3px; min-width: 13px; height: 13px; line-height: 11px; font-size: 0.46rem; padding: 0 3px; }
  html #dock-sidebar-left .dock-left-btn[data-game="mines"],
  html #dock-sidebar-left .dock-left-btn[data-game="cross"] { margin-left: 8px; position: relative; }
  html #dock-sidebar-left .dock-left-btn[data-game="mines"]::before,
  html #dock-sidebar-left .dock-left-btn[data-game="cross"]::before {
    content: '';
    position: absolute;
    top: 10px; bottom: 10px; left: -5px; width: 1px;
    background: rgba(212, 175, 55, 0.35);
  }

  html #casino-app .play-area { padding-bottom: calc(var(--shell-tab-h) + 16px); }
  html #casino-app > #gadgets-perks-dock { display: none !important; }
  html #toast-container { bottom: calc(var(--shell-tab-h) + 8px); top: auto; }

  /* Wide game boards scroll sideways instead of being cut off */
  html .board-section, html .bj-controls-panel, html .poker-controls-panel, html .crash-controls-panel { overflow-x: auto; max-width: 100vw; }
  html .chip-rack, html .chips-row, html .quick-chips-row { flex-wrap: wrap; }

  html #casino-app .social-sidebar { width: 100vw; bottom: 0; }
  html #blackjack-view { padding: 8px; }
  html .board-section { padding: 8px; }
}

/* Very short landscape phones */
@media (max-height: 500px) and (max-width: 1023px) {
  :root { --shell-hdr-h: 44px; --shell-tab-h: 50px; }
  html #dock-sidebar-left .dock-left-btn span { display: none; }
}

/* ==========================================================================
   FULL COLOR STUDIO (Profile & Onboarding Custom Color Picker + Spectrum)
   ========================================================================== */
html .color-palette {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

html .color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: 6px;
  width: 100%;
}

html .color-swatches-grid .color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  margin: 0 auto;
}

html .color-swatches-grid .color-swatch:hover {
  transform: scale(1.14);
}

html .color-swatches-grid .color-swatch.active {
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45), 0 0 12px rgba(212, 175, 55, 0.6);
  transform: scale(1.12);
}

html .custom-color-studio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.22));
}

html .custom-color-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html .color-wheel-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-luxury, rgba(212, 175, 55, 0.38));
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  transition: background 0.15s ease;
}

html .color-wheel-btn:hover {
  background: rgba(212, 175, 55, 0.15);
}

html .custom-color-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

html .color-wheel-preview {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

html .custom-hex-box {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--gold-primary, #d4af37);
}

html .custom-hex-prefix {
  opacity: 0.65;
  margin-right: 2px;
  user-select: none;
}

html .custom-color-hex {
  width: 56px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
}

html .custom-color-sliders {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html .color-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

html .color-slider-label {
  width: 44px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

html .color-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

html .color-slider-hue {
  background: linear-gradient(90deg, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}

html .color-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0a0f0d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

html .color-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0a0f0d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

/* ==========================================================================
   ROYAL PLINKO ARENA (Obsidian Salle Blanche Responsive Layout)
   ========================================================================== */
html #plinko-view.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}

html .plinko-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 12px;
  flex: 0 0 auto;
}

html .plinko-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

html .plinko-title-wrap > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html .plinko-game-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright, #eed5a2);
}

html .plinko-game-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}

html .plinko-history-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 4px;
}
html .plinko-history-strip::-webkit-scrollbar { display: none; }

html .plinko-mult-pill {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

html .plinko-mult-pill.mult-teal,
html .plinko-feed-mult.mult-teal {
  background: rgba(17, 44, 48, 0.85);
  border-color: rgba(45, 212, 191, 0.45);
  color: #5eead4;
}
html .plinko-mult-pill.mult-gold,
html .plinko-feed-mult.mult-gold {
  background: rgba(66, 52, 18, 0.85);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fde68a;
}
html .plinko-mult-pill.mult-amber,
html .plinko-feed-mult.mult-amber {
  background: rgba(120, 53, 15, 0.85);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fcd34d;
}
html .plinko-mult-pill.mult-crimson,
html .plinko-feed-mult.mult-crimson {
  background: rgba(127, 29, 29, 0.88);
  border-color: rgba(251, 113, 133, 0.65);
  color: #fda4af;
}
html .plinko-mult-pill.mult-royal,
html .plinko-feed-mult.mult-royal {
  background: rgba(131, 24, 67, 0.92);
  border-color: rgba(244, 114, 182, 0.85);
  color: #fbcfe8;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.45);
}

html .plinko-session-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

html .plinko-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
}

html .plinko-stat-pill-gold {
  border-color: rgba(212, 175, 55, 0.42);
}

html .plinko-stat-lbl {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

html .plinko-stat-val {
  color: #f8fafc;
  font-weight: 800;
}
html .plinko-stat-pill-gold .plinko-stat-val {
  color: var(--gold-bright, #eed5a2);
}

html .plinko-arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
}

html .plinko-canvas-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, 0.08), rgba(7, 9, 13, 0.94));
  border: 1px solid var(--border-luxury, rgba(212, 175, 55, 0.35));
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);
}

html .plinko-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

html .plinko-jackpot-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 18, 26, 0.95), rgba(66, 42, 14, 0.94));
  border: 1px solid rgba(250, 204, 21, 0.85);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.45), 0 10px 24px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  z-index: 12;
  animation: plinkoBannerPop 0.25s ease-out;
}
html .plinko-jackpot-banner.hidden { display: none; }

@keyframes plinkoBannerPop {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

html .plinko-jackpot-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fde047;
}
html .plinko-jackpot-mult {
  font-family: 'Cinzel', serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}
html .plinko-jackpot-payout {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
}

html .plinko-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  min-height: 0;
  overflow: hidden;
}

html .plinko-config-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

html .plinko-section-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(238, 213, 162, 0.82);
}

html .plinko-risk-selector,
html .plinko-rows-selector,
html .plinko-burst-selector {
  display: grid;
  gap: 5px;
}
html .plinko-risk-selector { grid-template-columns: repeat(3, 1fr); }
html .plinko-rows-selector { grid-template-columns: repeat(5, 1fr); }
html .plinko-burst-selector { grid-template-columns: repeat(4, 1fr); }

html #plinko-view .btn-risk,
html #plinko-view .btn-plinko-rows,
html #plinko-view .btn-plinko-burst {
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

html #plinko-view .btn-risk:hover,
html #plinko-view .btn-plinko-rows:hover,
html #plinko-view .btn-plinko-burst:hover {
  border-color: rgba(212, 175, 55, 0.48);
  color: #ffffff;
}

html #plinko-view .btn-risk.active,
html #plinko-view .btn-plinko-rows.active,
html #plinko-view .btn-plinko-burst.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0.12));
  border-color: var(--gold-primary, #d4af37);
  color: var(--gold-bright, #eed5a2);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

html .plinko-feed-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
}

html .plinko-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html .plinko-feed-live-dot {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

html .plinko-live-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scrollbar-width: thin;
}

html .plinko-feed-empty {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 16px 8px;
}

html .plinko-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
}
html .plinko-feed-row.is-high {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(66, 48, 12, 0.28);
}

html .plinko-feed-player {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

html .plinko-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

html .plinko-feed-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2e8f0;
  font-weight: 600;
}

html .plinko-feed-mult {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid transparent;
}

html .plinko-feed-payout {
  font-weight: 700;
  color: var(--gold-bright, #eed5a2);
  min-width: 44px;
  text-align: right;
}

html .plinko-controls-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
}

html .plinko-bet-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

html .plinko-bet-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

html #plinko-view .plinko-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(238, 213, 162, 0.8);
}

html #plinko-view .plinko-input {
  width: 96px;
  height: 36px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid var(--border-luxury, rgba(212, 175, 55, 0.42));
  border-radius: 8px;
  color: var(--gold-bright, #eed5a2);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

html .plinko-mod-btns,
html .plinko-quick-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}

html .btn-plinko-mod,
html .btn-plinko-chip {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.36);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

html .btn-plinko-mod:hover,
html .btn-plinko-chip:hover {
  border-color: var(--gold-primary, #d4af37);
  color: var(--gold-bright, #eed5a2);
}

html .btn-plinko-max {
  color: var(--gold-bright, #eed5a2);
  border-color: rgba(212, 175, 55, 0.4);
}

html .plinko-cta-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

html .plinko-total-wager-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

html .plinko-wager-lbl {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

html .plinko-wager-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold-bright, #eed5a2);
}

html .btn-plinko-auto {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold-bright, #eed5a2);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
}

html .btn-plinko-auto.active {
  background: rgba(220, 38, 38, 0.85);
  border-color: #f87171;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

html .btn-plinko-drop {
  height: 44px;
  padding: 0 24px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

html .btn-plinko-drop:active {
  transform: scale(0.96);
}

@media (max-height: 820px) {
  html #plinko-view.active { gap: 6px; padding: 6px 12px; }
  html .plinko-header-bar { padding: 6px 12px; }
  html .plinko-side-panel { padding: 8px 10px; gap: 7px; }
  html .plinko-controls-dock { padding: 8px 12px; }
}

@media (max-width: 1024px) {
  html .plinko-arena-grid { grid-template-columns: minmax(0, 1fr) 232px; }
}

@media (max-width: 759px) {
  html #plinko-view.active {
    height: auto;
    overflow: visible;
    padding: 8px;
    gap: 8px;
  }
  html .plinko-header-bar { flex-wrap: wrap; padding: 8px 10px; }
  html .plinko-arena-grid {
    display: flex;
    flex-direction: column;
  }
  html .plinko-canvas-stage {
    min-height: 320px;
    height: 48vh;
  }
  html .plinko-live-feed { max-height: 150px; }
  html .plinko-controls-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  html .plinko-cta-section {
    justify-content: space-between;
    width: 100%;
  }
  html .btn-plinko-drop { flex: 1; }
}

/* ==========================================================================
   GLOBAL & ONLINE LEADERBOARD (Obsidian Salle Blanche Sidebar)
   ========================================================================== */
html #casino-app .social-sidebar #tab-pane-leaderboard.active {
  overflow: hidden;
}

html .leaderboard-subtab-bar {
  display: flex;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border-subtle, rgba(212, 175, 55, 0.25));
  background: rgba(6, 10, 14, 0.72);
}

html .leaderboard-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9aa7b8;
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}

html .leaderboard-tab-btn:hover {
  color: #fdfbf7;
  background: rgba(212, 175, 55, 0.06);
}

html .leaderboard-tab-btn.active {
  color: var(--gold-bright, #eed5a2);
  border-bottom-color: var(--gold-primary, #d4af37);
  background: rgba(212, 175, 55, 0.12);
}

html .lb-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: var(--gold-bright, #eed5a2);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
}

html .leaderboard-tab-btn.active .lb-count-pill {
  background: linear-gradient(135deg, #f3d068 0%, #d4af37 100%);
  border-color: transparent;
  color: #0b1410;
}

html .leaderboard-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(8, 12, 18, 0.65);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  flex-wrap: wrap;
}

html .leaderboard-toolbar.hidden {
  display: none !important;
}

html .lb-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
}

html .lb-sort-btn,
html .lb-filter-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9aa7b8;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

html .lb-sort-btn:hover,
html .lb-filter-btn:hover {
  color: #f8fafc;
}

html .lb-sort-btn.active {
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-bright, #eed5a2);
}

html .lb-filter-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
}

html .lb-filter-btn.active {
  background: rgba(100, 116, 139, 0.35);
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--gold-bright, #eed5a2);
}

html #tab-pane-leaderboard .leaderboard-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

html #tab-pane-leaderboard .leaderboard-scroll.hidden {
  display: none !important;
}

html .leaderboard-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

html .lb-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #090e12;
}

html .lb-status-dot.online {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}

html .lb-status-dot.offline {
  background: #64748b;
}

html .leaderboard-item {
  min-width: 0;
}

html .leaderboard-details {
  min-width: 0;
}

html .leaderboard-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html .leaderboard-item.is-offline {
  opacity: 0.92;
  background: rgba(15, 23, 35, 0.62);
  border-color: rgba(148, 163, 184, 0.18);
}

html .leaderboard-item.rank-1 .leaderboard-rank {
  color: #fde047;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.55);
}

html .leaderboard-item.rank-2 .leaderboard-rank {
  color: #e2e8f0;
  text-shadow: 0 0 8px rgba(226, 232, 240, 0.4);
}

html .leaderboard-item.rank-3 .leaderboard-rank {
  color: #d97706;
  text-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}

html .presence-badge.badge-offline {
  background: rgba(71, 85, 105, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

html .presence-badge.badge-offline .presence-dot {
  box-shadow: none;
  opacity: 0.7;
}

html .presence-badge.badge-plinko {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

html .presence-badge.badge-slots {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fde047;
}

html .presence-badge.badge-racing {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

html .leaderboard-meta-stats {
  margin-top: 3px;
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   GRAND SOVEREIGN SLOTS HALL (Obsidian Salle Blanche Responsive Layout)
   ========================================================================== */
html #slots-view.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}

html #slots-view.slots-golden-fever-active .slots-cabinet-shell {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 0 36px rgba(250, 204, 21, 0.28), inset 0 0 28px rgba(245, 158, 11, 0.14);
}

html .slots-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
}

html .slots-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

html .slots-title-wrap > div {
  display: flex;
  flex-direction: column;
}

html .slots-game-title {
  font-family: 'Cinzel', serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-bright, #eed5a2);
}

html .slots-game-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.62);
}

html .slots-fever-box {
  flex: 1 1 200px;
  max-width: 310px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

html .slots-fever-box.fever-live {
  background: rgba(66, 38, 6, 0.85);
  border-color: #facc15;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}

html .slots-fever-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

html .slots-fever-title { color: #fde68a; }
html .slots-fever-status { color: #10b981; }
html .slots-fever-box.fever-live .slots-fever-status {
  color: #facc15;
  animation: slotsPulseText 0.85s ease-in-out infinite alternate;
}

html .slots-fever-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html .slots-fever-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b45309, #f59e0b, #fde047);
  transition: width 0.25s ease-out;
}

html #slots-view .jackpot-ticker-pill {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(45, 32, 8, 0.72);
  border: 1px solid rgba(250, 204, 21, 0.45);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

html #slots-view .jackpot-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #fde68a;
}

html #slots-view .jackpot-amount {
  font-family: 'Cinzel', serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #facc15;
}

html #slots-jackpot-pill.jackpot-pulse {
  animation: slotsJackpotGlow 0.6s ease-out;
}

/* 8-Cabinet Live Floor Strip */
html .slots-floor-strip-wrap {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html .slots-floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.65);
}

html .slots-floor-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

html .slots-floor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  min-width: 0;
}

html .slots-floor-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

html .slots-floor-card.is-mine {
  background: rgba(38, 28, 8, 0.86);
  border-color: rgba(250, 204, 21, 0.75);
}

html .slots-floor-card.is-spotlight {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 4px 12px rgba(0, 0, 0, 0.45);
}

html .slots-floor-card.is-fs {
  border-color: rgba(244, 114, 182, 0.75);
}

html .slots-card-top,
html .slots-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.6rem;
}

html .slots-card-num {
  font-weight: 800;
  color: var(--gold-bright, #eed5a2);
}

html .slots-card-status {
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

html .slots-floor-card.is-fs .slots-card-status {
  background: rgba(190, 24, 93, 0.45);
  color: #fbcfe8;
}

html .slots-floor-card.is-hot .slots-card-status {
  background: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

html .slots-card-player {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 18px;
}

html .slots-card-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  color: #0f172a;
}

html .slots-card-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html .slots-card-open-lbl {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.45);
}

html .slots-card-label {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Arena Grid */
html .slots-arena-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 10px;
}

html .slots-cabinet-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  min-height: 0;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: radial-gradient(circle at 50% 35%, rgba(28, 36, 54, 0.85), rgba(8, 12, 22, 0.96));
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

html .slots-cabinet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

html .slots-cabinet-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

html .slots-cab-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e2e8f0;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

html .slots-mult-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

html .slots-mult-pill.mult-boosted {
  background: rgba(245, 158, 11, 0.22);
  border-color: #facc15;
  color: #fde047;
}

html .slots-fs-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(157, 23, 77, 0.38);
  border: 1px solid rgba(244, 114, 182, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbcfe8;
}

html .slots-fs-sticky { color: #fde047; }
html .slots-fs-total { color: #6ee7b7; }

html .btn-slots-util {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright, #eed5a2);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

html .btn-slots-util:hover {
  background: rgba(212, 175, 55, 0.26);
}

/* 5x3 Reels Viewport Stage */
html .slots-reels-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(4, 7, 15, 0.9);
  border: 2px solid rgba(212, 175, 55, 0.45);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.85);
}

html #slots-view .slots-reels-frame {
  flex: 1 1 auto;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

html .slots-reel-col {
  position: relative;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.98) 0%, rgba(18, 28, 46, 0.94) 50%, rgba(12, 18, 32, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  overflow: hidden;
}

html .slots-reel-col.reel-anticipating {
  border-color: #facc15;
  box-shadow: inset 0 0 22px rgba(250, 204, 21, 0.45), 0 0 18px rgba(244, 114, 182, 0.55);
  animation: slotsAnticipationPulse 0.45s ease-in-out infinite alternate;
}

html .slots-reel-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

html .slots-reel-track {
  width: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

html .slots-reel-col.reel-spinning .slots-reel-track {
  filter: blur(0.45px);
}

html #slots-view .slots-symbol {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

html #slots-view .slots-symbol .slot-sym-svg {
  width: 62%;
  max-width: 58px;
  height: 66%;
  max-height: 58px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

html .slots-sym-tag {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1;
}

html #slots-view .slots-symbol.symbol-win-pulse {
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22), transparent 72%);
  transform: scale(1.06);
}

html #slots-view .slots-symbol.symbol-dimmed {
  opacity: 0.45;
}

html #slots-view .slots-symbol.symbol-scatter-hit {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28), transparent 72%);
}

/* Sticky Wilds Grid Layer (Aligned identically to 5x3 Reels Frame) */
html .slots-sticky-overlay {
  position: absolute;
  inset: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 6px;
  pointer-events: none;
  z-index: 4;
}

html .slots-sticky-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(161, 98, 7, 0.72), rgba(66, 32, 6, 0.85));
  border: 2px solid #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.55);
}

html .slots-sticky-badge .slot-sym-svg {
  width: 58%;
  max-width: 52px;
  height: 62%;
}

html .slots-sticky-badge.sticky-newly-locked {
  animation: slotsStickyPop 0.5s ease-out;
}

html .slots-sticky-tag {
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 1px 5px;
  border-radius: 4px;
  background: #facc15;
  color: #111827;
}

html .slots-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

html .slots-payline-readout {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

html .slots-payline-readout.hidden { display: none; }

html .payline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Dramatic Win Banner Overlay */
html .slots-win-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 26px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.92);
  border: 2px solid #d4af37;
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.45);
  pointer-events: none;
  animation: slotsBannerPop 0.35s cubic-bezier(0.18, 1.25, 0.4, 1);
}

html .slots-win-banner.hidden { display: none; }
html .slots-win-banner.tier-big { border-color: #f59e0b; }
html .slots-win-banner.tier-mega { border-color: #10b981; box-shadow: 0 0 42px rgba(16, 185, 129, 0.55); }
html .slots-win-banner.tier-jackpot { border-color: #facc15; box-shadow: 0 0 54px rgba(250, 204, 21, 0.8); }
html .slots-win-banner.tier-bonus { border-color: #f472b6; box-shadow: 0 0 40px rgba(244, 114, 182, 0.6); }

html .slots-win-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fde047;
}

html .slots-win-amount {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
}

html .slots-win-sub {
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-top: 2px;
}

/* Lower Controls Dock */
html #slots-view .slots-controls-dock {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.22);
  flex-wrap: wrap;
}

html .slots-bet-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

html .slots-bet-readout {
  display: flex;
  flex-direction: column;
  padding-right: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

html .slots-bet-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

html #slots-view .slots-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.56);
}

html #slots-view .slots-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--gold-bright, #eed5a2);
}

html .slots-val-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
}

html .slots-bet-presets {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

html .btn-slot-chip,
html .btn-slot-mod {
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

html .btn-slot-chip.active {
  background: rgba(212, 175, 55, 0.24);
  border-color: #d4af37;
  color: #fde047;
}

html .btn-slot-chip:hover:not(:disabled),
html .btn-slot-mod:hover:not(:disabled) {
  border-color: #d4af37;
  color: #ffffff;
}

html .btn-slot-chip:disabled,
html .btn-slot-mod:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html .slots-bet-quick {
  display: flex;
  align-items: center;
  gap: 4px;
}

html .slots-action-panel {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

html .btn-slot-toggle {
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}

html .btn-slot-toggle.active {
  background: rgba(16, 185, 129, 0.24);
  border-color: #10b981;
  color: #6ee7b7;
}

html #btn-slots-auto.active {
  background: rgba(220, 38, 38, 0.8);
  border-color: #f87171;
  color: #ffffff;
}

html .slots-auto-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
}

html .slots-auto-select {
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
}

html .btn-slot-bonus-buy {
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(244, 114, 182, 0.55);
  background: rgba(131, 24, 67, 0.45);
  color: #fbcfe8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  cursor: pointer;
}

html .btn-slot-bonus-buy.armed {
  background: rgba(219, 39, 119, 0.85);
  border-color: #fde047;
  color: #ffffff;
}

html .btn-slot-bonus-buy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

html .btn-slot-bonus-buy .buy-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

html .btn-slot-bonus-buy .buy-cost {
  font-size: 0.7rem;
  font-weight: 800;
}

html .btn-spin-slots {
  height: 40px;
  min-width: 122px;
  padding: 0 18px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

html .btn-spin-slots.slots-btn-stop {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border-color: #fca5a5;
  color: #ffffff;
}

/* Right Multiplayer Lounge Panel */
html .slots-side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  min-height: 0;
  overflow: hidden;
}

html .slots-spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

html .slots-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

html .slots-side-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--gold-bright, #eed5a2);
}

html .slots-side-sub {
  font-size: 0.64rem;
  font-weight: 700;
  color: #10b981;
}

html .btn-slots-back-mine {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

html .slots-spotlight-player {
  display: flex;
  align-items: center;
  gap: 8px;
}

html .slots-spot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #090d16;
}

html .slots-spot-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

html .slots-spot-meta strong {
  font-size: 0.78rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html .slots-spot-meta span,
html .slots-spot-empty {
  font-size: 0.66rem;
  color: #94a3b8;
}

html .slots-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, 24px);
  gap: 3px;
  padding: 5px;
  border-radius: 8px;
  background: rgba(4, 7, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html .slots-mini-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.58rem;
  font-weight: 800;
  color: #e2e8f0;
}

html .slots-spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html .slots-spotlight-stats {
  font-size: 0.66rem;
  color: #cbd5e1;
}

html .slots-wins-feed-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html .slots-feed-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 2px;
}

html .slots-feed-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}

html .slots-feed-tab.active {
  background: rgba(212, 175, 55, 0.22);
  color: #fde68a;
}

html .slots-roll-summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  margin-left: auto;
}

html .slots-roll-summary.net-pos { color: #6ee7b7; }
html .slots-roll-summary.net-neg { color: #fca5a5; }

html .slots-roll-history-list,
html .slots-big-wins-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html .slots-roll-history-list.hidden,
html .slots-big-wins-list.hidden {
  display: none;
}

html .slots-roll-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
}

html .slots-roll-item.roll-win {
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(6, 78, 59, 0.24);
}

html .slots-roll-item.roll-jackpot {
  border-color: #facc15;
  background: rgba(66, 44, 6, 0.8);
}

html .slots-roll-left,
html .slots-roll-right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

html .slots-roll-num {
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 700;
}

html .slots-roll-tag {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

html .slots-roll-tag.tag-free { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
html .slots-roll-tag.tag-bonus { background: rgba(244, 63, 94, 0.22); color: #fda4af; }
html .slots-roll-tag.tag-jackpot { background: rgba(250, 204, 21, 0.28); color: #fde047; }

html .slots-roll-bet {
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
}

html .slots-roll-payout {
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
}

html .slots-roll-net {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.67rem;
  padding: 1px 5px;
  border-radius: 4px;
}

html .slots-roll-net.net-pos {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

html .slots-roll-net.net-neg {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

html .slots-roll-net.net-even {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

html .slots-feed-empty {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 0;
}

html .slots-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
}

html .slots-feed-item.feed-jackpot {
  border-color: #facc15;
  background: rgba(66, 44, 6, 0.85);
}

html .slots-feed-item.feed-mega {
  border-color: #10b981;
}

html .slots-feed-left,
html .slots-feed-right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

html .slots-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

html .slots-feed-name {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html .slots-feed-cab {
  font-size: 0.62rem;
  color: #94a3b8;
}

html .slots-feed-mult {
  font-weight: 800;
  color: #fde047;
}

html .slots-feed-amt {
  font-weight: 800;
  color: #34d399;
}

/* Paytable Drawer Modal */
html .slots-paytable-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(4, 7, 15, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

html .slots-paytable-overlay.hidden { display: none; }

html .slots-paytable-modal {
  width: min(860px, 100%);
  max-height: 92%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  overflow: hidden;
}

html .slots-paytable-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

html .slots-paytable-header h3 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: var(--gold-bright, #eed5a2);
  font-size: 1rem;
}

html .slots-paytable-sub {
  margin: 3px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

html .slots-paytable-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

html .slots-pt-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

html .slots-pt-rule-pill {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.72rem;
  color: #e2e8f0;
}

html .slots-pt-section-title {
  margin: 4px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright, #eed5a2);
}

html .slots-pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

html .slots-pt-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html .slots-pt-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

html .slots-pt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.68rem;
}

html .slots-pt-rates {
  display: flex;
  flex-direction: column;
  color: #cbd5e1;
}

html .slots-pt-lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
}

html .slots-pt-line-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html .pt-line-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: #94a3b8;
}

html .pt-line-mini {
  display: grid;
  grid-template-columns: repeat(5, 8px);
  grid-template-rows: repeat(3, 6px);
  gap: 2px;
}

html .pt-line-dot {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes slotsPulseText {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

@keyframes slotsAnticipationPulse {
  from { box-shadow: inset 0 0 16px rgba(250, 204, 21, 0.35), 0 0 10px rgba(244, 114, 182, 0.4); }
  to { box-shadow: inset 0 0 28px rgba(250, 204, 21, 0.75), 0 0 24px rgba(244, 114, 182, 0.8); }
}

@keyframes slotsStickyPop {
  0% { transform: scale(0.7); opacity: 0.4; }
  65% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slotsBannerPop {
  from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes slotsFloatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-22px); opacity: 0; }
}

@keyframes slotsJackpotGlow {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); box-shadow: 0 0 22px rgba(250, 204, 21, 0.65); }
  100% { transform: scale(1); }
}

@media (max-height: 820px) {
  html #slots-view.active { gap: 5px; padding: 5px 12px; }
  html .slots-header-bar { padding: 5px 12px; }
  html .slots-floor-strip-wrap { padding: 4px 10px; gap: 3px; }
  html .slots-floor-card { padding: 4px 6px; }
  html .slots-cabinet-shell { padding: 7px 10px; gap: 5px; }
  html .slots-reels-stage { min-height: 165px; }
  html #slots-view .slots-controls-dock { padding: 6px 10px; }
  html .slots-side-panel { padding: 8px 10px; gap: 6px; }
}

@media (max-width: 1024px) {
  html .slots-arena-grid { grid-template-columns: minmax(0, 1fr) 232px; }
  html .slots-floor-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  html #slots-view.active {
    height: auto;
    overflow: visible;
    padding-bottom: 18px;
  }
  html .slots-header-bar { flex-wrap: wrap; }
  html .slots-floor-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .slots-arena-grid {
    display: flex;
    flex-direction: column;
  }
  html .slots-reels-stage {
    min-height: 240px;
    height: 36vh;
  }
  html #slots-view .slots-controls-dock {
    flex-direction: column;
    align-items: stretch;
  }
  html .slots-action-panel {
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  html .btn-spin-slots { flex: 1; }
}

/* ==========================================================================
   MONACO TURF CLUB & PORT HERCULE DERBY (Obsidian Salle Blanche Layout)
   ========================================================================== */
html #racing-view {
  width: 100%;
  box-sizing: border-box;
}

html #racing-view.hidden {
  display: none !important;
}

html #racing-view.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 8px 16px 10px;
  overflow: hidden;
}

html #racing-view .racing-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 13px;
  border: 1px solid rgba(238, 213, 162, 0.28);
  background: linear-gradient(135deg, rgba(16, 20, 29, 0.96), rgba(9, 13, 21, 0.96));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

html #racing-view .racing-crest-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(238, 213, 162, 0.2), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(238, 213, 162, 0.45);
  color: #fff2d6;
  flex-shrink: 0;
}

html #racing-view .racing-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

html #racing-view .racing-race-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

html #racing-view .racing-header-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

html #racing-view .racing-surface-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  white-space: nowrap;
}

html #racing-view .surface-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px currentColor;
}

html #racing-view .racing-jackpot-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.42);
}

html #racing-view .racing-jp-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fbbf24;
  white-space: nowrap;
}

html #racing-view .racing-jp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.80rem;
  font-weight: 800;
  color: #fef3c7;
  white-space: nowrap;
}

html #racing-view .racing-countdown-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.28);
  white-space: nowrap;
}

html #racing-view .racing-timer-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #94a3b8;
  white-space: nowrap;
}

html #racing-view .racing-timer-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: #f8fafc;
}

html #racing-view .racing-timer-val.timer-idle { color: #fbbf24; }
html #racing-view .racing-timer-val.timer-live { color: #10b981; }
html #racing-view .racing-timer-val.timer-urgent { color: #f87171; animation: racingUrgentPulse 0.6s ease-in-out infinite alternate; }

html #racing-view .racing-main-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

html #racing-view .racing-arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

html #racing-view .racing-track-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

html #racing-view .racing-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 20, 30, 0.9);
  flex-shrink: 0;
}

html #racing-view .racing-commentary-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.78rem;
  color: #e2e8f0;
}

html #racing-view .commentary-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  padding: 2px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

html #racing-view .live-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: racingLiveDot 1.2s ease-in-out infinite alternate;
}

@keyframes racingLiveDot {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.45; transform: scale(0.8); }
}

html #racing-view #racing-commentary-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html #racing-view .racing-live-top3 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

html #racing-view .live-rank-chip,
html #racing-view .live-leader-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

html #racing-view .live-rank-chip .rank-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  color: #94a3b8;
}

html #racing-view .live-rank-chip.rank-1 {
  border-color: rgba(238, 213, 162, 0.7);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  color: #fff2d6;
}

html #racing-view .rank-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

html #racing-view .racing-canvas-stage {
  position: relative;
  flex: 1.28;
  min-height: 215px;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(238, 213, 162, 0.34);
  background: #071611;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html #racing-view #racing-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

html #racing-view .racing-golden-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(180, 83, 9, 0.94));
  border: 1px solid #fef3c7;
  color: #0b0e14;
  font-size: 0.78rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 6;
  white-space: nowrap;
}

html #racing-view .racing-golden-banner.hidden { display: none; }

html #racing-view .golden-crown-badge {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: #0b0e14;
  color: #fbbf24;
  padding: 2px 7px;
  border-radius: 999px;
}

html #racing-view .racing-podium-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 10;
}

html #racing-view .racing-podium-overlay.hidden { display: none; }

html #racing-view .podium-modal-box {
  width: min(560px, 100%);
  max-height: 100%;
  background: linear-gradient(145deg, #131822, #0c1018);
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

html #racing-view .podium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fde68a;
}

html #racing-view .podium-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  font-weight: 700;
}

html #racing-view .podium-alert {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.70rem;
  font-weight: 700;
  text-align: center;
}

html #racing-view .podium-alert.jackpot-hit {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid #fbbf24;
  color: #fef3c7;
}

html #racing-view .podium-alert.jackpot-roll,
html #racing-view .podium-alert.photo-alert {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

html #racing-view .podium-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

html #racing-view .podium-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 14, 22, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

html #racing-view .podium-card.podium-place-1 {
  border-color: rgba(238, 213, 162, 0.8);
  padding: 12px 6px 9px;
  background: linear-gradient(180deg, rgba(238, 213, 162, 0.2), rgba(212, 175, 55, 0.06));
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.16);
}

html #racing-view .podium-rank {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

html #racing-view .podium-place-1 .podium-rank { color: #fde68a; }

html #racing-view .podium-silk-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

html #racing-view .podium-horse-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}

html #racing-view .podium-meta {
  display: flex;
  gap: 8px;
  font-size: 0.69rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

html #racing-view .podium-golden-tag {
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.25);
  color: #fde047;
  padding: 2px 6px;
  border-radius: 4px;
}

html #racing-view .podium-my-result {
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.8rem;
}

html #racing-view .podium-my-result.my-win {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

html #racing-view .podium-my-result.my-loss {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

html #racing-view .racing-paddock-section {
  flex-shrink: 0;
}

html #racing-view .racing-paddock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  flex-shrink: 0;
}

html #racing-view .racing-horse-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(17, 22, 33, 0.95), rgba(10, 13, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  padding: 6px 8px 8px 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.16s, transform 0.14s, box-shadow 0.16s, background 0.16s;
}

html #racing-view .racing-horse-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--horse-silk, #d4af37);
  opacity: 0.85;
}

html #racing-view .racing-horse-card:hover {
  border-color: rgba(238, 213, 162, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

html #racing-view .racing-horse-card.selected {
  border-color: #eed5a2;
  background: linear-gradient(145deg, rgba(238, 213, 162, 0.14), rgba(13, 17, 27, 0.98));
  box-shadow: 0 0 0 1px rgba(238, 213, 162, 0.38), 0 8px 20px rgba(0, 0, 0, 0.42);
}

html #racing-view .horse-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

html #racing-view .horse-silk-badge {
  width: 28px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

html #racing-view .horse-coat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.38);
  flex-shrink: 0;
}

html #racing-view .horse-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.63rem;
  color: #94a3b8;
}

html #racing-view .horse-live-progress-track {
  position: absolute;
  left: 4px;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

html #racing-view .horse-live-progress-fill {
  height: 100%;
  transition: width 0.12s linear;
  border-radius: 0 2px 2px 0;
}

html #racing-view .horse-pot-share-badge.is-base {
  color: #64748b;
  font-family: inherit;
  font-weight: 600;
}

html #racing-view .horse-identity {
  flex: 1;
  min-width: 0;
}

html #racing-view .horse-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

html #racing-view .horse-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html #racing-view .horse-tag,
html #racing-view .horse-golden-tag {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

html #racing-view .tag-affinity { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
html #racing-view .tag-darkhorse { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
html #racing-view .horse-golden-tag { background: #f59e0b; color: #090d14; }

html #racing-view .horse-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.63rem;
  color: #94a3b8;
}

html #racing-view .horse-odds-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  flex-shrink: 0;
}

html #racing-view .odds-pill {
  font-size: 0.64rem;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
}

html #racing-view .odds-win {
  background: rgba(212, 175, 55, 0.16);
  color: #fde68a;
}

html #racing-view .odds-place {
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

html #racing-view .horse-stats-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

html #racing-view .stat-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: #94a3b8;
}

html #racing-view .stat-mini .bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

html #racing-view .stat-mini .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #d4af37);
}

html #racing-view .horse-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
}

html #racing-view .horse-footer-tags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

html #racing-view .horse-supporters {
  display: flex;
  align-items: center;
  gap: 3px;
}

html #racing-view .horse-bettor-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  color: #0b0e14;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

html #racing-view .no-bets-hint,
html #racing-view .horse-cheers-pill,
html #racing-view .horse-bettor-more {
  font-size: 0.62rem;
  color: #64748b;
}

html #racing-view .horse-cheers-pill {
  color: #fbbf24;
  font-weight: 700;
}

html #racing-view .racing-history-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(15, 20, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  overflow-x: auto;
}

html #racing-view .racing-hist-title {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  flex-shrink: 0;
}

html #racing-view .racing-history-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

html #racing-view .history-placeholder {
  font-size: 0.7rem;
  color: #64748b;
}

html #racing-view .racing-history-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.67rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  white-space: nowrap;
}

html #racing-view .hist-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

html #racing-view .hist-odds {
  font-family: 'JetBrains Mono', monospace;
  color: #fde68a;
  font-weight: 700;
}

html #racing-view .hist-badge {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

html #racing-view .hist-badge.hist-jp {
  background: rgba(245, 158, 11, 0.28);
  color: #fde047;
}

html #racing-view .racing-control-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

html #racing-view .racing-betslip-card,
html #racing-view .racing-tickets-card {
  background: rgba(15, 20, 29, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html #racing-view .racing-tickets-card {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

html #racing-view .betslip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html #racing-view .betslip-header h3 {
  margin: 0;
  font-size: 0.88rem;
  color: #fff2d6;
}

html #racing-view .betslip-sub-caption {
  display: block;
  font-size: 0.62rem;
  color: #8a94a6;
  margin-top: 1px;
}

html #racing-view .racing-runner-spotlight {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 12px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(8, 12, 18, 0.9));
  border: 1px solid rgba(238, 213, 162, 0.26);
}

html #racing-view .racing-runner-spotlight::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--spotlight-silk, #eed5a2);
}

html #racing-view .spotlight-silk-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

html #racing-view .spotlight-meta {
  flex: 1;
  min-width: 0;
}

html #racing-view .spotlight-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #f8fafc;
}

html #racing-view .spotlight-title-row strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html #racing-view .spotlight-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: #94a3b8;
  margin-top: 2px;
}

html #racing-view .spotlight-odds-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(238, 213, 162, 0.16);
  border: 1px solid rgba(238, 213, 162, 0.42);
  color: #fff2d6;
  flex-shrink: 0;
}

html #racing-view .racing-bet-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

html #racing-view .payout-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}

html #racing-view .payout-metric {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html #racing-view .payout-metric .pm-label {
  font-size: 0.56rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html #racing-view .payout-metric .pm-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  color: #f8fafc;
}

html #racing-view .payout-metric .pm-val.is-pot {
  color: #6ee7b7;
}

html #racing-view .payout-metric .pm-val.is-total {
  color: #fff2d6;
}

html #racing-view .racing-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html #racing-view .racing-tickets-card {
  gap: 7px;
}

html #racing-view .racing-tickets-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html #racing-view .racing-feed-group {
  flex: 1;
  min-height: 0;
}

html #racing-view .ticket-count-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: #fde68a;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

html #racing-view .racing-select-wrap,
html #racing-view .racing-bet-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html #racing-view .racing-label {
  font-size: 0.69rem;
  font-weight: 700;
  color: #94a3b8;
}

html #racing-view .racing-select,
html #racing-view .racing-input {
  width: 100%;
  box-sizing: border-box;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 0.78rem;
}

html #racing-view .racing-bettype-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

html #racing-view .bettype-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

html #racing-view .bettype-btn.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
  color: #fef3c7;
}

html #racing-view .bettype-btn .bt-odds {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #fbbf24;
}

html #racing-view .racing-amount-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

html #racing-view .racing-amount-row .racing-input {
  flex: 1;
}

html #racing-view .racing-bet-mod,
html #racing-view .racing-chip-preset {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

html #racing-view .racing-bet-mod:hover,
html #racing-view .racing-chip-preset:hover {
  border-color: rgba(238, 213, 162, 0.55);
  color: #fff2d6;
}

html #racing-view .racing-chip-preset.active {
  background: rgba(238, 213, 162, 0.22);
  border-color: rgba(238, 213, 162, 0.78);
  color: #fff2d6;
}

html #racing-view .racing-presets-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

html #racing-view .racing-potential-box {
  font-size: 0.71rem;
  color: #cbd5e1;
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.11), rgba(10, 14, 21, 0.92));
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 9px;
  padding: 6px 8px;
}

html #racing-view .racing-potential-box .crown-hint {
  display: block;
  font-size: 0.64rem;
  color: #fbbf24;
}

html #racing-view .racing-submit-btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

html #racing-view .racing-cheer-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

html #racing-view .btn-racing-cheer {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

html #racing-view .btn-racing-cheer:hover {
  background: rgba(16, 185, 129, 0.24);
}

html #racing-view .racing-fair-note {
  font-size: 0.61rem;
  color: #94a3b8;
  text-align: center;
}

html #racing-view .betslip-subhead {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

html #racing-view .racing-my-tickets {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html #racing-view .racing-live-bets-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html #racing-view .racing-empty-note {
  font-size: 0.7rem;
  color: #64748b;
}

html #racing-view .my-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html #racing-view .tkt-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #f8fafc;
}

html #racing-view .tkt-type {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

html #racing-view .tkt-win { background: rgba(212, 175, 55, 0.25); color: #fde68a; }
html #racing-view .tkt-place { background: rgba(56, 189, 248, 0.22); color: #bae6fd; }
html #racing-view .tkt-meta { font-size: 0.66rem; color: #94a3b8; }

html #racing-view .racing-cancel-ticket-btn {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

html #racing-view .racing-feed-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  color: #cbd5e1;
}

html #racing-view .feed-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  color: #0b0e14;
  flex-shrink: 0;
}

html #racing-view .feed-player {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html #racing-view .feed-detail {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #fde68a;
  flex-shrink: 0;
}

@keyframes racingUrgentPulse {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.72; transform: scale(1.06); }
}

@media (max-height: 820px) {
  html #racing-view.active { gap: 5px; padding: 5px 12px 6px; }
  html #racing-view .racing-header-bar { padding: 5px 12px; }
  html #racing-view .backlog-game-sub { display: none; }
  html #racing-view .racing-canvas-stage { min-height: 165px; }
  html #racing-view .racing-horse-card { padding: 5px 8px 6px 11px; gap: 3px; }
  html #racing-view .racing-control-column { gap: 5px; }
  html #racing-view .racing-betslip-card { padding: 6px 9px; gap: 4px; }
  html #racing-view .racing-runner-spotlight { padding: 4px 7px 4px 10px; }
  html #racing-view .racing-select-wrap .racing-label { display: none; }
  html #racing-view .racing-select,
  html #racing-view .racing-input { padding: 5px 8px; font-size: 0.74rem; }
  html #racing-view .racing-chip-preset,
  html #racing-view .racing-bet-mod { padding: 3px 6px; }
  html #racing-view .racing-submit-btn { padding: 7px 10px; font-size: 0.78rem; }
  html #racing-view .btn-racing-cheer { padding: 4px 8px; font-size: 0.69rem; }
  html #racing-view .racing-tickets-card { padding: 6px 9px; gap: 4px; overflow-y: auto; }
}

@media (max-width: 1180px) {
  html #racing-view .racing-header-bar { flex-wrap: wrap; }
  html #racing-view .racing-header-metrics { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  html #racing-view .racing-arena-grid { grid-template-columns: minmax(0, 1fr) 262px; }
  html #racing-view .racing-paddock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  html #racing-view.active {
    height: auto;
    overflow: visible;
    padding-bottom: 18px;
  }
  html #racing-view .racing-header-bar { flex-wrap: wrap; }
  html #racing-view .racing-header-metrics { flex-wrap: wrap; width: 100%; }
  html #racing-view .racing-live-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  html #racing-view .racing-commentary-box { width: 100%; }
  html #racing-view .racing-live-top3 {
    flex-wrap: wrap;
    width: 100%;
  }
  html #racing-view .racing-arena-grid {
    display: flex;
    flex-direction: column;
  }
  html #racing-view .racing-canvas-stage {
    min-height: 220px;
    height: 36vh;
  }
  html #racing-view .racing-paddock-grid { grid-template-columns: 1fr; }
}

/* Simplified Fair Random Horse Racing Overrides */
html #racing-view .racing-winner-pot-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(212, 175, 55, 0.16));
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

html #racing-view .racing-winner-pot-pill .racing-jp-label {
  color: #6ee7b7;
}

html #racing-view .racing-winner-pot-pill .racing-jp-val {
  color: #fde68a;
  font-family: 'JetBrains Mono', monospace;
}

html #racing-view .racing-odds-fixed-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.42);
}

html #racing-view .horse-pot-share-badge {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #6ee7b7;
  font-family: 'JetBrains Mono', monospace;
}

html #racing-view .podium-alert.pot-alert {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.48);
  color: #a7f3d0;
}

html #racing-view .racing-single-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.38);
  font-size: 0.62rem;
  font-weight: 800;
  color: #fde68a;
}

html #racing-view .racing-single-mode-pill strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  color: #fbbf24;
}

html #racing-view .racing-horse-card.is-backed {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.24);
}

html #racing-view .horse-backed-tag {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  flex-shrink: 0;
}

html #racing-view .racing-event-banner {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(238, 213, 162, 0.78);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.58);
  z-index: 6;
  pointer-events: none;
  white-space: nowrap;
}

html #racing-view .racing-event-banner.hidden {
  display: none;
}

html #racing-view .racing-event-banner .event-badge {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d4af37;
  color: #090d14;
}

html #racing-view .racing-event-banner.banner-go .event-badge {
  background: #10b981;
}

html #racing-view .racing-event-banner .event-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f8fafc;
}

/* ==========================================================================
   AviaMasters Arcade View (#avia-view)
   ========================================================================== */

html #avia-view.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html #avia-view .avia-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  flex: 0 0 auto;
  min-height: 44px;
}

html #avia-view .avia-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

html #avia-view .avia-game-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #eed5a2;
  line-height: 1.1;
}

html #avia-view .avia-game-sub {
  display: block;
  font-size: 0.65rem;
  color: rgba(203, 213, 225, 0.75);
}

html #avia-view .avia-history-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

html #avia-view .avia-hist-empty {
  font-size: 0.68rem;
  color: rgba(203, 213, 225, 0.55);
  font-style: italic;
}

html #avia-view .avia-hist-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html #avia-view .avia-hist-pill.is-splash {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

html #avia-view .avia-hist-pill.is-low {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

html #avia-view .avia-hist-pill.is-win {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

html #avia-view .avia-hist-pill.is-mega {
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.7);
  color: #fde047;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.25);
}

html #avia-view .avia-session-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

html #avia-view .avia-stat-pill {
  display: flex;
  flex-direction: column;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html #avia-view .avia-stat-pill-gold {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.08);
}

html #avia-view .avia-stat-lbl {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

html #avia-view .avia-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  color: #f8fafc;
}

html #avia-view .avia-stat-val.is-positive { color: #34d399; }
html #avia-view .avia-stat-val.is-negative { color: #f87171; }

html #avia-view .avia-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(238, 213, 162, 0.24);
  background: #060b16;
  contain: layout paint;
}

html #avia-view .avia-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

html #avia-view .avia-hud-telemetry {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 8px;
  pointer-events: none;
  z-index: 4;
}

html #avia-view .avia-tele-item {
  display: flex;
  flex-direction: column;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html #avia-view .avia-tele-lbl {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

html #avia-view .avia-tele-item strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #e2e8f0;
}

html #avia-view .avia-live-counter-box {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 18px;
  border-radius: 12px;
  background: rgba(10, 14, 24, 0.84);
  border: 1px solid rgba(238, 213, 162, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.52);
  pointer-events: none;
  z-index: 5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html #avia-view .avia-live-counter-box.tone-win {
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

html #avia-view .avia-live-counter-box.tone-gold {
  border-color: rgba(250, 204, 21, 0.92);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.45);
}

html #avia-view .avia-live-counter-box.tone-rocket {
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

html #avia-view .avia-live-counter-box.tone-pop {
  animation: aviaCounterPop 0.26s ease-out;
}

@keyframes aviaCounterPop {
  0% { transform: translateX(-50%) scale(1.16); }
  100% { transform: translateX(-50%) scale(1); }
}

html #avia-view .avia-counter-kicker {
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(238, 213, 162, 0.78);
}

html #avia-view .avia-counter-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

html #avia-view .avia-counter-main strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.24rem;
  font-weight: 900;
  color: #ffffff;
}

html #avia-view .avia-counter-mult {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde047;
}

html #avia-view .avia-progress-box {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 8px;
  pointer-events: none;
  z-index: 4;
}

html #avia-view .avia-endless-stat {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 58px;
}

html #avia-view .avia-endless-stat strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #eed5a2;
}

html #avia-view .avia-counter-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

html #avia-view .avia-combo-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #0b0f19;
  letter-spacing: 0.06em;
}

html #avia-view .avia-combo-pill.hidden { display: none; }

html #avia-view .avia-chain-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 11, 22, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 4;
  max-width: 90%;
  overflow: hidden;
}

html #avia-view .avia-chain-bar:empty { display: none; }

html #avia-view .avia-chain-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

html #avia-view .avia-chain-pill.is-start {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

html #avia-view .avia-chain-pill.is-add {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}

html #avia-view .avia-chain-pill.is-mult {
  background: rgba(250, 204, 21, 0.22);
  border: 1px solid rgba(253, 224, 71, 0.75);
  color: #fde047;
}

html #avia-view .avia-chain-pill.is-rocket {
  background: rgba(239, 68, 68, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fca5a5;
}

html #avia-view .avia-result-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 28px;
  border-radius: 16px;
  background: rgba(12, 16, 26, 0.94);
  border: 1.5px solid rgba(52, 211, 153, 0.85);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 8;
  animation: aviaBannerPop 0.24s ease-out;
}

html #avia-view .avia-result-banner.hidden { display: none; }

html #avia-view .avia-result-banner.banner-mega {
  background: linear-gradient(140deg, rgba(16, 18, 28, 0.96), rgba(66, 44, 12, 0.95));
  border-color: rgba(250, 204, 21, 0.92);
  box-shadow: 0 0 36px rgba(250, 204, 21, 0.45), 0 12px 34px rgba(0, 0, 0, 0.7);
}

html #avia-view .avia-result-banner.banner-splash {
  border-color: rgba(239, 68, 68, 0.82);
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.35), 0 12px 34px rgba(0, 0, 0, 0.7);
}

@keyframes aviaBannerPop {
  from { opacity: 0; transform: translate(-50%, -44%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

html #avia-view .avia-result-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #cbd5e1;
}

html #avia-view .avia-result-banner.banner-mega .avia-result-kicker { color: #fde047; }
html #avia-view .avia-result-banner.banner-splash .avia-result-kicker { color: #fca5a5; }

html #avia-view .avia-result-mult {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
}

html #avia-view .avia-result-payout {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 800;
  color: #34d399;
}

html #avia-view .avia-result-banner.banner-splash .avia-result-payout {
  color: #f87171;
}

html #avia-view .avia-controls-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  flex: 0 0 auto;
}

html #avia-view .avia-bet-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html #avia-view .avia-bet-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

html #avia-view .avia-ctrl-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(238, 213, 162, 0.82);
}

html #avia-view .avia-bet-input {
  width: 88px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(238, 213, 162, 0.32);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

html #avia-view .avia-mod-btns,
html #avia-view .avia-quick-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

html #avia-view .btn-avia-mod,
html #avia-view .btn-avia-chip,
html #avia-view .btn-avia-speed,
html #avia-view .btn-avia-skip {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

html #avia-view .btn-avia-mod:hover,
html #avia-view .btn-avia-chip:hover,
html #avia-view .btn-avia-speed:hover {
  border-color: rgba(238, 213, 162, 0.55);
  color: #fde68a;
}

html #avia-view .btn-avia-max {
  color: #fde68a;
  border-color: rgba(212, 175, 55, 0.4);
}

html #avia-view .avia-flight-opts {
  display: flex;
  align-items: center;
  gap: 10px;
}

html #avia-view .avia-speed-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

html #avia-view .avia-speed-pills {
  display: flex;
  gap: 5px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html #avia-view .btn-avia-speed.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.36), rgba(245, 158, 11, 0.24));
  border-color: #eed5a2;
  color: #fff2d6;
}

html #avia-view .avia-launch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

html #avia-view .btn-avia-fly {
  min-width: 158px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #d4af37, #b45309);
  color: #0b0f19;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

html #avia-view .btn-avia-fly:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.5);
}

html #avia-view .btn-avia-fly:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

html #avia-view .avia-fly-main {
  font-family: 'Cinzel', serif;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

html #avia-view .avia-fly-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  font-weight: 800;
  opacity: 0.9;
}

@media (max-height: 820px) {
  html #avia-view.active { gap: 6px; padding: 6px 12px; }
  html #avia-view .avia-header-bar { padding: 5px 10px; min-height: 38px; }
  html #avia-view .avia-controls-dock { padding: 6px 10px; }
  html #avia-view .avia-stage { min-height: 180px; }
}

@media (max-width: 759px) {
  html #avia-view.active {
    padding: 6px;
    gap: 6px;
    overflow-y: auto;
  }
  html #avia-view .avia-header-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  html #avia-view .avia-history-strip {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  html #avia-view .avia-stage {
    min-height: 260px;
  }
  html #avia-view .avia-hud-telemetry {
    top: auto;
    bottom: 8px;
    left: 8px;
    gap: 5px;
  }
  html #avia-view .avia-tele-item {
    padding: 3px 7px;
  }
  html #avia-view .avia-live-counter-box {
    top: 8px;
    padding: 4px 14px;
  }
  html #avia-view .avia-progress-box { display: none; }
  html #avia-view .avia-chain-bar {
    bottom: auto;
    top: 56px;
    max-width: 94%;
  }
  html #avia-view .avia-controls-dock {
    flex-direction: column;
    align-items: stretch;
  }
  html #avia-view .avia-bet-input-wrap,
  html #avia-view .avia-quick-chips,
  html #avia-view .avia-flight-opts,
  html #avia-view .avia-launch-wrap {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  html #avia-view .btn-avia-fly {
    flex: 1;
  }
}






/* ==========================================================================
   Monte Carlo Boulevard Cross (#cross-view)
   ========================================================================== */

html #cross-view.active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html #cross-view .cross-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  flex: 0 0 auto;
  min-height: 44px;
}

html #cross-view .cross-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

html #cross-view .cross-game-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #eed5a2;
  line-height: 1.1;
}

html #cross-view .cross-game-sub {
  display: block;
  font-size: 0.65rem;
  color: rgba(203, 213, 225, 0.78);
}

html #cross-view .cross-multiplier-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

html #cross-view .cross-ladder-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 20, 32, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.22);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #cbd5e1;
  flex-shrink: 0;
}

html #cross-view .cross-ladder-pill .cl-lane {
  color: rgba(212, 175, 55, 0.85);
  font-weight: 700;
}

html #cross-view .cross-ladder-pill .cl-mult {
  font-weight: 800;
}

html #cross-view .cross-ladder-pill.is-next {
  background: rgba(212, 175, 55, 0.2);
  border-color: #e5c158;
  color: #fef08a;
}

html #cross-view .cross-session-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

html #cross-view .cross-stat-pill {
  display: flex;
  flex-direction: column;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(12, 16, 26, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html #cross-view .cross-stat-pill-gold {
  border-color: rgba(212, 175, 55, 0.35);
}

html #cross-view .cross-stat-lbl {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.65);
}

html #cross-view .cross-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  color: #f8fafc;
}

html #cross-view .cross-main-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 10px;
}

html #cross-view .cross-arena-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

html #cross-view .cross-stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1018;
  border: 1px solid rgba(212, 175, 55, 0.25);
  contain: layout paint;
}

html #cross-view .cross-canvas {
  display: block;
  width: 100%;
  height: 100%;
  contain: layout paint;
}

html #cross-view .cross-hud-badges {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
  pointer-events: none;
  z-index: 2;
}

html #cross-view .cross-hud-chip {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(11, 14, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html #cross-view .cross-hud-chip-gold {
  border-color: rgba(212, 175, 55, 0.52);
  background: rgba(28, 23, 12, 0.9);
}

html #cross-view .cross-hud-chip .ch-lbl {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: rgba(203, 213, 225, 0.72);
}

html #cross-view .cross-hud-chip strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #f8fafc;
}

html #cross-view .cross-hud-chip-gold strong {
  color: #f5d060;
}

html #cross-view .cross-stage-pill {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 14, 23, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.36);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
}

html #cross-view .cross-stage-pill.active {
  border-color: #34d399;
  color: #6ee7b7;
}

html #cross-view .cross-stage-pill.crashed {
  border-color: #ef4444;
  color: #fca5a5;
}

html #cross-view .cross-result-banner {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

html #cross-view .cross-result-win {
  background: rgba(6, 78, 59, 0.94);
  border: 1px solid #34d399;
  color: #ecfdf5;
}

html #cross-view .cross-result-loss {
  background: rgba(127, 29, 29, 0.94);
  border: 1px solid #f87171;
  color: #fef2f2;
}

html #cross-view .cross-canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(11, 14, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.66rem;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

html #cross-view .cross-controls-dock {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 12px;
}

html #cross-view .cross-stake-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

html #cross-view .cross-ctrl-lbl {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #d4af37;
}

html #cross-view .cross-bet-box {
  display: flex;
  align-items: center;
  background: rgba(9, 12, 20, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 0 8px;
}

html #cross-view .cross-bet-input {
  width: 78px;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 6px 2px;
  outline: none;
}

html #cross-view .cross-bet-unit {
  font-size: 0.72rem;
  font-weight: 700;
  color: #d4af37;
}

html #cross-view .cross-quick-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

html #cross-view .cross-chip-btn {
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

html #cross-view .cross-chip-btn:hover:not(:disabled) {
  border-color: #d4af37;
  color: #fef08a;
}

html #cross-view .cross-chip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html #cross-view .cross-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

html #cross-view .btn-cross-primary,
html #cross-view .btn-cross-step,
html #cross-view .btn-cross-cashout {
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  cursor: pointer;
  padding: 9px 18px;
  letter-spacing: 0.04em;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

html #cross-view .btn-cross-primary {
  background: linear-gradient(135deg, #d4af37, #f5d060);
  color: #130e04;
  font-size: 0.82rem;
  min-width: 175px;
}

html #cross-view .btn-cross-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #051b11;
  min-width: 168px;
  padding: 6px 16px;
}

html #cross-view .btn-cross-step .bcs-title {
  font-size: 0.82rem;
  line-height: 1.1;
}

html #cross-view .btn-cross-step .bcs-sub {
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.88;
}

html #cross-view .btn-cross-cashout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fffbeb;
  min-width: 128px;
  padding: 6px 14px;
}

html #cross-view .btn-cross-cashout span {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

html #cross-view .btn-cross-cashout strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
}

html #cross-view .btn-cross-primary:disabled,
html #cross-view .btn-cross-step:disabled,
html #cross-view .btn-cross-cashout:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

html #cross-view .cross-side-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  min-height: 0;
  overflow: hidden;
}

html #cross-view .cross-side-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  flex: 0 0 42%;
}

html #cross-view .cross-history-section {
  flex: 1;
}

html #cross-view .cross-side-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #d4af37;
}

html #cross-view .cross-count-badge {
  background: rgba(212, 175, 55, 0.2);
  color: #fef08a;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
}

html #cross-view .cross-side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

html #cross-view .cross-side-tab {
  padding: 5px 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 800;
  cursor: pointer;
}

html #cross-view .cross-side-tab.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #fef08a;
}

html #cross-view .cross-salon-list,
html #cross-view .cross-history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html #cross-view .cross-salon-row,
html #cross-view .cross-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 20, 32, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
}

html #cross-view .cross-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

html #cross-view .cross-player-name,
html #cross-view .cross-hist-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2e8f0;
}

html #cross-view .cross-player-state {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  color: #94a3b8;
  flex-shrink: 0;
}

html #cross-view .cross-player-state.is-live {
  color: #34d399;
  font-weight: 700;
}

html #cross-view .cross-hist-row.win .cross-hist-val {
  color: #34d399;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

html #cross-view .cross-hist-row.loss .cross-hist-val {
  color: #f87171;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

html #cross-view .cross-empty-note {
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.72);
  font-style: italic;
  padding: 6px 2px;
}

@media (max-width: 960px) {
  html #cross-view.active {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px;
  }
  html #cross-view .cross-header-bar {
    flex-wrap: wrap;
  }
  html #cross-view .cross-multiplier-strip {
    display: none;
  }
  html #cross-view .cross-main-grid {
    grid-template-columns: 1fr;
    flex: none;
  }
  html #cross-view .cross-stage {
    flex: none;
    height: 300px;
    min-height: 280px;
  }
  html #cross-view .cross-controls-dock {
    flex-direction: column;
    align-items: stretch;
  }
  html #cross-view .cross-stake-group {
    justify-content: space-between;
  }
  html #cross-view .cross-action-btns {
    width: 100%;
  }
  html #cross-view .cross-action-btns button {
    flex: 1;
    min-width: 0;
  }
  html #cross-view .cross-side-panel {
    max-height: 260px;
  }
  html #cross-view .cross-canvas-hint {
    display: none;
  }
}

@media (max-width: 760px) {
  html #cross-view .cross-title-wrap {
    flex-shrink: 1;
    min-width: 0;
  }
  html #cross-view .cross-game-sub {
    font-size: 0.6rem;
    white-space: normal;
    line-height: 1.25;
  }
  html #cross-view .cross-hud-badges {
    top: 6px;
    left: 6px;
    gap: 4px;
    flex-wrap: wrap;
  }
  html #cross-view .cross-hud-chip {
    padding: 3px 6px;
  }
  html #cross-view .cross-stage-pill {
    display: none;
  }
  html #cross-view .cross-result-banner {
    font-size: 0.72rem;
    padding: 6px 12px;
    max-width: 92%;
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   Monte Carlo Gouden Krasloten (#lottery-modal Override Styles)
   ========================================================================== */

html .scratch-modal-shell {
  width: min(920px, 95vw);
}

html .scratch-jackpot-val {
  color: #fde047;
  font-family: 'JetBrains Mono', monospace;
}

html .scratch-prize-tiers {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

html .scratch-tier-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 6px;
  border-radius: 10px;
  background: rgba(12, 16, 26, 0.84);
  border: 1px solid rgba(212, 175, 55, 0.24);
  text-align: center;
}

html .scratch-tier-pill.is-unavailable {
  opacity: 0.56;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.28);
}

html .scratch-tier-pill.is-free-ticket {
  border-color: rgba(192, 132, 252, 0.48);
  background: rgba(88, 28, 135, 0.24);
}

html .scratch-tier-pill .stp-top {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

html .scratch-tier-pill .stp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: #f8fafc;
  margin: 2px 0;
}

html .scratch-tier-pill .stp-chance {
  font-size: 0.6rem;
  color: rgba(203, 213, 225, 0.68);
}

html .scratch-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

html .scratch-card-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html .scratch-stage {
  height: 276px;
  padding: 10px;
  display: block;
  contain: layout paint;
  touch-action: none;
}

html .scratch-foil-canvas {
  cursor: grab;
  pointer-events: auto;
  z-index: 8;
  touch-action: none;
}

html .scratch-foil-canvas:active {
  cursor: grabbing;
}

html .scratch-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0;
}

html .scratch-placeholder-note {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-size: 0.84rem;
  color: #e5c158;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 10px;
}

@keyframes scratchCellPop {
  0% { transform: scale(0.92); filter: brightness(1.35); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); filter: brightness(1); }
}

html .scratch-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 10px;
  background: linear-gradient(155deg, #161b2a, #0e121c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px;
  text-align: center;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

html .scratch-cell.is-cell-revealed {
  animation: scratchCellPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  border-color: rgba(245, 196, 81, 0.42);
}

@keyframes scratchNearMatchPulse {
  0%, 100% {
    box-shadow: inset 0 0 10px rgba(251, 191, 36, 0.26), 0 0 8px rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: inset 0 0 18px rgba(253, 224, 71, 0.5), 0 0 16px rgba(251, 191, 36, 0.55);
    border-color: #fde047;
  }
}

html .scratch-cell.is-near-match {
  background: linear-gradient(155deg, rgba(180, 83, 9, 0.28), rgba(212, 175, 55, 0.18));
  animation: scratchNearMatchPulse 1.05s ease-in-out infinite;
}

@keyframes scratchFlakeFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--fx-dx, 14px)), calc(-50% + var(--fx-dy, -18px))) scale(0.35) rotate(140deg);
  }
}

html .scratch-foil-flake {
  position: absolute;
  width: 6px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(135deg, #fef08a, #d97706);
  box-shadow: 0 0 4px rgba(253, 224, 71, 0.75);
  pointer-events: none;
  z-index: 9;
  animation: scratchFlakeFly 0.36s ease-out forwards;
}

html .lottery-draw-status.is-near {
  color: #fde047;
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(146, 64, 14, 0.45);
}

html .scratch-live-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.28);
  margin-bottom: 10px;
}

html .scratch-live-meter .slm-label {
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.75);
  font-weight: 600;
}

html .scratch-live-meter .slm-val {
  font-size: 0.76rem;
  font-weight: 800;
  color: #f3d999;
}

html .scratch-live-meter .slm-val.is-near {
  color: #fbbf24;
}

html .scratch-live-meter .slm-val.is-win {
  color: #34d399;
}

html .scratch-cell.is-winner {
  border-color: #fde047;
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.24), rgba(16, 185, 129, 0.18));
  box-shadow: inset 0 0 14px rgba(253, 224, 71, 0.26);
}

html .scratch-cell.is-dim {
  opacity: 0.5;
}

html .scratch-cell .sc-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

html .scratch-cell .sc-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 800;
}

html .scratch-cell .sc-sub {
  font-size: 0.56rem;
  color: rgba(203, 213, 225, 0.65);
}

html .scratch-stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

html .scratch-stage-actions .lottery-draw-banner {
  flex: 1;
}

html .lottery-draw-banner.is-win {
  background: rgba(6, 78, 59, 0.9);
  border: 1px solid #34d399;
  color: #ecfdf5;
}

html .lottery-draw-banner.is-jackpot {
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.95), rgba(6, 95, 70, 0.95));
  border: 1px solid #fde047;
  color: #fef08a;
}

html .lottery-draw-banner.is-free-ticket {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.95));
  border: 1px solid #c084fc;
  color: #f3e8ff;
}

html #btn-buy-lottery-ticket.is-free-ready {
  background: linear-gradient(135deg, #9333ea, #c084fc);
  color: #ffffff;
  border-color: #e9d5ff;
}

html .lottery-draw-banner.is-miss {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

html .scratch-history-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html .scratch-hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(15, 20, 32, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
}

html .scratch-hist-row .shr-num {
  font-weight: 700;
  color: #e2e8f0;
}

html .scratch-hist-row .shr-lbl {
  flex: 1;
  color: rgba(203, 213, 225, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html .scratch-hist-row.is-win .shr-val {
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
}

html .scratch-hist-row.is-loss .shr-val {
  color: #f87171;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 760px) {
  html .scratch-prize-tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html .scratch-workspace-grid,
  html .scratch-history-columns {
    grid-template-columns: 1fr;
  }
  html .scratch-stage {
    height: 240px;
  }
}

/* ==========================================================================
   Live Deploy & Auto-Update Banner (#deploy-update-banner)
   ========================================================================== */

.deploy-update-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(580px, calc(100vw - 24px));
  padding: 9px 14px;
  border-radius: 999px;
  background: #101521;
  border: 1px solid rgba(212, 175, 55, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
}

.deploy-update-banner.hidden {
  display: none !important;
}

.deploy-update-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
  flex-shrink: 0;
}

.deploy-update-banner.is-reloading .deploy-update-dot {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
}

.deploy-update-text {
  line-height: 1.25;
}

.deploy-reload-btn {
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  background: linear-gradient(135deg, #d4af37, #f5d060);
  color: #130e04;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .deploy-update-banner {
    top: 8px;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   MONTE CARLO KLUIZENROOF (MULTIPLAYER ELIMINATION VAULTS)
   ========================================================================== */
html #vaults-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 24px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

html #vaults-view.hidden {
  display: none !important;
}

html .vaults-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.32);
}

html .vaults-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

html .vaults-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fde047;
}

html .vaults-sub {
  font-size: 0.74rem;
  color: rgba(203, 213, 225, 0.78);
}

html .vaults-kpis {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

html .vaults-kpi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html .vaults-kpi span {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: rgba(203, 213, 225, 0.66);
  font-weight: 700;
}

html .vaults-kpi strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: #f8fafc;
}

html .vaults-kpi.is-net {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 78, 59, 0.25);
}

html .vaults-kpi.is-net strong {
  color: #34d399;
}

html .vaults-phase-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.14);
  color: #fde047;
}

html .vaults-phase-pill.phase-choosing {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html .vaults-phase-pill.phase-revealing {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(185, 28, 28, 0.35);
  color: #fecaca;
}

html .vaults-phase-pill.phase-complete {
  border-color: #fde047;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(16, 185, 129, 0.28));
  color: #fef08a;
}

html .vaults-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 14px;
  align-items: start;
}

html .vaults-arena-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html .vaults-status-banner {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

html .vaults-status-banner.is-choosing {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(6, 78, 59, 0.38);
  color: #d1fae5;
}

html .vaults-status-banner.is-alarm {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(127, 29, 29, 0.45);
  color: #fecaca;
}

html .vaults-status-banner.is-safe {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(6, 95, 70, 0.45);
  color: #a7f3d0;
}

html .vaults-status-banner.is-winner {
  border-color: #fde047;
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.55), rgba(6, 95, 70, 0.55));
  color: #fef08a;
}

html .vaults-doors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

html .vault-door-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
  background: linear-gradient(165deg, #171d2c, #0b0e17);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  text-align: left;
  cursor: default;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

html .vault-door-card.is-clickable {
  cursor: pointer;
  border-color: rgba(212, 175, 55, 0.48);
}

html .vault-door-card.is-clickable:hover {
  transform: translateY(-4px);
  border-color: var(--door-accent, #fde047);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(212, 175, 55, 0.22);
}

html .vault-door-card.is-mine {
  border-color: #fde047;
  background: linear-gradient(165deg, rgba(212, 175, 55, 0.2), rgba(12, 16, 28, 0.96));
  box-shadow: 0 0 22px rgba(253, 224, 71, 0.25);
}

html .vault-door-card.is-mine .vd-wheel-svg {
  transform: rotate(90deg);
}

html .vault-door-card.is-safe {
  border-color: #34d399;
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.24), rgba(6, 78, 59, 0.35));
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.28);
}

html .vault-door-card.is-trapped {
  border-color: #f87171;
  background: linear-gradient(165deg, rgba(185, 28, 28, 0.38), rgba(69, 10, 10, 0.72));
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.38);
}

html .vault-door-card.is-trapped .vd-laser-overlay {
  opacity: 1;
}

html .vault-door-card.is-sealed {
  opacity: 0.42;
  filter: grayscale(0.75);
  background: #0a0c12;
  border-color: rgba(148, 163, 184, 0.2);
}

html .vault-door-card.is-sealed::after {
  content: 'VERZEGELD';
  position: absolute;
  top: 44%;
  left: -14%;
  right: -14%;
  transform: rotate(-14deg);
  text-align: center;
  padding: 4px 0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid rgba(248, 113, 113, 0.55);
  border-bottom: 1px solid rgba(248, 113, 113, 0.55);
  color: #fca5a5;
  pointer-events: none;
}

html .vd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

html .vd-code {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--door-accent, #fde047);
}

html .vd-cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

html .vd-name {
  font-size: 0.7rem;
  color: rgba(203, 213, 225, 0.78);
  margin-top: -4px;
}

html .vd-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  border-radius: 12px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(5, 8, 15, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html .vd-wheel-svg {
  width: 56px;
  height: 56px;
  color: var(--door-accent, #d4af37);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

html .vault-door-card.is-trapped .vd-wheel-svg {
  color: #f87171;
}

html .vault-door-card.is-safe .vd-wheel-svg {
  color: #34d399;
}

html .vd-laser-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -35deg,
    rgba(239, 68, 68, 0.35),
    rgba(239, 68, 68, 0.35) 3px,
    transparent 3px,
    transparent 11px
  );
  transition: opacity 0.22s ease;
}

html .vd-occupants {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 46px;
}

html .vd-empty-slot {
  font-size: 0.64rem;
  color: rgba(148, 163, 184, 0.68);
}

html .vd-occupant {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.66rem;
  font-weight: 600;
}

html .vd-occupant.is-self {
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.42);
  color: #fef08a;
}

html .vd-occupant.is-elim {
  text-decoration: line-through;
  opacity: 0.6;
}

html .vd-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 800;
  color: #0b0e14;
  flex-shrink: 0;
}

html .vd-cta {
  text-align: center;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  margin-top: auto;
}

html .vault-door-card.is-clickable .vd-cta {
  background: rgba(212, 175, 55, 0.18);
  color: #fde047;
}

html .vault-door-card.is-mine .vd-cta {
  background: rgba(253, 224, 71, 0.25);
  color: #fef08a;
}

html .vault-door-card.is-safe .vd-cta {
  background: rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}

html .vault-door-card.is-trapped .vd-cta {
  background: rgba(220, 38, 38, 0.35);
  color: #fecaca;
}

html .vaults-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.26);
}

html .vaults-stake-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html .vaults-ctrl-lbl {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(229, 193, 88, 0.82);
}

html .vaults-stake-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html .vaults-stake-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

html .vaults-stake-btn.is-leading {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.22);
}

html .vaults-stake-btn.active {
  border-color: #fde047;
  background: rgba(212, 175, 55, 0.24);
  color: #fde047;
}

html .vaults-stake-btn .vs-votes {
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-weight: 800;
}

html .vaults-stake-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html .vaults-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

html .vaults-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.24);
}

html .vaults-side-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html .vaults-side-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e5c158;
}

html .vaults-roster-list,
html .vaults-wins-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

html .vaults-roster-row,
html .vaults-win-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.74rem;
}

html .vaults-roster-row.is-self {
  border-color: rgba(250, 204, 21, 0.45);
}

html .vaults-roster-row.is-elim {
  opacity: 0.55;
}

html .vr-mono {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #0b0e14;
  flex-shrink: 0;
}

html .vr-name,
html .vw-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

html .vr-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

html .vr-badge.is-picked {
  background: rgba(212, 175, 55, 0.22);
  color: #fde047;
}

html .vr-badge.is-winner {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

html .vr-badge.is-elim {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

html .vw-meta {
  font-size: 0.64rem;
  color: rgba(148, 163, 184, 0.8);
}

html .vw-prize {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #34d399;
}

html .vaults-empty-note {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.75);
  padding: 6px 2px;
}

@keyframes vaultImpactShake {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  14% { transform: translate3d(-8px, -4px, 0) rotate(-0.8deg); }
  28% { transform: translate3d(8px, 4px, 0) rotate(0.8deg); }
  42% { transform: translate3d(-6px, 3px, 0) rotate(-0.5deg); }
  58% { transform: translate3d(5px, -3px, 0) rotate(0.4deg); }
  74% { transform: translate3d(-3px, 2px, 0) rotate(-0.2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes vaultStrobePulse {
  0%, 100% {
    box-shadow: 0 0 26px rgba(239, 68, 68, 0.45), inset 0 0 22px rgba(220, 38, 38, 0.25);
    border-color: #f87171;
  }
  50% {
    box-shadow: 0 0 42px rgba(248, 113, 113, 0.9), inset 0 0 36px rgba(239, 68, 68, 0.48);
    border-color: #fecaca;
  }
}

@keyframes vaultLaserSweep {
  0% { transform: translateY(-100%); opacity: 0.85; }
  50% { transform: translateY(0%); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0.85; }
}

html .vaults-arena-col.is-impact-shake,
html .vaults-doors-grid.is-impact-shake {
  animation: vaultImpactShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

html .vaults-status-banner.is-scanning {
  border-color: rgba(251, 191, 36, 0.8);
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.55), rgba(153, 27, 27, 0.45), rgba(120, 53, 15, 0.55));
  color: #fde68a;
  letter-spacing: 0.04em;
}

html .vaults-status-banner.is-alarm.is-brutal {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.82), rgba(69, 10, 10, 0.92));
  color: #fee2e2;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.42);
}

html .vault-door-card.is-scanning {
  opacity: 0.62;
  border-color: rgba(148, 163, 184, 0.28);
}

html .vault-door-card.is-scan-target {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  border-color: #fde047;
  background: linear-gradient(165deg, rgba(217, 119, 6, 0.34), rgba(127, 29, 29, 0.62));
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.55), 0 0 14px rgba(239, 68, 68, 0.45);
  z-index: 2;
}

html .vault-door-card.is-scan-target .vd-laser-overlay {
  opacity: 0.95;
  background: linear-gradient(180deg, transparent 0%, rgba(251, 191, 36, 0.55) 48%, rgba(239, 68, 68, 0.85) 52%, transparent 100%);
  animation: vaultLaserSweep 0.26s linear infinite;
}

html .vault-door-card.is-scan-target .vd-wheel-svg {
  color: #fde047;
  transform: rotate(35deg);
}

html .vault-door-card.is-trapped.is-brutal-hit {
  border-color: #f87171;
  background: linear-gradient(165deg, rgba(185, 28, 28, 0.62), rgba(45, 6, 6, 0.94));
  animation: vaultStrobePulse 0.42s ease-in-out infinite;
  z-index: 2;
}

html .vault-door-card.is-trapped.is-brutal-hit .vd-wheel-svg {
  transform: rotate(-145deg) scale(1.06);
  color: #fecaca;
}

html .vault-door-card.is-trapped.is-brutal-hit:not(.is-sealed)::after {
  content: 'GEKRAAKT • AFGEVALLEN!';
  position: absolute;
  top: 40%;
  left: -16%;
  right: -16%;
  transform: rotate(-11deg);
  text-align: center;
  padding: 5px 0;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: rgba(153, 27, 27, 0.96);
  border-top: 2px solid #fecaca;
  border-bottom: 2px solid #fecaca;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  z-index: 4;
}

html .vd-occupant.is-elim.is-elim-brutal {
  background: rgba(185, 28, 28, 0.42);
  border: 1px solid rgba(248, 113, 113, 0.75);
  color: #fecaca;
  text-decoration: none;
  opacity: 1;
  font-weight: 800;
}

html .vaults-roster-row.is-elim {
  opacity: 0.68;
  border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 1180px) {
  html .vaults-doors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  html .vaults-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html #vaults-view {
    padding: 10px 10px 24px;
  }
  html .vaults-doors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   SPOTLIGHT 2X ROTATION PILL, BIGGEST ACTIVE POT PILL & DOCK HIGHLIGHT
   ========================================================================== */
html .master-header > .header-left {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

html .hud-live-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}

html .hud-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: linear-gradient(135deg, rgba(16, 22, 30, 0.92), rgba(9, 13, 18, 0.96));
  color: #f8fafc;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html .hud-live-pill.hidden {
  display: none !important;
}

html .hud-live-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(253, 224, 71, 0.75);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

html .hud-spotlight-pill.is-luck {
  border-color: rgba(251, 191, 36, 0.65);
  background: linear-gradient(135deg, rgba(66, 42, 10, 0.78), rgba(22, 16, 8, 0.94));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.22);
}

html .hud-spotlight-pill.is-winst {
  border-color: rgba(52, 211, 153, 0.68);
  background: linear-gradient(135deg, rgba(6, 55, 39, 0.82), rgba(7, 24, 19, 0.95));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.22);
}

html .hud-spotlight-pill.is-cooldown {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
  color: rgba(226, 232, 240, 0.85);
}

html .hud-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.22);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.48);
}

html .hud-spotlight-pill.is-winst .hud-pill-badge {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.55);
}

html .hud-spotlight-pill.is-cooldown .hud-pill-badge {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.32);
}

html .hud-pill-label {
  font-weight: 700;
  color: #f8fafc;
}

html .hud-pill-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(253, 224, 71, 0.95);
  padding-left: 2px;
}

html .hud-spotlight-pill.is-cooldown .hud-pill-timer {
  color: #94a3b8;
}

html .hud-pot-pill {
  border-color: rgba(212, 175, 55, 0.58);
  background: linear-gradient(135deg, rgba(45, 32, 10, 0.82), rgba(16, 12, 7, 0.94));
  min-width: 0;
  max-width: 175px;
  overflow: hidden;
}

html .hud-pot-pill .hud-pot-icon {
  color: #fbbf24;
  flex-shrink: 0;
}

html .hud-pot-pill .hud-pot-label {
  color: rgba(241, 245, 249, 0.88);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

html .hud-pot-pill .hud-pot-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde047;
}

/* Sidebar left button 2X spotlight highlight */
html #dock-sidebar-left .dock-left-btn.dock-spotlight-active {
  border-color: rgba(251, 191, 36, 0.82);
  background: linear-gradient(160deg, rgba(120, 79, 12, 0.42), rgba(22, 16, 8, 0.92));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.32), inset 0 0 10px rgba(251, 191, 36, 0.14);
}

html #dock-sidebar-left .dock-left-btn.dock-spotlight-active.dock-spotlight-winst {
  border-color: rgba(52, 211, 153, 0.85);
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.52), rgba(8, 28, 22, 0.94));
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.34), inset 0 0 10px rgba(52, 211, 153, 0.14);
}

html #dock-sidebar-left .dock-spotlight-badge {
  position: absolute;
  top: 3px;
  left: 4px;
  padding: 1px 4px;
  border-radius: 999px;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 11px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.5);
  pointer-events: none;
  z-index: 2;
}

html #dock-sidebar-left .dock-left-btn.dock-spotlight-winst .dock-spotlight-badge {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #052e16;
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.5);
}

/* Subtle top Spotlight popup toast (zero full-screen clutter) */
.spotlight-toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 260;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(460px, calc(100vw - 24px));
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(9, 13, 20, 0.98));
  color: #f8fafc;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.58), 0 0 18px rgba(245, 158, 11, 0.25);
  cursor: pointer;
  text-align: left;
  animation: spotlightToastSlide 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.spotlight-toast.hidden {
  display: none !important;
}

.spotlight-toast.is-winst {
  border-color: rgba(52, 211, 153, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.58), 0 0 18px rgba(16, 185, 129, 0.25);
}

.spotlight-toast-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #111827;
}

.spotlight-toast.is-winst .spotlight-toast-badge {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #052e16;
}

.spotlight-toast-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.spotlight-toast-copy strong {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fef08a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-toast.is-winst .spotlight-toast-copy strong {
  color: #a7f3d0;
}

.spotlight-toast-copy small {
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes spotlightToastSlide {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (min-width: 960px) and (max-width: 1199px) {
  html .hud-live-strip {
    gap: 4px;
  }
  html .hud-live-pill {
    height: 27px;
    padding: 0 8px;
    font-size: 0.69rem;
    gap: 4px;
  }
  html .hud-pill-badge {
    font-size: 0.58rem;
    padding: 2px 5px;
  }
}

@media (max-width: 959px) {
  html #casino-app > .master-header {
    flex: 0 0 auto;
    height: auto;
    min-height: var(--shell-hdr-h);
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 6px;
    padding: 5px 8px;
  }
  html .master-header > .header-left {
    display: contents;
  }
  html #casino-app > .master-header .hud-live-strip {
    order: 10;
    flex: 1 0 100%;
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
  }
  html .hud-live-pill {
    height: 25px;
    padding: 0 9px;
    font-size: 0.7rem;
    gap: 5px;
  }
  .spotlight-toast {
    top: 90px;
  }
}

@media (max-width: 520px) {
  html .hud-live-pill {
    height: 23px;
    padding: 0 7px;
    font-size: 0.65rem;
    gap: 4px;
  }
  html .hud-pill-badge {
    font-size: 0.56rem;
    padding: 1px 5px;
  }
  html .hud-pot-pill .hud-pot-label {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==========================================================================
   RENZO ADMIN CHIPS & ACCOUNT MANAGEMENT MODAL
   ========================================================================== */
html .btn-admin-hud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.58);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.72), rgba(30, 14, 18, 0.94));
  color: #fecaca;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

html .btn-admin-hud.hidden {
  display: none !important;
}

html .btn-admin-hud:hover {
  transform: translateY(-1px);
  border-color: rgba(252, 165, 165, 0.9);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.admin-modal-shell {
  width: min(760px, 95vw);
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
}

.admin-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-search-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 0.84rem;
}

.admin-reset-stats-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.admin-security-warn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(120, 53, 15, 0.35);
  color: #fde68a;
  font-size: 0.78rem;
}

.admin-security-warn.hidden {
  display: none !important;
}

.admin-accounts-list {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52dvh;
  padding-right: 4px;
}

.admin-account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(10, 16, 24, 0.72);
}

.admin-account-row.is-admin-self {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(45, 32, 10, 0.38);
}

.admin-account-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  flex: 1 1 200px;
}

.admin-avatar-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0b1116;
  flex-shrink: 0;
}

.admin-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.86rem;
  color: #f8fafc;
}

.admin-status-tag {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.admin-status-tag.online {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.admin-substats {
  font-size: 0.72rem;
  color: #94a3b8;
}

.admin-chips-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fde047;
  min-width: 110px;
}

.admin-actions-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-quick-btn {
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-quick-btn:hover {
  border-color: rgba(253, 224, 71, 0.8);
  color: #fde047;
}

.admin-quick-btn.danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.45);
  color: #fecaca;
}

.admin-quick-btn.danger:hover {
  border-color: #f87171;
  background: rgba(185, 28, 28, 0.68);
}

.admin-custom-input {
  width: 96px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
}

.admin-status-note {
  font-size: 0.74rem;
  color: #94a3b8;
  min-height: 16px;
}

@media (max-width: 759px) {
  html .btn-admin-hud {
    height: 28px;
    padding: 0 8px;
    font-size: 0.66rem;
  }
}
