/* DonutTrix — Red & Black Gradient Theme (LiquidType DNA x DonutLuck Layout x Frixion Game Components) */
:root {
  /* LiquidType signature crimson-obsidian gradient palette */
  --bg-0: #040000;
  --bg-1: #0b0102;
  --bg-2: #150204;
  --surface-1: #110607;
  --surface-2: #19090b;
  --surface-3: #230d10;
  --surface-input: #0a0304;

  --crimson: #e00818;
  --crimson-bright: #ff2638;
  --crimson-deep: #8f000b;
  --crimson-soft: rgba(224, 8, 24, 0.14);
  --crimson-line: rgba(255, 45, 65, 0.2);

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f6f2f2;
  --text-muted: #a69597;
  --text-faint: #6c5b5d;

  --win: #22e58b;
  --win-bg: rgba(34, 229, 139, 0.14);
  --lose: #ff3b4a;
  --lose-bg: rgba(255, 59, 74, 0.14);
  --gold: #f5b82e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-crimson: 0 8px 28px rgba(224, 8, 24, 0.28);

  --font-ui: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.bg-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 42% at 22% -6%, rgba(210, 0, 18, 0.22), transparent 68%),
    radial-gradient(ellipse 50% 45% at 88% 12%, rgba(155, 0, 16, 0.14), transparent 70%),
    radial-gradient(ellipse 70% 35% at 50% 105%, rgba(160, 0, 12, 0.15), transparent 70%);
}

/* ==================== TOPBAR & SUBBAR (DonutLuck Chrome) ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 2, 3, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--crimson-line);
}
.topbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}
.brand-coin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 45, 65, 0.45), 0 0 18px rgba(224, 8, 24, 0.45);
  transition: transform 0.25s ease;
}
.brand:hover .brand-coin { transform: rotate(14deg) scale(1.06); }
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 2.2px;
  line-height: 1;
  color: #fff;
}
.brand-wordmark span { color: var(--crimson-bright); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active { color: var(--crimson-bright); background: var(--crimson-soft); }
.nav-admin { color: var(--gold) !important; }

.nav-dropdown, .user-menu { position: relative; }
.drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #1b080a, #0e0405);
  border: 1px solid var(--crimson-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 120;
}
.drop-menu.open { display: flex; }
.user-drop { left: auto; right: 0; min-width: 220px; }
.drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.drop-item:hover { background: var(--crimson-soft); color: #fff; }
.drop-item svg { color: var(--crimson-bright); flex-shrink: 0; }
.drop-item.danger { color: #ff6b76; }
.drop-sep { height: 1px; background: var(--line); margin: 4px 2px; }

/* Bot status pill */
.bot-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.bot-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bot-dot.online { background: var(--win); box-shadow: 0 0 10px var(--win); }
.bot-dot.offline { background: var(--lose); box-shadow: 0 0 8px rgba(255, 59, 74, 0.6); }

/* Wallet pill */
.wallet-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1b080a, #0e0405);
  border: 1px solid var(--crimson-line);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.balance-pill:hover { border-color: var(--crimson-bright); transform: translateY(-1px); }
.coin-ico { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.coin-ico.sm { width: 16px; height: 16px; }
.coin-ico.lg { width: 32px; height: 32px; box-shadow: 0 0 14px rgba(224, 8, 24, 0.4); }
.bal-val { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; color: #fff; }
.bal-unit { font-size: 0.72rem; font-weight: 700; color: var(--crimson-bright); letter-spacing: 0.5px; }
.creator-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(245, 184, 46, 0.18);
  color: var(--gold);
  letter-spacing: 0.6px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}

/* Secondary Quick-Jump Game Strip */
.subbar {
  background: rgba(16, 4, 5, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.subbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 20px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subbar-inner::-webkit-scrollbar { display: none; }
.strip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.14s, background 0.14s;
}
.strip-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.strip-link.active { color: #fff; background: var(--crimson-soft); }
.strip-link svg { width: 14px; height: 14px; color: var(--crimson-bright); }

/* Demo Banner */
.demo-banner {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, rgba(160, 0, 14, 0.45), rgba(35, 6, 8, 0.92), rgba(160, 0, 14, 0.45));
  border-bottom: 1px solid var(--crimson-line);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

/* ==================== BUTTONS & INPUTS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.14s, filter 0.14s, background 0.14s, border-color 0.14s, box-shadow 0.14s;
  white-space: nowrap;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; filter: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, #9b000d 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(224, 8, 24, 0.34);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(255, 38, 56, 0.48);
  transform: translateY(-1px);
}
.btn-win {
  background: linear-gradient(135deg, #16b56d, #0f8a52);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22, 181, 109, 0.32);
}
.btn-win:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.btn-danger {
  background: rgba(255, 45, 65, 0.16);
  border-color: rgba(255, 45, 65, 0.4);
  color: #ff7a85;
}
.btn-danger:hover:not(:disabled) { background: rgba(255, 45, 65, 0.28); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 0.84rem; }
.btn-xs { padding: 5px 10px; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--crimson-bright); font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.icon-btn.sm { width: 28px; height: 28px; font-size: 1.15rem; }

.field-lbl {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 10px 0 5px;
}
.text-input, .select-input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  border: 1px solid var(--line-strong);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-input:focus, .select-input:focus {
  border-color: var(--crimson-bright);
  box-shadow: 0 0 0 3px rgba(224, 8, 24, 0.18);
}
.text-input:disabled, .select-input:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== MAIN SHELL & CHAT DRAWER ==================== */
.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 105px);
}
.main-col {
  flex: 1;
  min-width: 0;
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 24px 64px;
}

.chat-drawer {
  width: 310px;
  flex-shrink: 0;
  position: sticky;
  top: 105px;
  height: calc(100vh - 105px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 4, 6, 0.96), rgba(8, 2, 3, 0.98));
  border-left: 1px solid var(--crimson-line);
  transition: width 0.22s ease, opacity 0.2s ease;
  overflow: hidden;
}
.chat-drawer.collapsed {
  width: 0;
  border-left-width: 0;
  opacity: 0;
  pointer-events: none;
}
.chat-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-title-wrap { display: flex; align-items: center; gap: 8px; }
.chat-title { font-weight: 800; font-size: 0.95rem; }
.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 999px;
}
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--win); }

.rain-card {
  margin: 10px 12px 6px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(180, 0, 18, 0.22), rgba(20, 4, 6, 0.9));
  border: 1px solid var(--crimson-line);
}
.rain-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rain-badge { font-weight: 800; font-size: 0.84rem; color: #fff; }
.rain-timer { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); font-weight: 700; }
.rain-pot { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.rain-unit { font-family: var(--font-ui); font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.rain-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 40, 60, 0.25) transparent;
}
.chat-empty { color: var(--text-faint); font-size: 0.84rem; text-align: center; padding: 28px 10px; }
.chat-msg {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.83rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
  word-break: break-word;
}
.chat-msg:hover { background: var(--crimson-soft); border-color: var(--crimson-line); }
.chat-msg.tip-msg {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.14), rgba(224, 8, 24, 0.12));
  border-color: rgba(245, 184, 46, 0.3);
}
.chat-user { font-weight: 700; color: #fff; margin-right: 5px; }
.role-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 5px;
  text-transform: uppercase;
  vertical-align: middle;
}
.role-badge.admin { background: var(--crimson); color: #fff; }
.role-badge.mod { background: var(--gold); color: #000; }
.chat-tip-hint {
  padding: 5px 12px;
  font-size: 0.72rem;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}
.chat-form {
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  outline: none;
}
.chat-form input:focus { border-color: var(--crimson-bright); }

.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 85;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--crimson-line);
  background: linear-gradient(135deg, #25060a, #0e0203);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--shadow-crimson);
  cursor: pointer;
  transition: transform 0.15s;
}
.chat-fab:hover { transform: translateY(-2px); }

/* ==================== HOMEPAGE (Exact DonutLuck Structure) ==================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  background: linear-gradient(135deg, rgba(160, 0, 14, 0.36) 0%, rgba(22, 5, 7, 0.94) 55%, rgba(10, 2, 3, 0.98) 100%);
  border: 1px solid var(--crimson-line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--crimson-bright), var(--gold), var(--crimson-bright), transparent);
}
.hero-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  letter-spacing: 2px;
  line-height: 1.02;
  color: #fff;
}
.hero-card h1 span { color: var(--crimson-bright); }
.hero-desc { color: var(--text-muted); font-size: 0.96rem; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.hero-stat b { display: block; font-family: var(--font-mono); font-size: 1rem; color: #fff; }
.hero-stat span { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.discord-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(35, 8, 12, 0.92), rgba(11, 3, 4, 0.98));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.discord-card h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 1.5px;
  line-height: 1.05;
}
.discord-card p { color: var(--text-muted); font-size: 0.9rem; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 1.8px;
}
.sec-head p { font-size: 0.86rem; color: var(--text-muted); }

/* 10-Game DonutLuck Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 18px 15px 16px;
  background: linear-gradient(160deg, rgba(46, 10, 14, 0.72), rgba(14, 4, 6, 0.96));
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--crimson-bright);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(224, 8, 24, 0.22);
}
.game-card-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(224, 8, 24, 0.26), rgba(90, 0, 8, 0.45));
  border: 1px solid var(--crimson-line);
  color: var(--crimson-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-name { font-weight: 800; font-size: 1.02rem; color: #fff; }
.game-card-blurb { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.game-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
}
.game-card-play { color: var(--crimson-bright); text-transform: uppercase; letter-spacing: 0.06em; }

/* Live Plays Table (Exact DonutLuck columns) */
.table-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 7, 9, 0.92), rgba(11, 3, 4, 0.96));
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 36px;
}
.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.live-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}
.live-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.live-table tr:last-child td { border-bottom: 0; }
.live-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
.coin-cell { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; }
.mult-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.mult-pill.win { background: var(--win-bg); color: var(--win); }
.payout-win { color: var(--win); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a:hover { color: var(--crimson-bright); }
.footer-legal { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ==================== GAME FRAME & CONTROLS (DonutLuck x Frixion) ==================== */
.game-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.game-head h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  line-height: 1;
}
.game-head-desc { color: var(--text-muted); font-size: 0.9rem; }
.game-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); }

.game-shell {
  display: grid;
  grid-template-columns: 315px 1fr;
  gap: 16px;
  align-items: start;
}
.game-panel {
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, rgba(24, 7, 10, 0.94), rgba(12, 3, 5, 0.98));
  border: 1px solid var(--crimson-line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-stage {
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 440px;
  background: radial-gradient(circle at 50% 35%, rgba(65, 8, 14, 0.42), rgba(9, 2, 3, 0.98) 78%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bet-row { display: flex; gap: 5px; }
.bet-row input { flex: 1; min-width: 0; }
.chip-btn {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.chip-btn:hover:not(:disabled) { background: var(--crimson-soft); border-color: var(--crimson-bright); }
.chip-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.quick-row { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 4px; }

.seg-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  border: 1px solid var(--line);
}
.seg-btn {
  flex: 1;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.seg-btn.active {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #fff;
}
.seg-btn.pick-red.active { background: #c81020; }
.seg-btn.pick-black.active { background: #26262d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.seg-btn.pick-green.active { background: #149658; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.stat-box {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.stat-box span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.stat-box b { font-family: var(--font-mono); font-size: 0.94rem; color: #fff; }

.result-banner {
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.result-banner:not(:empty) { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.result-banner.win { background: var(--win-bg); border: 1px solid rgba(34, 229, 139, 0.35); color: var(--win); }
.result-banner.lose { background: var(--lose-bg); border: 1px solid rgba(255, 59, 74, 0.3); color: #ff8e96; }
.result-banner.push { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); color: #fff; }

.recent-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  min-height: 26px;
}
.recent-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.recent-chip.good { color: var(--win); border-color: rgba(34, 229, 139, 0.35); background: var(--win-bg); }
.recent-chip.rt-red { background: #c21825; color: #fff; border-color: transparent; }
.recent-chip.rt-black { background: #1e1e24; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.recent-chip.rt-green { background: #139457; color: #fff; border-color: transparent; }

/* ==================== INDIVIDUAL GAME VISUALS (Frixion + LiquidType) ==================== */

/* Mines (5x5 grid) */
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  width: 100%;
  max-width: 440px;
}
.mine-tile {
  aspect-ratio: 1;
  border-radius: 11px;
  border: 1px solid rgba(255, 65, 80, 0.18);
  background: linear-gradient(180deg, #270e12, #170608);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s, background 0.14s, border-color 0.14s;
}
.mine-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--crimson-bright);
  background: linear-gradient(180deg, #361217, #20090c);
}
.mine-tile:disabled { cursor: default; }
.mine-tile.gem { background: rgba(34, 229, 139, 0.16); border-color: rgba(34, 229, 139, 0.5); box-shadow: none; }
.mine-tile.mine { background: rgba(255, 59, 74, 0.16); border-color: rgba(255, 59, 74, 0.45); box-shadow: none; }
.mine-tile.boom { background: rgba(255, 38, 56, 0.42); border-color: #ff4455; box-shadow: 0 0 24px rgba(255, 38, 56, 0.55); }
.mine-tile.dim { opacity: 0.42; }

/* Towers (9 rows) */
.towers-wrap { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 480px; }
.tower-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; opacity: 0.48; transition: opacity 0.15s; }
.tower-row.now, .tower-row.done { opacity: 1; }
.tower-mult { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; text-align: right; color: var(--text-muted); }
.tower-row.now .tower-mult { color: var(--gold); }
.tower-tiles { display: flex; gap: 7px; }
.tower-tiles .mine-tile { aspect-ratio: auto; height: 38px; flex: 1; border-radius: 8px; }
.tower-row.now .mine-tile:not(:disabled) { border-color: var(--crimson-bright); box-shadow: 0 0 12px rgba(224, 8, 24, 0.25); }

/* Blackjack (Six-Deck Shoe) */
.bj-table { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 28px; }
.bj-banner {
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 3px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.28);
}
.bj-zone { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bj-who { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.bj-score { font-family: var(--font-mono); padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.86rem; }
.bj-cards { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 112px; }
.play-card {
  width: 78px;
  height: 112px;
  border-radius: 9px;
  background: #fafafa;
  color: #16161b;
  padding: 7px 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  animation: cardPop 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes cardPop { from { transform: translateY(-18px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.play-card.red { color: #d61626; }
.play-card .rk { font-weight: 800; font-size: 1.2rem; line-height: 1; }
.play-card .suit-lg { position: absolute; right: 8px; bottom: 8px; opacity: 0.9; }
.play-card.back {
  background: repeating-linear-gradient(45deg, #7d000b 0 8px, #b80012 8px 16px);
  border: 3px solid #f6f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-card.back::after {
  content: 'DT';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
}

/* Roulette (DonutLuck 0-18 Wheel + Track) */
.roul-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.roul-wheel-box { position: relative; width: 280px; height: 280px; }
.roul-svg { width: 100%; height: 100%; display: block; }
.roul-pointer {
  position: absolute;
  top: -6px;
  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.8));
  z-index: 4;
}
.roul-center-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #120506;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}
.roul-center-badge.red { background: #c21825; }
.roul-center-badge.black { background: #141418; }
.roul-center-badge.green { background: #139457; }
.roul-strip {
  display: grid;
  grid-template-columns: repeat(19, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  max-width: 680px;
}
.roul-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.75;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.roul-cell.red { background: #b81522; }
.roul-cell.black { background: #1e1e26; border: 1px solid rgba(255, 255, 255, 0.14); }
.roul-cell.green { background: #139457; }
.roul-cell.hit { opacity: 1; transform: scale(1.18); box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(245, 184, 46, 0.65); z-index: 2; }

/* Coinflip (3D RayCoin Flip) */
.coinflip-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; perspective: 850px; }
.cf-coin {
  width: 170px;
  height: 170px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.22, 0.82, 0.24, 1);
}
.cf-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 4px solid var(--crimson-bright);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), 0 0 28px rgba(224, 8, 24, 0.35);
  overflow: hidden;
}
.cf-face.heads { background: #000; }
.cf-face.heads img { width: 100%; height: 100%; object-fit: cover; }
.cf-face.tails {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 35% 30%, #3a080d, #110203 70%);
  border-color: var(--gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7), 0 0 28px rgba(245, 184, 46, 0.3);
}
.cf-tails-txt { font-family: var(--font-display); font-size: 2.3rem; letter-spacing: 3px; color: var(--gold); }
.cf-label { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 3px; min-height: 36px; }

/* Dice */
.dice-stage { width: 100%; max-width: 580px; display: flex; flex-direction: column; gap: 18px; }
.dice-big { text-align: center; font-family: var(--font-display); font-size: 4.5rem; letter-spacing: 3px; line-height: 1; }
.dice-big.win { color: var(--win); text-shadow: 0 0 28px rgba(34, 229, 139, 0.4); }
.dice-big.lose { color: var(--lose); text-shadow: 0 0 28px rgba(255, 59, 74, 0.4); }
.dice-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 45, 65, 0.42);
  border: 1px solid var(--line-strong);
}
.dice-win-zone { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #16b56d, #22e58b); }
.dice-marker {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 36px;
  margin-left: -4px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transition: left 0.55s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.dice-range { width: 100%; accent-color: var(--crimson-bright); cursor: pointer; }
.dice-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }

/* Keno */
.keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; width: 100%; max-width: 560px; }
.keno-cell {
  aspect-ratio: 1;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #210a0d, #130406);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.12s, background 0.14s, border-color 0.14s;
}
.keno-cell:hover:not(:disabled) { border-color: var(--crimson-bright); transform: translateY(-1px); }
.keno-cell.picked { background: linear-gradient(135deg, var(--crimson), var(--crimson-deep)); border-color: var(--crimson-bright); color: #fff; }
.keno-cell.drawn { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.keno-cell.hit { background: linear-gradient(135deg, #16b56d, #0f8a52); border-color: var(--win); color: #fff; transform: scale(1.06); box-shadow: 0 0 16px rgba(34, 229, 139, 0.45); }

/* Plinko (Frixion SVG Pegboard) */
.plinko-wrap { width: 100%; max-width: 600px; }
.plinko-svg { width: 100%; height: auto; display: block; }
.pl-peg { fill: #e9d8d9; opacity: 0.85; }
.pl-slot rect { rx: 5; }
.pl-slot.cold rect { fill: #331317; stroke: rgba(255, 255, 255, 0.14); }
.pl-slot.mid rect { fill: #7c0e18; }
.pl-slot.warm rect { fill: #c41222; }
.pl-slot.hot rect { fill: #f5b82e; }
.pl-slot text { font-size: 9.5px; font-weight: 800; text-anchor: middle; fill: #fff; font-family: var(--font-mono); }
.pl-slot.hot text { fill: #120405; }
.pl-slot { transform-box: fill-box; transform-origin: center; }
.pl-slot.bump { animation: plBump 0.35s ease-out; }
@keyframes plBump { 40% { transform: translateY(5px); } }
.pl-ball { fill: var(--crimson-bright); stroke: #fff; stroke-width: 1.5; }

/* Cases (CS-style horizontal reel strip) */
.case-list { display: flex; flex-direction: column; gap: 7px; }
.case-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-input);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s, background 0.14s;
}
.case-opt.active { border-color: var(--crimson-bright); background: var(--crimson-soft); }
.case-opt b { font-size: 0.9rem; display: block; }
.case-opt small { font-size: 0.72rem; color: var(--text-muted); }
.case-reel-wrap { position: relative; width: 100%; overflow: hidden; padding: 24px 0; }
.case-reel-marker {
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  z-index: 3;
}
.case-strip { display: flex; gap: 10px; will-change: transform; padding-left: 50%; }
.case-item {
  flex: 0 0 124px;
  height: 132px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1d090c, #0f0405);
  border: 1px solid var(--line-strong);
  border-bottom-width: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.case-item.r0 { border-bottom-color: #8c8c96; }
.case-item.r1 { border-bottom-color: #22e58b; }
.case-item.r2 { border-bottom-color: #3da0ff; }
.case-item.r3 { border-bottom-color: #c255ff; }
.case-item.r4 { border-bottom-color: #f5b82e; }
.case-item.r5 { border-bottom-color: #ff2638; background: linear-gradient(180deg, rgba(224, 8, 24, 0.35), #130406); }
.case-item.won { outline: 2px solid var(--gold); outline-offset: 2px; }
.case-item-rar { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.case-item-name { font-size: 0.8rem; font-weight: 700; color: #fff; line-height: 1.2; }
.case-item-val { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 700; color: var(--gold); }

/* Crash (HTML5 Canvas) */
.crash-stage { position: relative; width: 100%; height: 390px; }
.crash-stage canvas { width: 100%; height: 100%; display: block; }
.crash-mult {
  position: absolute;
  top: 32%;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: 3px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.7);
}
.crash-mult.win { color: var(--win); }
.crash-mult.lose { color: var(--lose); }
.crash-sub {
  position: absolute;
  top: calc(32% + 86px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ==================== ACCOUNT / REWARDS / FAIRNESS / ADMIN PAGES ==================== */
.page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.page-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(180deg, rgba(24, 7, 10, 0.92), rgba(12, 3, 5, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-card.span-2 { grid-column: 1 / -1; }
.page-card h2 { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 1.5px; }
.page-card h3 { font-size: 1rem; font-weight: 700; }
.muted { color: var(--text-muted); font-size: 0.88rem; }
.code-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
}
.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-tile {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}
.step-num { font-family: var(--font-display); font-size: 2rem; color: var(--crimson-bright); line-height: 1; margin-bottom: 6px; }

/* ==================== MODALS & TOASTS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(180deg, #1c070a, #0c0304);
  border: 1px solid var(--crimson-line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), var(--shadow-crimson);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-wide { max-width: 660px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-close:hover { background: var(--crimson-soft); color: #fff; }
.modal-head { display: flex; align-items: center; gap: 10px; }
.modal-head h2 { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 1.5px; }
.modal-sub { font-size: 0.92rem; color: var(--text); }
.modal-hint { font-size: 0.84rem; color: var(--text-muted); line-height: 1.45; }
.modal-stack { display: flex; flex-direction: column; gap: 8px; }
.modal-back { align-self: flex-start; margin-top: 4px; }
.modal-error {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--lose-bg);
  border: 1px solid rgba(255, 59, 74, 0.35);
  color: #ff8e96;
  font-size: 0.84rem;
  font-weight: 600;
}
.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin: 4px 0;
}
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.bot-banner {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
}
.bot-banner.online { background: var(--win-bg); border: 1px solid rgba(34, 229, 139, 0.35); color: var(--win); }
.bot-banner.offline { background: var(--lose-bg); border: 1px solid rgba(255, 59, 74, 0.35); color: #ff8e96; }

.cmd-copy-box {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #060102;
  border: 1px dashed var(--crimson-bright);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s;
}
.cmd-copy-box:hover { background: rgba(224, 8, 24, 0.12); }
.cmd-copy-box code { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--gold); }
.cmd-copy-tag { font-size: 0.74rem; color: var(--text-muted); }

.poll-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--crimson-bright);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.info-box {
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}
.info-box > div { display: flex; justify-content: space-between; gap: 10px; }
.info-box span { color: var(--text-muted); }

.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.status-pill.completed { background: var(--win-bg); color: var(--win); }
.status-pill.pending, .status-pill.processing { background: rgba(245, 184, 46, 0.16); color: var(--gold); }
.status-pill.refunded, .status-pill.failed, .status-pill.expired { background: var(--lose-bg); color: #ff8e96; }

/* Toasts */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 18px;
  border-radius: 999px;
  background: #1a070a;
  border: 1px solid var(--crimson-line);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.2s ease;
}
.toast.ok { border-color: rgba(34, 229, 139, 0.5); color: var(--win); }
.toast.err { border-color: rgba(255, 59, 74, 0.5); color: #ff8e96; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* LiquidType Jackpot Particle Celebration */
.jp-particle {
  position: fixed;
  pointer-events: none;
  z-index: 400;
  border-radius: 50%;
  animation: jpFall 1.5s ease-in forwards;
}
@keyframes jpFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(115vh) rotate(720deg); opacity: 0; }
}

/* Reduced Motion / Epilepsy Safety (from Frixion) */
html[data-calm="1"] *, html[data-calm="1"] *::before, html[data-calm="1"] *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Responsive Breakpoints (Mobile-friendly upgrade over DonutLuck!) */
@media (max-width: 1120px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-drawer { position: fixed; right: 0; top: 105px; z-index: 88; box-shadow: -12px 0 36px rgba(0, 0, 0, 0.7); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .bot-pill { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-shell { grid-template-columns: 1fr; }
  .game-stage { order: -1; min-height: 320px; padding: 16px; }
  .page-grid, .steps-3, .site-footer { grid-template-columns: 1fr; }
  .roul-strip { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .keno-grid { gap: 4px; }
}
