/**
 * Site Art Director 2026 — shell + slot HUD only.
 * Does NOT touch reels, bonus presentation, or symbol assets.
 * Iteration v3 (kept): glass dock HUD, Syne/DM Sans, refined chrome.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

/* ── Design tokens (scoped) ── */
.showcase-shell {
  --ad-bg-deep: #06060b;
  --ad-bg-elevated: rgba(14, 14, 22, 0.72);
  --ad-glass: rgba(18, 18, 28, 0.55);
  --ad-glass-border: rgba(255, 255, 255, 0.09);
  --ad-glass-highlight: rgba(255, 255, 255, 0.04);
  --ad-accent: #a78bfa;
  --ad-accent-bright: #c4b5fd;
  --ad-money: #5eead4;
  --ad-money-dim: #2dd4bf;
  --ad-gold: #fbbf24;
  --ad-warm: #fb7185;
  --ad-text: #f1f5f9;
  --ad-text-muted: #94a3b8;
  --ad-font-display: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --ad-font-ui: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --ad-radius-sm: 10px;
  --ad-radius-md: 14px;
  --ad-radius-pill: 999px;
  --ad-shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.45);
  --ad-shadow-glow: 0 0 40px rgba(167, 139, 250, 0.12);
  font-family: var(--ad-font-ui);
}

/* ── Site background ── */
.showcase-shell.playground-player {
  background:
    radial-gradient(ellipse 90% 50% at 50% -15%, rgba(167, 139, 250, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(94, 234, 212, 0.06), transparent 45%),
    radial-gradient(ellipse 35% 25% at 100% 60%, rgba(251, 113, 133, 0.05), transparent 40%),
    linear-gradient(165deg, #08080f 0%, var(--ad-bg-deep) 45%, #030308 100%);
}

/* ── Sidebar ── */
.showcase-sidebar {
  background: linear-gradient(180deg, rgba(12, 12, 20, 0.92), rgba(6, 6, 11, 0.96));
  border-right: 1px solid var(--ad-glass-border);
  box-shadow: inset -1px 0 0 var(--ad-glass-highlight);
  backdrop-filter: blur(16px);
}

.showcase-logo-mark {
  border-radius: var(--ad-radius-sm);
  background: linear-gradient(135deg, var(--ad-gold) 0%, var(--ad-warm) 50%, var(--ad-accent) 100%);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
  font-family: var(--ad-font-display);
}

.showcase-sidebar-brand strong {
  font-family: var(--ad-font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
}

.showcase-sidebar-heading,
.cat-room-panel h3.showcase-sidebar-heading {
  font-family: var(--ad-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-text-muted);
}

.showcase-nav-item {
  font-weight: 500;
  border-radius: var(--ad-radius-sm);
}

.showcase-nav-item:hover,
.showcase-nav-item.active {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.28);
}

/* ── Topbar ── */
.showcase-topbar {
  min-height: 52px;
  max-height: 56px;
  padding: 0.4rem 1.1rem;
  background: var(--ad-glass);
  border-bottom: 1px solid var(--ad-glass-border);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 var(--ad-glass-highlight);
}

.showcase-topbar-title {
  font-family: var(--ad-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  background: linear-gradient(90deg, #fff 0%, var(--ad-accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase-topbar-pill {
  font-family: var(--ad-font-ui);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--ad-accent-bright);
}

.showcase-mode-badge {
  font-family: var(--ad-font-ui);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--ad-radius-pill);
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--ad-money);
}

.showcase-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--ad-radius-pill);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-text-muted);
  border: 1px solid var(--ad-glass-border);
  background: rgba(0, 0, 0, 0.25);
}

.showcase-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: ad-live-pulse 2s ease-in-out infinite;
}

@keyframes ad-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.showcase-balance-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.75rem;
  border-radius: var(--ad-radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(94, 234, 212, 0.08);
}

.showcase-balance-chip .label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-text-muted);
}

.showcase-balance-chip strong {
  font-family: var(--ad-font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ad-money);
  font-variant-numeric: tabular-nums;
}

.showcase-balance-plus {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.12);
  color: var(--ad-money);
  font-weight: 700;
  line-height: 1;
}

.beta-ui-btn,
.showcase-account-btn,
.showcase-icon-btn {
  font-family: var(--ad-font-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--ad-radius-sm);
}

.beta-ui-btn--daily {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  border: none !important;
  animation: none;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

/* ── Stage card frame (chrome only, not reels) ── */
.game-stage-card--v2 {
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-glass-border);
  box-shadow: var(--ad-shadow-soft), var(--ad-shadow-glow);
  overflow: hidden;
}

/* ── HUD glass dock ── */
.slot-hud-v2 {
  margin: 0 0.35rem 0.35rem;
  padding: 0.4rem 0.65rem 0.45rem;
  min-height: 54px;
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-glass-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 12%),
    linear-gradient(0deg, rgba(6, 6, 11, 0.92), rgba(10, 10, 18, 0.88));
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    0 -4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-top: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0.5rem;
}

.slot-hud-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slot-hud-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--ad-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 4.5rem;
}

.slot-hud-stat .label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-text-muted);
}

.slot-hud-stat strong {
  font-family: var(--ad-font-ui) !important;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ad-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.slot-hud-stat--bet strong {
  color: var(--ad-gold);
}

.slot-hud-stat:first-child strong {
  color: var(--ad-money);
}

.slot-hud-stat--win strong {
  color: var(--ad-accent-bright);
}

.slot-hud-stat--bonus strong {
  color: var(--ad-warm);
}

.slot-hud-bet-chip {
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  border-radius: var(--ad-radius-sm);
  padding: 0.1rem 0.4rem;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.slot-hud-bet-chip:hover {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.14);
  transform: translateY(-1px);
}

.slot-hud-message {
  font-family: var(--ad-font-ui);
  font-size: clamp(0.55rem, 1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ad-text-muted);
  opacity: 0.85;
}

.slot-hud-message::before {
  content: '⌨ ';
  opacity: 0.5;
}

/* ── HUD icon buttons (CSS glyphs) ── */
.slot-hud-icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--ad-radius-sm);
  border: 1px solid var(--ad-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ad-text-muted);
  font-size: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.slot-hud-icon-btn:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--ad-accent-bright);
  transform: translateY(-1px);
}

.hud-icon {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hud-icon--info::after {
  content: 'i';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ad-font-display);
  font-weight: 800;
  font-size: 0.85rem;
  font-style: italic;
}

.hud-icon--sound::after {
  content: '♪';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.hud-icon--settings::after {
  content: '⚙';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.hud-icon--history::after {
  content: '↺';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* ── Spin cluster ── */
.slot-hud-spin-cluster {
  padding: 0.2rem;
  border-radius: var(--ad-radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--ad-glass-border);
  gap: 0.25rem;
}

.slot-hud-step--gloss {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--ad-glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ad-gold);
  font-size: 1.1rem;
  font-weight: 600;
}

.slot-hud-step--gloss:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.45);
}

.slot-hud-spin--premium {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.5);
  background: linear-gradient(145deg, #2e1065 0%, #1e1b4b 40%, #0f0a1a 100%);
  box-shadow:
    0 4px 20px rgba(167, 139, 250, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}

.slot-hud-spin--premium:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(167, 139, 250, 0.45);
}

.slot-hud-spin--premium::before {
  opacity: 0.5;
  filter: blur(8px);
}

.slot-hud-spin-icon {
  font-size: 1.15rem;
  display: block;
  line-height: 1;
}

.slot-hud-spin-label {
  font-family: var(--ad-font-display);
  font-weight: 800;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.slot-hud-pill {
  font-family: var(--ad-font-ui);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  border-radius: var(--ad-radius-pill);
  border: 1px solid var(--ad-glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ad-text-muted);
  text-transform: uppercase;
}

.slot-hud-auto.is-active,
.slot-hud-turbo.is-active {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.45);
  color: var(--ad-money);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.2);
}

/* ── Modals (player chrome) ── */
.slot-modal-card {
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-glass-border);
  background: linear-gradient(165deg, #12121c 0%, #0a0a12 100%);
  box-shadow: var(--ad-shadow-soft);
}

.slot-modal-header h2 {
  font-family: var(--ad-font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bet-picker-panel {
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-glass-border);
  background: rgba(10, 10, 18, 0.96);
  backdrop-filter: blur(20px);
}

.bet-picker-option {
  font-family: var(--ad-font-ui);
  font-weight: 600;
  border-radius: var(--ad-radius-sm);
  border: 1px solid var(--ad-glass-border);
  transition: background 0.12s, border-color 0.12s;
}

.bet-picker-option:hover,
.bet-picker-option.is-selected {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
}

/* ── History panel ── */
.showcase-history.player-history-panel {
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-glass-border);
  background: var(--ad-glass);
  backdrop-filter: blur(12px);
}

.player-history-header h2 {
  font-family: var(--ad-font-display);
  font-size: 1rem;
}

/* ── Companion panel in sidebar ── */
.cat-room-panel {
  border-radius: var(--ad-radius-md);
  border: 1px solid var(--ad-glass-border);
  background: rgba(0, 0, 0, 0.25);
}

/* ── Responsive HUD ── */
@media (max-width: 900px) {
  .slot-hud-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.35rem;
  }

  .slot-hud-message {
    order: -1;
    padding-bottom: 0.15rem;
  }

  .slot-hud-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .showcase-topbar-right .showcase-profile-btn,
  .showcase-topbar-right .showcase-account-btn {
    display: none;
  }
}

/* ── Beta auth + profile modals alignment ── */
.beta-auth-card,
.beta-profile-card,
.beta-tournament-card {
  border-radius: var(--ad-radius-md) !important;
  border: 1px solid var(--ad-glass-border) !important;
  background: linear-gradient(165deg, #14141f 0%, #0a0a12 100%) !important;
}

.beta-auth-header h2,
.beta-profile-header h2,
.beta-tournament-header h2 {
  font-family: var(--ad-font-display);
  font-weight: 700;
}

.beta-ui-btn--primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

/* ── Win stat pop animation (HUD only) ── */
.slot-hud-stat--win:not([hidden]) {
  animation: ad-stat-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-color: rgba(167, 139, 250, 0.45);
}

@keyframes ad-stat-pop {
  from { transform: scale(0.92); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Balance pulse sync with wow pass ── */
.showcase-balance-chip.balance-pulse strong,
.slot-hud-stat:first-child.balance-pulse strong {
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.5);
}

@media (max-width: 640px) {
  .showcase-shell {
    grid-template-columns: 1fr;
  }

  .showcase-sidebar {
    display: none;
  }

  .showcase-topbar {
    padding: 0.35rem 0.65rem;
  }

  .showcase-live-badge {
    display: none;
  }
}
