@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --muted: #94a3b8;
  --bg: #0d1117;
  --panel: #151b24;
  --accent: #f59e0b;
  --accent-2: #7dd3fc;
  --accent-3: #fbbf24;
  --accent-warm: #fde68a;
  --accent-hot: #d97706;
  --accent-warm-bg: rgba(253, 230, 138, 0.14);
  --shadow: rgba(1, 6, 16, 0.56);
  --border: #2b3542;
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.14);
  --success-bg: rgba(251, 191, 36, 0.15);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --radius-surface: 16px;
  --radius-card: 12px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --control-height-sm: 40px;
  --control-height-md: 46px;
  --control-height-lg: 52px;
  --panel-padding-y: 24px;
  --panel-padding-x: 24px;
  --panel-padding-mobile-y: 18px;
  --panel-padding-mobile-x: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(253, 230, 138, 0.065), transparent 32%),
    radial-gradient(circle at 80% 6%, rgba(52, 211, 153, 0.035), transparent 28%),
    linear-gradient(180deg, #0d1117 0%, #0b0f16 100%);
  overflow-x: hidden;
}

body.mobile-sheet-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.menu-drawer-open {
  overflow: hidden;
}

body::before {
  display: none;
}

.page {
  position: relative;
  max-width: 1240px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 32px calc(96px + var(--safe-bottom));
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(10px + var(--safe-top)) 24px 10px;
  margin-bottom: 24px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: #141b24;
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-left,
.menu-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-auth-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-auth-btns.hidden { display: none; }

.nav-login-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.nav-login-btn:hover { border-color: var(--ink-muted); color: #fff; }

.nav-signup-btn {
  background: var(--accent);
  border: none;
  color: #231700;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}
.nav-signup-btn:hover { opacity: 0.88; }

.menu-brand {
  position: relative;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f8fafc;
  font-size: 1.3rem;
}

.menu-brand::after {
  content: "win games, win cash.";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.menu-brand:hover::after,
.menu-brand:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  color: var(--muted);
  box-shadow: none;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
}

/* Arena Desktop Workaround */
.arena-add-friend-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arena-desktop-workaround {
  margin-top: 4px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
}

.workaround-header.shop-setup-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-setup-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: min(100%, 280px);
}

.workaround-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.workaround-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workaround-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}

.workaround-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.workaround-link.id-copied {
  color: #10b981; /* Emerald-500 */
}

.qr-wrapper {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: br-slide-down 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-code {
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.qr-code canvas,
.qr-code img {
  display: block;
  max-width: 128px;
  max-height: 128px;
}

.qr-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.8;
}

@keyframes br-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-toggle {
  min-width: 38px;
  min-height: 38px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  color: var(--ink);
  border-color: #4a596b;
  background: rgba(35, 47, 60, 0.7);
}

.menu-toggle .icon {
  width: 18px;
  height: 18px;
}

.menu-links {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 14px;
  bottom: 14px;
  width: min(320px, calc(100vw - 28px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid #384453;
  border-radius: 18px;
  background: rgba(17, 24, 33, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 42px rgba(2, 8, 20, 0.46);
  z-index: 210;
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.menu-drawer-open .menu-links {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.menu-button {
  background: #1b2430;
  color: var(--ink);
  border: 1px solid #374351;
  box-shadow: none;
  min-height: var(--control-height-sm);
  padding: 0 14px;
  border-radius: var(--radius-control);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-button.profile-button {
  margin-left: 0;
}

.menu-button.active {
  background: #f59e0b;
  color: #231700;
  border-color: transparent;
}

.menu-button.disabled {
  opacity: 0.45;
}

.menu-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.menu-button.hidden {
  display: none;
}

.menu-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-drawer-title {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.menu-close {
  background: transparent;
  border: 1px solid #384453;
  border-radius: 999px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: #cbd5e1;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

.menu-close:hover {
  background: rgba(35, 47, 60, 0.7);
  color: #f8fafc;
}

.menu-close .icon,
.menu-close .icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.menu-drawer-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.menu-drawer-label {
  margin: 0 2px 2px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.menu-drawer .menu-button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
  min-height: 44px;
}

.menu-drawer .menu-profile-link {
  display: none;
}

.drawer-link {
  border: 1px solid #374351;
  background: #1b2430;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.drawer-link:hover {
  background: #232f3c;
  border-color: #4a596b;
}

.profile-avatar {
  min-width: 42px;
  min-height: 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  border-color: #3f4c5d;
}

.profile-avatar .icon {
  width: 20px;
  height: 20px;
}

.menu-balance {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-align: right;
  min-width: 0;
  min-height: 42px;
}
.menu-balance.hidden { display: none; }

.menu-button.shop-button {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Daily reward notification dot on Shop buttons */
.menu-button .icon,
.mobile-nav-item .icon {
  position: relative;
}

.shop-reward-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #0d1117;
  pointer-events: none;
}

.shop-reward-dot.hidden {
  display: none;
}

.menu-scrim {
  display: block;
  position: fixed;
  inset: 0;
  border: 0;
  margin: 0;
  background: rgba(4, 10, 20, 0.52);
  backdrop-filter: blur(2px);
  z-index: 200;
  cursor: pointer;
}

.menu-scrim:hover {
  background: rgba(4, 10, 20, 0.52);
  transform: none;
}

.menu-scrim:focus-visible {
  outline: none;
}

.balance-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 32px;
}

.balance-item--money {
  align-items: center;
  gap: 8px;
}

.balance-stack {
  display: grid;
  gap: 2px;
  justify-items: end;
  align-content: center;
  min-height: 32px;
}

.balance-money-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 15px;
}

.balance-money-row--gift .balance-value {
  color: var(--accent-warm);
}

.balance-money-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 0.95rem;
  flex: 0 0 18px;
}

.balance-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.60rem;
  color: var(--muted);
  line-height: 1;
}

.balance-value {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.balance-icon-svg {
  transform: translateX(0.75px);
  transform-box: fill-box;
}

.stat-label .icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.bg-orb,
.bg-grid {
  display: block;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.bg-orb {
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.19;
  animation: floatOrb 16s ease-in-out infinite;
}

.orb-1 {
  top: -7rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.14) 0%, rgba(143, 167, 191, 0.08) 42%, rgba(253, 230, 138, 0) 74%);
}

.orb-2 {
  top: 3rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  opacity: 0.14;
  animation-delay: -6s;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.17) 0%, rgba(245, 158, 11, 0.09) 42%, rgba(125, 211, 252, 0) 74%);
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 184, 77, 0.025), transparent 58%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 82%);
  opacity: 0.25;
}

.hero {
  position: relative;
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
  padding: 40px 0 30px;
  border-radius: 0;
  border: none;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.065), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% 30%;
  height: 18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(253, 230, 138, 0.07), rgba(143, 167, 191, 0));
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-warm);
  margin: 0;
}

.hero-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 4px;
}

.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  color: var(--accent-3);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.12rem, 6vw, 5.04rem);
  margin: 0;
  max-width: 14ch;
  line-height: 0.98;
}

.hero-kicker {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.62rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-warm);
  opacity: 0.88;
  line-height: 1.3;
  margin-bottom: 6px;
}

h2 {
  font-family: "Manrope", sans-serif;
  margin: 0;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.hero-action-primary,
.hero-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-action-primary {
  position: relative;
  background: linear-gradient(160deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
  color: #1a0e00;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.14);
  animation: ctaGlow 3.8s ease-in-out infinite;
}

.hero-action-primary:hover {
  background: linear-gradient(160deg, #fcd34d 0%, #fbbf24 55%, #f59e0b 100%);
  transform: translateY(-1px);
}

.hero-action-secondary {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-action-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}


.hero-progress-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(253, 230, 138, 0.18);
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(16, 27, 45, 0.96), rgba(9, 17, 29, 0.96));
  box-shadow: 0 18px 36px rgba(2, 8, 20, 0.28);
}

.hero-progress-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-progress-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-progress-kicker {
  margin: 0;
  color: var(--accent-warm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-progress-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.14);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-progress-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.hero-progress-copy {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.hero-progress-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-progress-segment {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(253, 230, 138, 0.92));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-progress-segment:nth-child(2) {
  opacity: 0.78;
}

.hero-progress-segment:nth-child(3) {
  opacity: 0.56;
}

.hero-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.hero-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
}

.hero-check-item:first-child {
  padding-top: 0;
  border-top: none;
}

.hero-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(27, 36, 48, 0.92);
  color: #fde68a;
}

.hero-check-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-check-body {
  min-width: 0;
}

.hero-check-body p {
  margin: 0 0 3px;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-check-body span {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

.hero-check-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.9);
  color: #e2e8f0;
  border: 1px solid rgba(125, 211, 252, 0.14);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-progress-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.87rem;
  line-height: 1.55;
}

/* ── Hero Badge ───────────────────────────────────────────────────────────── */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 230, 138, 0.22);
  background: rgba(253, 230, 138, 0.07);
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
  animation: badgePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Hero Subtitle ────────────────────────────────────────────────────────── */

.hero-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.26rem;
  line-height: 1.65;
  max-width: 38ch;
}

/* ── Hero Sparkle Decorations ─────────────────────────────────────────────── */

.hero-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  color: var(--accent-warm);
  animation: sparkleFloat 6s ease-in-out infinite;
}

.sparkle--a {
  width: 26px;
  height: 26px;
  top: 10%;
  left: 6%;
  opacity: 0.5;
  animation-delay: 0s;
}

.sparkle--b {
  width: 14px;
  height: 14px;
  top: 52%;
  left: 30%;
  opacity: 0.3;
  animation-delay: -2.1s;
}

.sparkle--c {
  width: 20px;
  height: 20px;
  top: 16%;
  right: 8%;
  opacity: 0.4;
  animation-delay: -1.3s;
}

.sparkle--d {
  width: 11px;
  height: 11px;
  bottom: 18%;
  right: 24%;
  opacity: 0.28;
  animation-delay: -3.5s;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-9px) rotate(15deg) scale(1.08); }
}

/* ── Floating Dual Phone Hero Visual ─────────────────────────────────────── */

.hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-scene {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: visible;
}

.phone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  will-change: transform;
}

.phone--back {
  left: 0;
  top: 10px;
  z-index: 1;
  animation: phoneFloatBack 5.8s ease-in-out infinite;
}

.phone--front {
  right: 0;
  bottom: 0;
  z-index: 2;
  animation: phoneFloatFront 4.8s ease-in-out infinite;
}

.phone-frame {
  position: relative;
  width: 196px;
  height: 418px;
  border-radius: 43px;
  background: #131922;
  border: 7px solid #283341;
  box-shadow:
    0 0 0 1px #0b1016,
    0 24px 64px rgba(2, 8, 20, 0.65),
    0 8px 24px rgba(125, 211, 252, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame--win {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.075),
    0 24px 64px rgba(2, 8, 20, 0.55),
    0 0 60px rgba(245, 158, 11, 0.14),
    0 0 120px rgba(245, 158, 11, 0.06);
  animation: winGlow 3s ease-in-out infinite;
}

.phone-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 11px;
  border-radius: 999px;
  background: #0b1016;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
}

.phone-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 2;
  border-radius: 37px;
}

.phone-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-label--win {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Clash Royale screen */
.phone-screen-cr {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a150c 0%, #3a2a12 35%, #9a670f 80%, #f59e0b 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 24px;
}

.cr-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  gap: 6px;
}

.cr-hp { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cr-hp--right { align-items: flex-end; }

.cr-hp-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  overflow: hidden;
}

.cr-hp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.cr-hp-fill--enemy { background: linear-gradient(90deg, #f87171, #ef4444); }

.cr-hp-label {
  font-size: 0.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
}

.cr-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 20px;
  border-radius: 6px;
  background: rgba(26, 10, 46, 0.9);
  border: 1px solid rgba(255,100,80,0.6);
  font-size: 0.5625rem;
  font-weight: 700;
  color: #f97316;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
}

.cr-arena {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #2d2111 0%, #b7791f 100%);
}

.cr-arena-divider {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(220,180,30,0.4);
  transform: translateY(-50%);
}

.cr-tower {
  position: absolute;
  width: 22px;
  height: 28px;
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #d08b1d, #6b4a12);
  border: 1px solid rgba(255,200,80,0.45);
}

.cr-tower--tl { top: 8%;  left: 12%; }
.cr-tower--tr { top: 8%;  right: 12%; }
.cr-tower--bl { bottom: 8%; left: 12%; }
.cr-tower--br { bottom: 8%; right: 12%; }

.cr-card-row {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.cr-card {
  width: 28px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #342412, #1d150b);
  border: 1px solid rgba(120,80,200,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.cr-card--active {
  border-color: rgba(255,190,0,0.85);
  box-shadow: 0 0 10px rgba(255,190,0,0.45);
}

.cr-elixir-bar {
  height: 7px;
  background: rgba(0,0,0,0.5);
  margin: 4px 8px 6px;
  border-radius: 999px;
  overflow: hidden;
}

.cr-elixir-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #7dd3fc);
}

/* DuelRoyale win screen */
.phone-screen-br {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #10151d 0%, #162028 55%, #0f151d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 14px 14px;
  overflow: hidden;
}

.br-result-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.br-brand-mark {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}

.br-vs-pill {
  font-size: 0.46875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: rgba(245, 158, 11, 0.85);
}

.br-result-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 12px;
}

.br-trophy {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fd093, #5c8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 24px rgba(47, 208, 147, 0.225);
}

.br-trophy svg { width: 20px; height: 20px; color: #fff; }

.br-crown-icon {
  width: 14px;
  height: auto;
  vertical-align: middle;
  margin-right: 3px;
  object-fit: contain;
}

.br-victory-label {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.br-winnings {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(245, 158, 11, 0.275);
}

.br-winnings-sub {
  margin: 0;
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.6);
}

.br-result-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.br-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
}

.br-detail-row:last-child { border-bottom: none; }

.br-detail-label {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(163, 190, 220, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.br-detail-val {
  font-size: 0.5625rem;
  font-weight: 700;
  color: #e2e8f0;
  font-family: "IBM Plex Mono", monospace;
}

.br-detail-val--green { color: var(--accent); }

.br-cashout-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #3ae0a3);
  border: none;
  color: #231700;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.175);
  font-family: "Manrope", sans-serif;
}

/* Float & glow animations */
@keyframes phoneFloatBack {
  0%, 100% { transform: rotate(-5deg) scale(0.86) translateY(0px); }
  50%       { transform: rotate(-5deg) scale(0.86) translateY(-11px); }
}

@keyframes phoneFloatFront {
  0%, 100% { transform: rotate(2deg) translateY(0px); }
  50%       { transform: rotate(2deg) translateY(-14px); }
}

@keyframes winGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(245, 158, 11, 0.075),
      0 24px 64px rgba(2, 8, 20, 0.55),
      0 0 60px rgba(245, 158, 11, 0.14),
      0 0 120px rgba(245, 158, 11, 0.06);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245, 158, 11, 0.125),
      0 24px 64px rgba(2, 8, 20, 0.55),
      0 0 90px rgba(245, 158, 11, 0.25),
      0 0 180px rgba(245, 158, 11, 0.1);
  }
}

@media (max-width: 900px) {
  .hero-phones { min-height: 390px; }
  .phone-scene { height: 390px; }

  @keyframes phoneFloatBack {
    0%, 100% { transform: rotate(-5deg) scale(0.80) translateY(0px); }
    50%       { transform: rotate(-5deg) scale(0.80) translateY(-8px); }
  }

  @keyframes phoneFloatFront {
    0%, 100% { transform: rotate(2deg) scale(0.90) translateY(0px); }
    50%       { transform: rotate(2deg) scale(0.90) translateY(-10px); }
  }

  .phone--back  { animation: phoneFloatBack  5.8s ease-in-out infinite; }
  .phone--front { animation: phoneFloatFront 4.8s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .phone--back, .phone--front, .phone-frame--win { animation: none !important; }
}

/* ────────────────────────────────────────────────────────────────────────── */

/* Trust signals — single editorial band, no card-soup.
   One thin gold rule top/bottom over a faint gold wash; items split by
   hairline dividers. No per-item boxes, no icon chips, no glassmorphism. */
.landing-signals {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 40px;
  padding: 30px 0;
  border: none;
  background: none;
}

.signal-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 4px 28px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.signal-card + .signal-card {
  border-left: none;
}

.signal-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-top: 2px;
  border: 0;
  background: none;
  color: var(--accent);
}

.signal-card-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-card-label {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--accent-3);
}

.signal-card-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}


.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  padding: var(--panel-padding-y) var(--panel-padding-x);
  box-shadow:
    0 18px 40px -34px rgba(1, 6, 16, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  max-width: 100%;
}

.payout-explainer {
  margin-bottom: 24px;
  display: grid;
  gap: var(--space-5);
}

.payout-explainer-subhead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.payout-ladder {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.payout-step {
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(19, 26, 36, 0.92);
  box-shadow: 0 12px 28px -24px rgba(2, 8, 20, 0.7);
}

.payout-step-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bae6fd;
  font-weight: 700;
}

.payout-step h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.payout-step p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"] {
  flex: 1 1 240px;
  min-height: var(--control-height-md);
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid #384555;
  font-size: 1rem;
  background: #151d27;
  color: #f8fafc;
  width: 100%;
  max-width: 100%;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.highlight-field {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2);
  background: #18243a;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-message {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-message.error {
  color: var(--danger);
}

button {
  border: none;
  min-height: var(--control-height-md);
  padding: 0 18px;
  border-radius: var(--radius-control);
  background: #f59e0b;
  color: #231700;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
}

button:hover {
  background: #fcd34d;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

button:focus-visible,
input:focus-visible,
.menu-button:focus-visible,
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.drawer-link:focus-visible,
.hero-action-primary:focus-visible,
.hero-action-secondary:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.secondary {
  background: #1b2430;
  color: #e2e8f0;
  border: 1px solid #384555;
  box-shadow: none;
}

.secondary:hover {
  background: #232f3c;
  border-color: #4a596b;
}

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

/* ── Shared panel disclosure (Learn more / How X works) ── */
.panel-disclosure {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
}

.panel-disclosure summary {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-disclosure summary::-webkit-details-marker { display: none; }

.panel-disclosure-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex-shrink: 0;
  margin-left: auto;
}

.panel-disclosure[open] .panel-disclosure-arrow {
  transform: rotate(-135deg);
}

.panel-disclosure > :not(summary) {
  padding: 0 14px 12px;
}

.panel-disclosure .hint {
  margin: 0;
}

.status {
  position: fixed;
  top: 104px; /* Above the content, below the very top if scrolling */
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2500;
  width: min(420px, calc(100vw - 48px));
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(18, 28, 44, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#profile-notice {
  position: static;
  transform: none;
  width: auto;
  max-width: none;
  box-shadow: none;
  pointer-events: auto;
  margin-top: 0;
  margin-bottom: 24px;
}

.status.error {
  background: rgba(220, 38, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

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

.hidden {
  display: none !important;
}

.auth-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.auth-intro {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(151, 166, 189, 0.14);
}

.auth-intro-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-top: 4px;
}

.auth-intro-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

.auth-trust-list {
  display: grid;
  gap: 12px;
}

.auth-trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(21, 28, 38, 0.76);
}

.auth-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  font-weight: 700;
}

.auth-trust-title,
.auth-footer-label {
  margin: 0;
  font-weight: 700;
  color: #f8fafc;
}

.auth-trust-copy,
.auth-footer-copy {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(19, 26, 36, 0.96);
  box-shadow: 0 2px 8px rgba(2, 8, 20, 0.22);
}

.auth-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bae6fd;
  font-weight: 700;
}

.auth-form-note {
  margin: -8px 0 2px;
  color: var(--muted);
  line-height: 1.5;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #bae6fd;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover {
  color: #e0f2fe;
}

.auth-footer {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 18px;
}

.auth-footer-item {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(19, 26, 36, 0.76);
}

.faq-panel {
  margin-top: 24px;
}

.faq-header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.faq-item {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: linear-gradient(180deg, rgba(19, 26, 36, 0.86), rgba(17, 24, 33, 0.82));
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, rgba(143, 167, 191, 0.9), var(--accent));
  opacity: 0.8;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 167, 191, 0.22);
}

.profile {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-name-wrap h2 {
  margin: 0;
}

.profile-name-edit-btn {
  opacity: 0;
  background: none;
  border: none;
  color: var(--muted);
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 160ms ease, color 160ms ease, background 160ms ease;
  flex-shrink: 0;
}

.profile-name-edit-btn svg {
  width: 14px;
  height: 14px;
}

.profile-name-wrap:hover .profile-name-edit-btn,
.profile-name-wrap:focus-within .profile-name-edit-btn {
  opacity: 1;
}

.profile-name-edit-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.profile-name-edit-row {
  display: none;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.profile-name-wrap.is-editing h2,
.profile-name-wrap.is-editing .profile-name-edit-btn {
  display: none;
}

.profile-name-wrap.is-editing .profile-name-edit-row {
  display: flex;
}

.profile-name-input {
  flex: 1;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  height: 38px;
  min-height: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.profile-name-edit-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.profile-name-save-btn,
.profile-name-cancel-btn {
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-name-save-btn {
  background: var(--accent);
  border: none;
  color: #231700;
}

.profile-name-save-btn svg,
.profile-name-cancel-btn svg {
  width: 15px;
  height: 15px;
}

.profile-name-cancel-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.profile-topline-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-email-sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.profile-section-tabs {
  margin-top: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.profile-tab {
  min-height: var(--control-height-sm);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid #3b4755;
  background: #151d27;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-tab.active {
  background: rgba(245, 158, 11, 0.14);
  color: #fff5d6;
  border-color: rgba(245, 158, 11, 0.42);
}

.profile-section-panel {
  margin-top: 18px;
}

.profile-next-step {
  padding: 24px;
  border-radius: var(--radius-surface);
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 25, 39, 0.94), rgba(11, 18, 30, 0.98));
  display: grid;
  gap: 8px;
  box-shadow: 0 20px 36px -30px rgba(1, 6, 16, 0.92);
}

.profile-next-step h3 {
  margin: 4px 0 0;
}

.profile-next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-form {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-surface);
  border: 1px solid var(--border);
  background: rgba(15, 22, 32, 0.86);
  box-shadow: 0 16px 30px -28px rgba(1, 6, 16, 0.9);
}

.profile-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.profile-profile {
  display: grid;
  gap: 8px;
}

.profile-secondary {
  display: grid;
  gap: 24px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.profile-secondary--muted {
  opacity: 0.72;
}

.profile-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(253, 230, 138, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(25, 33, 45, 0.96), rgba(18, 24, 34, 0.98));
  border-radius: var(--radius-surface);
  border: 1px solid rgba(203, 213, 225, 0.12);
  padding: 24px 24px 18px;
  box-shadow:
    0 24px 48px -36px rgba(1, 6, 16, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 20px;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
  pointer-events: none;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-name {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.profile-stats {
  display: grid;
  gap: 0;
}

.profile-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  min-height: 72px;
  padding: 16px 0 18px;
}

.profile-stat-row + .profile-stat-row {
  border-top: 1px solid rgba(226, 232, 240, 0.14);
}

.profile-stat-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.76);
  line-height: 1.35;
}

.profile-stat-value {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  letter-spacing: -0.03em;
  text-align: right;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
  line-height: 1.1;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.profile-stat-value .league-badge {
  --league-surface: rgba(91, 52, 160, 0.88);
  --league-surface-alt: rgba(45, 27, 86, 0.98);
  --league-border: rgba(216, 180, 254, 0.22);
  --league-glow: rgba(76, 29, 149, 0.4);
  min-height: 42px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
}

.profile-stat-value .league-badge-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 12px;
}

.profile-stat-value .league-badge-art {
  width: 26px;
  height: 26px;
}

.profile-stat-value .league-badge-label {
  font-size: 0.88rem;
  letter-spacing: 0;
}

.league-badge {
  --league-surface: rgba(39, 50, 68, 0.86);
  --league-surface-alt: rgba(16, 23, 34, 0.96);
  --league-border: rgba(148, 163, 184, 0.26);
  --league-glow: rgba(15, 23, 42, 0.25);
  --league-accent: #cbd5e1;
  --league-text: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 12px 4px 5px;
  border-radius: 18px;
  border: 1px solid var(--league-border);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(135deg, var(--league-surface), var(--league-surface-alt));
  color: var(--league-text);
  line-height: 1;
  vertical-align: middle;
  box-shadow:
    0 14px 28px -24px var(--league-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.league-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 18px -16px rgba(2, 6, 23, 0.8);
}

.league-badge-art {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(2, 6, 23, 0.3));
}

.league-badge-copy {
  display: grid;
  min-width: 0;
}

.league-badge-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--league-text);
  white-space: nowrap;
}

.queue-meta .league-badge {
  margin: 0 4px;
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  border-radius: 16px;
}

.queue-meta .league-badge-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
}

.queue-meta .league-badge-art {
  width: 26px;
  height: 26px;
}

.queue-meta .league-badge-label {
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .profile-card {
    padding: 20px 18px 10px;
    border-radius: 18px;
  }

  .profile-name {
    font-size: 1.45rem;
  }

  .profile-stat-row {
    min-height: 64px;
    padding: 14px 0 16px;
    column-gap: 12px;
  }

  .profile-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.11em;
  }

  .profile-stat-value {
    font-size: 1.08rem;
  }

  .profile-stat-value .league-badge {
    min-height: 38px;
    padding: 4px 12px 4px 5px;
  }

  .profile-stat-value .league-badge-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .profile-stat-value .league-badge-art {
    width: 24px;
    height: 24px;
  }

  .profile-stat-value .league-badge-label {
    font-size: 0.82rem;
  }

  .league-badge {
    max-width: 100%;
  }

  .league-badge-label {
    white-space: normal;
  }
}

/* ── Referral section ──────────────────────────────────────────────────── */
.referral-section {
  display: grid;
  gap: 10px;
}

.referral-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #141b24;
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  padding: 20px 22px;
  margin-top: 10px;
}

.referral-card-left {
  flex: 1 1 0;
  min-width: 0;
}

.referral-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px;
}

.referral-subtext {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

.referral-subtext strong { color: var(--accent); }
.referral-subtext em { font-style: normal; color: #f8fafc; }

.referral-stats-row {
  display: flex;
  gap: 16px;
}

.referral-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #1b2430;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 72px;
  text-align: center;
}

.referral-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.referral-stat-label {
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Right column: code + link fields */
.referral-card-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 260px;
}

.referral-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.referral-field-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-weight: 600;
}

.referral-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #10151d;
  border: 1px solid #384555;
  border-radius: 6px;
  padding: 8px 10px;
}

.referral-code-display {
  flex: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-link-display {
  flex: 1;
  font-size: 0.8rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-copy-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color 0.15s;
}
.referral-copy-btn:hover { color: #f8fafc; }
.referral-copy-btn.copied { color: var(--accent); }
.referral-copy-btn .icon { width: 15px; height: 15px; }
.referral-copy-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.referral-share-row {
  display: flex;
  gap: 8px;
}
.referral-share-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.referral-share-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--ink);
  border-color: rgba(255,255,255,0.2);
}
.referral-share-btn .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 700px) {
  .referral-card {
    flex-direction: column;
  }
  .referral-card-right {
    width: 100%;
  }
}

.shop {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

/* ── Compact wallet summary bar ── */
.shop-wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.shop-wallet-bar-left h2 { margin: 0; }
.shop-wallet-bar-left .subhead { margin: 2px 0 0; }

.shop-wallet-bar-balances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.shop-wallet-pill--money { color: var(--accent); }
.shop-wallet-pill--gift { color: var(--accent-warm); }

/* ── How wallet works disclosure ── */
.shop-how-it-works {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
}

.shop-how-it-works summary {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-how-it-works summary::before {
  content: "▸";
  transition: transform 160ms ease;
}

.shop-how-it-works[open] summary::before {
  transform: rotate(90deg);
}

.shop-how-it-works summary::-webkit-details-marker { display: none; }

.shop-how-it-works-body {
  padding: 16px 20px;
}

.shop-how-it-works-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Setup progress banner (thin) ── */
.shop-setup-banner {
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.2);
  background: linear-gradient(90deg, rgba(14, 25, 39, 0.94), rgba(10, 18, 30, 0.98));
  padding: 20px 24px;
  display: grid;
  gap: 8px;
}

.shop-setup-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-setup-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: min(100%, 260px);
}

.shop-setup-banner-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-setup-actions button {
  min-height: var(--control-height-sm);
  font-size: 0.82rem;
  padding: 0 12px;
}

.shop-setup-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px; /* Better separation from title */
}

.shop-setup-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(125, 211, 252, 0.15);
  background: rgba(9, 17, 31, 0.7);
  color: var(--muted);
  white-space: nowrap;
}

.shop-setup-pill.done {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.shop-setup-pill-icon {
  font-weight: 700;
  font-size: 0.7rem;
}

/* ── Single-column flow ── */
.shop-flow {
  display: grid;
  gap: 14px;
}

/* ── Compact action cards (Deposit, Cash Out) ── */
.shop-compact-card {
  background: var(--panel);
  border-radius: var(--radius-surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 28px -24px rgba(1, 6, 16, 0.82);
}

.shop-compact-card-info {
  display: grid;
  gap: 2px;
}

.shop-compact-card-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.shop-compact-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.shop-compact-card button {
  flex-shrink: 0;
  min-width: 96px;
}

/* ── Shop modals ── */
.shop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 16px;
}

.shop-modal-overlay.hidden {
  display: none;
}

.shop-modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 90dvh;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  box-shadow: 0 24px 48px -12px rgba(1, 6, 16, 0.82);
}

.shop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.shop-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-control);
  transition: color 160ms ease, background 160ms ease;
  flex-shrink: 0;
}

.shop-modal-close:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Primary card (Deposit) ── */
.shop-card {
  background: var(--panel);
  border-radius: var(--radius-surface);
  border: 1px solid var(--border);
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 28px -24px rgba(1, 6, 16, 0.82);
}

.shop-card--primary {
  border-color: rgba(125, 211, 252, 0.22);
}

.shop-card h3 {
  margin: 0;
}

/* ── Accordion sections ── */
.shop-accordion {
  border-radius: var(--radius-surface);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 12px 28px -24px rgba(1, 6, 16, 0.82);
}

.shop-accordion-trigger {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.shop-accordion-trigger::-webkit-details-marker { display: none; }

.shop-accordion-label {
  font-size: 1rem;
  font-weight: 700;
}

.shop-accordion-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex-shrink: 0;
}

.shop-accordion[open] .shop-accordion-arrow {
  transform: rotate(-135deg);
}

.shop-accordion > .shop-card {
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-surface) var(--radius-surface);
  box-shadow: none;
}

/* On desktop, open all accordions by default via JS */
@media (min-width: 640px) {
  .shop-flow {
    gap: 16px;
  }
}

/* ── Payout details expander (inside cash out) ── */
.shop-details-expander {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: rgba(12, 22, 36, 0.6);
}

.shop-details-expander summary {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.shop-details-expander summary::before {
  content: "▸";
  transition: transform 160ms ease;
}

.shop-details-expander[open] summary::before {
  transform: rotate(90deg);
}

.shop-details-expander summary::-webkit-details-marker { display: none; }

.shop-details-expander .shop-legal {
  padding: 0 12px 10px;
}

.shop-purchase {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.shop-deposit-mobile {
  display: none;
  gap: 12px;
}

/* ── Deposit modal — inline keypad layout ── */
.deposit-amount-display {
  background: rgba(15, 25, 40, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 20px 12px;
  text-align: center;
}

.deposit-amount-label {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.deposit-amount-value {
  margin: 0 0 2px;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.deposit-amount-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.deposit-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.deposit-chip {
  min-height: var(--control-height-sm);
  padding: 0;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-control);
}

.deposit-chips .mobile-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.13);
}

.deposit-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.deposit-actions {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.deposit-actions button {
  min-height: var(--control-height-lg);
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
}

.shop-preview {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 18px 16px;
  background: #141c25;
  display: grid;
  gap: 8px;
  min-height: 112px;
  box-shadow: 0 12px 24px -24px rgba(1, 6, 16, 0.8);
}

.shop-preview-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}

.shop-preview-value {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--accent);
}

.shop-preview-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shop-lock-card {
  border-radius: var(--radius-card);
  border: 1px dashed rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.08);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.shop-lock-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.shop-lock-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.wallet-summary-section {
  gap: 16px;
}

.wallet-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.wallet-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wallet-alert {
  margin: 0;
  min-height: var(--control-height-sm);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.18);
  color: #e0f2fe;
  font-size: 0.88rem;
  font-weight: 600;
}

.wallet-alert.ready {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.daily-rewards-section {
  position: relative;
  overflow: hidden;
}

.daily-rewards-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.daily-rewards-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(125, 211, 252, 0.12), transparent 32%);
  pointer-events: none;
}

.daily-rewards-section > * {
  position: relative;
  z-index: 1;
}

.daily-rewards-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.daily-reward-day {
  min-height: 128px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(10, 21, 39, 0.9);
  padding: 18px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.daily-reward-day.is-next {
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}

.daily-reward-day.is-claimed {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.daily-reward-day-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.daily-reward-day-value {
  font-size: 1rem;
  line-height: 1.25;
}

.daily-reward-day-state {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
}

.daily-reward-day.is-next .daily-reward-day-value,
.daily-reward-day.is-claimed .daily-reward-day-value {
  color: var(--accent);
}

.daily-reward-day.is-next .daily-reward-day-state,
.daily-reward-day.is-claimed .daily-reward-day-state {
  color: var(--accent);
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.shop-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-shortcuts button {
  min-width: 68px;
  min-height: var(--control-height-sm);
  justify-content: center;
  padding: 0 14px;
  font-size: 0.88rem;
}

.shop-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.shop-disclaimer {
  margin-top: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.shop-disclaimer-link {
  color: var(--muted);
  text-decoration: underline;
}

.shop-message {
  margin: 0;
  color: var(--muted);
}

.mobile-deposit-sheet {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(5, 10, 20, 0.76);
  backdrop-filter: blur(6px);
  display: none;
  overflow-y: auto;
  padding: calc(14px + var(--safe-top)) max(12px, var(--safe-right))
    calc(14px + var(--safe-bottom)) max(12px, var(--safe-left));
}

.mobile-deposit-sheet.active {
  display: block;
}

.mobile-deposit-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #3f4c5c;
  background: linear-gradient(180deg, #0e1729 0%, #0a1221 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.mobile-deposit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mobile-deposit-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-deposit-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.mobile-close-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 6px;
}

.mobile-deposit-balance {
  border: 1px solid #3a4757;
  border-radius: 6px;
  background: rgba(15, 26, 44, 0.9);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.mobile-deposit-balance p {
  margin: 0;
}

.mobile-balance-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.mobile-balance-value {
  font-size: 0.96rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mobile-balance-line-label {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.64rem;
  color: var(--muted);
}

.mobile-balance-value--gift {
  color: var(--accent-warm);
}

.mobile-amount-display {
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.8);
  padding: 16px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-amount-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
  color: var(--muted);
}

.mobile-amount-value {
  margin: 6px 0 2px;
  font-size: 2rem;
  font-weight: 700;
}

.mobile-amount-conversion {
  margin: 0;
  color: #7ddfba;
  font-size: 0.88rem;
  font-weight: 600;
}

.mobile-keypad-container {
  display: grid;
  gap: 16px; /* Adds natural spacing between display, chips, and keypad */
}

.mobile-keypad-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mobile-chip {
  padding: 10px 6px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #d9e5f5;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-chip:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(125, 211, 252, 0.3);
}

.mobile-chip.active {
  border-color: var(--accent);
  color: #000;
  background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: none;
}

.mobile-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.keypad-key {
  min-height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f3f8ff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.keypad-key:hover {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.keypad-key.action {
  font-size: 0.95rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.4);
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.keypad-key.action:hover {
  background: rgba(30, 41, 59, 0.6);
}

.keypad-key:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mobile-keypad-footer {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mobile-keypad-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mobile-keypad-message.error {
  color: #ff9f9f;
}

.mobile-keypad-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#custom-wager-confirm {
  width: 100%;
  min-height: 52px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.3);
}

.mobile-secure-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.remember-paypal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 0 4px;
}

.remember-paypal-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.remember-paypal-row span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  user-select: none;
}

.mobile-deposit-sheet .eyebrow {
  margin-bottom: 2px;
}

.shop-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shop-status.ready {
  color: #fde68a;
}

/* ── Payout method selector (PayPal / Venmo) ───────────────────────────────── */
.payout-method-field {
  /* Even 12px rhythm above (from amount) and below (to payout status); the
     label→card gap stays at the shared .field value so it matches the Amount
     field's label spacing. */
  margin: 12px 0;
}

.cashout-methods {
  display: grid;
  gap: 12px;
}

.payout-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.payout-method:hover {
  border-color: var(--accent-hot);
}

.payout-method.is-selected {
  border: 2px solid var(--accent);
  background: rgba(245, 158, 11, 0.08);
  padding: 11px 13px;
}

.payout-method--connect {
  border-style: dashed;
}

.payout-method--manage {
  cursor: default;
}

.payout-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.04);
}

.payout-method-icon--paypal {
  color: var(--accent);
}

.payout-method-icon--venmo {
  color: var(--accent-2);
}

.payout-method-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payout-method-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.payout-method-account {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payout-method-check {
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
}

.payout-method-check .ti-circle {
  color: var(--border);
}

.payout-method-add {
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}

.payout-method-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.payout-method-action {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.payout-method-action.danger {
  color: var(--danger);
  border-color: var(--danger);
}

/* ── Inline Venmo link form ────────────────────────────────────────────────── */
.venmo-link-form {
  margin-top: 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.venmo-link-form.hidden {
  display: none;
}

.venmo-link-form > label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.venmo-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0 12px;
  height: var(--control-height-md);
}

.venmo-at {
  color: var(--muted);
  font-weight: 600;
}

.venmo-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 0.95rem;
  height: 100%;
}

.venmo-input-row input:focus {
  outline: none;
}

.venmo-form-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.venmo-form-hint.error {
  color: var(--danger);
}

.payout-venmo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.cashout-readiness {
  display: grid;
  gap: 12px;
}

.cashout-readiness.hidden {
  display: none;
}

.cashout-readiness-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(12, 22, 36, 0.9);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.cashout-readiness-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cashout-readiness-header h3 {
  margin: 4px 0 0;
}

.cashout-readiness-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.cashout-readiness-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: rgba(9, 17, 31, 0.86);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.cashout-readiness-item.done {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.cashout-readiness-icon {
  color: var(--accent);
  font-weight: 700;
}

.cashout-readiness-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.cashout-history {
  border-top: 1px solid #243651;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.cashout-history-title {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cashout-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
}

.cashout-history-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.verify-status {
  margin: 0;
  font-weight: 600;
  color: var(--accent-2);
}

.verify-status.verified {
  color: var(--accent-3);
}

.verify-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  display: grid;
  gap: 12px;
}

.verify-panel.attention {
  position: relative;
  box-shadow: 0 14px 28px rgba(248, 113, 113, 0.22);
  animation: verifyPulse 1.6s ease-in-out infinite;
}

.verify-display {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}
.helper-panel {
  padding: 14px 16px;
  border-radius: var(--radius-surface);
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(10, 18, 30, 0.92);
  display: grid;
  gap: 10px;
}

.helper-title {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.helper-label {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.helper-panel ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 6px;
}

.profile-help-disclosure {
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: var(--radius-card);
  background: rgba(15, 24, 38, 0.9);
  padding: 14px 16px;
}

.profile-help-disclosure summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.profile-help-disclosure summary::-webkit-details-marker {
  display: none;
}

.profile-help-disclosure[open] summary {
  margin-bottom: 10px;
}

.profile-help-disclosure .hint {
  margin-top: 10px;
}

.stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.profile-readiness {
  border-color: rgba(125, 211, 252, 0.28);
  margin-top: 18px;
}

.profile-readiness summary {
  color: var(--accent);
  padding: 16px 20px;
}

.profile-readiness--dismissing {
  opacity: 0;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  border-width: 0 !important;
}

.profile-readiness--hidden {
  display: none;
}

.profile-readiness-body {
  display: grid;
  gap: 12px;
}

.profile-readiness-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.2);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.15);
}

.profile-readiness-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b 0%, #7dd3fc 100%);
  transition: width 180ms ease;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.profile-readiness-checklist {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-readiness-item {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: rgba(9, 17, 31, 0.8);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.profile-readiness-item.done {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.profile-readiness-icon {
  color: var(--accent);
  font-weight: 700;
}

.profile-readiness-label {
  font-weight: 700;
}

.profile-readiness-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 16px 14px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 24px -24px rgba(1, 6, 16, 0.8);
  min-width: 0;
  align-content: start;
}

.stat-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 500;
}

.stat-label .icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.stat-value {
  margin: 0;
  font-size: 1.52rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  line-height: 1;
  text-align: center;
}

.wallet-stat-stack {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.wallet-stat-sub {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.wallet-gift-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.6rem;
  font-weight: 700;
}

/* Color-coded stats */
.stat-card[data-stat="wins"] {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.stat-card[data-stat="wins"] .stat-value {
  color: #f59e0b;
}

.stat-card[data-stat="losses"] {
  border-color: rgba(248, 113, 113, 0.3);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.08) 0%, rgba(248, 113, 113, 0.04) 100%);
}

.stat-card[data-stat="losses"] .stat-value {
  color: #f87171;
}

.stat-card[data-stat="draws"] {
  border-color: rgba(156, 163, 175, 0.3);
  background: linear-gradient(180deg, rgba(156, 163, 175, 0.08) 0%, rgba(156, 163, 175, 0.04) 100%);
}

.stat-card[data-stat="draws"] .stat-value {
  color: #9ca3af;
}

.stat-card.stat-card--featured {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.stat-card.stat-card--featured .stat-value {
  font-size: 1.72rem;
  color: var(--accent);
}

.queue {
  margin-top: 24px;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.queue-insights {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.queue-insight-card {
  padding: 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
}

.queue-insight-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}

.queue-insight-value {
  margin: 8px 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
}

.queue-insight-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Right side of header: last-updated timestamp + icon refresh button */
.queue-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.queue-updated-hint {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.7;
}

/* Icon-only square button (refresh) */
.icon-btn {
  padding: 8px;
  min-height: auto;
  line-height: 1;
}
.icon-btn .icon {
  margin: 0;
}

/* Profile readiness bar */
.queue-profile-check {
  margin-top: 16px;
}

.profile-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: var(--control-height-sm);
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.profile-check--ok {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.profile-check--warn {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.profile-check--warn a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.profile-check svg {
  flex-shrink: 0;
}

/* Inline balance display above the form */
.queue-balance {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.queue-balance strong {
  color: var(--ink);
  font-weight: 700;
}

.queue-balance-breakdown {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Wager form: vertical stack, constrained width */
.queue-form {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  max-width: 520px;
}

/* Currency pill toggle — compact, left-aligned */
.currency-toggle {
  display: inline-flex;
  width: fit-content;
  align-self: start;
  gap: 0;
  margin-top: 2px;
  background: #121821;
  border: 1px solid #384555;
  border-radius: var(--radius-control);
  padding: 3px;
}

.currency-button {
  min-height: var(--control-height-sm);
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.currency-button:hover {
  color: var(--ink);
}

.currency-button.active {
  background: rgba(251, 191, 36, 0.18);
  border: none;
  color: #fde68a;
}

/* Wager label — section break above wager input group */
.queue-form > label[for="wager-amount"] {
  margin-top: 14px;
}

/* Wager hint — caption below input, also serves as win preview */
.wager-hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: -2px;
}

.wager-hint strong {
  color: #fbbf24;
  font-weight: 700;
}

.match-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 600px) {
  .match-tiers {
    grid-template-columns: repeat(4, 1fr);
  }
}

.match-tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--ink);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  outline: none;
}

.match-tier-card:hover {
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  background: rgba(125, 211, 252, 0.05);
}

.match-tier-card.active {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.6), 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

#tier-custom {
  border-style: dashed;
  border-width: 2px;
  background: rgba(148, 163, 184, 0.05);
}

#tier-custom:hover {
  border-style: solid;
  background: rgba(125, 211, 252, 0.08);
}

#tier-custom.active {
  border-style: solid;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.15), rgba(125, 211, 252, 0.05));
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.6), 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

#tier-custom.active .tier-name {
  color: #7dd3fc;
}

.match-tier-card .tier-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.match-tier-card.active .tier-name {
  color: #fbbf24;
}

.match-tier-card .tier-amount {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

/* removed */

.match-tier-card .tier-currency {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.wager-hint--tiers {
  margin-top: 12px;
  min-height: 20px;
}

/* Join + Leave button row */
/* Potential winnings preview line */
.queue-win-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fbbf24;
  min-height: 1.2em; /* stable height so layout doesn't jump */
}

.queue-win-preview:empty {
  display: none;
}

.queue-win-preview svg {
  flex-shrink: 0;
  color: #fbbf24;
}

.queue-win-preview strong {
  color: #fff;
}

.win-preview-cut {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.queue-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 380px;
}

.queue-cta-row #join-queue {
  flex: 1 1 0;
  min-height: var(--control-height-lg);
}

/* Leave Queue — subtle destructive tint when enabled */
.cancel-queue-btn {
  flex: 0 0 152px;
  min-height: var(--control-height-lg);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.cancel-queue-btn:not(:disabled):hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fc8585;
}

.cancel-queue-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--border);
}

/* Presets removed */

.queue-list {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.queue-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.queue-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.queue-cards {
  display: grid;
  gap: 10px;
}

.queue-empty-state {
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #2d3947;
  border-radius: var(--radius-card);
  background: rgba(12, 21, 38, 0.7);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.queue-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Animated "live" pulsing indicator dot */
.queue-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(251, 191, 36, 0.55); }
  60%  { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0   rgba(251, 191, 36, 0); }
}

/* Live queue count badge colour when people are waiting */
.queue-count.has-players {
  color: #fbbf24;
}

.queue-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px -24px rgba(1, 6, 16, 0.8);
}

.queue-actions-inline {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.queue-info {
  display: grid;
  gap: 4px;
}

.queue-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.queue-flair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8f5ff;
  background: #7dd3fc;
  box-shadow: none;
  border: 1px solid rgba(184, 208, 255, 0.3);
}

/* Animated gradient outline for "searching" state */
.queue-card.you {
  position: relative;
  border-color: transparent;
}

.queue-card.you::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #fbbf24,
    #7dd3fc,
    #7c3aed,
    #fbbf24,
    #7dd3fc,
    #fbbf24
  );
  background-size: 300% 100%;
  animation: queue-search-shimmer 4s ease-in-out infinite;
  opacity: 0.55;
}

.queue-card.you::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--panel);
}

.queue-card.you > * {
  position: relative;
  z-index: 1;
}

@keyframes queue-search-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Full-screen ambient glow while user is in queue */
body.in-queue::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  border: 2px solid transparent;
  border-radius: 0;
  background: linear-gradient(
      90deg,
      rgba(251, 191, 36, 0.35),
      rgba(125, 211, 252, 0.35),
      rgba(124, 58, 237, 0.35),
      rgba(251, 191, 36, 0.35),
      rgba(125, 211, 252, 0.35),
      rgba(251, 191, 36, 0.35)
    )
    border-box;
  background-size: 300% 100%;
  animation: queue-screen-glow 4s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 3px;
}

@keyframes queue-screen-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.queue-tag {
  font-weight: 700;
}

.queue-wager {
  color: var(--muted);
  font-weight: 600;
}

.accept-wager-button {
  min-height: var(--control-height-md);
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f59e0b;
  color: #231700;
  border: none;
  box-shadow: none;
}

.accept-wager-button:hover {
  background: #fcd34d;
}

.match {
  margin-top: 24px;
}

.results-panel {
  margin-top: 24px;
}

.leaderboards-panel {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.leaderboards-header-right {
  display: contents;
}

.leaderboards-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: flex-start;
}

.leaderboards-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leaderboards-subtitle {
  margin: 0;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.leaderboard-days-left {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 20px;
  color: #fbbf24;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.leaderboard-days-left.hidden {
  display: none;
}

.prize-info-btn {
  grid-column: 2;
  grid-row: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

.prize-info-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.prize-info-tooltip {
  position: absolute;
  top: 44px;
  right: 0;
  width: 260px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a2230;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}
.prize-info-tooltip.hidden {
  display: none;
}

.leaderboard-reward-claim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-surface);
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(125, 211, 252, 0.12));
}

.leaderboard-reward-claim.hidden {
  display: none;
}

.leaderboard-reward-claim h3 {
  margin: 0;
}

.leaderboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.leaderboard-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.leaderboard-toggle-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-toggle-btn.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.leaderboard-toggle-btn:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.leaderboards-label,
.leaderboards-message {
  margin: 0;
}

.leaderboards-label {
  font-weight: 700;
}

.leaderboards-message {
  color: var(--muted);
}

.leaderboard-prizes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  grid-column: 1 / -1;
  grid-row: 2;
}

.leaderboard-prizes.hidden {
  display: none;
}

.leaderboard-prize-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leaderboard-prize-pill.rank-1 {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--accent);
}

.prize-rank {
  opacity: 0.6;
  font-size: 0.7rem;
}
.prize-amount {
  color: rgba(244, 248, 255, 0.75);
}

/* Rank-specific prize pill colors — gold / silver / bronze only */
.leaderboard-prize-pill.rank-1 {
  border-color: rgba(201, 164, 53, 0.32);
  background: rgba(201, 164, 53, 0.07);
}
.leaderboard-prize-pill.rank-1 .prize-rank {
  color: rgba(201, 164, 53, 0.65);
}
.leaderboard-prize-pill.rank-1 .prize-amount {
  color: #fbbf24;
}

.leaderboard-prize-pill.rank-2 {
  border-color: rgba(150, 174, 188, 0.32);
  background: rgba(150, 174, 188, 0.06);
}
.leaderboard-prize-pill.rank-2 .prize-rank {
  color: rgba(150, 174, 188, 0.65);
}
.leaderboard-prize-pill.rank-2 .prize-amount {
  color: #96aebb;
}

.leaderboard-prize-pill.rank-3 {
  border-color: rgba(168, 107, 53, 0.32);
  background: rgba(168, 107, 53, 0.07);
}
.leaderboard-prize-pill.rank-3 .prize-rank {
  color: rgba(168, 107, 53, 0.65);
}
.leaderboard-prize-pill.rank-3 .prize-amount {
  color: #a86b35;
}

/* Ranks 4–5: neutral, no competing accent hue */
.leaderboard-prize-pill.rank-4,
.leaderboard-prize-pill.rank-5 {
  border-color: var(--border);
  background: transparent;
}
.leaderboard-prize-pill.rank-4 .prize-rank,
.leaderboard-prize-pill.rank-5 .prize-rank {
  color: var(--muted);
}
.leaderboard-prize-pill.rank-4 .prize-amount,
.leaderboard-prize-pill.rank-5 .prize-amount {
  color: rgba(244, 248, 255, 0.55);
}

.prize-tag {
  color: #fbbf24;
  font-size: 0.82em;
  margin-left: 6px;
  opacity: 0.85;
}

.leaderboard-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 28, 44, 0.6) 0%, rgba(13, 17, 23, 0.8) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 24px 48px -12px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.leaderboard-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 20px;
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

/* Numerical columns: Rank, Wins, Winnings */
.leaderboard-table td:nth-child(1),
.leaderboard-table th:nth-child(1) {
  text-align: left;
  padding-left: 24px;
  width: 70px;
}

.leaderboard-table td:nth-child(3),
.leaderboard-table th:nth-child(3) {
  font-family: 'IBM Plex Mono', monospace;
  text-align: right;
  padding-right: 24px;
  padding-left: 40px;
  white-space: nowrap;
  width: 220px;
}

.leaderboard-table td:nth-child(1) {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted);
}

.leaderboard-table td:nth-child(2) {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-table tr.rank-1 {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, transparent 100%);
}

.leaderboard-table tr.rank-1 td:nth-child(1) {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  font-size: 1.3rem;
}

.leaderboard-table tr.rank-2 {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0%, transparent 100%);
}

.leaderboard-table tr.rank-2 td:nth-child(1) {
  color: #94a3b8;
}

.leaderboard-table tr.rank-3 {
  background: linear-gradient(90deg, rgba(168, 107, 53, 0.06) 0%, transparent 100%);
}

.leaderboard-table tr.rank-3 td:nth-child(1) {
  color: #a86b35;
}

.winnings-value {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.currency-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
  white-space: nowrap;
}

.prize-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 2px 8px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 4px;
  margin-left: 8px;
}

.leaderboard-placeholder-row {
  color: var(--muted);
  font-style: italic;
  opacity: 0.6;
}

.arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.arena-header .eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.arena-layout {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* VS Section */
.arena-vs-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  perspective: 1000px;
}

.arena-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 4px solid #0d1117;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  z-index: 2;
  flex-shrink: 0;
}

.arena-vs-text {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  font-style: italic;
}

.h2h-record {
  text-align: center;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.friend-link-escape {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 12px;
}

.friend-link-escape-btn {
  background: none;
  border: none;
  color: #f59e0b;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.arena-player-card {
  flex: 1;
  min-width: 0;
  background: rgba(18, 28, 44, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.arena-player-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(148, 163, 184, 0.3);
}

.arena-player-card.ready {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.05);
}

.arena-player-card.ready::before {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.arena-player-card.me::before {
  background: var(--accent);
}

.arena-player-card.them::before {
  background: #f87171;
}

.player-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-card-status {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.ready .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Wager Bar */
.arena-wager-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  gap: 24px;
}

.arena-wager-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.arena-wager-item .label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.arena-wager-item .value {
  color: #fbbf24;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
}

.arena-wager-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* Instruction Card */
.arena-instruction-card {
  background: linear-gradient(180deg, rgba(26, 35, 51, 0.95), rgba(13, 17, 27, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-card);
  padding: 24px;
  display: grid;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: min-height 0.3s ease, border-color 0.3s ease;
  min-height: 160px;
}

/* Phase-specific accenting */
.arena-instruction-card.phase-3 {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
  background: linear-gradient(180deg, rgba(30, 40, 60, 0.98), rgba(13, 17, 27, 0.95));
}

.arena-instruction-card.phase-3 .instruction-content h3 {
  color: var(--accent);
}

.instruction-content {
  text-align: center;
}

.arena-instruction-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.arena-instruction-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.arena-actions {
  display: grid;
  gap: 12px;
}

.action-wrapper {
  display: grid;
}

/* Add friend action row — centered single column */
.arena-dual-action {
  display: grid;
  gap: 10px;
}

.arena-dual-action .action-wrapper {
  display: contents; /* let the child button fill the grid cell */
}

.secondary-btn {
  width: 100%;
  min-height: var(--control-height-lg);
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-control);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.secondary-btn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.secondary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.secondary-btn:disabled {
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* Single-column centered layout now that I'm Ready button is removed */
.arena-dual-action {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.primary-btn {
  width: 100%;
  min-height: var(--control-height-lg);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1100;
  border: none;
  border-radius: var(--radius-control);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn[aria-disabled="true"] {
  background: #2d3947;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cancel-btn {
  color: #f87171;
  font-size: 0.85rem;
  opacity: 0.7;
  min-height: 44px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
}

.cancel-btn:hover {
  opacity: 1;
}

/* ── Forfeit warning banner (inside arena card) ────────────────── */
.forfeit-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fdba74;
  animation: forfeit-pulse 2s ease-in-out infinite;
}

.forfeit-warning.hidden { display: none; }

.forfeit-warning-icon { font-size: 1rem; flex-shrink: 0; }

.forfeit-warning-text { flex: 1; }

.forfeit-warning-countdown {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: #fb923c;
  min-width: 3ch;
  text-align: right;
}

@keyframes forfeit-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ── Forfeit win toast (slides in bottom-right) ────────────────── */
.forfeit-toast {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(20, 30, 48, 0.97), rgba(10, 17, 28, 0.97));
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(34,197,94,0.1);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.forfeit-toast-icon { font-size: 1.4rem; flex-shrink: 0; }

.forfeit-toast-msg { flex: 1; line-height: 1.4; }

.forfeit-toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
  flex-shrink: 0;
}

.forfeit-toast-close:hover { color: #fff; }

@keyframes toast-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Win animation ─────────────────────────────────────────────── */
.balance-win-flash {
  animation: balance-flash 1.8s ease-out forwards;
}

@keyframes balance-flash {
  0%   { color: inherit; transform: scale(1); }
  20%  { color: var(--accent); transform: scale(1.22); text-shadow: 0 0 12px rgba(245,158,11,0.8); }
  60%  { color: var(--accent-3); }
  100% { color: inherit; transform: scale(1); text-shadow: none; }
}

.win-celebrate {
  animation: win-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes win-pop {
  0%   { transform: scale(0.92); filter: brightness(1.6); }
  55%  { transform: scale(1.07); filter: brightness(1.2); }
  100% { transform: scale(1);    filter: brightness(1); }
}

/* Confetti particles (small burst on banner) */
.win-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  animation: particle-fly 1.2s ease-out forwards;
  z-index: 9999;
}

@keyframes particle-fly {
  0%   { transform: translate(0, 0) rotate(0deg);  opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(540deg); opacity: 0; }
}

/* ── Anticipation phase ─────────────────────────────────────────── */
.match-result-banner.anticipating {
  animation: anticipate-pulse 0.55s ease-in-out infinite alternate !important;
  color: var(--ink-muted) !important;
  background: rgba(245, 158, 11, 0.07) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

@keyframes anticipate-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.1);  opacity: 0.65; }
  100% { box-shadow: 0 0 22px 5px rgba(245, 158, 11, 0.28); opacity: 1; }
}

/* Win ceremony entrance */
.match-result-banner.win {
  animation: win-reveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes win-reveal {
  0%   { transform: scale(0.86); opacity: 0; filter: brightness(2.2); }
  55%  { transform: scale(1.06); opacity: 1; filter: brightness(1.25); }
  100% { transform: scale(1);    opacity: 1; filter: brightness(1); }
}

/* Loss entrance */
.match-result-banner.loss {
  animation: loss-reveal 0.45s ease-out forwards;
}

@keyframes loss-reveal {
  0%   { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* Draw entrance */
.match-result-banner.draw {
  animation: draw-reveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes draw-reveal {
  0%   { transform: scale(0.94); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Coin-return (draw state — neutral silver tone) */
.coin-return {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e2e8f0, #94a3b8 55%, #64748b);
  box-shadow: 0 2px 8px rgba(148,163,184,0.4), inset 0 1px 2px rgba(255,255,255,0.3);
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  font-family: 'Manrope', sans-serif;
  animation: coin-arc var(--coin-duration) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Full-screen confetti shower ─────────────────────────────────── */
.confetti-piece {
  position: fixed;
  top: -12px;
  pointer-events: none;
  z-index: 9998;
  animation: confetti-fall var(--fall-duration) ease-in forwards;
}

@keyframes confetti-fall {
  0%   { transform: translate(0, 0) rotate(0deg);             opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translate(var(--drift), var(--fall)) rotate(var(--spin)); opacity: 0; }
}

/* ── Coin-fly-to-balance animation ───────────────────────────────── */
.coin-fly {
  position: fixed;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #d97706);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.65), inset 0 1px 2px rgba(255,255,255,0.45);
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  font-family: 'Manrope', sans-serif;
  animation: coin-arc var(--coin-duration) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes coin-arc {
  0%   { transform: translate(0, 0) scale(1);   opacity: 1; }
  40%  { transform: translate(var(--mid-x), var(--mid-y)) scale(1.25); opacity: 1; }
  100% { transform: translate(var(--end-x), var(--end-y)) scale(0.25); opacity: 0; }
}

/* ── Collect Winnings button ─────────────────────────────────── */
.collect-btn {
  display: block;
  margin: 12px auto 0;
  padding: 7px 18px;
  background: var(--accent);
  color: #231700;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  animation: collect-btn-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

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

@keyframes collect-btn-appear {
  0%   { opacity: 0; transform: translateY(6px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Conglomerate coin (scatter → gather phase) ──────────────── */
.coin-scatter {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #d97706);
  box-shadow: 0 2px 8px rgba(245,158,11,0.55), inset 0 1px 2px rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  font-family: 'Manrope', sans-serif;
  animation: coin-gather 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes coin-gather {
  0%   { transform: translate(0, 0) scale(1);                         opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(var(--gx), var(--gy)) scale(0.85); opacity: 1; }
}

/* Post Game / Footer */
.arena-footer {
  margin-top: 10px;
}

.arena-player-readiness-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

@media (max-width: 600px) {
  .arena-vs-section {
    gap: 8px;
  }
  .arena-vs-divider {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .arena-vs-text {
    font-size: 0.85rem;
  }
  .arena-wager-bar {
    gap: 16px;
    padding: 10px 16px;
  }
}

.match-room-pill--warning {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
}

.match-room-pill--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
}

.match-room-timer {
  margin: 0;
  color: var(--accent-warm);
  font-size: 0.88rem;
  font-weight: 600;
}

.match-room-timer.timer-urgent {
  color: #e05252;
  animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.report-issue-btn {
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.5;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
}

.match-room-readiness {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.match-room-ready-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 15, 27, 0.88);
}

.match-room-ready-card strong {
  display: block;
  margin-bottom: 4px;
}

.match-room-ready-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.match-room-ready-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-room-ready-card.ready {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.match-room-ready-card.ready span {
  color: #fcd34d;
}

.match-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.match-room-events-wrap {
  display: grid;
  gap: 8px;
}

.match-room-events {
  display: grid;
  gap: 8px;
}

.match-room-event {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(8, 15, 27, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.match-room-event p {
  margin: 0;
  color: #dbe4ee;
}

.match-room-event-time {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
}

.label {
  font-weight: 600;
  margin: 0 0 8px;
}

.player-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.player-list li {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 24px -24px rgba(1, 6, 16, 0.8);
}

.player-tag {
  font-weight: 700;
}

.player-link {
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.player-link:hover {
  text-decoration: underline;
}

.player-link.missing {
  color: var(--muted);
  font-weight: 500;
}

.player-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.player-wager {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── Add Friend button (opponent card) ────────────────────────── */
.add-friend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  margin-top: 4px;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.025em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(229, 130, 18, 0.38);
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.add-friend-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 130, 18, 0.48);
  text-decoration: none;
  color: #fff;
}

.add-friend-btn:active {
  filter: brightness(0.96);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(229, 130, 18, 0.3);
}

.add-friend-btn svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* Your-own-link confirmation note */
.your-link-shared {
  font-size: 0.82rem;
  color: #fbbf24;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.match-actions {
  display: grid;
  gap: 10px;
}

.match-track-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

.verify-loading-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 32px;
  margin-top: 18px;
}

.verify-bar {
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5), 0 0 16px rgba(245, 158, 11, 0.18);
  animation: verify-bar-pulse 1.1s ease-in-out infinite;
}

.verify-bar:nth-child(1) { animation-delay: 0s; }
.verify-bar:nth-child(2) { animation-delay: 0.14s; }
.verify-bar:nth-child(3) { animation-delay: 0.28s; }
.verify-bar:nth-child(4) { animation-delay: 0.42s; }
.verify-bar:nth-child(5) { animation-delay: 0.56s; }

@keyframes verify-bar-pulse {
  0%, 100% { height: 6px;  opacity: 0.35; }
  50%       { height: 30px; opacity: 1; }
}

.match-track-status.error {
  color: #ff9f9f;
}

.qa-match-controls {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(245, 158, 11, 0.18);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 38%),
    rgba(17, 25, 39, 0.94);
}

.qa-match-controls-header {
  display: grid;
  gap: 4px;
}

.qa-match-controls-header .label,
.qa-match-controls-header .hint {
  margin: 0;
}

.qa-match-controls-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.qa-match-controls-grid .secondary {
  width: 100%;
}

/* ── Post-match UI ─────────────────────────────────────────────────────── */

.match-post-game {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

/* ── Result banner ─────────────────────────────────────────── */
.match-result-banner {
  padding: 20px 20px 18px;
  border-radius: var(--radius-card);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.match-result-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}
.match-result-banner.win {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.match-result-banner.loss {
  background: var(--danger-bg);
  color: #ff9f9f;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.match-result-banner.draw {
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink-muted);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* ── Shared post-match card ────────────────────────────────── */
.post-match-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.post-match-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

/* ── Rematch / DoN currency toggle ────────────────────────── */
.don-currency-toggle {
  width: fit-content;
}

/* DoN button — base */
.don-btn {
  width: 100%;
  min-height: var(--control-height-md);
  padding: 0 18px;
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, opacity 0.18s;
}

.don-btn.don-coins {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.5);
}
.don-btn.don-coins:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent);
}

.don-btn.don-balance {
  background: rgba(148, 163, 184, 0.1);
  color: var(--ink-muted);
  border-color: rgba(148, 163, 184, 0.35);
}
.don-btn.don-balance:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.2);
}

.don-btn.don-waiting {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
  opacity: 0.6;
}

.don-btn.don-accept {
  animation: donPulse 1.4s ease-in-out infinite;
}
.don-btn.don-accept.don-coins {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
  color: #fde68a;
}
.don-btn.don-accept.don-balance {
  background: rgba(148, 163, 184, 0.15);
  border-color: #94a3b8;
  color: var(--ink-muted);
}

.don-status {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  min-height: 1.1em;
}

@keyframes donPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
}

.don-btn:disabled:not(.don-waiting):not(.don-accept) {
  opacity: 0.35;
  cursor: not-allowed;
}

.don-status {
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 1em;
  margin: 0;
}

/* ── Chat card ─────────────────────────────────────────────── */
.match-chat {
  gap: 10px;
}
.match-chat-messages {
  height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--bg);
  border: 1px solid var(--border);
}
.chat-bubble {
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 10px;
  display: grid;
  gap: 2px;
  word-break: break-word;
}
.chat-you {
  align-self: flex-end;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px 10px 3px 10px;
}
.chat-them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 3px;
}
.chat-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chat-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}
.match-chat-form {
  display: flex;
  gap: 8px;
}
.match-chat-form input {
  flex: 1;
  min-height: var(--control-height-sm);
  height: var(--control-height-sm);
  padding: 0 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.match-chat-form input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.45);
}
.match-chat-form input::placeholder {
  color: var(--muted);
}
.match-chat-form button {
  min-height: var(--control-height-sm);
  height: var(--control-height-sm);
  padding: 0 16px;
  border-radius: var(--radius-control);
  border: none;
  background: var(--accent);
  color: #1a0e00;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.match-chat-form button:hover {
  opacity: 0.85;
}

/* ── View results button ───────────────────────────────────── */
.post-match-results-btn {
  width: 100%;
}

.results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.card {
  padding: 20px;
  border-radius: var(--radius-surface);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px -30px rgba(1, 6, 16, 0.84);
  display: grid;
  gap: 12px;
  animation: fadeUp 0.35s ease forwards;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.battle-settlement {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(9, 17, 31, 0.74);
  display: grid;
  gap: 8px;
}

.battle-settlement-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.battle-settlement-line strong {
  color: var(--ink);
}

.battle-settlement-summary {
  margin: 4px 0 0;
  font-weight: 700;
}

.battle-settlement-summary.win {
  color: var(--accent);
}

.battle-settlement-summary.loss {
  color: #f87171;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.loss {
  background: rgba(248, 113, 113, 0.22);
  color: #ff9f9f;
}

/* Triple Draft badge */
.badge--triple-draft {
  background: #7c3aed;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: center;
}

/* Battle mode toggle */
.battle-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.battle-mode-btn {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--border, #333);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #888);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.battle-mode-btn.active {
  border-color: var(--accent, #f59e0b);
  color: var(--text, #fff);
}

.battle-mode-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.battle-mode-btn.locked::after {
  content: "🔒";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 14px;
  background: var(--surface-light, #2a2a2a);
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Triple Draft lock state */
.triple-draft-locked {
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--border, #333);
  border-radius: 8px;
  margin-top: 8px;
}
.triple-draft-lock-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.triple-draft-lock-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  margin-bottom: 12px;
}
.triple-draft-lock-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.lock-pip {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: var(--border, #333);
  transition: background 0.2s;
}
.lock-pip.filled {
  background: var(--accent, #f59e0b);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.lineup {
  display: grid;
  gap: 6px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  margin-top: 64px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

.footer p {
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.1);
}

.onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(7px);
}

.onboarding-card {
  width: min(540px, 100%);
  border-radius: 10px;
  border: 1px solid #3b4858;
  background: linear-gradient(180deg, #151d27 0%, #131a22 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.onboarding-description {
  margin: 0;
  color: var(--muted);
}

.onboarding-progress-wrap {
  display: grid;
  gap: 6px;
}

.onboarding-progress-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.onboarding-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #222d3a;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24 0%, #7dd3fc 100%);
  transition: width 220ms ease;
}

.onboarding-step {
  border: 1px solid #3a4757;
  border-radius: 6px;
  background: rgba(16, 29, 50, 0.82);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.onboarding-step-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.onboarding-step-body {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.45;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.onboarding-actions button {
  width: 100%;
  justify-content: center;
}

.onboarding-skip {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.88rem;
  box-shadow: none;
}

.onboarding-skip:hover {
  transform: none;
  color: #d9e5f5;
}

.match-transition {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.match-transition-card {
  width: min(460px, 100%);
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(160deg, #0d1526 0%, #1b2836 100%);
  color: #f8fbff;
  box-shadow: 0 8px 24px rgba(5, 10, 22, 0.45);
  text-align: center;
  transform: translateY(8px) scale(0.97);
  opacity: 0;
}

.match-transition.active .match-transition-card {
  animation: matchTransitionIn 360ms ease forwards;
}

.match-transition-pulse {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.65);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, transparent 72%);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
  animation: pulseHalo 1.2s ease-out infinite;
}

.match-transition-title {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.match-transition-subtitle {
  margin: 0;
  color: rgba(225, 234, 247, 0.9);
  font-size: 1rem;
}

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

@keyframes verifyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes pulseHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.48);
  }
  100% {
    box-shadow: 0 0 0 22px rgba(245, 158, 11, 0);
  }
}

@keyframes matchTransitionIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, 12px, 0) scale(1.04);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes ctaGlow {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.14);
  }
  50% {
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.24), 0 0 0 1px rgba(251, 191, 36, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  body.landing-mobile-nav-hidden .page {
    padding-bottom: calc(32px + var(--safe-bottom));
  }

  body.landing-mobile-nav-hidden .menu-links,
  body.landing-mobile-nav-hidden .menu-scrim {
    display: none !important;
  }

  .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    padding-right: 12px;
    padding-bottom: calc(32px + var(--safe-bottom));
    padding-left: 12px;
  }

  .hero {
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px 0;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
  }

  h1 {
    font-size: clamp(1.9rem, 8.3vw, 2.7rem);
    line-height: 1.15;
    max-width: none;
  }


  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-phones {
    margin-top: 32px;
  }

  .hero-copy {
    gap: 16px;
  }

  .hero-sub {
    font-size: 1.14rem;
  }

  .hero-highlight-row {
    gap: 12px;
  }

  .hero-highlight-pill {
    width: fit-content;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-action-primary,
  .hero-action-secondary {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  .hero-progress-card {
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .hero-progress-header {
    gap: 10px;
  }

  .hero-progress-meta {
    width: 100%;
  }

  .hero-check-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .hero-check-time {
    grid-column: 2;
    justify-self: start;
  }

  .landing-signals {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 22px;
    padding: 6px 2px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat-card {
    padding: 14px 12px;
    gap: 8px;
  }

  .stat-label {
    font-size: 0.7rem;
    gap: 4px;
    letter-spacing: 0.06em;
  }

  .stat-label .icon {
    width: 14px;
    height: 14px;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-card.stat-card--featured .stat-value {
    font-size: 1.62rem;
  }

  .signal-card {
    padding: 16px 6px;
    border: 0;
    border-radius: 0;
    gap: 12px;
  }

  /* stacked on mobile: divider goes horizontal, not vertical */
  .signal-card + .signal-card {
    border-left: 0;
    border-top: none;
  }

  .signal-card-label {
    font-weight: 700;
    font-size: 1rem;
  }

  .signal-card-copy {
    line-height: 1.55;
    font-size: 0.95rem;
    color: var(--ink-muted);
  }

  .payout-explainer {
    margin-bottom: 24px;
    gap: 20px;
    padding: 18px 16px;
  }

  .payout-explainer-copy {
    gap: 12px;
  }

  .payout-explainer-copy h2 {
    line-height: 1.2;
  }

  .payout-explainer-subhead {
    line-height: 1.65;
    font-size: 0.98rem;
  }

  .payout-ladder {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .menu {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 12px;
    margin-top: 0;
    padding: 12px 16px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #384453;
    background: #141b24;
    backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    width: auto;
  }

  .menu-left,
  .menu-right {
    gap: 8px;
  }

  .menu-brand {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-weight: 700;
  }

  .menu-toggle {
    display: none;
  }

  .profile-avatar {
    display: none;
  }

  .menu-balance {
    display: grid;
    grid-template-columns: auto auto;
    justify-items: end;
    gap: 4px;
  }

  .nav-login-btn,
  .nav-signup-btn {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .balance-item {
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #141c25;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .balance-label {
    font-size: 0.65rem;
  }

  .balance-value {
    font-size: 0.9rem;
    font-weight: 600;
  }

  .menu-links {
    display: none !important;
  }

  .panel {
    border-radius: var(--radius-surface);
    padding: var(--panel-padding-mobile-y) var(--panel-padding-mobile-x);
    box-shadow: 0 14px 28px -28px rgba(1, 6, 16, 0.9);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
  }

  .panel h2 {
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .field {
    gap: 8px;
    margin-bottom: 12px;
  }

  label {
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
  }

  input,
  textarea,
  select {
    font-size: 1rem;
    padding: 12px;
    line-height: 1.5;
  }

  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    font-size: 16px;
    min-height: var(--control-height-md);
    padding: 12px 14px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .auth-form {
    gap: 14px;
    padding: 20px 16px;
    border-radius: var(--radius-card);
    background: rgba(24, 32, 43, 0.6);
    border: 1px solid var(--border);
  }

  .auth-form h2 {
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .auth-form-note {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .auth-footer {
    grid-template-columns: 1fr;
    margin-top: 24px;
    gap: 16px;
  }

  .faq-panel {
    margin-top: 16px;
  }

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

  .profile-header,
  .shop-wallet-bar,
  .queue-header,
  .match-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .profile-header > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .profile-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-section-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .profile-tab {
    justify-content: center;
    padding: 0 10px;
  }

  .profile-next-step-actions,
  .shop-setup-actions,
  .wizard-verify-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cashout-readiness-grid,
  .match-flow {
    grid-template-columns: 1fr;
  }

  .cashout-readiness-header {
    flex-direction: column;
  }

  #logout {
    margin-left: auto;
    flex-shrink: 0;
  }

  .leaderboard-reward-claim {
    flex-direction: column;
    align-items: flex-start;
  }

  .queue-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .queue-actions button,
  .shop-actions button,
  .button-row button,
  .match-actions button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 1rem;
  }

  .queue-form {
    max-width: 100%;
  }

  .queue-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px;
    max-width: 100%;
  }

  .queue-cta-row #join-queue,
  .cancel-queue-btn {
    width: 100%;
  }

  .queue-updated-hint {
    display: none; /* save space on very small screens */
  }

  .queue-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .queue-actions-inline {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .shop-card {
    padding: 16px;
    border-radius: 10px;
  }

  .shop-card h3 {
    font-size: 1.1rem;
  }

  .shop-purchase {
    grid-template-columns: 1fr;
  }

  .profile-readiness-checklist,
  .queue-insights,
  .wallet-summary-grid {
    grid-template-columns: 1fr;
  }

  .daily-rewards-track {
    grid-template-columns: 1fr;
  }

  .shop-deposit-desktop {
    display: none;
  }

  .shop-deposit-mobile {
    display: grid;
  }

  .shop-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
  }

  .shop-actions button {
    min-height: 48px;
    font-size: 1rem;
  }

  .shop-shortcuts {
    justify-content: flex-start;
  }

  .mobile-keypad {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .keypad-key {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--ink);
    padding: 16px;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .keypad-key:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .keypad-key:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.96);
  }

  .keypad-key.action {
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted);
    font-size: 0.9rem;
  }

  .match-summary {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px;
    border-radius: 8px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .onboarding-modal {
    padding: calc(14px + var(--safe-top)) max(10px, var(--safe-right))
      calc(14px + var(--safe-bottom)) max(10px, var(--safe-left));
    align-items: end;
  }

  .onboarding-card {
    width: 100%;
    max-height: 100%;
    border-radius: 10px;
    padding: 16px;
  }

  .onboarding-actions {
    grid-template-columns: 1fr;
  }

  .footer {
    margin-top: 20px;
    padding-bottom: calc(8px + var(--safe-bottom));
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: calc(136px + var(--safe-bottom));
    padding-left: 10px;
  }


  .menu {
    border-radius: 0;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .menu-brand {
    font-size: 0.95rem;
  }

  .menu-balance {
    width: auto;
    grid-template-columns: auto auto;
    justify-items: end;
    gap: 4px;
  }

  .balance-item {
    width: 100%;
    justify-content: center;
    font-size: 0.73rem;
  }

  .menu-links {
    top: auto !important;
    gap: 6px;
    padding: 8px;
    transform: none;
  }

  .menu-links .menu-button {
    min-height: 50px;
    padding: 5px 4px;
    font-size: 0;
  }

  .menu-links .menu-button .icon,
  .menu-links .menu-button .icon svg {
    width: 20px;
    height: 20px;
  }

  .queue-actions {
    grid-template-columns: 1fr;
  }

  .queue-actions-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-flow {
    padding: 14px;
  }

  .match-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .match-flow-step {
    padding: 14px 12px 16px;
    gap: 8px;
  }

  .match-flow-step-title {
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .match-flow-step-copy {
    font-size: 0.82rem;
    line-height: 1.38;
  }

  .wager-presets {
    flex-wrap: wrap;
  }

  .results {
    margin-top: 16px;
    gap: 12px;
  }
}

/* ── Legal modal (Terms / Privacy) ── */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(7px);
}

.legal-modal.hidden {
  display: none;
}

.legal-card {
  width: min(680px, 100%);
  max-height: min(82vh, 700px);
  border-radius: 10px;
  border: 1px solid #3b4858;
  background: #151d27;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #283341;
  flex-shrink: 0;
}

.legal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-body {
  overflow-y: auto;
  padding: 24px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.legal-body p {
  margin: 0;
}

/* ══════════════════════════════════════════════════
   7-STEP SIGNUP WIZARD
   ══════════════════════════════════════════════════ */

/* Entry card on auth panel */
.signup-entry-list {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.signup-entry-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Wizard overlay */
.signup-wizard {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 10, 20, 0.82);
  backdrop-filter: blur(8px);
}
.signup-wizard.hidden { display: none; }

/* Wizard card */
.signup-wizard-card {
  width: min(600px, 100%);
  max-height: min(90vh, 820px);
  border-radius: 12px;
  border: 1px solid #3b4858;
  background: #151d27;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header row */
.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  flex-shrink: 0;
}
.wizard-step-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wizard-close {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.wizard-close:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

/* Progress bar */
.wizard-progress-track {
  height: 3px;
  background: #232e3b;
  flex-shrink: 0;
  margin: 0 20px 4px;
  border-radius: 2px;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 14.28%;
}

/* Step content */
.wizard-step {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wizard-step.hidden { display: none; }

.wizard-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.wizard-body {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
}

/* Two-column field rows */
.wizard-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Checkbox rows */
.wizard-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1.5;
}
.wizard-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

/* State / select dropdown */
.signup-wizard select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 4px;
  border: 1px solid #384555;
  font-size: 1rem;
  background: #151d27;
  color: #f8fafc;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238da0b5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}
.signup-wizard select:hover {
  border-color: #536376;
}
.signup-wizard select:focus,
.signup-wizard select:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-color: #7dd3fc;
}
.signup-wizard select option {
  background: #151d27;
  color: #f8fafc;
}

/* Jurisdiction message */
.wizard-jurisdiction-msg {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.wizard-jurisdiction-msg.allowed {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.wizard-jurisdiction-msg.blocked {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Password field */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input { flex: 1; padding-right: 42px; }
.password-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
}
.password-toggle:hover { color: var(--ink); }
.password-toggle .icon { width: 16px; height: 16px; }
.password-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.password-strength-bar {
  height: 3px;
  background: #232e3b;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.password-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.2s, background 0.2s;
}

/* Optional tag */
.optional-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Verification / SSN code input */
.code-input {
  letter-spacing: 0.2em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  text-align: center;
}

.wizard-verify-card {
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(10, 18, 30, 0.92);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.wizard-verify-card--required {
  border-color: rgba(125, 211, 252, 0.2);
}

.wizard-verify-card--pending {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.08);
}

.wizard-verify-card--verified {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.08);
}

.wizard-verify-state {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.wizard-verify-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.wizard-verify-copy {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.wizard-verify-checklist {
  display: grid;
  gap: 10px;
}

.wizard-verify-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
}

.wizard-verify-item strong {
  font-size: 0.85rem;
}

.wizard-verify-item span {
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.wizard-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ID Upload */
.id-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.id-upload-slot { position: relative; }
.id-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}
.id-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 12px;
  border-radius: 8px;
  border: 1px dashed #3b4858;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.id-upload-label:hover,
.id-upload-slot.has-file .id-upload-label {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
}
.id-upload-icon { width: 28px; height: 28px; stroke: var(--ink-muted); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.id-upload-text { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.id-upload-sub  { font-size: 0.75rem; color: var(--ink-muted); }
.id-upload-filename {
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Wizard sections (step 7) */
.wizard-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #283341;
  background: rgba(255,255,255,0.02);
}

/* Inline link button (ToS / Privacy inside checkbox) */
.inline-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover { opacity: 0.8; }

/* Wizard nav (Back / Continue) */
.wizard-nav {
  display: flex;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid #232e3b;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}
.wizard-nav button { flex: 1; }
.wizard-status {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0 0 2px;
}

.signup-wizard.is-loading .wizard-step {
  opacity: 0.7;
}
.signup-wizard.is-loading .wizard-nav button {
  opacity: 0.8;
  cursor: wait;
}

/* CR Username Search */
/* ── CR Tag Help ──────────────────────────────────────── */
.cr-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cr-label-row label {
  margin-bottom: 0;
}

.cr-tag-help-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px !important;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.cr-tag-help-btn:hover {
  background: var(--accent);
  color: #231700;
  opacity: 1;
}

.cr-tag-help-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cr-tag-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.cr-tag-help-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  padding: 20px;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90dvh;
  overflow-y: auto;
}

.cr-tag-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cr-tag-help-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.cr-tag-help-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.cr-tag-help-close:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.cr-tag-help-gif {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  display: block;
}

.cr-tag-help-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: tag-steps;
}

.cr-tag-help-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--ink-muted);
  counter-increment: tag-steps;
}

.cr-tag-help-steps li::before {
  content: counter(tag-steps);
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-warm-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-tag-help-steps li strong {
  color: var(--ink);
  font-weight: 600;
}

.cr-search-wrap {
  position: relative;
}

.cr-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a2535;
  border: 1px solid #2f3f54;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 200;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.cr-search-results.hidden {
  display: none;
}

.cr-search-msg {
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cr-search-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #222f3f;
  transition: background 0.12s;
}

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

.cr-search-item:hover {
  background: rgba(245, 158, 11, 0.08);
}

.cr-item-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cr-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.cr-item-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

.cr-item-meta {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Strip browser-native search input chrome (clear button, search icon) */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
input[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

/* CR search row (input + button side by side) */
.cr-search-row {
  display: flex;
  gap: 8px;
}
.cr-search-row input[type="search"] {
  flex: 1;
  min-width: 0;
}

/* In the profile form, results sit inline (not floating) */
.profile-form .cr-search-results {
  position: static;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* Selected account card */
.cr-selected-account {
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(4, 20, 14, 0.75);
  display: grid;
  gap: 6px;
}
.cr-selected-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #34d399;
}

.cr-confirmed-label {
  color: #34d399;
}

.cr-link-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cr-link-save-row button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

#cr-cooldown-msg {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

#cr-search-cancel-btn,
#cr-wrong-account-btn {
  margin-top: 8px;
  font-size: 0.82rem;
}

.cr-friend-link-field {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
  margin-top: 4px;
}
.cr-friend-link-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}
.cr-friend-link-field input[type="url"] {
  width: 100%;
  font-size: 0.82rem;
  height: var(--control-height-md);
  min-height: 0;
}

/* Mobile adjustments */
@media (max-width: 540px) {
  .signup-wizard { padding: 0; align-items: flex-end; }
  .signup-wizard-card {
    width: 100%;
    max-height: 95svh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
  }
  .wizard-field-row { grid-template-columns: 1fr; }
  .id-upload-grid   { grid-template-columns: 1fr; }
}

/* ── Inline field errors ──────────────────────────────────────────────────── */
.field-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  line-height: 1.35;
  margin: 4px 0 0;
  min-height: 0;
}
/* Hide when empty (no JS class toggling needed) */
.field-error:empty {
  display: none;
}

/* Red border on invalid inputs / selects / textareas */
.input-error,
.signup-wizard input.input-error,
.signup-wizard select.input-error,
.signup-wizard textarea.input-error {
  border-color: #e05252 !important;
}
.signup-wizard input.input-error:focus,
.signup-wizard select.input-error:focus,
.signup-wizard textarea.input-error:focus {
  outline-color: rgba(224, 82, 82, 0.45) !important;
  border-color: #e05252 !important;
}

/* Checkbox error highlight (wrap label or use sibling .field-error) */
.input-error + label,
.signup-wizard input[type="checkbox"].input-error + label {
  color: #ff6b6b;
}

/* ── Cookie consent banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #141c25;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}
.cookie-banner.hidden { display: none; }
.cookie-banner-text {
  flex: 1;
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}
.cookie-btn {
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept {
  background: var(--accent, #f97316);
  color: #fff;
  border: none;
  font-weight: 600;
}
.cookie-btn-link {
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
}

/* ── Legal effective date ───────────────────────────────────────────────── */
.legal-effective-date {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ── PayPal wordmark ────────────────────────────────────────────────────── */
.paypal-wordmark {
  color: #009cde;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── PayPal connect modal ───────────────────────────────────────────────── */
.paypal-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-control);
  border: none;
  cursor: pointer;
  background: #0070ba;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.15s;
}

.paypal-signin-btn:hover:not(:disabled) {
  background: #005ea6;
}

.paypal-signin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* PayPal two-tone "PayPal" wordmark inside the button */
.paypal-btn-wordmark {
  font-style: italic;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.paypal-btn-wordmark span {
  color: #9ecfef;
}

.paypal-connect-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: -4px;
}

.paypal-connect-divider::before,
.paypal-connect-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.paypal-create-link {
  display: block;
  text-align: center;
  color: #009cde;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 2px 0;
  margin-top: -4px;
}

/* ════════════════════════════════════════════════════════════════════════ */
/* PHASE 2: EMPTY STATES & INTERACTIVE ELEMENTS                            */
/* ════════════════════════════════════════════════════════════════════════ */

.queue-empty-state,
.match-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  min-height: 180px;
  border: 2px dashed rgba(125, 211, 252, 0.2);
  border-radius: 10px;
  background: rgba(24, 32, 43, 0.5);
  gap: 12px;
}

.queue-empty-title,
.match-empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #f8fafc;
}

.queue-empty-state .hint,
.match-empty .hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 320px;
}

/* Interactive Stats Cards */
.stat-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.stat-card:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════════ */
/* PHASE 3: FORM VALIDATION & MICRO-INTERACTIONS                           */
/* ════════════════════════════════════════════════════════════════════════ */

/* Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

/* Validation Feedback */
input:invalid {
  border-color: #f87171;
}

input:valid:not(:placeholder-shown) {
  border-color: rgba(245, 158, 11, 0.5);
}

/* Form Error Messages */
.field-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

/* Button Micro-interactions */
button {
  transition: all 0.15s ease;
  position: relative;
}

button:active:not(:disabled) {
  transform: scale(0.96);
}

#join-queue:active {
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.cancel-queue-btn:active:not(:disabled) {
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.3);
}

/* ════════════════════════════════════════════════════════════════════════ */
/* PHASE 3: RESPONSIVE TABLE IMPROVEMENTS                                  */
/* ════════════════════════════════════════════════════════════════════════ */

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.leaderboard-table thead {
  background: rgba(245, 158, 11, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.leaderboard-table th {
  padding: 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 2px solid rgba(125, 211, 252, 0.2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.leaderboard-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.1);
  color: #f8fafc;
}

.leaderboard-table tr:hover {
  background: rgba(245, 158, 11, 0.04);
}

.leaderboard-table tbody tr:first-child {
  border-top: 2px solid rgba(245, 158, 11, 0.3);
}

/* Column width hints: Rank narrow, Player fills, Wins + Amount fixed */
.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
  width: 70px;
  text-align: left;
  padding-left: 24px;
}

.leaderboard-table th:nth-child(3),
.leaderboard-table td:nth-child(3) {
  width: 160px;
  text-align: right;
  padding-right: 24px;
  white-space: nowrap;
}

.leaderboard-table th:nth-child(4),
.leaderboard-table td:nth-child(4) {
  width: 110px;
  text-align: right;
}

/* Responsive Table Alignment */
@media (max-width: 900px) {
  .leaderboard-table {
    font-size: 0.85rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 640px) {
  .leaderboard-table {
    font-size: 0.8rem;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 9px 6px;
  }

  .leaderboard-table th:nth-child(1),
  .leaderboard-table td:nth-child(1) {
    width: 50px;
  }

  .leaderboard-table td:nth-child(2) {
    font-size: 0.85rem;
  }

  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    padding-left: 8px;
    padding-right: 16px;
    width: 185px;
  }
}

/* ── Mobile Bottom Navigation ── */
.mobile-bottom-nav {
  display: none;
}

.mobile-bottom-nav.hidden {
  display: none;
}

@media (max-width: 640px) {
  /* Update page padding to account for bottom nav */
  .page {
    padding-bottom: calc(80px + var(--safe-bottom)) !important;
  }

  /* Update menu layout for mobile */
  .menu {
    display: grid;
    grid-template-columns: auto 1fr auto;
    padding: calc(12px + var(--safe-top)) 10px 12px;
    margin-bottom: 20px;
    gap: 8px;
  }

  .menu-left {
    display: flex;
    gap: 8px;
  }

  .menu-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .menu-brand {
    font-size: 1rem;
  }

  .menu-balance {
    display: flex;
    gap: 8px;
    width: auto;
  }

  .balance-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
  }

  .balance-label {
    display: none;
  }

  .balance-item--money .balance-label {
    display: inline;
  }

  .balance-value {
    font-size: 0.75rem;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    gap: 0;
    padding: 10px 0 calc(10px + var(--safe-bottom));
    background: var(--panel);
    border-top: 1px solid var(--border);
    z-index: 500;
    height: auto;
    min-height: 68px;
    box-shadow: 0 -4px 12px var(--shadow);
  }

  /* account for taller nav in page padding */
  .page {
    padding-bottom: calc(72px + var(--safe-bottom)) !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--muted);
    cursor: pointer;
    padding: 6px 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.18s, background 0.18s;
    border-radius: var(--radius-control);
    min-width: 0;
    width: 100%;
    height: 100%;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:focus-visible {
    color: var(--ink);
    background: rgba(248, 250, 252, 0.08);
    outline: none;
  }

  .mobile-nav-item.active {
    color: var(--accent);
    background: transparent;
  }

  .mobile-bottom-nav .mobile-nav-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .mobile-bottom-nav .mobile-nav-item .icon svg {
    width: 24px;
    height: 24px;
  }

  .mobile-nav-item .label {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .queue-cta-row {
    grid-template-columns: 1fr;
  }

  .cancel-queue-btn {
    flex-basis: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOTION — parallax, microinteractions, scroll effects (motion.js)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ───────────────────────────────────────────────────*/
/* ── Launch Banner ───────────────────────────────────────────────────────────*/
.launch-banner {
  position: static;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px 12px;
  margin-left: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.12));
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: launchBannerPulse 3s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
  flex-shrink: 0;
}

.launch-banner-emoji {
  font-size: 14px;
  line-height: 1;
}

.launch-banner-text {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin-left 0.35s ease;
}

.launch-banner:hover .launch-banner-text,
.launch-banner.expanded .launch-banner-text {
  max-width: 160px;
  opacity: 1;
  margin-left: 6px;
}

@keyframes launchBannerPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3); }
  50%       { box-shadow: 0 0 24px rgba(245, 158, 11, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3); }
}


/* ── Nav Scroll Shrink ─────────────────────────────────────────────────────*/
.menu {
  transition: padding 0.25s ease, background 0.25s ease, backdrop-filter 0.25s ease;
}

.menu.scrolled {
  padding-top: calc(8px + var(--safe-top));
  padding-bottom: 8px;
  background: rgba(8, 15, 27, 0.97);
  backdrop-filter: blur(18px);
}

@media (max-width: 640px) {
  .menu {
    padding-left: 12px;
    padding-right: 18px;
    gap: 8px;
  }
  .menu.scrolled {
    padding-left: 12px;
    padding-right: 18px;
  }
}

/* ── Scroll Reveal ─────────────────────────────────────────────────────────*/
.reveal-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Signal band — quiet hover (no boxes to lift) ──────────────────────────*/
.signal-card .signal-card-label,
.signal-card .signal-card-icon {
  transition: color 0.2s ease;
}

.signal-card:hover .signal-card-label {
  color: var(--accent-warm);
}

/* ── Payout Step — hover lift ──────────────────────────────────────────────*/
.payout-step {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.payout-step:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(125, 211, 252, 0.1),
    0 2px 8px rgba(2, 8, 20, 0.24);
  border-color: rgba(125, 211, 252, 0.32);
}

/* ── Hero Progress Card — parallax target ──────────────────────────────────*/
.hero-progress-card {
  will-change: transform;
}

/* ── Hero CTA — magnetic + ripple ──────────────────────────────────────────*/
.hero-action-primary,
.hero-action-secondary {
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

/* ── Secondary action buttons that get ripple ──────────────────────────────*/
#auth-signup-btn,
#hero-signup-btn {
  position: relative;
  overflow: hidden;
}

/* ── Hero Checklist — staggered entrance ───────────────────────────────────*/
.hero-check-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.38s ease forwards;
}

.hero-check-item:nth-child(1) { animation-delay: 180ms; }
.hero-check-item:nth-child(2) { animation-delay: 270ms; }
.hero-check-item:nth-child(3) { animation-delay: 360ms; }

/* ── Input Focus Glow ──────────────────────────────────────────────────────*/
input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

/* ── Button Ripple ─────────────────────────────────────────────────────────*/
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: ripple-expand 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ── Skill Narrative Section ───────────────────────────────────────────────*/
.skill-narrative {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-narrative-header {
  max-width: 560px;
}

.skill-narrative-header h2 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skill-narrative-subhead {
  color: var(--text-secondary, rgba(255,255,255,0.6));
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.skill-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.skill-pillar:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.13);
}

.skill-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  background: rgba(245,158,11,0.12);
  color: var(--accent, #f59e0b);
  flex-shrink: 0;
  overflow: hidden;
}

.skill-pillar-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}

.skill-pillar h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary, #fff);
}

.skill-pillar p {
  font-size: 0.85rem;
  color: var(--text-secondary, rgba(255,255,255,0.55));
  line-height: 1.55;
  margin: 0;
}

.fair-matchmaking-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(255,255,255,0.45));
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

/* ── Platform Service Fee Note ─────────────────────────────────────────────*/
.fee-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(255,255,255,0.45));
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.fee-info-icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.55;
}

/* ── Footer Eligibility Line ───────────────────────────────────────────────*/
.footer-eligibility {
  font-size: 0.75rem;
  color: var(--text-secondary, rgba(255,255,255,0.35));
  margin: 0.15rem 0 0.4rem;
  letter-spacing: 0.01em;
}

/* ── Landing Page Revamp (Map, Timeline, Leaderboard Teaser) ───────────────*/
.map-panel-header, .timeline-header, .leaderboard-teaser-header {
  text-align: center;
  margin-bottom: 2rem;
}

.map-panel h2, .timeline-header h2, .leaderboard-teaser-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.map-panel-subhead {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Open landing sections (no panel box) ────────────────────────────────── */
.map-panel,
.timeline-panel,
.leaderboard-teaser-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.map-panel + .timeline-panel,
.timeline-panel + .leaderboard-teaser-panel,
.leaderboard-teaser-panel + #auth-panel {
  margin-top: 0;
}

.us-map-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
}

.us-map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.us-map-svg path {
  fill: var(--accent-2);
  stroke: var(--bg);
  stroke-width: 1.5;
  transition: fill 0.3s ease;
}

/* Blocked States: AZ, AR, HI, ID, IL, IA, LA, MT, ND, NV, NY, PA, TN, TX, WA */
.us-map-svg path#AZ, .us-map-svg path#AR, .us-map-svg path#HI, .us-map-svg path#ID, .us-map-svg path#IL,
.us-map-svg path#IA, .us-map-svg path#LA, .us-map-svg path#MT, .us-map-svg path#ND, .us-map-svg path#NV,
.us-map-svg path#NY, .us-map-svg path#PA, .us-map-svg path#TN, .us-map-svg path#TX, .us-map-svg path#WA {
  fill: var(--border);
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-legal { background-color: var(--accent-2); }
.legend-blocked { background-color: var(--border); }

/* Timeline Panel */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.timeline-step {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.timeline-visual {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.95;
  transition: opacity 0.3s;
}

/* Center the CR win screenshot on the VS/crowns section */
.timeline-step:nth-child(2) .timeline-visual img {
  object-position: center 50%;
}

/* Steps 1 and 3 — show full image without cropping */
.timeline-step:nth-child(1) .timeline-visual img,
.timeline-step:nth-child(3) .timeline-visual img {
  object-fit: contain;
  object-position: center center;
}

.timeline-step:hover .timeline-visual img {
  opacity: 1;
  transform: scale(1.02);
  transition: all 0.4s ease;
}

.timeline-content {
  padding: 1.25rem 1rem;
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Mobile: keep 3 columns, drop description text */
@media (max-width: 640px) {
  .timeline-grid {
    gap: 0.5rem;
  }
  .timeline-content {
    padding: 0.6rem 0.5rem;
  }
  .timeline-content h3 {
    font-size: 0.72rem;
    margin-bottom: 0;
  }
  .timeline-content p {
    display: none;
  }
}

/* Leaderboard Teaser */
.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  min-height: 250px;
  margin-top: 2.5rem;
  padding: 0 1rem;
}

.podium-loading {
  width: 100%;
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.podium-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 2rem 0.5rem 1rem;
  text-align: center;
  position: relative;
}

.podium-rank.rank-1 { height: 180px; z-index: 3; background: linear-gradient(180deg, rgba(245, 158, 11, 0.15) 0%, var(--panel) 100%); border-color: rgba(245, 158, 11, 0.3) rgba(245, 158, 11, 0.3) transparent; }
.podium-rank.rank-2 { height: 140px; z-index: 2; border-color: rgba(125, 211, 252, 0.3) rgba(125, 211, 252, 0.3) transparent; }
.podium-rank.rank-3 { height: 100px; z-index: 1; border-color: rgba(203, 213, 225, 0.3) rgba(203, 213, 225, 0.3) transparent; }

.podium-avatar {
  position: absolute;
  top: -24px;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.podium-rank.rank-1 .podium-avatar { border-color: var(--accent); top: -28px; width: 56px; height: 56px; font-size: 1.5rem; }
.podium-rank.rank-2 .podium-avatar { border-color: var(--accent-2); }
.podium-rank.rank-3 .podium-avatar { border-color: var(--ink-muted); }

.podium-name {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--ink);
  word-break: break-all;
}

.podium-winnings {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: auto;
}

.podium-rank.rank-1 .podium-winnings { color: var(--accent); font-size: 1.25rem; }

@media (max-width: 600px) {
  .leaderboard-podium {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 15px;
  }
  .podium-rank, .podium-rank.rank-1, .podium-rank.rank-2, .podium-rank.rank-3 {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
  }
  .podium-rank.rank-1 { background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, var(--panel) 100%); }
  .podium-avatar {
    position: relative;
    top: 0 !important;
    left: 0;
    margin-right: 1rem;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
  .podium-name { margin-top: 0; text-align: left; }
  .podium-winnings { margin-top: 0; margin-left: auto; }
}
/* ── Standalone Legal Pages ─────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.legal-header {
  margin-bottom: 48px;
  text-align: center;
}

.legal-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.legal-effective-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  padding: 40px;
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h3 {
  color: var(--accent-warm);
  font-size: 1.25rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.legal-section p {
  color: var(--ink-muted);
}

.legal-footer {
  margin-top: 40px;
  text-align: center;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(253, 230, 138, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.legal-back-btn:hover {
  background: rgba(253, 230, 138, 0.2);
}

@media (max-width: 600px) {
  .legal-content {
    padding: 24px;
  }
}

/* ── UI Utilities ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-surface);
  margin: 16px 0;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.empty-state-text {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 320px;
  margin-bottom: 20px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
  gap: 16px;
}

.section-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 24px;
}

.section-bar {
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55), 0 0 20px rgba(245, 158, 11, 0.2);
  animation: auth-bar-pulse 1.1s ease-in-out infinite;
}

.section-bar:nth-child(1) { animation-delay: 0s; }
.section-bar:nth-child(2) { animation-delay: 0.14s; }
.section-bar:nth-child(3) { animation-delay: 0.28s; }
.section-bar:nth-child(4) { animation-delay: 0.42s; }
.section-bar:nth-child(5) { animation-delay: 0.56s; }

/* ── Auth Loading Overlay ─────────────────────────────── */
.auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-loading-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(245,158,11,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 70% 15%, rgba(125,211,252,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.auth-loading-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.auth-loading-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(245,158,11,0.35);
}

.auth-loading-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 44px;
}

.auth-bar {
  width: 7px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245,158,11,0.55), 0 0 20px rgba(245,158,11,0.2);
  animation: auth-bar-pulse 1.1s ease-in-out infinite;
}

.auth-bar:nth-child(1) { animation-delay: 0s; }
.auth-bar:nth-child(2) { animation-delay: 0.14s; }
.auth-bar:nth-child(3) { animation-delay: 0.28s; }
.auth-bar:nth-child(4) { animation-delay: 0.42s; }
.auth-bar:nth-child(5) { animation-delay: 0.56s; }

@keyframes auth-bar-pulse {
  0%, 100% { height: 8px;  opacity: 0.35; }
  50%       { height: 40px; opacity: 1; }
}

.auth-loading-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hidden {
  display: none !important;
}



/* --- Auth Choice Modal --- */
.auth-choice-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-choice-scrim:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.auth-choice-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: min(400px, calc(100vw - 32px));
  background: linear-gradient(180deg, #1a2332 0%, #0d1117 100%);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 24px;
  padding: 32px 24px;
  z-index: 2001;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.auth-choice-modal:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.auth-choice-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.auth-choice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-choice-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.auth-choice-brand {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.auth-choice-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.auth-choice-header p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.auth-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 40px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  width: 100%;
}

.auth-choice-btn--google {
  background: #fff;
  color: #1f1f1f;
}
.auth-choice-btn--google:hover {
  background: #f1f1f1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.auth-choice-btn--email {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
}
.auth-choice-btn--email:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(125, 211, 252, 0.3);
  transform: translateY(-1px);
}

.auth-choice-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.auth-choice-divider::before,
.auth-choice-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.auth-choice-divider-text {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-choice-footer {
  font-size: 0.75rem;
  line-height: 1.6;
}
.auth-choice-footer .link-btn {
  font-size: 0.75rem;
  padding: 0;
  vertical-align: baseline;
}

/* Challenge Modal & Stats Card */
/* ── Challenge request modal ─────────────────────────────────────────── */
.challenge-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.challenge-modal.hidden {
  display: none;
}

.challenge-modal .modal-content {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.82);
  overflow: hidden;
}

.challenge-modal .modal-header {
  padding: 24px 24px 16px;
  text-align: center;
}

.challenge-modal .modal-header .eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px;
}

.challenge-modal .modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.challenge-modal .modal-body {
  padding: 0 24px 8px;
}

.challenge-modal .modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
}

.challenger-stats-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.challenger-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.challenger-stat-row:last-child {
  border-bottom: none;
}

.challenger-stat-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.challenger-stat-row .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.challenge-note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center;
}

.modal-footer button {
  flex: 1;
}

/* Matchmaking Status Room (Middle Page) */
.queue-modal-content {
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.1);
}

#queue-status-text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

#queue-status-text::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: searching-pulse 1.5s infinite ease-in-out;
}

@keyframes searching-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Modal queue list styling */
#modal-queue-list {
  padding: 4px 0;
}

#modal-queue-list .queue-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

#modal-queue-list .queue-card.you {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
}

/* Inactivity Popup */
#still-here-modal .modal-content {
  max-width: 380px;
  border-color: #ef4444; /* Alert color */
}

#still-here-modal h2 {
  color: #ef4444;
}


.auth-google-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.10), 0 1px 6px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.auth-google-btn-wrapper:hover {
  box-shadow: 0 4px 28px rgba(255, 255, 255, 0.18), 0 1px 8px rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════════════════════════
   LANDING PAGE REDESIGN — Polish pass
   Replaces cold-blue accent borders with cohesive warm-gold across all
   landing/marketing surfaces. App screens (queue, match, profile, shop) are
   intentionally unchanged.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero {
  border: none;
  background: none;
}

.hero::before {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 42%);
}

.hero::after {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(52, 211, 153, 0));
}

/* Mobile hero — richer card feel */
@media (max-width: 900px) {
  .hero {
    border: none;
    background: none;
  }
}

/* ── Hero pills & proof ───────────────────────────────────────────────────── */
.hero-highlight-pill {
  border: none;
  background: none;
}


/* ── Hero progress card inner elements ───────────────────────────────────── */
.hero-progress-meta span {
  border-color: rgba(245, 158, 11, 0.16);
}

.hero-check-item {
  border-top-color: rgba(245, 158, 11, 0.1);
}

.hero-check-icon {
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(10, 14, 22, 0.95);
}

.hero-check-time {
  border-color: rgba(245, 158, 11, 0.14);
}

/* ── Signal / trust band — borderless cells, hairline dividers ───────────── */
.signal-card {
  border: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.signal-card + .signal-card {
  border-left: none;
}

.signal-card-icon {
  border: 0;
  background: none;
  color: var(--accent);
}

.signal-card-label {
  color: var(--accent-3);
  font-size: 0.95rem;
}

.signal-card:hover .signal-card-label {
  color: var(--accent-warm);
}

/* ── Payout steps ─────────────────────────────────────────────────────────── */
.payout-step {
  border-color: rgba(245, 158, 11, 0.14);
}

.payout-step:hover {
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow:
    0 16px 40px rgba(245, 158, 11, 0.1),
    0 2px 8px rgba(2, 8, 20, 0.24);
}

/* ── FAQ items ────────────────────────────────────────────────────────────── */
.faq-item {
  border-color: rgba(245, 158, 11, 0.12);
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.92), rgba(14, 19, 30, 0.88));
}

.faq-item::before {
  background: linear-gradient(180deg, var(--accent-warm), var(--accent));
}

.faq-item:hover {
  border-color: rgba(245, 158, 11, 0.28);
}

/* ── Auth panel — gold accent top bar ────────────────────────────────────── */
#auth-panel {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.04);
  box-shadow:
    0 -6px 32px rgba(245, 158, 11, 0.12),
    0 18px 40px -34px rgba(1, 6, 16, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ── Auth trust items ─────────────────────────────────────────────────────── */
.auth-trust-item {
  border-color: rgba(245, 158, 11, 0.13);
  background: rgba(14, 18, 28, 0.88);
}

/* ── Auth form card ───────────────────────────────────────────────────────── */
.auth-form {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(11, 15, 26, 0.98);
}

/* ── Auth footer items ────────────────────────────────────────────────────── */
.auth-footer-item {
  border-color: rgba(245, 158, 11, 0.12);
  background: rgba(14, 18, 28, 0.85);
}

/* ── DuelRoyale win screen detail rows ─────────────────────────────────────── */
.br-detail-row {
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

/* ── Phone win-frame glow — richer pulse ──────────────────────────────────── */
.phone-frame--win {
  border-color: rgba(245, 158, 11, 0.5);
}

/* ── Timeline steps ───────────────────────────────────────────────────────── */
.timeline-step {
  border-color: rgba(245, 158, 11, 0.12);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline-step:hover {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.08), 0 4px 12px rgba(2, 8, 20, 0.28);
}

/* ── Nav bar scrolled state — deeper + warm tint ─────────────────────────── */
.menu.scrolled {
  background: rgba(9, 11, 18, 0.97);
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

/* ── Scroll reveal — slightly more lift ──────────────────────────────────── */
.reveal-hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.46s ease, transform 0.46s ease;
}

/* ── Section panel — warmer border treatment ─────────────────────────────── */
.panel {
  border-color: rgba(245, 158, 11, 0.1);
}

/* ── FAQ panel spacing on mobile ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .faq-item {
    border-color: rgba(245, 158, 11, 0.12);
  }

  /* Signal cards — single-column on mobile, but respect .hidden */
  .landing-signals:not(.hidden) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 22px;
  }
}



/* ══════════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — Staggered redesign with numbered badges
   ══════════════════════════════════════════════════════════════════════════════ */

/* Header */
.timeline-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Grid — allow-items-start so stagger offsets work cleanly */
.timeline-grid {
  align-items: start;
  padding-top: 28px;
  gap: 18px;
}

/* Base card — keep overflow:hidden for radius clipping, add position for badge */
.timeline-step {
  position: relative;
  overflow: visible;
  border-color: rgba(245, 158, 11, 0.14);
  background: linear-gradient(180deg, rgba(17, 22, 34, 0.98), rgba(10, 14, 22, 0.98));
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

/* Outer cards sit 32px lower — center card is the visual peak */
.timeline-step:nth-child(1),
.timeline-step:nth-child(3) {
  margin-top: 32px;
}

/* Center card — elevated, extra glow to draw the eye */
.timeline-step:nth-child(2) {
  margin-top: 0;
  border-color: rgba(245, 158, 11, 0.24);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.08),
    0 20px 48px rgba(245, 158, 11, 0.1),
    0 6px 20px rgba(2, 8, 20, 0.5);
}

.timeline-step:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow:
    0 20px 48px rgba(245, 158, 11, 0.12),
    0 8px 24px rgba(2, 8, 20, 0.4);
}

.timeline-step:nth-child(2):hover {
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.12),
    0 28px 60px rgba(245, 158, 11, 0.18),
    0 10px 28px rgba(2, 8, 20, 0.5);
}

/* Numbered badge — floats centered above the card top edge */
.timeline-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a0e00;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.5), 0 0 0 2px rgba(245, 158, 11, 0.18);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
}

/* Image cohesion — gradient fade to card bg at the bottom of each photo */
.timeline-visual {
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

.timeline-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(10, 14, 22, 0.92), transparent);
  pointer-events: none;
}

.timeline-visual img {
  opacity: 1;
}

.timeline-step:hover .timeline-visual img {
  opacity: 1;
  transform: scale(1.03);
}

/* Content area */
.timeline-content {
  padding: 18px 16px 22px;
}

.timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
  color: var(--ink);
}

.timeline-content p {
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--ink-muted);
}

/* ── Mobile — single column, full content visible ─────────────────────────── */
@media (max-width: 900px) {
  .timeline-grid {
    grid-template-columns: 1fr !important;
    padding-top: 12px;
    gap: 14px;
  }

  .timeline-step:nth-child(1),
  .timeline-step:nth-child(2),
  .timeline-step:nth-child(3) {
    margin-top: 0 !important;
    box-shadow: none;
  }

  .timeline-step:nth-child(2) {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.08) !important;
  }

  .timeline-visual {
    aspect-ratio: 4/3;
  }

  /* Keep CR screenshot centered on mobile */
  .timeline-step:nth-child(2) .timeline-visual img {
    object-position: center 40%;
  }

  .timeline-badge {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-content {
    padding: 16px 14px 18px;
  }

  .timeline-content h3 {
    font-size: 1.05rem;
  }

  .timeline-content p {
    display: block !important;
    font-size: 0.9rem;
  }
}

/* ─── SECTION CTAs — guide users toward signup between narrative sections ─── */
.section-cta {
  text-align: center;
  margin-top: 24px;
  padding-top: 8px;
}

.section-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-md);
  padding: 0 32px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-control);
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-warm);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.section-cta-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.48);
  color: var(--accent-3);
}

/* Matchmaking Room Panel (Full Page Section) */
.matchmaking-room {
  margin-top: 24px;
}
.matchmaking-room-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: var(--radius-surface);
  background: linear-gradient(180deg, rgba(21, 28, 38, 0.92), rgba(17, 24, 33, 0.88));
  border: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 18px 60px rgba(2, 8, 20, 0.34);
}
.matchmaking-room-body {
  margin-top: 16px;
}
.matchmaking-room-footer {
  margin-top: 32px;
  padding: 16px 0;
}
.matchmaking-room .queue-cards {
  display: grid;
  gap: 16px;
}
.matchmaking-room .challenge-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Active Challenge Card */
.active-challenge-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.24);
  text-align: center;
}
.challenge-status {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fbbf24;
}
.mini-profile {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.mini-tag {
  font-family: monospace;
  color: #fff;
}

/* ── Payout Identity Sync Modal ───────────────────────────────────────────── */
.payout-sync-hero {
  margin-bottom: var(--space-5);
}

.payout-sync-verified-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: var(--space-5);
  border-radius: var(--radius-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  box-shadow: 
    0 10px 30px -10px var(--shadow),
    inset 0 1px 1px var(--accent-warm-bg);
  overflow: hidden;
}

.payout-sync-verified-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.payout-sync-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.payout-sync-badge .icon {
  font-size: 16px;
}

.payout-sync-email {
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.payout-sync-copy {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: var(--space-5);
}

.payout-sync-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.payout-sync-status {
  margin-top: var(--space-3);
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.payout-sync-status.success { color: #34d399; }
.payout-sync-status.error { color: var(--danger); }

/* ── PayPal SDK Smart Buttons ────────────────────────────────────────────── */
.paypal-button-container {
  width: 100%;
  min-height: 44px;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.paypal-button-container.loading {
  background: var(--border);
  border-radius: var(--radius-control);
  animation: pulse 1.5s infinite;
}

#mobile-deposit-pay.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .payout-sync-email {
    font-size: 17px;
  }
}

/* ── Arena Optimized Components ─────────────────────────────────────── */
.arena-add-friend-container {
  display: grid;
  gap: 12px;
}

.arena-copy-link-row {
  display: flex;
  justify-content: center;
}

.workaround-link {
  background: transparent;
  border: none;
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}

.workaround-link:hover { color: #fff; }

.arena-friend-steps {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Restructured Shop Styles */
.shop-hub {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-surface);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.shop-hub::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.05), transparent 70%);
  pointer-events: none;
}

.shop-balance-hero {
  text-align: center;
}

.shop-balance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.shop-balance-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  font-family: "IBM Plex Mono", monospace;
}

.shop-balance-sub {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.shop-gift-pill {
  background: var(--success-bg);
  color: var(--accent-warm);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.75rem;
}

.shop-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shop-hub-btn {
  height: 52px;
  border-radius: var(--radius-control);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.shop-hub-btn--deposit {
  background: var(--accent);
  color: #231700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.shop-hub-btn--deposit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.shop-hub-btn--cashout {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border);
  color: var(--ink);
}

.shop-hub-btn--cashout:hover {
  background: rgba(45, 55, 72, 0.9);
  border-color: var(--muted);
}

/* Roadmap Stepper */
.shop-roadmap {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-surface);
  padding: 20px;
  margin-bottom: 24px;
}

.shop-roadmap-header {
  margin-bottom: 20px;
}

.shop-roadmap-header h3 {
  font-size: 1.1rem;
  margin-top: 4px;
}

.shop-roadmap-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 24px;
}

.shop-roadmap-stepper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.roadmap-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 33%;
}

.roadmap-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.3s ease;
}

.roadmap-step.done .roadmap-node {
  background: var(--accent);
  border-color: var(--accent);
  color: #231700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.roadmap-step.active .roadmap-node {
  border-color: var(--accent);
  color: var(--accent);
}

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

.roadmap-step.done .roadmap-label,
.roadmap-step.active .roadmap-label {
  color: var(--ink);
}

.shop-roadmap-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-roadmap-actions button {
  width: 100%;
  height: 44px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-control);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-roadmap-actions button:hover {
  background: rgba(245, 158, 11, 0.2);
}

@media (max-width: 480px) {
  .shop-hub { padding: 16px; }
  .shop-balance-value { font-size: 2rem; }
  .shop-primary-actions { grid-template-columns: 1fr; }
}

/* ── Match-in-progress floating banner ────────────────────────────────── */
.match-live-banner {
  position: fixed;
  bottom: 76px; /* 64px mobile nav + 12px gap */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a2332;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  z-index: 950;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  animation: match-banner-in 0.2s ease;
}
.match-live-banner.hidden {
  display: none;
}
.match-live-banner-icon {
  font-size: 14px;
  line-height: 1;
}
.match-live-banner-text {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 600;
  font-family: Manrope, sans-serif;
}
.match-live-banner-btn {
  background: #f59e0b;
  color: #0d1117;
  border: none;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  font-family: Manrope, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.match-live-banner-btn:hover {
  background: #fbbf24;
}
@keyframes match-banner-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (min-width: 641px) {
  .match-live-banner {
    bottom: 20px;
  }
}


/* ══════════════════════════════════════════════════════════════
   TOWER REVEAL — VERTICAL CROWN LAYOUT
   ══════════════════════════════════════════════════════════════ */

.tower-reveal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  animation: tower-reveal-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tower-reveal.tower-reveal-exiting {
  animation: tower-reveal-exit 0.35s ease-in forwards;
}

@keyframes tower-reveal-enter {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes tower-reveal-exit {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.97); }
}

/* Winner (top) and loser (bottom) sections */
.tower-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
}

#tower-player-winner {
  background: rgba(245, 158, 11, 0.05);
}

#tower-player-loser {
  background: transparent;
}

/* Three crown slots per row */
.tower-crowns-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Individual crown slot */
.tower-crown-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.4s, filter 0.4s;
}

.tower-crown-slot .crown-icon {
  width: 52px;
  height: 42px;
  display: block;
}

/* Lit (scored) crown — gold, glowing */
.tower-crown-slot.lit {
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.55));
  animation: crown-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes crown-pop {
  0%   { transform: scale(0.5) translateY(6px); opacity: 0; }
  60%  { transform: scale(1.12) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Name banner below crowns */
.tower-name-banner {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tower-player-winner .tower-name-banner {
  color: #fbbf24;
}

#tower-player-loser .tower-name-banner {
  color: var(--muted);
}

/* VS divider row */
.tower-vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tower-vs-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   PLAYER CARD WIN / LOSS STATES
   ══════════════════════════════════════════════════════════════ */

.arena-player-card.winner {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.18), 0 0 22px rgba(245,158,11,0.1);
}

.arena-player-card.winner::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245,158,11,0.5);
}

.arena-player-card.loser {
  opacity: 0.42;
  filter: saturate(0.4);
}

.player-winner-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  display: inline-block;
  margin-top: 4px;
  animation: badge-enter 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes badge-enter {
  0%   { opacity: 0; transform: scale(0.8) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   RESULT BANNER — UPDATED LOSS COLOR
   ══════════════════════════════════════════════════════════════ */

.match-result-banner.loss {
  background: rgba(100, 116, 139, 0.12) !important;
  color: var(--ink-muted) !important;
  border: 1px solid rgba(100, 116, 139, 0.28) !important;
}

/* ── Dispute Report Sheet ─────────────────────────────────────────────────── */
.dispute-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom);
}

.dispute-sheet.active {
  display: flex;
}

.dispute-sheet-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #0e1729 0%, #0a1221 100%);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 90vh;
  overflow-y: auto;
}

.dispute-sheet-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dispute-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.dispute-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.dispute-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.dispute-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dispute-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.dispute-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}

.dispute-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dispute-option {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.dispute-option:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
  color: var(--ink);
}

.dispute-option.selected {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  color: var(--ink);
}

.dispute-next {
  width: 100%;
  min-height: var(--control-height-lg);
  border-radius: var(--radius-control);
  font-size: 0.95rem;
  font-weight: 700;
}

.dispute-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dispute-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.dispute-back {
  min-height: var(--control-height-lg);
  border-radius: var(--radius-control);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 20px;
}

.dispute-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispute-summary-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dispute-summary-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dispute-summary-value {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
}

.dispute-comments {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 10px 12px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.dispute-comments::placeholder { color: var(--muted); }
.dispute-comments:focus { border-color: rgba(245,158,11,0.4); }

.dispute-reassurance {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.dispute-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

/* ── Phase 4 Result Card ────────────────────────────────────────────────────── */
.match-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px 22px;
  text-align: center;
}

.match-result-card.win {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}

.match-result-card.loss {
  border-color: rgba(248, 113, 113, 0.25);
  background: var(--danger-bg);
}

.match-result-label {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.match-result-card.win  .match-result-label { color: #fbbf24; }
.match-result-card.loss .match-result-label { color: var(--danger); }
.match-result-card.draw .match-result-label { color: var(--ink-muted); }

.match-result-payout {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  font-family: 'IBM Plex Mono', monospace;
  margin: 0;
}

.match-result-cta {
  width: 100%;
  min-height: var(--control-height-lg);
  border-radius: var(--radius-control);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
}

.match-play-again-status {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.match-leave-queue {
  font-size: 0.82rem;
}


.match-result-details {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Queue Locked State ─────────────────────────────────────────────────── */

.queue-locked-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 40px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 14, 34, 0.96) 0%, rgba(12, 18, 30, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.06),
    0 20px 56px -16px rgba(1, 6, 16, 0.9),
    0 0 40px -8px rgba(245, 158, 11, 0.08);
}

.queue-lock-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 20px;
  animation: queueLockPulse 3s ease-in-out infinite;
}

.queue-lock-icon {
  width: 28px;
  height: 28px;
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

@keyframes queueLockPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.15), 0 0 20px rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.25);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0), 0 0 32px rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.45);
  }
}

.queue-lock-eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f59e0b;
}

.queue-lock-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.queue-lock-subtitle {
  margin: 0 0 28px;
  color: var(--ink-muted, #7a8fa6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.queue-lock-subtitle strong {
  color: #e2e8f0;
  font-weight: 600;
}

.queue-lock-countdown-wrap {
  width: 100%;
}

.queue-lock-opens-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(163, 190, 220, 0.65);
}

.queue-lock-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.queue-lock-digit-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
}

.queue-lock-digits {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
  min-width: 2.6ch;
  text-align: center;
  display: block;
}

.queue-lock-digit-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(163, 190, 220, 0.5);
}

.queue-lock-colon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.5);
  line-height: 1;
  margin-bottom: 18px;
  animation: queueColonBlink 1s step-start infinite;
}

@keyframes queueColonBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* When queue is locked, dim the form controls beneath the lock card */
.queue-form-locked {
  pointer-events: none;
  opacity: 0.25;
  filter: blur(1px);
  user-select: none;
}

@media (max-width: 480px) {
  .queue-lock-digits {
    font-size: 1.9rem;
  }
  .queue-lock-digit-group {
    min-width: 52px;
  }
  .queue-lock-title {
    font-size: 1.15rem;
  }
}

