:root {
  --bg: #0c1219;
  --bg2: #141c27;
  --bg3: #1a2433;
  --card: #151f2c;
  --card2: #1c2838;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #eef2f8;
  --muted: #7d8aa0;
  --accent: #fab524;
  --accent2: #fbd97a;
  --accent-dark: #c98a12;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --win: #22c55e;
  --lose: #ef4444;
  --gold: #fab524;
  --radius: 14px;
  --radius-lg: 18px;
  --topbar-h: 64px;
  --sidebar-w: 220px;
  --feed-w: 300px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(250, 181, 36, 0.08), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.06), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(20, 49, 81, 0.5), transparent 45%);
  z-index: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.topbar, .layout {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  height: var(--topbar-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 18, 25, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1a1200;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 16px rgba(250, 181, 36, 0.35);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.top-nav-link {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: inherit;
}

.top-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.top-nav-link.active {
  color: var(--text);
  background: rgba(250, 181, 36, 0.12);
}

.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 8px var(--win);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.user-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--feed-w);
  gap: 0;
  height: calc(100vh - var(--topbar-h));
  width: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}

.sidebar-section {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.65rem;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 0.5rem 0.65rem;
}

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}

.provably-fair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.disclaimer-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.45;
  text-align: center;
}

.fair-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.game-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--bg3);
  padding: 5px;
  border: 1px solid var(--border);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.nav-btn.active {
  background: rgba(250, 181, 36, 0.1);
  border-color: rgba(250, 181, 36, 0.25);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-btn.active .nav-icon {
  border-color: rgba(250, 181, 36, 0.35);
  background: rgba(250, 181, 36, 0.08);
}

.live-feed {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
}

.live-feed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.live-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--win);
  text-transform: none;
  letter-spacing: 0;
}

.live-feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.live-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  animation: feedSlide 0.35s ease;
}

@keyframes feedSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--card);
  padding: 4px;
  border: 1px solid var(--border);
}

.live-item-icon-fallback {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.live-feed-empty {
  padding: 1.25rem 0.85rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.live-item-body {
  flex: 1;
  min-width: 0;
}

.live-item-game {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.live-item-user {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-item-amount {
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.live-item-amount.win { color: var(--win); }
.live-item-amount.lose { color: var(--lose); }
.live-item-amount.push { color: var(--muted); }

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid rgba(250, 181, 36, 0.25);
}

.wallet-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a1200;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.wallet-balance {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent2);
  font-variant-numeric: tabular-nums;
}

.wallet-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wallet-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.game-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
  overflow: hidden;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}

.status-bar.hidden { display: none; }

.stat label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.stat strong {
  font-size: 1.1rem;
  color: var(--gold);
}

.game-content {
  flex: 1;
  padding: 1rem 1.25rem 1.5rem;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(250, 181, 36, 0.04), transparent 55%),
    var(--bg);
}

.toast {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ffcdd2;
  font-size: 0.9rem;
}

.toast.hidden { display: none; }
.toast.success {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.35);
  color: #b9f6ca;
}

.welcome.hero {
  max-width: 560px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(250, 181, 36, 0.12);
  border: 1px solid rgba(250, 181, 36, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.welcome.hero h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.welcome.hero p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.hero-games {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.hero-games span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.5rem;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.game-card.fill-card {
  min-height: calc(100vh - var(--topbar-h) - 120px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-header h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.game-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  padding: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.game-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.game-header h3 {
  margin: 0;
  line-height: 1.15;
}

.game-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.game-header .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.game-play-area {
  position: relative;
  flex: 1;
  min-height: 200px;
  margin: 0.5rem 0;
}

.game-controls {
  position: relative;
  z-index: 20;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.game-card.has-outcome-loss {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.08);
}

.game-card.has-outcome-win {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.08);
}

.game-outcome-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 30;
  pointer-events: auto;
  animation: outcomeEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-outcome-overlay.outcome-exiting {
  animation: outcomeExit 0.42s ease forwards;
}

.outcome-backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(4px);
  pointer-events: auto;
  cursor: pointer;
}

.play-outcome-loss .outcome-backdrop {
  background: radial-gradient(circle at 50% 40%, rgba(239, 68, 68, 0.12), rgba(12, 8, 10, 0.55) 72%);
}

.play-outcome-win .outcome-backdrop {
  background: radial-gradient(circle at 50% 40%, rgba(34, 197, 94, 0.14), rgba(8, 16, 12, 0.55) 72%);
}

.play-outcome-push .outcome-backdrop {
  background: radial-gradient(circle at 50% 40%, rgba(250, 181, 36, 0.1), rgba(10, 12, 16, 0.58) 72%);
}

.game-card.game-settling .game-controls,
.game-card.game-settling .game-controls button,
.game-card.has-outcome-loss .game-controls,
.game-card.has-outcome-win .game-controls,
.game-card.has-outcome-push .game-controls {
  opacity: 0.45;
  pointer-events: none;
}

@keyframes outcomeEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes outcomeExit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.game-outcome-card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  text-align: center;
  padding: 1.75rem 2rem 1.35rem;
  width: min(92%, 380px);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(28, 40, 56, 0.96), rgba(16, 24, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: outcomeCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-outcome-overlay.outcome-exiting .game-outcome-card {
  animation: outcomeCardOut 0.42s ease forwards;
}

@keyframes outcomeCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes outcomeCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
}

.outcome-badge {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.outcome-badge.win {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.outcome-badge.loss {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.outcome-badge.push {
  color: var(--accent2);
  background: rgba(250, 181, 36, 0.12);
  border: 1px solid rgba(250, 181, 36, 0.3);
}

.outcome-hero {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

.outcome-hero.win {
  color: #4ade80;
  text-shadow: 0 0 32px rgba(74, 222, 128, 0.35);
}

.outcome-hero.loss {
  color: #f87171;
  text-shadow: 0 0 32px rgba(248, 113, 113, 0.3);
}

.outcome-hero.push {
  color: var(--accent);
}

.outcome-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.outcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.outcome-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.outcome-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.outcome-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.outcome-stat-value.accent {
  color: var(--gold);
}

.outcome-detail {
  margin-top: 0.15rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.outcome-detail strong {
  color: var(--accent2);
  font-weight: 700;
}

.outcome-message {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.outcome-timer {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.25rem;
}

.outcome-timer-bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transform-origin: left center;
  animation: outcomeTimerShrink 8s linear forwards;
}

.play-outcome-win .outcome-timer-bar {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.play-outcome-loss .outcome-timer-bar {
  background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.play-outcome-push .outcome-timer-bar {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent2));
}

@keyframes outcomeTimerShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.outcome-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s ease;
  z-index: 5;
  pointer-events: auto;
}

.outcome-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.game-play-area.loss-highlight,
.blackjack-stage.loss-highlight,
.hilo-stage.loss-highlight {
  box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.55);
  border-radius: 14px;
  animation: lossPulse 0.8s ease-in-out infinite;
}

.tower-bust-floor .tower-door-trap {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.75) !important;
  color: #fecaca;
  animation: lossPulse 0.7s ease-in-out infinite;
}

.tower-bust-row .tower-door-btn {
  pointer-events: none;
}

@keyframes lossPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.discord-tag { color: var(--accent2); font-weight: 600; }
.stat strong { color: var(--accent2); }
.stat.warn strong { color: var(--lose); }

.mult-banner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid rgba(250, 181, 36, 0.2);
}

.mult-banner-item label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.mult-val { font-size: 1.5rem; color: var(--accent); }
.payout-val { font-size: 1.5rem; color: var(--gold); }

.stat-card {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.stat-card.neon {
  background: rgba(250, 181, 36, 0.08);
  border-color: rgba(250, 181, 36, 0.25);
}

.stat-card.neon strong { color: var(--accent); font-size: 1.5rem; }

.stat-card.gold {
  background: rgba(255, 234, 0, 0.08);
  border-color: rgba(255, 234, 0, 0.3);
}

.stat-card.gold strong { color: var(--gold); font-size: 1.35rem; }

.stat-card label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.btn.pulse { animation: btnPulse 1.5s infinite; }

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(0, 230, 118, 0); }
}

.center-row { justify-content: center; }
.hilo-center { text-align: center; margin: 1rem 0; }

/* Slots machine */
.slots-fill { align-items: stretch; }

.slots-machine { flex: 1; display: flex; flex-direction: column; align-items: center; }

.slots-frame {
  position: relative;
  width: min(100%, 420px);
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #1a2433, #0c1219);
  border: 2px solid rgba(250, 181, 36, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  margin: 1rem 0;
}

.slots-lights {
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 2px dashed rgba(255, 234, 0, 0.25);
  pointer-events: none;
  animation: lightsBlink 2s infinite alternate;
}

@keyframes lightsBlink {
  from { border-color: rgba(255, 234, 0, 0.15); }
  to { border-color: rgba(255, 64, 129, 0.45); }
}

.slots-payline {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: calc(1.5rem + 44px);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(250, 181, 36, 0.85), transparent);
  box-shadow: 0 0 12px rgba(250, 181, 36, 0.45);
  pointer-events: none;
  z-index: 3;
}

.slots-reels-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow: hidden;
}

.slot-reel-col {
  height: 88px;
  overflow: hidden;
  border-radius: 14px;
  background: #0c1219;
  border: 2px solid rgba(250, 181, 36, 0.25);
}

.slot-reel-col.reel-landed {
  animation: reelShake 0.35s ease;
  border-color: var(--gold);
}

@keyframes reelShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.slot-reel-strip { will-change: transform; }

.slot-symbol {
  height: 88px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--sym-bg, #333), rgba(0,0,0,0.4));
  font-size: 2.5rem;
}

.slot-symbol span { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }

.slots-info {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.info-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 0.85rem;
}

.info-pill label { color: var(--muted); margin-right: 0.5rem; }
.info-pill strong { color: var(--gold); }

.slots-controls { margin-top: 1.25rem; justify-content: center; }

/* Plinko */
.plinko-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.plinko-canvas {
  border-radius: var(--radius);
  border: 1px solid rgba(124, 77, 255, 0.35);
  background: rgba(0,0,0,0.4);
}

.plinko-slots-bar {
  display: flex;
  width: 100%;
  max-width: 560px;
  gap: 2px;
  margin-top: 8px;
}

.plinko-slot-pill {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  transition: 0.2s;
}

.plinko-slot-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  transform: scaleY(1.15);
}

.crash-graph-wrap.tall { min-height: 380px; }
.crash-graph-wrap.tall #crash-canvas { height: 380px; }

.roulette-wheel.spin-anim {
  animation: wheelSpin 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes wheelSpin {
  from { transform: rotate(0deg) scale(0.85); }
  to { transform: rotate(720deg) scale(1); }
}

.game-card .subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

input, select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  min-width: 140px;
  font-size: 0.95rem;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(250, 181, 36, 0.5);
  box-shadow: 0 0 0 3px rgba(250, 181, 36, 0.12);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.15s ease;
  text-decoration: none;
}

.topbar-actions a.btn,
.topbar-actions a.btn:hover {
  text-decoration: none;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1200;
  box-shadow: 0 4px 16px rgba(250, 181, 36, 0.3);
  font-weight: 700;
}

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, var(--win));
  color: #052e16;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
  font-weight: 700;
}

.btn-danger { background: var(--lose); color: white; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.bet-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--gold);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.chip-btn:hover { border-color: var(--gold); }

#bet-input::-webkit-outer-spin-button,
#bet-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#bet-input {
  -moz-appearance: textfield;
  appearance: textfield;
  width: 148px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg3);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#bet-input.bet-input-formatted {
  min-width: 148px;
  letter-spacing: 0.01em;
}

.mines-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem auto;
}

.mines-controls {
  justify-content: center;
  flex-wrap: wrap;
}

.grid-mines {
  display: grid;
  grid-template-columns: repeat(5, minmax(64px, 1fr));
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.tile.tile-idle {
  opacity: 0.55;
  cursor: default;
}

.tile:disabled:not(.revealed-gem):not(.revealed-mine) {
  cursor: not-allowed;
  opacity: 0.5;
}

.tile {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #141828, #0d1018);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.15s ease;
}

.tile:hover:not(:disabled) {
  border-color: rgba(108, 92, 231, 0.5);
  transform: scale(1.04);
}

.tile.revealed-gem {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
}

.tile.revealed-mine {
  background: rgba(255, 82, 82, 0.2);
  border-color: rgba(255, 82, 82, 0.45);
}

.crash-stage {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: stretch;
}

.crash-launch-row {
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .crash-stage { grid-template-columns: 1fr; }
}

.crash-graph-wrap {
  position: relative;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

#crash-canvas {
  width: 100%;
  height: 320px;
  display: block;
}

.crash-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.crash-mult {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(250, 181, 36, 0.35);
}

.crash-mult.crashed { color: var(--lose); text-shadow: none; }

.crash-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.potential-box {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.25);
}

.potential-box label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.potential-box strong {
  font-size: 1.4rem;
  color: var(--gold);
}

.slots-stage {
  text-align: center;
  padding: 2rem 0;
}

.slots-reels {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.reel {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #1a1f35, #0e1220);
  border: 2px solid rgba(108, 92, 231, 0.35);
  font-size: 2.8rem;
  animation: reelPop 0.4s ease;
}

@keyframes reelPop {
  0% { transform: scale(0.8) rotate(-8deg); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.roulette-wheel {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 1rem auto;
  background: conic-gradient(#e74c3c 0 47%, #2ecc71 47% 52%, #1a1a2e 52% 100%);
  border: 6px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.plinko-viz {
  margin-top: 1.5rem;
}

.plinko-slots {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.plinko-slot {
  min-width: 52px;
  padding: 0.5rem 0.3rem;
  text-align: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 0.78rem;
  font-weight: 600;
}

.plinko-slot.active {
  background: rgba(108, 92, 231, 0.4);
  border: 1px solid var(--accent);
  transform: scale(1.08);
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
}

.playing-card {
  position: relative;
  width: 72px;
  height: 100px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.playing-card.lg { width: 96px; height: 132px; }
.playing-card.lg .card-center { font-size: 2.2rem; }

.playing-card.card-back {
  background: #12162a;
  padding: 4px;
}

.playing-card.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.card-corner {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.card-corner small { font-size: 0.65rem; }
.card-corner.top { top: 6px; left: 7px; }
.card-corner.bottom { bottom: 6px; right: 7px; transform: rotate(180deg); }

.playing-card.suit-hearts .card-corner,
.playing-card.suit-diamonds .card-corner,
.playing-card.suit-hearts .card-center,
.playing-card.suit-diamonds .card-center { color: #e74c3c; }

.playing-card.suit-spades .card-corner,
.playing-card.suit-clubs .card-corner,
.playing-card.suit-spades .card-center,
.playing-card.suit-clubs .card-center { color: #1a1a2e; }

.card-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.hand-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hand-value {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.2);
  color: var(--accent2);
  font-size: 0.75rem;
}

.tower-floors {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tower-floor {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tower-floor-label {
  width: 64px;
  font-size: 0.75rem;
  color: var(--muted);
}

.tower-door {
  flex: 1;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: center;
  transition: 0.15s;
}

.tower-door:hover { border-color: var(--accent); background: rgba(108, 92, 231, 0.12); }
.tower-door.cleared { background: rgba(0, 230, 118, 0.12); border-color: rgba(0, 230, 118, 0.35); }
.tower-door.trap { background: rgba(255, 82, 82, 0.2); }

.link-panel {
  max-width: 520px;
  margin: 2rem auto;
}

.link-steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.link-steps li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.code-box {
  display: block;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #0a0d16;
  border: 1px dashed rgba(0, 206, 201, 0.4);
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  user-select: all;
}

.roblox-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.result-box {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-box.win {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.result-box.lose {
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.35);
}

.hidden { display: none !important; }

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: var(--sidebar-w) 1fr;
  }
  .live-feed { display: none; }
}

@media (max-width: 900px) {
  html, body { overflow: hidden; height: 100%; }
  .layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--topbar-h));
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-section {
    padding: 0.65rem;
  }
  .game-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-footer { display: none; }
  .top-nav { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 0.65rem 1rem; }
  .game-content { padding: 1rem; }
}

/* Hide scrollbars — scroll still works */
.game-content, .game-nav, .live-feed-list, .sidebar-section {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.game-content::-webkit-scrollbar, .game-nav::-webkit-scrollbar,
.live-feed-list::-webkit-scrollbar, .sidebar-section::-webkit-scrollbar {
  display: none;
}

.game-info-panel { margin-bottom: 1rem; }
.info-toggle {
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(250, 181, 36, 0.25);
  background: rgba(250, 181, 36, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.info-body {
  margin-top: 0.65rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.info-body ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

.coin-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  perspective: 800px;
  margin: 1rem 0;
}
.coin {
  width: 140px;
  height: 140px;
  position: relative;
  transform-style: preserve-3d;
}
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  font-weight: 800;
  border: 4px solid var(--gold);
  box-shadow: 0 12px 40px rgba(255, 234, 0, 0.25);
}
.coin-heads {
  background: linear-gradient(145deg, #ffd54f, #ffb300);
  color: #5d4037;
  transform: rotateY(0deg);
}
.coin-tails {
  background: linear-gradient(145deg, #b0bec5, #78909c);
  color: #263238;
  transform: rotateY(180deg);
}

.tower-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.tower-scene {
  position: relative;
  max-width: 520px;
  margin: 1.5rem auto;
  padding: 1.25rem 1.25rem 1.25rem 2rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.1), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(124, 77, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tower-spire {
  width: 10px;
  height: 28px;
  margin: 0 auto 10px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 12px rgba(255, 234, 0, 0.35);
}

.tower-progress {
  position: absolute;
  left: 14px;
  top: 48px;
  bottom: 16px;
  width: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.tower-progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #00e676, #00e5ff);
  border-radius: 999px;
  transition: height 0.45s ease;
}

.tower-floor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}
.tower-floor-row.current {
  background: rgba(124, 77, 255, 0.18);
  border: 1px solid rgba(124, 77, 255, 0.45);
}

.tower-floor-row.pulse-floor {
  animation: floorPulse 1.6s ease infinite;
}

@keyframes floorPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(124, 77, 255, 0); }
  50% { box-shadow: 0 0 22px rgba(124, 77, 255, 0.35); }
}

.tower-doors {
  display: flex;
  flex: 1;
  gap: 8px;
}

.floor-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
}
.tower-floor-row.cleared .floor-bar.safe {
  background: linear-gradient(90deg, rgba(0,230,118,0.4), rgba(0,230,118,0.1));
}
.floor-label { width: 36px; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.floor-bar { flex: 1; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.tower-door-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: 0.18s ease;
}

.door-icon { font-size: 1.1rem; }
.door-num { font-size: 0.7rem; color: var(--muted); font-weight: 700; }

.tower-door-btn:hover {
  border-color: var(--accent);
  background: rgba(124, 77, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.25);
}

.hilo-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
}
.hilo-history-card.bust { opacity: 0.55; filter: grayscale(0.5); }
.hilo-arrow { color: var(--muted); font-size: 1.2rem; }
.hilo-current { text-align: center; margin: 1rem 0; }
.hilo-choices { justify-content: center; flex-wrap: wrap; }
.btn-hilo {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
}
.btn-hilo small { color: var(--accent2); font-size: 0.75rem; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.btn-hilo:hover { border-color: var(--accent); background: rgba(124,77,255,0.15); }

.hilo-meta { font-weight: 600; color: var(--accent2); }
.hilo-cash-btn { margin-top: 1.25rem; width: min(100%, 420px); }
.hilo-choices { margin-bottom: 0.5rem; gap: 0.85rem !important; }

.slots-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 1rem auto;
}

.slots-center .slots-machine { width: min(100%, 520px); }
.slots-center .slots-frame { width: 100%; max-width: 480px; padding: 2rem; }
.slots-center .slot-reel-col { height: 108px; }
.slots-center .slot-symbol { height: 108px; font-size: 3rem; }
.slots-center .slots-payline { top: calc(2rem + 54px); left: 2rem; right: 2rem; }

.blackjack-table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem auto;
  max-width: 720px;
}

.blackjack-stage,
.hilo-stage,
.tower-stage,
.dice-stage {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.bj-felt,
.hilo-felt {
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(21, 128, 61, 0.22), rgba(12, 18, 25, 0.85));
  border: 2px solid rgba(34, 197, 94, 0.25);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.bj-table-badge {
  text-align: center;
  padding: 0.45rem 0.75rem;
  margin: 0.5rem 0 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(250, 181, 36, 0.1);
  border: 1px solid rgba(250, 181, 36, 0.2);
}

.playing-card.card-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.hilo-felt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 320px;
}

.hilo-deck-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hilo-deck-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hilo-current-slot {
  min-height: 160px;
  display: grid;
  place-items: center;
}

.hilo-slot-empty {
  padding: 1rem 1.5rem;
  border-radius: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.hilo-history-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hilo-stats-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.hilo-stat {
  min-width: 120px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hilo-stat label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.hilo-stat strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.tower-stage.idle .tower-scene { opacity: 0.92; }
.tower-idle-doors { letter-spacing: 0.35rem; opacity: 0.45; }
.tower-idle-hint {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.tower-controls { justify-content: center; flex-wrap: wrap; }

.bj-hand-block { width: 100%; text-align: center; }
.card-row-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.65rem; }
.card-row-center .playing-card { width: 88px; height: 122px; }
.card-row-center .playing-card.lg { width: 110px; height: 152px; }
.bj-actions { justify-content: center; }

.plinko-slot-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
}
.plinko-slot-pill .slot-mult { font-weight: 700; }
.plinko-slot-pill .slot-pct { font-size: 0.62rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.plinko-risk-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 0.5rem; }
.plinko-risk-row .risk-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chip-btn.active { border-color: var(--accent2); background: rgba(0, 229, 255, 0.12); color: var(--accent2); }
.plinko-land-result {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.2);
  border: 1px solid rgba(124, 77, 255, 0.4);
  font-weight: 700;
  color: var(--gold);
}

.roulette-advanced { margin: 0.5rem 0 1rem; }

.roulette-top {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.roulette-wheel-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roulette-svg {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

#roulette-wheel-rotor {
  transform-origin: 160px 160px;
}

.roulette-seg.red path { fill: #b91c1c; }
.roulette-seg.black path { fill: #111827; }
.roulette-seg.green path { fill: #15803d; }

.roulette-seg text {
  fill: #fff;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.roulette-hub-text {
  fill: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.roulette-marker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid var(--gold);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  z-index: 4;
}

.roulette-ball {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #cbd5e1);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.75);
  transform: translate(-50%, -18px);
  z-index: 5;
}

.roulette-ball.settled {
  box-shadow: 0 0 18px rgba(250, 181, 36, 0.8);
}

.roulette-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roulette-selected-bet,
.roulette-history-wrap {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.roulette-selected-bet .label,
.roulette-history-wrap .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.roulette-selected-bet strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
}

#roulette-bet-payout {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.roulette-history {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.roulette-history-chip {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.roulette-history-chip.red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.roulette-history-chip.black { background: rgba(255, 255, 255, 0.08); color: #fff; }
.roulette-history-chip.green { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.roulette-history-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.roulette-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roulette-table {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(21, 128, 61, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.roulette-zero-col { display: flex; }

.roulette-zero {
  flex: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.roulette-grid { display: flex; flex-direction: column; gap: 4px; }
.roulette-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }

.roulette-cell {
  aspect-ratio: 1;
  min-height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.roulette-cell.red { background: #991b1b; color: #fff; }
.roulette-cell.black { background: #111827; color: #fff; }
.roulette-cell.green { background: #166534; color: #fff; }

.roulette-cell.winner {
  box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(250, 181, 36, 0.55);
  transform: scale(1.05);
  z-index: 1;
}

.roulette-outside-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.roulette-outside {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  transition: 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.roulette-outside:hover { border-color: rgba(250, 181, 36, 0.35); }
.roulette-outside.selected {
  border-color: var(--gold);
  background: rgba(250, 181, 36, 0.12);
  box-shadow: 0 0 0 2px rgba(250, 181, 36, 0.15);
}

.roulette-outside.red { background: rgba(185, 28, 28, 0.18); }
.roulette-outside.black { background: rgba(17, 24, 39, 0.65); }
.roulette-outside.green { background: rgba(21, 128, 61, 0.18); }

.outside-label { font-weight: 700; font-size: 0.88rem; }
.outside-sub { font-size: 0.72rem; color: var(--muted); }

.roulette-controls { justify-content: center; flex-wrap: wrap; }

.roulette-result-pill {
  margin-top: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
}

.roulette-result-pill.red { background: rgba(231,76,60,0.2); color: #ff8a80; }
.roulette-result-pill.black { background: rgba(255,255,255,0.08); color: #fff; }
.roulette-result-pill.green { background: rgba(46,204,113,0.2); color: #69f0ae; }

@media (max-width: 900px) {
  .roulette-top { grid-template-columns: 1fr; }
  .roulette-outside-grid { grid-template-columns: repeat(2, 1fr); }
}

.dice-stage { margin: 1rem auto; }

.dice-roller-wrap { margin: 0 auto; max-width: 100%; }

.dice-roller-window {
  overflow: hidden;
  height: 88px;
  border-radius: 16px;
  border: 2px solid rgba(250, 181, 36, 0.35);
  background: rgba(0, 0, 0, 0.45);
  position: relative;
}

.dice-center-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(250, 181, 36, 0.45);
}

.dice-roller-window::before,
.dice-roller-window::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.dice-roller-window::before { left: 0; background: linear-gradient(90deg, rgba(10,12,20,0.95), transparent); }
.dice-roller-window::after { right: 0; background: linear-gradient(-90deg, rgba(10,12,20,0.95), transparent); }

.dice-roller-strip {
  display: flex;
  height: 100%;
  align-items: center;
  padding-left: calc(50% - 28px);
  will-change: transform;
}

.dice-num {
  flex: 0 0 56px;
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent2);
}

.dice-num.dice-target {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(250, 181, 36, 0.45);
}

.dice-idle-strip .dice-num {
  opacity: 0.55;
}

.dice-idle-strip .dice-num.dice-target {
  opacity: 1;
}

.dice-num.dice-idle,
.dice-num.dice-result {
  flex: 0 0 100%;
  width: 100%;
  padding-left: 0;
  font-size: 2.25rem;
  color: var(--gold);
}

.dice-num.dice-landed {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(250, 181, 36, 0.55);
  transform: scale(1.08);
}

.dice-roll-badge {
  text-align: center;
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.dice-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dice-scale-mid { color: var(--gold); font-weight: 700; }

.dice-side-btns {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dice-target-group { display: flex; flex-direction: column; gap: 0.25rem; }
.dice-target-group label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.dice-target-group input { width: 88px; }
.dice-controls { justify-content: center; align-items: flex-end; gap: 0.75rem; }

.leaderboard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg3);
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-name {
  font-weight: 700;
  font-size: 0.98rem;
}

.leaderboard-id {
  font-size: 0.78rem;
  color: var(--muted);
}

.in-game-block-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.in-game-block-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.in-game-block-banner strong {
  display: block;
  color: #fca5a5;
  margin-bottom: 0.2rem;
}

.in-game-block-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.game-card.gambling-blocked .game-controls,
.game-card.gambling-blocked .game-play-area button,
.game-card.gambling-blocked .chip-btn {
  opacity: 0.55;
}

.leaderboard-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.leaderboard-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
}

.leaderboard-header p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.leaderboard-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: rgba(250, 181, 36, 0.08);
  border: 1px solid rgba(250, 181, 36, 0.22);
}

.leaderboard-summary span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.leaderboard-summary strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 52px 52px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.leaderboard-row.rank-gold {
  border-color: rgba(250, 181, 36, 0.45);
  background: rgba(250, 181, 36, 0.08);
}

.leaderboard-row.rank-silver {
  border-color: rgba(192, 192, 192, 0.35);
  background: rgba(192, 192, 192, 0.06);
}

.leaderboard-row.rank-bronze {
  border-color: rgba(205, 127, 50, 0.35);
  background: rgba(205, 127, 50, 0.06);
}

.leaderboard-rank {
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.leaderboard-row.rank-gold .leaderboard-rank { color: var(--gold); }
.leaderboard-row.rank-silver .leaderboard-rank { color: #d1d5db; }
.leaderboard-row.rank-bronze .leaderboard-rank { color: #d97706; }

.leaderboard-balance {
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.leaderboard-loading,
.leaderboard-error {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

.leaderboard-error {
  color: #fca5a5;
}

.home-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.home-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
}

.home-header p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.home-stat {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(250, 181, 36, 0.08);
  border: 1px solid rgba(250, 181, 36, 0.22);
}

.home-stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.home-stat strong {
  color: var(--gold);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.home-section {
  margin-bottom: 1.5rem;
}

.home-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.home-game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
}

.home-game-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.home-game-card:hover {
  border-color: rgba(250, 181, 36, 0.35);
  background: rgba(250, 181, 36, 0.06);
}

.home-game-card.has-active {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.06);
}

.home-game-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--bg3);
  padding: 5px;
  border: 1px solid var(--border);
}

.home-game-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.home-game-name {
  font-weight: 700;
  font-size: 0.86rem;
}

.home-game-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.home-game-card.has-active .home-game-count {
  color: #86efac;
}

.home-active-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-active-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.15s ease;
}

.home-active-row:hover {
  border-color: rgba(250, 181, 36, 0.35);
  background: rgba(250, 181, 36, 0.06);
}

.home-active-game-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  padding: 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.home-active-body {
  min-width: 0;
}

.home-active-game {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.home-active-player {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-active-avatar,
.home-active-avatar-fallback {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}

.home-active-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 700;
}

.home-active-meta {
  text-align: right;
}

.home-active-bet {
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.home-active-status {
  font-size: 0.78rem;
  color: #86efac;
  margin-top: 0.15rem;
}

.home-active-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.home-empty,
.home-loading {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
  border-radius: 14px;
  border: 1px dashed var(--border);
}

.home-cta {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: rgba(250, 181, 36, 0.06);
  border: 1px solid rgba(250, 181, 36, 0.18);
  text-align: center;
}

.home-cta p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.home-watch-btn {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.spectator-panel {
  max-width: 900px;
  margin: 0 auto;
}

.spectator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.spectator-live-badge {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.spectator-live-badge.ended {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--muted);
}

.spectator-card .game-play-area {
  pointer-events: none;
}

.spectator-player-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.spectator-player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.spectator-player-avatar.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  font-weight: 800;
}

.spectator-player-name {
  font-weight: 700;
}

.spectator-player-game {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.spectator-game-icon {
  width: 18px;
  height: 18px;
}

.spectator-mines .tile {
  cursor: default;
}

.spectator-outcome {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.spectator-outcome.win {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
}

.spectator-outcome.loss {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}

.spectator-outcome-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.spectator-outcome-hero {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.35rem 0;
}

.spectator-outcome.win .spectator-outcome-hero { color: #86efac; }
.spectator-outcome.loss .spectator-outcome-hero { color: #fca5a5; }

.spectator-outcome-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.spectator-outcome-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.spectator-waiting {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.spectator-generic {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 640px) {
  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-active-row {
    grid-template-columns: 28px 1fr;
  }

  .home-active-meta {
    grid-column: 2;
    text-align: left;
    margin-top: 0.25rem;
  }
}
