﻿:root {
  --kick-green: #53fc18;
  --kick-green-dim: #3fd612;
  --kick-green-soft: rgba(83, 252, 24, 0.1);
  --gold: #f5c84c;
  --gold-bright: #ffe08a;
  --gold-dim: #c9a227;
  --gold-soft: rgba(245, 200, 76, 0.12);
  --bg-dark: #050508;
  --bg-panel: rgba(12, 12, 16, 0.92);
  --bg-elevated: #121218;
  --bg-soft: #1a1a22;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.065);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-muted: #8b8b96;
  --heads: #5eb0ff;
  --heads-soft: rgba(94, 176, 255, 0.12);
  --tails: #53fc18;
  --tails-dim: #3fd612;
  --tails-soft: rgba(83, 252, 24, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.55);
  --glass: rgba(10, 10, 14, 0.78);
  --ring: 0 0 0 3px rgba(83, 252, 24, 0.18);
  --scrollbar-size: 6px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(255, 255, 255, 0.1);
  --scrollbar-thumb-hover: rgba(83, 252, 24, 0.4);
  --scrollbar-thumb-active: rgba(83, 252, 24, 0.55);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --surface:
    linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%);
  --payout-mult: 1.9;
}

/* Global themed scrollbars (Firefox + Chromium/WebKit) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
  margin: 2px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 85% 50% at 50% -18%, rgba(245, 200, 76, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(83, 252, 24, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 40% at 100% 15%, rgba(94, 176, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 90%, rgba(83, 252, 24, 0.05), transparent 50%),
    radial-gradient(ellipse 55% 30% at 85% 100%, rgba(245, 200, 76, 0.035), transparent 45%),
    var(--bg-dark);
  color: var(--text);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  line-height: 1.5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

/* Soft ambient orbs â€” casino atmosphere without distraction */
.ambient-orbs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.ambient-orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -12%;
  left: 30%;
  background: rgba(83, 252, 24, 0.12);
  animation: orbDriftA 18s ease-in-out infinite alternate;
}

.ambient-orb-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  top: 40%;
  right: -8%;
  background: rgba(94, 176, 255, 0.1);
  animation: orbDriftB 22s ease-in-out infinite alternate;
}

.ambient-orb-c {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  bottom: -10%;
  left: -5%;
  background: rgba(245, 200, 76, 0.08);
  animation: orbDriftC 20s ease-in-out infinite alternate;
}

@keyframes orbDriftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes orbDriftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, -40px) scale(1.12); }
}
@keyframes orbDriftC {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, -20px) scale(1.06); }
}

/* Header above everything in the app shell so the user dropdown clears chat */
body > .header,
body > .alert {
  position: relative;
  z-index: 300;
}

/*
 * Do NOT give app-content a z-index stacking context.
 * Mobile chat is position:fixed — if trapped under z-index:1, body toasts
 * (z-index 140) paint over open chat. With auto, chat z-index 220 wins.
 */
body > .app-content {
  position: relative;
  z-index: auto;
}

/* Allow typing / copying only where needed (inputs + fair seeds) */
input,
textarea,
[contenteditable="true"],
.fair-value.fair-copyable,
.fair-value-text {
  -webkit-user-select: text;
  user-select: text;
}

.sound-toggle {
  min-width: 2.5rem;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.sound-toggle.muted {
  opacity: 0.75;
}

.user-dashboard-item.sound-toggle {
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 1;
}

.user-dashboard-item.sound-toggle .sound-toggle-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.user-dashboard-item.sound-toggle.muted .sound-toggle-label {
  color: var(--text-muted);
}

/* Android open-in-Phantom sheet (stock browser workaround) */
.phantom-android-sheet {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.phantom-android-sheet[hidden] {
  display: none !important;
}

.phantom-android-sheet-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #0e0e12;
  border: 1px solid var(--border-strong);
  border-radius: 16px 16px 12px 12px;
  padding: 1.25rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow-lg);
}

.phantom-android-sheet-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  padding-right: 2rem;
}

.phantom-android-sheet-copy {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.phantom-android-sheet-hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.phantom-android-sheet-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.phantom-android-open-btn {
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phantom-android-play {
  font-size: 0.8rem;
  color: var(--kick-green);
  text-align: center;
  margin-top: 0.15rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  z-index: 100;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 14px rgba(245, 200, 76, 0.45));
  animation: logoCoinGlow 3.2s ease-in-out infinite;
}

@keyframes logoCoinGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(245, 200, 76, 0.35)); transform: rotate(-6deg); }
  50% { filter: drop-shadow(0 0 18px rgba(83, 252, 24, 0.4)); transform: rotate(6deg); }
}

.logo-text {
  background: linear-gradient(180deg, #fff 20%, #e8e4d4 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  color: var(--kick-green);
  -webkit-text-fill-color: var(--kick-green);
  background: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.18), rgba(248, 113, 113, 0.08));
  color: #ff8a8a;
  border: 1px solid rgba(248, 113, 113, 0.32);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.28rem 0.6rem 0.28rem 0.45rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.12);
}

.live-badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.5);
  animation: liveDotPulse 1.6s ease-out infinite;
}

@keyframes liveDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem 0.22rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(83, 252, 24, 0.22);
  background: rgba(83, 252, 24, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
}

.online-pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--kick-green);
  box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.45);
  animation: online-dot-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

@keyframes online-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(83, 252, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(83, 252, 24, 0);
  }
}

.online-pill-count {
  color: var(--kick-green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 0.75rem;
}

.online-pill-label {
  color: var(--text-muted);
  font-weight: 600;
}

.chat-header .online-pill {
  margin-left: 0.15rem;
}

.user-dashboard {
  position: relative;
}

.user-info,
.user-dashboard-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  text-decoration: none;
}

.user-dashboard-trigger:hover,
.user-dashboard.open .user-dashboard-trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}

.user-dashboard-trigger:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.user-dashboard-caret {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: -0.1rem;
  transition: transform 0.2s var(--ease);
}

.user-dashboard.open .user-dashboard-caret {
  transform: rotate(180deg);
}

.user-dashboard-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 400;
  min-width: 230px;
  padding: 0.5rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border-strong);
  background: #0e0e12;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.user-dashboard-menu[hidden] {
  display: none;
}

.user-dashboard-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem 0.2rem;
}

.user-dashboard-menu-name {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.user-dashboard-admin-pill {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1200;
  background: #fbbf24;
  border-radius: var(--radius-pill);
  padding: 0.12rem 0.4rem;
}

.user-dashboard-menu-balance {
  padding: 0.25rem 0.55rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.user-dashboard-menu-balance strong {
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-weight: 800;
}

.user-dashboard-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.15rem 0.35rem 0.35rem;
}

.user-dashboard-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-dashboard-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.user-dashboard-item-danger {
  color: var(--danger);
}

.user-dashboard-item-danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong);
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.username {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
}

.balance {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: linear-gradient(165deg, rgba(245, 200, 76, 0.16), rgba(83, 252, 24, 0.1));
  border: 1px solid rgba(245, 200, 76, 0.28);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  box-shadow:
    0 0 20px rgba(245, 200, 76, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.balance-value {
  font-variant-numeric: tabular-nums;
}

.balance.balance-flash {
  color: #fff;
  background: linear-gradient(165deg, rgba(83, 252, 24, 0.4), rgba(245, 200, 76, 0.28));
  border-color: rgba(83, 252, 24, 0.55);
  box-shadow: 0 0 28px rgba(83, 252, 24, 0.45), 0 0 12px rgba(245, 200, 76, 0.35);
  transform: scale(1.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-kick {
  background: linear-gradient(180deg, #62ff2e 0%, var(--kick-green) 100%);
  color: #041006;
  box-shadow:
    0 0 0 1px rgba(83, 252, 24, 0.25),
    0 6px 20px rgba(83, 252, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-kick:hover {
  background: linear-gradient(180deg, #78ff4a 0%, #5dff28 100%);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(83, 252, 24, 0.35),
    0 12px 28px rgba(83, 252, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

.btn-heads,
.btn-tails {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 0.9rem;
  border-radius: calc(var(--radius) + 2px);
  min-height: 5.25rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-heads::before,
.btn-tails::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
  background: radial-gradient(ellipse 80% 70% at 50% 120%, rgba(255, 255, 255, 0.12), transparent 60%);
}

.btn-heads:hover:not(:disabled)::before,
.btn-tails:hover:not(:disabled)::before {
  opacity: 1;
}

.btn-heads {
  background:
    linear-gradient(165deg, rgba(94, 176, 255, 0.22), rgba(94, 176, 255, 0.07) 55%, rgba(20, 30, 50, 0.4));
  border: 1px solid rgba(94, 176, 255, 0.4);
  color: var(--heads);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 22px rgba(94, 176, 255, 0.12),
    0 0 0 1px rgba(94, 176, 255, 0.06);
}

.btn-heads:hover:not(:disabled) {
  background:
    linear-gradient(165deg, rgba(94, 176, 255, 0.32), rgba(94, 176, 255, 0.12) 55%, rgba(20, 30, 50, 0.45));
  border-color: rgba(94, 176, 255, 0.65);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 14px 36px rgba(94, 176, 255, 0.28),
    0 0 24px rgba(94, 176, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-tails {
  background:
    linear-gradient(165deg, rgba(83, 252, 24, 0.22), rgba(83, 252, 24, 0.07) 55%, rgba(14, 30, 12, 0.4));
  border: 1px solid rgba(83, 252, 24, 0.4);
  color: var(--tails);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 22px rgba(83, 252, 24, 0.12),
    0 0 0 1px rgba(83, 252, 24, 0.06);
}

.btn-tails:hover:not(:disabled) {
  background:
    linear-gradient(165deg, rgba(83, 252, 24, 0.32), rgba(83, 252, 24, 0.12) 55%, rgba(14, 30, 12, 0.45));
  border-color: rgba(83, 252, 24, 0.65);
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 14px 36px rgba(83, 252, 24, 0.28),
    0 0 24px rgba(83, 252, 24, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-heads:active:not(:disabled),
.btn-tails:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-heads.is-selected,
.btn-tails.is-selected {
  animation: betSelectedPulse 1.8s ease-in-out infinite;
}

.btn-heads.is-selected {
  border-color: rgba(94, 176, 255, 0.85);
  box-shadow:
    0 0 0 2px rgba(94, 176, 255, 0.35),
    0 12px 32px rgba(94, 176, 255, 0.3);
}

.btn-tails.is-selected {
  border-color: rgba(83, 252, 24, 0.85);
  box-shadow:
    0 0 0 2px rgba(83, 252, 24, 0.35),
    0 12px 32px rgba(83, 252, 24, 0.3);
}

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

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.bet-side-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.btn-heads .bet-side-icon {
  background: linear-gradient(160deg, #93c5fd, #3b82f6);
  color: #0a1628;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-tails .bet-side-icon {
  background: linear-gradient(160deg, #86ef4a, #22c55e);
  color: #041006;
  box-shadow: 0 4px 14px rgba(83, 252, 24, 0.4);
}

.bet-side-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.bet-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bet-pool {
  font-size: 0.74rem;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.bet-mult {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  flex-shrink: 0;
}

.alert {
  padding: 0.8rem 1.5rem;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-bottom: 1px solid rgba(248, 113, 113, 0.22);
}

.alert-error code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.error-detail {
  font-size: 0.85rem;
  opacity: 0.9;
}

.app-content {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.layout {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.game-panel {
  padding: 1.5rem 1.75rem 2.25rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem 1.35rem;
  align-items: start;
}

/* Left column: coin flip panel + recent strip directly underneath */
.game-flip-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  align-self: start;
}

.game-flip-stack > .recent-strip {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.game-col-flip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 1.1rem 0.95rem 1.25rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(245, 200, 76, 0.06), transparent 62%),
    radial-gradient(ellipse 65% 50% at 50% 45%, rgba(83, 252, 24, 0.06), transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(94, 176, 255, 0.05), transparent 60%),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(245, 200, 76, 0.04);
  position: relative;
  overflow: hidden;
}

.game-col-play {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  width: 340px;
  flex-shrink: 0;
  min-height: 0;
  height: 100%;
  /* Solid match of user-dashboard-menu base (rgb 14,14,18) */
  background: #0e0e12;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #0e0e12;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.chat-backdrop {
  display: none;
}

.chat-toggle {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 150;
  width: 3.35rem;
  height: 3.35rem;
  border: none;
  border-radius: 50%;
  background: var(--kick-green);
  color: #041006;
  box-shadow: 0 8px 28px rgba(83, 252, 24, 0.3);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.chat-toggle:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 12px 32px rgba(83, 252, 24, 0.4);
}

.chat-toggle-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.chat-header h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chat-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-scroll-bottom {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%) translateY(6px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(83, 252, 24, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(15, 15, 18, 0.92);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    background 0.15s ease,
    border-color 0.15s ease;
}

.chat-scroll-bottom:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.chat-scroll-bottom:hover {
  background: rgba(22, 22, 26, 0.98);
  border-color: rgba(83, 252, 24, 0.5);
  color: var(--kick-green);
}

.chat-scroll-bottom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--kick-green-soft);
  color: var(--kick-green);
  font-size: 0.75rem;
  line-height: 1;
}

.chat-scroll-bottom-count {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--kick-green);
  color: #041006;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.chat-scroll-bottom-count[hidden] {
  display: none;
}

/* Hide scrollbars on inner scroll areas (still scrollable) */
.chat-messages,
.layout,
.bets-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar,
.layout::-webkit-scrollbar,
.bets-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.chat-message {
  display: flex;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.45;
  align-items: flex-start;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: background 0.15s ease;
}

.chat-message:hover {
  background: rgba(255, 255, 255, 0.025);
}

.chat-message.msg-enter {
  animation: chatMsgIn 0.32s var(--ease) both;
}

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

@media (prefers-reduced-motion: reduce) {
  .chat-message.msg-enter {
    animation: none;
  }
}

.chat-message .msg-body {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.msg-user-actionable,
.msg-admin-badge.msg-user-actionable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  pointer-events: auto;
}

.msg-user-actionable:hover {
  color: #fff;
}

.chat-message .msg-user.msg-user-admin.msg-user-actionable:hover {
  color: #fde68a !important;
  filter: brightness(1.08);
}

.msg-avatar-actionable,
.msg-avatar-placeholder.msg-avatar-actionable {
  cursor: pointer;
  pointer-events: auto;
  outline: none;
}

.msg-avatar-actionable:hover,
.msg-avatar-placeholder.msg-avatar-actionable:hover {
  box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.45);
  border-radius: 50%;
}

.chat-message-admin .msg-avatar-actionable:hover,
.chat-message-admin .msg-avatar-placeholder.msg-avatar-actionable:hover {
  box-shadow: 0 0 0 2px #fbbf24, 0 0 12px rgba(251, 191, 36, 0.5);
}

.chat-message-tip {
  justify-content: center;
}

.chat-message-tip .msg-body-tip {
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  text-align: center;
  padding: 0.15rem 0;
}

.chat-message-system {
  justify-content: center;
}

.chat-message-system .msg-body-system {
  flex: none;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0.35rem 0.5rem;
  font-style: italic;
}

/* @mentions in chat */
.msg-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-mention {
  color: var(--kick-green);
  font-weight: 700;
  background: rgba(83, 252, 24, 0.1);
  border-radius: 4px;
  padding: 0 0.2em;
}

.msg-mention-self {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.chat-message-mentioned {
  background: rgba(83, 252, 24, 0.1);
  border: 1px solid rgba(83, 252, 24, 0.28);
  border-radius: var(--radius-xs);
  box-shadow: 0 0 0 1px rgba(83, 252, 24, 0.08);
  animation: chatMentionPulse 1.2s ease-out 1;
}

@keyframes chatMentionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(83, 252, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(83, 252, 24, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message-mentioned {
    animation: none;
  }
}

.msg-delete {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chat-message:hover .msg-delete {
  opacity: 1;
}

.msg-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.chat-clear,
.chat-toggle-enabled {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

.chat-toggle-enabled.is-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.chat-disabled-banner {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
}

.chat-disabled-banner[hidden] {
  display: none;
}

.chat-user-menu {
  position: fixed;
  z-index: 1200;
  pointer-events: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.chat-user-menu-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem 0.15rem;
}

.chat-user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0.35rem;
}

.chat-user-menu button {
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  text-align: left;
  cursor: pointer;
}

.chat-user-menu button.menu-tip:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.chat-user-menu button.menu-reply:hover {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

/* Kick-style reply quote in messages */
.msg-reply-quote {
  display: block;
  width: 100%;
  margin: 0 0 0.2rem;
  padding: 0.15rem 0 0.15rem 0.45rem;
  border-left: 2px solid rgba(139, 92, 246, 0.55);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.92;
}

.chat-reply-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.08);
}

.chat-reply-bar[hidden] {
  display: none !important;
}

.chat-reply-bar-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chat-reply-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c4b5fd;
}

.chat-reply-bar-label strong {
  color: #e9d5ff;
  font-weight: 800;
}

.chat-reply-bar-snippet {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-reply-bar-close {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.chat-reply-bar-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.username-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.username-modal-backdrop[hidden] {
  display: none !important;
}

.username-modal-backdrop:not([hidden]) {
  display: flex !important;
}

body.username-modal-open {
  overflow: hidden;
}

.username-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.username-modal-header {
  padding: 1.15rem 1.25rem 0.35rem;
}

.username-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.username-modal-body {
  padding: 0.65rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.username-modal-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.username-modal-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.username-modal-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.username-modal-input:focus {
  outline: none;
  border-color: rgba(83, 252, 24, 0.45);
  box-shadow: var(--ring);
}

.username-modal-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.username-modal-error {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
  margin-top: 0.15rem;
}

.username-modal-error[hidden] {
  display: none;
}

.username-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 1.15rem;
}

.tip-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.tip-modal-backdrop[hidden] {
  display: none !important;
}

.tip-modal-backdrop:not([hidden]) {
  display: flex !important;
}

body.tip-modal-open {
  overflow: hidden;
}

.tip-modal {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.tip-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.tip-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.tip-modal-header h3 span {
  color: var(--kick-green);
}

.tip-modal-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.tip-modal-close:hover {
  color: var(--text);
  background: var(--border);
}

.tip-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip-modal-balance {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tip-modal-balance strong {
  color: #fbbf24;
}

.tip-modal-to {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tip-modal-to strong {
  color: var(--kick-green);
}

.tip-modal-to[hidden] {
  display: none !important;
}

.tip-modal-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tip-modal-input[readonly] {
  opacity: 0.85;
  cursor: default;
}

.tip-modal-usd {
  margin: -0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

/* User activity dashboard */
.activity-modal {
  max-width: 560px;
}

.activity-modal-body {
  gap: 0.85rem;
}

/* Single-row tab strip â€” flex nowrap so all 4 always sit on one line */
.activity-tabs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.28rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
}

.activity-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0.45rem 0.2rem;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.activity-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.activity-tab.is-active {
  color: var(--kick-green);
  background: rgba(83, 252, 24, 0.1);
  border-color: rgba(83, 252, 24, 0.28);
  box-shadow: inset 0 0 0 1px rgba(83, 252, 24, 0.08);
}

@media (max-width: 420px) {
  .activity-tabs {
    gap: 0.18rem;
    padding: 0.22rem;
  }

  .activity-tab {
    font-size: 0.65rem;
    padding: 0.4rem 0.08rem;
    letter-spacing: -0.02em;
  }
}

.activity-summary {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.activity-summary strong {
  color: var(--text);
}

.activity-summary .pos {
  color: #86efac;
}

.activity-summary .neg {
  color: #f87171;
}

.activity-table-wrap {
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.activity-table th,
.activity-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.activity-table th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 650;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.activity-table tbody tr:last-child td {
  border-bottom: none;
}

.activity-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.activity-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.25rem 0.75rem !important;
}

.activity-win {
  color: #86efac;
  font-weight: 700;
}

.activity-loss {
  color: #f87171;
  font-weight: 700;
}

.activity-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tip-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tip-quick-btn {
  flex: 1;
  min-width: 3.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tip-quick-btn:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.tip-modal-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
}

.tip-modal-input:focus {
  outline: none;
  border-color: #fbbf24;
}

.tip-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* Game shell locks html/body scroll; admin must unlock both or content is clipped */
html:has(body.admin-page-body) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.admin-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  max-height: none !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: block;
  -webkit-user-select: text;
  user-select: text;
}

body.admin-page-body .header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.admin-page-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--kick-green-soft);
  border: 1px solid rgba(83, 252, 24, 0.18);
  color: var(--kick-green);
}

.admin-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.admin-page-intro h1 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.admin-page-intro p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-treasury {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
}

#admin-panel-treasury .admin-treasury-txs-card {
  margin-bottom: 0;
}

.admin-treasury-label {
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.admin-treasury-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.admin-treasury-sol {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.admin-treasury-sol.is-updated {
  color: #86efac;
}

.admin-treasury-usd {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

.admin-treasury-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.55rem;
}

.admin-treasury-address {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  max-width: min(100%, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-treasury-address:hover {
  color: var(--text);
  border-color: var(--border-strong, var(--border));
}

.admin-treasury-address.is-copied {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
}

.admin-treasury-network {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-treasury-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.admin-treasury-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #86efac;
}

.admin-treasury-live.is-error {
  color: #f87171;
}

.admin-treasury-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55);
  animation: admin-treasury-pulse 1.6s ease-out infinite;
}

.admin-treasury-live.is-error .admin-treasury-live-dot {
  animation: none;
}

@keyframes admin-treasury-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(134, 239, 172, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0);
  }
}

.admin-treasury-updated {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-treasury-txs-card {
  margin: 0 0 1.25rem;
}

.admin-treasury-txs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-treasury-tx-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  white-space: nowrap;
}

.admin-treasury-txs-wrap {
  max-height: 28rem;
  overflow: auto;
}

.admin-treasury-txs-table .admin-tx-dir {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-treasury-txs-table .dir-in {
  color: #86efac;
}

.admin-treasury-txs-table .dir-out {
  color: #fbbf24;
}

.admin-treasury-txs-table .dir-failed,
.admin-treasury-txs-table .dir-unknown {
  color: var(--text-muted);
}

.admin-treasury-txs-table .sol-in {
  color: #86efac;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-treasury-txs-table .sol-out {
  color: #fbbf24;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-treasury-txs-table tr.tx-new td {
  background: rgba(83, 252, 24, 0.08);
  transition: background 1.2s ease;
}

.admin-treasury-txs-table .admin-tx-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  width: fit-content;
  max-width: 100%;
}

.admin-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab.is-active {
  color: var(--kick-green);
  background: rgba(83, 252, 24, 0.1);
  border-color: rgba(83, 252, 24, 0.28);
}

.admin-tab-panels {
  width: 100%;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-panel.is-active {
  display: block;
}

.admin-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .admin-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-card-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.admin-card-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-card-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.55rem 0.65rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  line-height: 1.4;
}

.admin-card-status.is-on {
  color: #86efac;
}

.admin-card-status.is-off {
  color: #fbbf24;
}

.admin-card-danger-zone {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.admin-card-danger-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.admin-danger-btn {
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}

.admin-danger-btn:hover {
  background: rgba(248, 113, 113, 0.12) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
}

.admin-deposits-card {
  margin-top: 0;
}

.admin-deposit-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.admin-deposit-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.admin-deposit-ranges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-range-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-range-btn:hover {
  border-color: rgba(83, 252, 24, 0.3);
  color: var(--text);
}

.admin-range-btn.is-active {
  background: rgba(83, 252, 24, 0.12);
  border-color: rgba(83, 252, 24, 0.4);
  color: var(--kick-green);
}

.admin-deposit-refresh {
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-deposit-custom {
  width: 100%;
}

.admin-deposit-custom[hidden] {
  display: none !important;
}

.admin-deposit-custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.admin-date-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 9.5rem;
  flex: 0 1 auto;
}

.admin-date-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.admin-date-input,
.admin-date-field input[type='date'] {
  box-sizing: border-box;
  width: 100%;
  min-width: 9.5rem;
  height: 2.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 0.6rem;
  text-transform: none;
  letter-spacing: normal;
  line-height: 2.1rem;
}

.admin-date-input:focus,
.admin-date-field input[type='date']:focus {
  outline: none;
  border-color: rgba(83, 252, 24, 0.45);
  box-shadow: var(--ring);
}

.admin-deposit-apply {
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.admin-deposit-period {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-deposit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.55rem;
}

.admin-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-stat-label {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-stat-value {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.admin-deposit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.admin-deposit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-deposit-table th,
.admin-deposit-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-deposit-table th {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.admin-deposit-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-deposit-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-deposit-empty {
  text-align: center !important;
  color: var(--text-muted);
  padding: 1.25rem 0.75rem !important;
  white-space: normal !important;
}

.admin-status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.admin-status-pill.status-credited {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.admin-status-pill.status-pending {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.12);
}

.admin-status-pill.status-expired {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.admin-status-pill.status-completed {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.admin-status-pill.status-failed {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.admin-status-pill.status-rejected {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.admin-wd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.admin-wd-actions .btn {
  white-space: nowrap;
}

.admin-users-toolbar-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.admin-users-search-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
  min-width: min(100%, 16rem);
}

.admin-users-search {
  flex: 1;
  min-width: 12rem;
}

.admin-users-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.admin-users-sort-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-users-sort {
  min-width: 9.5rem;
}

.admin-users-layout {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .admin-users-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    align-items: start;
  }

  .admin-users-layout:has(#admin-user-edit[hidden]) {
    grid-template-columns: 1fr;
  }
}

.admin-users-table-wrap {
  max-height: 32rem;
  overflow: auto;
}

.admin-users-table tr.is-selected td {
  background: rgba(83, 252, 24, 0.08);
}

.admin-user-edit {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.02);
}

.admin-user-edit[hidden] {
  display: none !important;
}

.admin-user-edit-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem !important;
  word-break: break-all;
  color: var(--text-muted);
  margin: 0 !important;
}

.admin-user-edit-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.admin-wd-threshold-row {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-wd-threshold-field {
  margin: 0;
}

.admin-wd-threshold-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-wd-threshold-prefix {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.admin-wd-threshold-input {
  max-width: 8rem;
  font-variant-numeric: tabular-nums;
}

.admin-wd-threshold-hint {
  margin: 0;
}

.admin-wd-threshold-hint code {
  font-size: 0.85em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-user-chat-ban {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.admin-user-chat-ban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-user-ban-actions {
  margin-top: 0.1rem;
}

.admin-user-ban-btn {
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}

.admin-user-ban-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fecaca !important;
}

.admin-user-unban-btn {
  color: #86efac !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
}

.admin-user-unban-btn:hover {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #bbf7d0 !important;
}

.admin-user-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-user-delete-btn {
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
}

.admin-user-delete-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #fecaca !important;
}

.admin-user-edit-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Confirm popup */
.admin-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.admin-confirm-backdrop[hidden] {
  display: none !important;
}

body.admin-confirm-open {
  overflow: hidden;
}

.admin-confirm-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.admin-confirm-modal.is-danger {
  border-color: rgba(248, 113, 113, 0.45);
}

.admin-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.admin-confirm-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.admin-confirm-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.admin-confirm-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.admin-confirm-body {
  padding: 1.15rem 1.15rem 0.5rem;
}

.admin-confirm-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.admin-confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.15rem 1.15rem;
}

.admin-confirm-modal.is-danger #admin-confirm-yes {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.admin-confirm-modal.is-danger #admin-confirm-yes:hover {
  background: rgba(239, 68, 68, 0.32);
}

/* Pending withdrawal badge next to admin name */
.admin-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #0a0a0a;
  background: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
  font-variant-numeric: tabular-nums;
}

.admin-pending-badge[hidden] {
  display: none !important;
}

.admin-pending-badge.is-hot {
  background: #53fc18;
  box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.3);
  animation: admin-badge-pulse 1.4s ease-out infinite;
}

@keyframes admin-badge-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(83, 252, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(83, 252, 24, 0);
  }
}

.admin-pending-badge-inline {
  margin-left: auto;
}

.user-dashboard-item#admin-pending-wd-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

.user-dashboard-item#admin-pending-wd-menu-item[hidden] {
  display: none !important;
}

.admin-users-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.admin-users-pager[hidden] {
  display: none !important;
}

.admin-users-page-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-tx-link {
  color: #93c5fd;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.admin-tx-link:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.admin-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.15s ease, background 0.15s ease;
}

.admin-toggle input:checked + .admin-toggle-track {
  background: rgba(83, 252, 24, 0.2);
  border-color: rgba(83, 252, 24, 0.45);
}

.admin-toggle input:checked + .admin-toggle-track::after {
  transform: translateX(18px);
  background: var(--kick-green);
}

.admin-toggle input:disabled + .admin-toggle-track {
  opacity: 0.45;
}

.admin-toggle input:disabled ~ .admin-toggle-label {
  opacity: 0.55;
}

.admin-toggle-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.deposit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1310;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.deposit-modal-backdrop[hidden] {
  display: none;
}

body.deposit-modal-open {
  overflow: hidden;
}

.deposit-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.deposit-modal-header,
.deposit-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.deposit-modal-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 0.5rem;
}

.deposit-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.deposit-modal-close {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.deposit-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deposit-rate,
.deposit-estimate,
.deposit-hint,
.deposit-status,
.deposit-poll-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.deposit-estimate strong,
.deposit-status strong {
  color: #fbbf24;
}

.deposit-poll-status {
  color: var(--kick-green);
  font-weight: 600;
}

.deposit-step[hidden] {
  display: none;
}

.deposit-step:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deposit-step .deposit-rate,
.deposit-step .deposit-estimate {
  margin: 0;
}

.deposit-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.deposit-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deposit-quick-btn {
  flex: 1;
  min-width: 3rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.deposit-quick-btn:hover {
  border-color: var(--kick-green);
}

.deposit-amount-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 0.75rem;
}

.deposit-amount-row:focus-within {
  border-color: var(--kick-green);
}

.deposit-amount-prefix {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-muted);
  user-select: none;
}

.deposit-amount-row .deposit-input {
  margin-top: 0;
  border: none;
  background: transparent;
  padding-left: 0.15rem;
}

.deposit-amount-row .deposit-input:focus {
  border: none;
}

.deposit-input {
  width: 100%;
  margin-top: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
}

.deposit-input:focus {
  outline: none;
  border-color: var(--kick-green);
}

.deposit-hint-form {
  margin-top: 0.25rem;
}

.withdraw-balance-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.withdraw-balance-line strong {
  color: #fbbf24;
}

.withdraw-deposit-req,
.deposit-min-error {
  font-size: 0.82rem;
  color: #f87171;
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.withdraw-deposit-req[hidden],
.deposit-min-error[hidden] {
  display: none;
}

.withdraw-amount-row .deposit-input {
  padding-left: 0.85rem;
}

.deposit-sol-estimate {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.15rem;
}


.deposit-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.deposit-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.deposit-field-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--kick-green);
  opacity: 0.85;
}

.deposit-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  word-break: break-all;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.5rem;
  color: #93c5fd;
  user-select: all;
}

.deposit-value.deposit-copyable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.deposit-value.deposit-copyable:hover {
  border-color: rgba(83, 252, 24, 0.35);
  background: rgba(83, 252, 24, 0.08);
}

.deposit-value.deposit-copyable:active {
  transform: scale(0.99);
}

.deposit-value.deposit-copied {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.chat-user-menu button.menu-timeout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.chat-user-menu button.menu-ban:hover {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}

.chat-user-menu button.menu-unban:hover {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.chat-message .msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.chat-message .msg-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.chat-message .msg-user {
  font-weight: 700;
  color: var(--kick-green);
  margin-right: 0.4rem;
  letter-spacing: -0.01em;
}

.chat-message.chat-message-admin {
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.16),
    rgba(251, 191, 36, 0.06) 50%,
    rgba(251, 191, 36, 0.02)
  ) !important;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: inset 3px 0 0 #fbbf24;
}

.chat-message.chat-message-admin:hover {
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.22),
    rgba(251, 191, 36, 0.08) 50%,
    rgba(255, 255, 255, 0.03)
  ) !important;
}

.chat-message-admin .msg-avatar,
.chat-message-admin .msg-avatar-placeholder {
  box-shadow: 0 0 0 2px #fbbf24, 0 0 10px rgba(251, 191, 36, 0.35);
}

.chat-message .msg-user.msg-user-admin {
  color: #fbbf24 !important;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

.msg-admin-badge {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.1rem 0.42rem;
  border-radius: var(--radius-pill);
  background: #fbbf24;
  border: none;
  color: #1a1200;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  vertical-align: middle;
  line-height: 1.3;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.95rem 1rem 1.1rem;
  border-top: 1px solid var(--border);
  background: #0e0e12;
}

.chat-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-form input:focus {
  outline: none;
  border-color: rgba(83, 252, 24, 0.4);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--ring);
}

.chat-locked {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.round-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 0.95rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(245, 200, 76, 0.04), transparent 40%),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.round-info-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.round-label strong {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.payout-pill {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1200;
  background: linear-gradient(180deg, #ffe08a 0%, #f5c84c 45%, #c9a227 100%);
  border: 1px solid rgba(255, 224, 138, 0.5);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.65rem;
  box-shadow:
    0 0 18px rgba(245, 200, 76, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.phase-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--kick-green-soft);
  color: var(--kick-green);
  border: 1px solid rgba(83, 252, 24, 0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(83, 252, 24, 0.12);
}

.phase-badge.locked {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.22);
}

.phase-badge.flipping,
.phase-badge.result {
  background: var(--heads-soft);
  color: var(--heads);
  border-color: rgba(96, 165, 250, 0.22);
}

.phase-badge.paused {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.22);
}

.game-disabled-banner {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.95rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: var(--radius-sm);
}

.game-disabled-banner[hidden] {
  display: none;
}

.coin-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  min-height: 280px;
  padding: 0.25rem 0 0;
  border-radius: calc(var(--radius) + 4px);
  background: transparent;
  /* Scroll passes through to .layout when cursor is over the coin */
  pointer-events: none;
}

.coin-3d-mount {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: inherit;
  /* Let wheel/trackpad scroll the page when cursor is over the coin */
  pointer-events: none;
}

.coin-3d-mount .coin-canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
  pointer-events: none;
  touch-action: pan-y;
}

.coin-arena {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 300px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto 0.5rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: transparent;
  pointer-events: none;
}

.coin-arena.shake {
  animation: arenaShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes arenaShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-3px, 2px, 0); }
  30% { transform: translate3d(4px, -2px, 0); }
  45% { transform: translate3d(-2px, 1px, 0); }
  60% { transform: translate3d(2px, -1px, 0); }
  75% { transform: translate3d(-1px, 1px, 0); }
}

.arena-spotlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 42% at 50% 72%, rgba(255, 215, 80, 0.16), transparent 68%),
    radial-gradient(ellipse 70% 28% at 50% 100%, rgba(83, 252, 24, 0.07), transparent);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.coin-arena.tossing .arena-spotlight {
  animation: spotlightPulse 2.5s ease-in-out forwards;
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  20% { opacity: 1.2; filter: brightness(1.25); }
  50% { opacity: 0.85; filter: brightness(0.9); }
  82% { opacity: 1.3; filter: brightness(1.4); }
}

.arena-floor {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 200px;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.coin-shadow {
  position: absolute;
  bottom: 16px;
  width: 110px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 72%);
  border-radius: 50%;
  transform: scale(1);
  filter: blur(5px);
  opacity: 0.75;
  z-index: 1;
  will-change: transform, opacity;
}

.coin-shadow.tossing {
  animation: shadowToss 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes shadowToss {
  0%   { transform: scale(1) translateX(0); opacity: 0.75; }
  8%   { transform: scale(1.15) translateX(0); opacity: 0.85; }
  22%  { transform: scale(0.55) translateX(6px); opacity: 0.3; }
  40%  { transform: scale(0.35) translateX(2px); opacity: 0.18; }
  58%  { transform: scale(0.42) translateX(-4px); opacity: 0.22; }
  74%  { transform: scale(0.8) translateX(-2px); opacity: 0.5; }
  84%  { transform: scale(1.2) translateX(0); opacity: 0.85; }
  90%  { transform: scale(0.92) translateX(0); opacity: 0.7; }
  95%  { transform: scale(1.06) translateX(0); opacity: 0.8; }
  100% { transform: scale(1) translateX(0); opacity: 0.75; }
}

.coin-wrapper {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
  margin-bottom: 28px;
}

.coin-wrapper.tossing {
  animation: coinArc 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Anticipation crouch â†’ launch â†’ peak â†’ fall â†’ multi-bounce settle
   Keep peak modest so the coin stays inside the arena (not under header). */
@keyframes coinArc {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  6%   { transform: translate3d(0, 8px, 0) scale(1.02, 0.94); }
  14%  { transform: translate3d(3px, -48px, 24px) scale(0.98, 1.03); }
  30%  { transform: translate3d(8px, -95px, 48px) scale(1.04); }
  42%  { transform: translate3d(6px, -105px, 55px) scale(1.05); }
  58%  { transform: translate3d(-4px, -70px, 32px) scale(1.02); }
  72%  { transform: translate3d(-2px, -28px, 10px) scale(1); }
  82%  { transform: translate3d(0, 5px, 0) scale(1.05, 0.92); }
  88%  { transform: translate3d(0, -14px, 6px) scale(0.98, 1.02); }
  93%  { transform: translate3d(0, 2px, 0) scale(1.02, 0.97); }
  97%  { transform: translate3d(0, -4px, 0) scale(0.99, 1.01); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.coin {
  width: 152px;
  height: 152px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(14deg) rotateY(0deg);
  will-change: transform, filter;
}

.coin.spinning {
  animation: coinSpin 2.5s cubic-bezier(0.15, 0.55, 0.25, 1) forwards;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.coin.spinning .coin-shine {
  animation: shineSweep 2.5s linear forwards;
}

.coin.landed {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

/* Fast start, long decelerating settle into final orientation.
   --spin-* are unitless degrees set by JS (e.g. 2160). */
@keyframes coinSpin {
  0% {
    transform: rotateX(14deg) rotateY(0deg) rotateZ(-8deg);
  }
  8% {
    transform: rotateX(calc(var(--spin-x, 2160) * 0.06deg))
               rotateY(calc(var(--spin-y, 1980) * 0.05deg))
               rotateZ(calc(var(--spin-z, 360) * 0.08deg));
  }
  25% {
    transform: rotateX(calc(var(--spin-x, 2160) * 0.28deg))
               rotateY(calc(var(--spin-y, 1980) * 0.3deg))
               rotateZ(calc(var(--spin-z, 360) * 0.35deg));
  }
  48% {
    transform: rotateX(calc(var(--spin-x, 2160) * 0.55deg))
               rotateY(calc(var(--spin-y, 1980) * 0.58deg))
               rotateZ(calc(var(--spin-z, 360) * 0.62deg));
  }
  70% {
    transform: rotateX(calc(var(--spin-x, 2160) * 0.78deg))
               rotateY(calc(var(--spin-y, 1980) * 0.8deg))
               rotateZ(calc(var(--spin-z, 360) * 0.82deg));
  }
  88% {
    transform: rotateX(calc(var(--spin-x, 2160) * 0.94deg))
               rotateY(calc(var(--spin-y, 1980) * 0.95deg))
               rotateZ(calc(var(--spin-z, 360) * 0.96deg));
  }
  100% {
    transform: rotateX(calc(var(--spin-x, 2160) * 1deg))
               rotateY(calc(var(--spin-y, 1980) * 1deg))
               rotateZ(calc(var(--spin-z, 360) * 1deg));
  }
}

@keyframes shineSweep {
  0%, 100% { opacity: 0.55; transform: translateX(-30%) rotate(0deg); }
  50% { opacity: 1; transform: translateX(20%) rotate(12deg); }
}

/* 3D thickness via stacked edge slices */
.coin-edge {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.coin-edge span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    #6b5010 0%,
    #c9a227 18%,
    #ffe566 38%,
    #ffd700 50%,
    #a67c00 72%,
    #8b6914 100%
  );
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
}

.coin-edge span:nth-child(1)  { transform: translateZ(-6px); }
.coin-edge span:nth-child(2)  { transform: translateZ(-5px); }
.coin-edge span:nth-child(3)  { transform: translateZ(-4px); }
.coin-edge span:nth-child(4)  { transform: translateZ(-3px); }
.coin-edge span:nth-child(5)  { transform: translateZ(-2px); }
.coin-edge span:nth-child(6)  { transform: translateZ(-1px); }
.coin-edge span:nth-child(7)  { transform: translateZ(0px); }
.coin-edge span:nth-child(8)  { transform: translateZ(1px); }
.coin-edge span:nth-child(9)  { transform: translateZ(2px); }
.coin-edge span:nth-child(10) { transform: translateZ(3px); }
.coin-edge span:nth-child(11) { transform: translateZ(4px); }
.coin-edge span:nth-child(12) { transform: translateZ(5px); }

.coin-rim {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #8b6914, #ffd700, #c9a227, #ffe566, #d4af37, #ffd700, #8b6914, #c9a227
  );
  transform: translateZ(0);
  box-shadow:
    0 0 16px rgba(255, 215, 0, 0.35),
    0 0 4px rgba(255, 215, 0, 0.5);
  opacity: 0.95;
}

.coin.spinning .coin-rim {
  animation: rimGlow 2.5s ease-in-out forwards;
}

@keyframes rimGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.3); }
  40% { box-shadow: 0 0 28px rgba(255, 215, 0, 0.65), 0 0 48px rgba(255, 200, 50, 0.25); }
  82% { box-shadow: 0 0 32px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 200, 50, 0.35); }
}

.coin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 3px solid #d4af37;
  box-shadow:
    inset 0 4px 18px rgba(255, 255, 255, 0.4),
    inset 0 -8px 22px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 215, 0, 0.25);
  transform-style: preserve-3d;
}

.coin-shine {
  position: absolute;
  inset: -10%;
  background: linear-gradient(
    125deg,
    transparent 28%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.12) 56%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 2;
}

.coin-ridges {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

.coin-ridges::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.coin-inner {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.coin-symbol {
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 255, 255, 0.15);
  letter-spacing: -0.02em;
}

.coin-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-top: 0.2rem;
  opacity: 0.9;
}

.coin-heads {
  transform: rotateY(0deg) translateZ(6px);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35), transparent 28%),
    radial-gradient(circle at 35% 30%, #6eb6ff, transparent 50%),
    radial-gradient(circle at 65% 70%, #1d4ed8, transparent 42%),
    linear-gradient(145deg, #3b82f6 0%, #1e40af 48%, #2563eb 100%);
  color: #fff;
}

.coin-heads .coin-inner {
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.14), transparent 65%);
}

.coin-tails {
  transform: rotateY(180deg) translateZ(6px);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.3), transparent 28%),
    radial-gradient(circle at 35% 30%, #8dfc5c, transparent 50%),
    radial-gradient(circle at 65% 70%, #2d8a0e, transparent 42%),
    linear-gradient(145deg, #53fc18 0%, #1f6b08 48%, #3db812 100%);
  color: #fff;
  border-color: #3db812;
}

.coin-tails .coin-inner {
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.12), transparent 65%);
}

.coin-tails .coin-symbol,
.coin-tails .coin-label {
  color: #fff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(83, 252, 24, 0.25);
}

.coin.show-heads {
  transform: rotateX(14deg) rotateY(0deg);
}

.coin.show-tails {
  transform: rotateX(14deg) rotateY(180deg);
}

/* When resting, swap faces instead of relying on backface culling (fixes blank tails) */
.coin.show-heads:not(.spinning),
.coin.show-tails:not(.spinning) {
  transform: rotateX(14deg) rotateY(0deg);
}

.coin.show-heads:not(.spinning) .coin-heads,
.coin.show-tails:not(.spinning) .coin-tails {
  transform: translateZ(6px);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.coin.show-heads:not(.spinning) .coin-tails,
.coin.show-tails:not(.spinning) .coin-heads {
  visibility: hidden;
  pointer-events: none;
}

.coin.bounce-land {
  animation: coinBounce 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

@keyframes coinBounce {
  0%   { transform: scale(1.12, 0.88) rotateX(14deg) rotateY(0deg); }
  28%  { transform: scale(0.94, 1.08) rotateX(10deg) rotateY(0deg); }
  52%  { transform: scale(1.04, 0.96) rotateX(16deg) rotateY(0deg); }
  76%  { transform: scale(0.98, 1.02) rotateX(13deg) rotateY(0deg); }
  100% { transform: scale(1) rotateX(14deg) rotateY(0deg); }
}

.coin-flash {
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 240, 180, 0.75) 0%, rgba(255, 215, 0, 0.25) 40%, transparent 70%);
  transform: scale(0.4);
}

.coin-flash.burst {
  animation: landFlash 0.55s ease-out forwards;
}

.coin-flash.burst.heads {
  background: radial-gradient(circle, rgba(147, 197, 253, 0.8) 0%, rgba(59, 130, 246, 0.3) 42%, transparent 70%);
}

.coin-flash.burst.tails {
  background: radial-gradient(circle, rgba(187, 255, 150, 0.8) 0%, rgba(83, 252, 24, 0.3) 42%, transparent 70%);
}

@keyframes landFlash {
  0%   { opacity: 0; transform: scale(0.35); }
  25%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.6); }
}

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

.result-banner {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  min-height: 2.15rem;
  text-align: center;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  text-transform: uppercase;
}

.result-banner.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: resultPop 0.55s var(--ease);
}

@keyframes resultPop {
  0% { transform: scale(0.7); opacity: 0; }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.result-banner.heads {
  color: var(--heads);
  text-shadow:
    0 0 40px rgba(94, 176, 255, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.result-banner.tails {
  color: var(--tails);
  text-shadow:
    0 0 40px rgba(83, 252, 24, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.result-banner.user-won {
  background: linear-gradient(90deg, var(--gold-bright), #fff, var(--kick-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(245, 200, 76, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .coin-wrapper.tossing,
  .coin.spinning,
  .coin-shadow.tossing,
  .coin.bounce-land,
  .coin-arena.shake,
  .coin-flash.burst {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.timer-wrap {
  margin-top: 0.35rem;
}

.timer-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0.5rem 1.1rem 0.45rem;
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--kick-green-dim), var(--kick-green), var(--gold-bright));
  background-size: 200% 100%;
  border-radius: var(--radius-pill);
  transition: width 1s linear;
  width: 100%;
  box-shadow: 0 0 14px rgba(83, 252, 24, 0.4);
  animation: timerShimmer 2.4s linear infinite;
}

@keyframes timerShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.timer-fill.urgent {
  background: linear-gradient(90deg, #f59e0b, #f87171, #ff4d4d);
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.45);
  animation: timerUrgent 0.55s ease-in-out infinite alternate;
}

@keyframes timerUrgent {
  from { filter: brightness(1); }
  to { filter: brightness(1.25); }
}

.timer-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  min-height: 1.25em;
  font-family: var(--font-display);
}

.timer-text.is-hidden {
  visibility: hidden;
}

.timer-text.is-urgent {
  color: #ff8a8a;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.35);
}

.fair-panel {
  max-width: none;
  margin: 1.35rem 0 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.fair-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fair-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.fair-toggle.open .fair-toggle-label::after {
  content: ' \25B4'; /* ▴ */
}

.fair-toggle:not(.open) .fair-toggle-label::after {
  content: ' \25BE'; /* ▾ */
}

.fair-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--kick-green);
  background: var(--kick-green-soft);
  border: 1px solid rgba(83, 252, 24, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
}

.fair-badge.fair-badge-fail {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.3);
}

.fair-details {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fair-details[hidden] {
  display: none;
}

.fair-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.fair-section h4 span {
  color: var(--kick-green);
}

.fair-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.45rem;
}

.fair-key {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fair-value,
.fair-value-text {
  font-size: 0.75rem;
  word-break: break-all;
}

.fair-value {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #93c5fd;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.6rem;
  user-select: all;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.fair-value.fair-copyable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fair-value.fair-copyable:hover {
  border-color: rgba(83, 252, 24, 0.35);
  background: rgba(83, 252, 24, 0.08);
}

.fair-value.fair-copyable:active {
  transform: scale(0.99);
}

.fair-value.fair-copied {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}

.fair-value.fair-pending {
  color: var(--text-muted);
  font-style: italic;
  user-select: none;
  cursor: default;
}

.fair-value-text.heads {
  color: var(--heads);
}

.fair-value-text.tails {
  color: var(--tails);
}

.fair-hint,
.fair-explainer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.fair-verify-result {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.fair-verify-result.valid {
  color: #22c55e;
}

.fair-verify-result.invalid {
  color: #ef4444;
}

.bet-controls {
  max-width: none;
  margin: 0;
  padding: 1.25rem 1.2rem 1.15rem;
  background:
    linear-gradient(160deg, rgba(245, 200, 76, 0.05), transparent 42%),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 36px rgba(0, 0, 0, 0.25);
}

.bet-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bet-controls-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.bet-controls-edge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(245, 200, 76, 0.1);
  border: 1px solid rgba(245, 200, 76, 0.22);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.55rem;
}

.bet-controls-edge strong {
  color: var(--gold-bright);
  font-family: var(--font-display);
}

.bet-amount-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.amount-input-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.amount-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 0.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.amount-input-wrap:focus-within {
  border-color: rgba(83, 252, 24, 0.5);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: var(--ring);
}

.bet-amount-usd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.amount-input-row input,
.amount-input-wrap input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.amount-input-row input:focus,
.amount-input-wrap input:focus {
  outline: none;
}

.amount-input-row .btn-ghost {
  min-width: 2.75rem;
  border-radius: var(--radius-xs);
  font-weight: 650;
}

/* Casino chip quick bets */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.chip-btn {
  flex: 1;
  min-width: 3.1rem;
  padding: 0.48rem 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 200, 76, 0.28);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(245, 200, 76, 0.14), rgba(0, 0, 0, 0.25));
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.chip-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 200, 76, 0.55);
  box-shadow: 0 6px 16px rgba(245, 200, 76, 0.15);
  color: #fff;
}

.chip-btn:active {
  transform: scale(0.96);
}

.chip-btn.is-active {
  border-color: rgba(83, 252, 24, 0.55);
  color: var(--kick-green);
  background:
    radial-gradient(circle at 30% 25%, rgba(83, 252, 24, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(83, 252, 24, 0.16), rgba(0, 0, 0, 0.28));
  box-shadow: 0 0 16px rgba(83, 252, 24, 0.2);
}

.chip-btn-max {
  border-color: rgba(83, 252, 24, 0.35);
  color: var(--kick-green);
  background:
    radial-gradient(circle at 30% 25%, rgba(83, 252, 24, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(83, 252, 24, 0.12), rgba(0, 0, 0, 0.28));
}

.bet-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.bet-potential {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.bet-potential strong {
  color: var(--kick-green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.bet-potential span {
  color: var(--gold);
  font-weight: 650;
}

.bet-buttons {
  display: flex;
  gap: 0.7rem;
}

.bet-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.login-prompt {
  text-align: center;
  padding: 2.15rem 1.4rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(83, 252, 24, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(245, 200, 76, 0.06), transparent 55%),
    var(--surface);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.28);
  margin: 0;
  position: relative;
  overflow: hidden;
}

.login-prompt-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse, rgba(83, 252, 24, 0.12), transparent 70%);
  pointer-events: none;
}

.login-prompt-badge {
  display: inline-block;
  position: relative;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid rgba(245, 200, 76, 0.28);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.85rem;
}

.login-prompt-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  background: linear-gradient(180deg, #fff 30%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-prompt p {
  position: relative;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.login-prompt .btn-kick {
  position: relative;
}

.history-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.history-label {
  font-weight: 600;
  color: var(--text-muted);
}

.history-pct {
  font-weight: 700;
  font-size: 0.7rem;
}

.history-pct.heads { color: var(--heads); }
.history-pct.tails { color: var(--tails); }

.history-counts {
  font-size: 0.65rem;
  opacity: 0.7;
}

.history-bar-mini {
  display: flex;
  width: 72px;
  height: 5px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.history-bar-heads {
  background: var(--heads);
  transition: width 0.4s ease;
}

.history-bar-tails {
  background: var(--tails);
  transition: width 0.4s ease;
}

.bets-section {
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 32px rgba(0, 0, 0, 0.2);
}

.bets-section-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.bets-section h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.bets-live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--kick-green);
  box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.45);
  animation: online-dot-pulse 1.8s ease-out infinite;
}

.bets-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bets-column h4 {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.heads-title { color: var(--heads); }
.tails-title { color: var(--tails); }

.bets-list {
  list-style: none;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 140px;
  max-height: min(300px, 40vh);
  overflow-y: auto;
}

.bet-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  transition: background 0.15s ease;
}

.bet-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.bet-item:last-child {
  border-bottom: none;
}

.bet-item .bet-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.bet-item .bet-amount {
  margin-left: auto;
  font-weight: 700;
}

.bet-item .bet-amount.heads { color: var(--heads); }
.bet-item .bet-amount.tails { color: var(--tails); }

.bets-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.config-warning {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(165deg, rgba(24, 24, 30, 0.96), rgba(12, 12, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  /*
   * Above game UI, below mobile chat drawer (220) and header (300).
   * Requires app-content z-index:auto so fixed chat can compete at root.
   */
  z-index: 140;
  box-shadow: var(--shadow-md), 0 0 24px rgba(83, 252, 24, 0.08);
  backdrop-filter: blur(14px);
  animation: toastIn 0.3s var(--ease);
  max-width: min(92vw, 420px);
  text-align: center;
  pointer-events: none;
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
  background: rgba(40, 20, 22, 0.96);
  box-shadow: var(--shadow-md), 0 0 20px rgba(248, 113, 113, 0.12);
}

.toast.toast-win {
  border-color: rgba(245, 200, 76, 0.45);
  color: var(--gold-bright);
  box-shadow: var(--shadow-md), 0 0 28px rgba(245, 200, 76, 0.22);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Personal win celebration overlay on coin stage */
.coin-stage {
  position: relative;
}

.coin-stage-glow {
  position: absolute;
  inset: 8% 12% 18%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 55%, rgba(245, 200, 76, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 35% at 50% 60%, rgba(83, 252, 24, 0.1), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: stageGlow 4s ease-in-out infinite alternate;
}

@keyframes stageGlow {
  from { opacity: 0.65; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

.win-celebration {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.35), transparent 70%);
  animation: winCelebrateIn 0.45s var(--ease);
}

.win-celebration[hidden] {
  display: none !important;
}

.win-celebration-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, rgba(20, 18, 10, 0.88), rgba(8, 12, 8, 0.9));
  border: 1px solid rgba(245, 200, 76, 0.4);
  box-shadow:
    0 0 40px rgba(245, 200, 76, 0.3),
    0 0 80px rgba(83, 252, 24, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: winPulse 0.9s ease-in-out infinite alternate;
}

.win-celebration-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.win-celebration-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 10%, var(--kick-green) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(83, 252, 24, 0.4));
}

.win-celebration-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

@keyframes winCelebrateIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes winPulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn-kick {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .bet-buttons {
    flex-direction: column;
  }

  .btn-heads,
  .btn-tails {
    min-height: 4.5rem;
  }

  .payout-pill {
    font-size: 0.58rem;
  }

  .bet-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .bet-potential {
    text-align: left;
  }

  .login-prompt-title {
    font-size: 1.25rem;
  }

  .win-celebration-amount {
    font-size: 1.65rem;
  }

  .chip-btn {
    min-width: 2.75rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .logo-icon,
  .coin-stage-glow,
  .timer-fill,
  .win-celebration-inner,
  .btn-heads.is-selected,
  .btn-tails.is-selected {
    animation: none !important;
  }
}

@media (max-width: 1100px) {
  .game-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .game-flip-stack {
    gap: 0.55rem;
  }

  .game-col-flip {
    padding: 0.5rem 0.25rem 0.75rem;
  }
}

@media (max-width: 900px) {
  .app-content {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .layout {
    width: 100%;
    height: 100%;
  }

  .game-panel {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .round-info {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .history-compact {
    justify-content: flex-start;
  }

  .header {
    padding: 0.75rem 1rem;
  }

  .header-right {
    gap: 0.5rem;
  }

  .username {
    display: none;
  }

  .amount-input-row {
    flex-wrap: wrap;
  }

  .bet-buttons {
    flex-direction: column;
  }

  .chat-toggle {
    display: flex;
    /* Above toasts (140), below open chat drawer */
    z-index: 160;
  }

  .chat-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    /* Above toasts so notifications sit under open chat */
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .chat-backdrop.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    /* Above toasts (140) and backdrop (210); below header menu (300) */
    z-index: 220;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s;
    border-left: 1px solid var(--border);
    border-top: none;
    min-height: 0;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
  }

  /* Keep winner/error toasts clear of the open chat column */
  .toast {
    max-width: min(92vw, 360px);
    bottom: 5.5rem;
    z-index: 140;
  }

  body.chat-open .toast {
    /* Chat drawer open: shift toast left of the panel and keep under it */
    left: max(0.75rem, calc(50% - min(160px, 44vw)));
    right: auto;
    transform: translateX(0);
    max-width: min(calc(100vw - min(320px, 88vw) - 1.5rem), 280px);
  }

  .chat-panel.open {
    transform: translateX(0);
    visibility: visible;
  }

  .chat-close {
    display: flex;
  }

  body.chat-open {
    overflow: hidden;
  }

  body.chat-open .chat-toggle {
    opacity: 0;
    pointer-events: none;
  }
}
/* ï¿½ï¿½ SEO / marketing content ï¿½ï¿½ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lives inside .layout under the game — scroll down to read; never covers the coin */
.seo-home {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
  flex-shrink: 0;
  -webkit-user-select: text;
  user-select: text;
  box-sizing: border-box;
}

.seo-home-inner {
  padding: 2rem 2rem 1.85rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface), var(--bg-panel);
  min-height: 0;
}

.seo-home h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.seo-home > .seo-home-inner > p,
.seo-home-inner > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 62rem;
}

.seo-home a {
  color: var(--kick-green);
  text-decoration: none;
}

.seo-home a:hover {
  text-decoration: underline;
}

.seo-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

  .seo-home {
    padding: 1rem 0.65rem 0.35rem;
  }

  .seo-home-inner {
    padding: 1.35rem 1.15rem 1.25rem;
    border-radius: 16px;
  }

  .seo-home h2 {
    font-size: 1.25rem;
  }
}

.seo-home-grid article {
  padding: 1.2rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seo-home-grid h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.seo-home-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.seo-faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.15rem;
  background: rgba(0, 0, 0, 0.15);
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  list-style: none;
  padding: 0.15rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seo-faq summary::after {
  content: '\25BE';
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.seo-faq[open] summary::after {
  content: '\25B4';
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq dl {
  margin: 0.9rem 0 0.15rem;
}

.seo-faq dt {
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.seo-faq dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-home-links {
  margin: 0 !important;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.25rem 2rem;
  margin-top: 0.25rem;
}

.site-footer-in-layout {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1.15rem 1.25rem 2.75rem;
  border-top: none;
  box-sizing: border-box;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer strong {
  color: var(--text);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.site-footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
}

.site-footer-nav a:hover {
  color: var(--kick-green);
}

.site-footer-note {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Standalone SEO pages â€” match main site shell (header, colors, cards) */
html:has(body.seo-page-body) {
  height: auto;
  overflow: auto;
}

.seo-page-body {
  min-height: 100vh;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden;
  overflow-y: auto !important;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 55% at 50% -20%, rgba(83, 252, 24, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(96, 165, 250, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 100%, rgba(83, 252, 24, 0.04), transparent 50%),
    var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  -webkit-user-select: text;
  user-select: text;
}

.seo-page-body .header {
  position: sticky;
  top: 0;
}

.seo-page {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

.seo-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kick-green);
}

.seo-article h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  line-height: 1.15;
  color: var(--text);
}

.seo-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.35rem;
}

.seo-lead strong {
  color: var(--text);
  font-weight: 750;
}

.seo-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.seo-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--surface), var(--bg-panel);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.seo-article section {
  margin-bottom: 0;
}

.seo-article h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.seo-article p,
.seo-article li {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.94rem;
  margin: 0;
}

.seo-article p + p {
  margin-top: 0.55rem;
}

/* Text links only â€” do not override .btn colors */
.seo-article a:not(.btn) {
  color: var(--kick-green);
  text-decoration: none;
  font-weight: 600;
}

.seo-article a:not(.btn):hover {
  text-decoration: underline;
}

.seo-article a.btn-kick {
  color: #041006 !important;
  font-weight: 700;
}

.seo-article a.btn-kick:hover {
  color: #041006 !important;
}

.seo-article a.btn-ghost {
  color: var(--text) !important;
}

.seo-article a.btn-ghost:hover {
  color: var(--text) !important;
}

.seo-article ul,
.seo-article ol {
  padding-left: 1.2rem;
  margin: 0.45rem 0 0;
}

.seo-article li + li {
  margin-top: 0.4rem;
}

.seo-steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.seo-steps li {
  padding-left: 0.15rem;
}

.seo-article code {
  font-size: 0.82em;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #e4e4e7;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.75rem;
  padding-top: 0.5rem;
}

.seo-cta-row .btn {
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
}

.seo-page-body .site-footer {
  margin-top: auto;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   Modern casino theme v3 — clean glass, tight hierarchy, gambling energy
   ========================================================================== */

body.theme-felt {
  --kick-green: #22c55e;
  --kick-green-dim: #16a34a;
  --kick-green-soft: rgba(34, 197, 94, 0.1);
  --gold: #e8c547;
  --gold-bright: #f5d76e;
  --gold-dim: #b8962e;
  --gold-soft: rgba(232, 197, 71, 0.1);
  --bg-dark: #09090b;
  --bg-elevated: #121214;
  --bg-soft: #18181b;
  --heads: #60a5fa;
  --heads-soft: rgba(96, 165, 250, 0.12);
  --tails: #22c55e;
  --tails-soft: rgba(34, 197, 94, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --glass: rgba(12, 12, 14, 0.82);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  background:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(34, 197, 94, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(96, 165, 250, 0.05), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 100%, rgba(232, 197, 71, 0.04), transparent 50%),
    #09090b !important;
}

/* Soft ambient — no grain noise */
body.theme-felt::before {
  display: none;
}

body.theme-felt .ambient-orbs {
  opacity: 0.55;
}

body.theme-felt .ambient-orb-a {
  background: rgba(34, 197, 94, 0.1);
  filter: blur(100px);
}
body.theme-felt .ambient-orb-b {
  background: rgba(96, 165, 250, 0.08);
  filter: blur(100px);
}
body.theme-felt .ambient-orb-c {
  background: rgba(232, 197, 71, 0.06);
  filter: blur(100px);
}

/* —— Header: clean glass bar —— */
body.theme-felt .header {
  padding: 0.7rem 1.35rem;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.theme-felt .logo-text {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

body.theme-felt .logo-dot {
  color: var(--kick-green);
  -webkit-text-fill-color: var(--kick-green);
}

body.theme-felt .logo-icon {
  animation: none;
  filter: none;
  font-size: 1.15rem;
}

body.theme-felt .live-badge {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  box-shadow: none;
  padding: 0.2rem 0.5rem 0.2rem 0.4rem;
  font-size: 0.6rem;
}

body.theme-felt .balance {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
  box-shadow: none;
  padding: 0.28rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
}

body.theme-felt .balance.balance-flash {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

body.theme-felt .user-dashboard-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body.theme-felt .btn-kick {
  background: #22c55e;
  color: #052e16;
  box-shadow: none;
  border-radius: 10px;
  font-weight: 700;
}

body.theme-felt .btn-kick:hover {
  background: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

/* —— Game shell: clean card, not wood table —— */
body.theme-felt .game-panel.casino-shell {
  max-width: 1120px;
  padding: 1.25rem 1.25rem 2rem;
}

body.theme-felt .casino-table {
  position: relative;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-felt .casino-table-rim {
  display: none;
}

body.theme-felt .casino-table-inner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Top rail */
body.theme-felt .casino-rail.round-info {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-felt .round-label strong {
  font-size: 0.95rem;
  font-weight: 700;
}

body.theme-felt .payout-pill {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  color: #052e16;
  background: #22c55e;
  border: none;
  box-shadow: none;
  border-radius: 6px;
}

body.theme-felt .phase-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #4ade80;
  box-shadow: none;
  font-weight: 700;
  border-radius: 6px;
}

body.theme-felt .phase-badge.locked {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.25);
  color: #facc15;
}

body.theme-felt .phase-badge.flipping,
body.theme-felt .phase-badge.result {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.25);
  color: #60a5fa;
}

/* Recent strip — one line under coin flip stack only */
body.theme-felt .recent-strip,
.game-flip-stack > .recent-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem 0.95rem;
  background: rgba(18, 18, 20, 0.9);
  border: none;
  border-radius: 999px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
  min-width: 0;
}

body.theme-felt .recent-strip-label {
  flex-shrink: 0;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a1a1aa;
  line-height: 1;
  white-space: nowrap;
}

body.theme-felt .recent-dots {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  flex: 1;
  padding: 0.25rem 0.15rem;
  margin: 0;
  box-sizing: border-box;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 1rem), transparent 100%);
}

body.theme-felt .recent-dots::-webkit-scrollbar {
  display: none;
}

body.theme-felt .recent-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
  outline: none;
  box-shadow: none;
  opacity: 1;
  transform-origin: center center;
}

body.theme-felt .recent-dot.heads {
  background: #3b82f6;
}

body.theme-felt .recent-dot.tails {
  background: #22c55e;
}

/* Latest flip slightly larger */
body.theme-felt .recent-dot:first-child {
  width: 0.95rem;
  height: 0.95rem;
  outline: none;
  box-shadow: none;
  opacity: 1;
}

body.theme-felt .recent-strip-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.15rem 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.theme-felt .recent-strip,
  .game-flip-stack > .recent-strip {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.5rem 0.85rem;
    border-radius: 999px;
  }

  body.theme-felt .recent-strip-label {
    font-size: 0.65rem;
  }

  body.theme-felt .recent-dots {
    gap: 0.38rem;
    padding: 0.2rem 0.05rem;
    min-height: 0;
  }

  body.theme-felt .recent-dot {
    width: 0.88rem;
    height: 0.88rem;
    position: relative;
  }

  body.theme-felt .recent-dot::after {
    content: '';
    position: absolute;
    inset: -0.32rem;
  }

  body.theme-felt .recent-dot:first-child {
    width: 1rem;
    height: 1rem;
  }

  body.theme-felt .recent-dot:hover {
    filter: none;
    box-shadow: none;
    transform: none;
  }

  body.theme-felt .recent-dot:active {
    transform: scale(1.1);
  }
}

/* Grid spacing */
body.theme-felt .game-grid {
  gap: 1rem;
}

/* Flip stage — quiet inset */
body.theme-felt .game-col-flip {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: none;
  padding: 1rem 0.85rem 1.1rem;
}

body.theme-felt .coin-stage-glow {
  background: radial-gradient(ellipse 50% 42% at 50% 55%, rgba(34, 197, 94, 0.08), transparent 70%);
  opacity: 0.8;
  animation: none;
}

body.theme-felt .timer-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 999px;
  margin: 0.55rem 1rem 0.4rem;
}

body.theme-felt .timer-fill {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: none;
  animation: none;
}

body.theme-felt .timer-fill.urgent {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  animation: none;
}

body.theme-felt .timer-text {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font);
  font-weight: 500;
}

body.theme-felt .result-banner {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Bet panel */
body.theme-felt .bet-controls {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: none;
  padding: 1.15rem 1.1rem 1.05rem;
}

body.theme-felt .bet-controls-head {
  margin-bottom: 0.85rem;
}

body.theme-felt .bet-controls-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font);
  letter-spacing: -0.01em;
}

body.theme-felt .bet-controls-edge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.7rem;
}

body.theme-felt .bet-controls-edge strong {
  color: #4ade80;
  font-family: var(--font);
}

body.theme-felt .amount-input-wrap {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

body.theme-felt .amount-input-wrap:focus-within {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
  background: rgba(0, 0, 0, 0.4);
}

body.theme-felt .amount-input-wrap input {
  font-size: 1.15rem;
  font-family: var(--font);
  font-weight: 700;
}

/* Chips — clean pills */
body.theme-felt .chip-btn {
  min-height: 2.15rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 650;
  box-shadow: none;
}

body.theme-felt .chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  transform: none;
}

body.theme-felt .chip-btn.is-active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  box-shadow: none;
}

body.theme-felt .chip-btn-max {
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.08);
}

body.theme-felt .bet-amount-usd {
  color: var(--text-muted);
  font-weight: 500;
}

body.theme-felt .bet-potential strong {
  font-size: 0.95rem;
  color: #4ade80;
  text-shadow: none;
  font-family: var(--font);
}

body.theme-felt .bet-potential span {
  color: var(--text-muted);
}

body.theme-felt .bet-hint {
  color: #71717a;
  font-size: 0.7rem;
}

/* Side buttons — solid but refined */
body.theme-felt .btn-heads {
  background: #2563eb !important;
  border: 1px solid #3b82f6 !important;
  color: #fff !important;
  min-height: 5rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25) !important;
  text-shadow: none;
}

body.theme-felt .btn-heads:hover:not(:disabled) {
  background: #3b82f6 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35) !important;
}

body.theme-felt .btn-tails {
  background: #16a34a !important;
  border: 1px solid #22c55e !important;
  color: #fff !important;
  min-height: 5rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25) !important;
}

body.theme-felt .btn-tails:hover:not(:disabled) {
  background: #22c55e !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.35) !important;
}

body.theme-felt .btn-heads .bet-side-icon,
body.theme-felt .btn-tails .bet-side-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
  font-weight: 800;
}

body.theme-felt .btn-heads .bet-label,
body.theme-felt .btn-tails .bet-label {
  font-size: 1.15rem;
  font-family: var(--font);
  font-weight: 750;
  color: #fff;
}

body.theme-felt .btn-heads .bet-pool,
body.theme-felt .btn-tails .bet-pool {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

body.theme-felt .btn-heads .bet-mult,
body.theme-felt .btn-tails .bet-mult {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
}

body.theme-felt .btn-heads.is-selected {
  box-shadow: 0 0 0 2px #93c5fd, 0 8px 24px rgba(37, 99, 235, 0.4) !important;
  animation: none;
}

body.theme-felt .btn-tails.is-selected {
  box-shadow: 0 0 0 2px #86efac, 0 8px 24px rgba(22, 163, 74, 0.4) !important;
  animation: none;
}

/* Live bets */
body.theme-felt .bets-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: none;
}

body.theme-felt .bets-section h3 {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
}

body.theme-felt .bets-list {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.05);
  min-height: 140px;
  border-radius: 10px;
}

/* Login */
body.theme-felt .login-prompt {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: none;
  padding: 2rem 1.4rem;
}

body.theme-felt .login-prompt-glow {
  display: none;
}

body.theme-felt .login-prompt-badge {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  letter-spacing: 0.04em;
}

body.theme-felt .login-prompt-title {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  font-size: 1.4rem;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Fair panel */
body.theme-felt .fair-panel {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  box-shadow: none;
}

/* Chat */
body.theme-felt .chat-panel {
  background: #0c0c0e;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-felt .chat-header {
  background: #0c0c0e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-felt .chat-toggle {
  background: #22c55e;
  color: #052e16;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

body.theme-felt .online-pill {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.08);
}

/* Win celebration — cleaner */
body.theme-felt .win-celebration-inner {
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.15);
  border-radius: 16px;
  animation: none;
}

body.theme-felt .win-celebration-label {
  color: #4ade80;
  letter-spacing: 0.12em;
}

body.theme-felt .win-celebration-amount {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  filter: none;
}

/* Toast */
body.theme-felt .toast {
  background: rgba(18, 18, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
}

body.theme-felt .toast.toast-win {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* History bar */
body.theme-felt .history-bar-mini {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-felt .history-bar-heads {
  background: #3b82f6;
}

body.theme-felt .history-bar-tails {
  background: #22c55e;
}

/* SEO / footer on home */
body.theme-felt .seo-home {
  max-width: 1120px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.theme-felt .seo-home-inner {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(18, 18, 20, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.theme-felt .seo-home-grid article {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.06);
}

body.theme-felt .seo-faq {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.06);
}

body.theme-felt .site-footer-in-layout {
  max-width: 1120px;
  border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  body.theme-felt .seo-home {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

@media (max-width: 900px) {
  body.theme-felt .game-panel.casino-shell {
    padding: 0.75rem 0.65rem 1.5rem;
  }

  body.theme-felt .casino-table-inner {
    border-radius: 16px;
    padding: 0.8rem;
  }

  body.theme-felt .recent-strip {
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
  }

  body.theme-felt .btn-heads,
  body.theme-felt .btn-tails {
    min-height: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-felt .ambient-orb {
    animation: none !important;
  }
}

/* —— Flip detail modal (recent dots) —— */
.recent-dot {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: none;
  background: #52525b;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  transform-origin: center center;
}

/* Mild scale + glow — padding on .recent-dots prevents edge crop */
.recent-dot:hover {
  transform: scale(1.18);
  filter: brightness(1.12);
  z-index: 2;
  position: relative;
}

.recent-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
  z-index: 2;
  position: relative;
}

body.theme-felt .recent-dot {
  cursor: pointer;
}

body.theme-felt .recent-dot:hover {
  transform: scale(1.18);
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  z-index: 2;
  position: relative;
}

body.theme-felt .recent-dot.heads:hover {
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

body.theme-felt .recent-dot.tails:hover {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.55);
}

.flip-detail-modal {
  max-width: 460px;
}

.flip-detail-body {
  gap: 0.85rem;
}

.flip-detail-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.flip-detail-hero.heads {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

.flip-detail-hero.tails {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.flip-detail-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.flip-detail-result-badge.heads {
  background: #2563eb;
  color: #fff;
}

.flip-detail-result-badge.tails {
  background: #16a34a;
  color: #fff;
}

.flip-detail-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.flip-detail-round {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.flip-detail-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flip-detail-pools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.flip-detail-pool {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.flip-detail-pool.heads strong {
  color: #60a5fa;
}

.flip-detail-pool.tails strong {
  color: #4ade80;
}

.flip-detail-pool-label {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.flip-detail-pool strong {
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.flip-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.flip-detail-key {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.flip-detail-code {
  font-size: 0.72rem !important;
  max-height: 4.5rem;
  overflow-y: auto;
}

.flip-detail-verify {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
}

.flip-detail-verify.valid {
  color: #4ade80;
}

.flip-detail-verify.invalid {
  color: #f87171;
}

.flip-detail-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.flip-detail-hint a {
  color: var(--kick-green);
  text-decoration: none;
}

.flip-detail-hint a:hover {
  text-decoration: underline;
}
