/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* ---- LIGHT THEME SURFACES ---- */
  --bg: #f6f3ff;
  --bg-2: #ffffff;
  --bg-3: #efeaff;
  --bg-4: #e3dcfb;
  --surface: #ffffff;
  --sf-2: #f4efff;
  --border: rgba(91, 33, 182, 0.22);
  --border-2: rgba(15, 10, 40, 0.1);

  /* ---- LIGHT THEME TEXT (all pass WCAG AA against --bg / --surface) ---- */
  --txt: #14092e;
  --txt-2: #372a63;
  --txt-3: #544c78;

  --shadow:
    0 0.5rem 1.5rem rgba(91, 33, 182, 0.1),
    0 0.125rem 0.375rem rgba(91, 33, 182, 0.06);
  --shadow-lg:
    0 1.5rem 3.75rem rgba(91, 33, 182, 0.16),
    0 0.375rem 1rem rgba(91, 33, 182, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.88);
  --focus-ring: 0 0 0 0.1875rem rgba(124, 58, 237, 0.45);

  /* ---- DECORATIVE brand colors ---- */
  --violet-deep: #ede7fa;
  --violet-mid: #b9a4e8;
  --violet-glow: #7c4dff;
  --gold-deep: #8f6118;
  --gold: #b9822b;
  --gold-light: #f5c451;
  --emerald: #128f69;
  --rose: #c43268;

  /* ---- TEXT-SAFE accent variants ---- */
  --ink-gold: #7a5217;
  --ink-violet: #5b2fc7;
  --ink-emerald: #0a5940;
  --ink-rose: #a8285a;

  --text: var(--txt);
  --text-muted: var(--txt-3);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(91, 33, 182, 0.16);
  --glass-border-strong: rgba(91, 33, 182, 0.3);
  --shadow-deep: 0 1.25rem 3rem -1rem rgba(91, 33, 182, 0.22);
  --shadow-card: 0 0.5rem 1.5rem -0.5rem rgba(91, 33, 182, 0.08);

  --page-bg-image:
    radial-gradient(
      60% 50% at 18% 12%,
      rgba(124, 77, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      50% 45% at 85% 20%,
      rgba(245, 196, 81, 0.07),
      transparent 60%
    ),
    radial-gradient(
      70% 60% at 50% 100%,
      rgba(237, 231, 250, 0.6),
      transparent 70%
    ),
    linear-gradient(160deg, #fbfaff 0%, #f5f0fe 45%, #fbfaff 100%);
  --glow-opacity: 0.28;

  --surface-nav: rgba(255, 255, 255, 0.75);
  --nav-border: rgba(91, 33, 182, 0.12);
  --overlay-bg: rgba(36, 27, 61, 0.55);
  --modal-grad-1: #ffffff;
  --modal-grad-2: #f3eefc;
  --hairline: rgba(36, 27, 61, 0.1);
  --hairline-soft: rgba(36, 27, 61, 0.06);
  --pip-bg: rgba(36, 27, 61, 0.1);
  --strike-color: rgba(36, 27, 61, 0.2);
  --placeholder-color: rgba(84, 76, 120, 0.7);
  --surface-input: rgba(36, 27, 61, 0.04);
  --surface-digit: rgba(20, 12, 40, 0.08);
  --digit-text: #14092e;

  /* ---- 8px SPACING SCALE ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;

  /* ---- TYPE SCALE ---- */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.3rem + 0.85vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.65rem + 2.6vw, 3.5rem);

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --radius-sm: 0.875rem;
  --radius-pill: 999px;
  --ease-out-5: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ---- DARK THEME ---- */
html[data-theme="dark"] {
  --bg: #070614;
  --bg-2: #0d0b22;
  --bg-3: #15122f;
  --bg-4: #1d1a40;
  --surface: #16143a;
  --sf-2: #201d48;
  --border: rgba(167, 139, 250, 0.2);
  --border-2: rgba(255, 255, 255, 0.09);

  --txt: #f4f1ff;
  --txt-2: #c9c3ea;
  --txt-3: #a39cc9;

  --shadow:
    0 0.625rem 1.875rem rgba(0, 0, 0, 0.55),
    0 0.125rem 0.375rem rgba(0, 0, 0, 0.35);
  --shadow-lg:
    0 1.875rem 4.375rem rgba(0, 0, 0, 0.65),
    0 0.375rem 1.125rem rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(7, 6, 20, 0.85);
  --focus-ring: 0 0 0 0.1875rem rgba(167, 139, 250, 0.65);

  --violet-deep: #1d1240;
  --violet-mid: #4c2a8c;
  --violet-glow: #8b5cf6;
  --gold-deep: #b9822b;
  --gold: #f5c451;
  --gold-light: #ffe8a3;
  --emerald: #2ed9a0;
  --rose: #f45b8d;

  --ink-gold: #f5c451;
  --ink-violet: #c4b5fd;
  --ink-emerald: #2ed9a0;
  --ink-rose: #f45b8d;

  --text: var(--txt);
  --text-muted: var(--txt-3);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(167, 139, 250, 0.14);
  --glass-border-strong: rgba(167, 139, 250, 0.3);
  --shadow-deep: 0 1.25rem 3rem -1rem rgba(0, 0, 0, 0.7);
  --shadow-card: 0 0.5rem 1.5rem -0.5rem rgba(0, 0, 0, 0.4);

  --page-bg-image:
    radial-gradient(
      60% 50% at 18% 12%,
      rgba(76, 42, 140, 0.45),
      transparent 60%
    ),
    radial-gradient(
      50% 45% at 85% 20%,
      rgba(245, 196, 81, 0.1),
      transparent 60%
    ),
    radial-gradient(
      70% 60% at 50% 100%,
      rgba(29, 18, 64, 0.8),
      transparent 70%
    ),
    linear-gradient(160deg, #0b0a17 0%, #120b26 45%, #0b0a17 100%);
  --glow-opacity: 0.45;

  --surface-nav: rgba(11, 10, 23, 0.68);
  --nav-border: rgba(167, 139, 250, 0.1);
  --overlay-bg: rgba(6, 4, 14, 0.65);
  --modal-grad-1: #241a44;
  --modal-grad-2: #150e2b;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --pip-bg: rgba(255, 255, 255, 0.1);
  --strike-color: rgba(255, 255, 255, 0.18);
  --placeholder-color: rgba(163, 156, 201, 0.75);
  --surface-input: rgba(0, 0, 0, 0.3);
  --surface-digit: rgba(0, 0, 0, 0.3);
  --digit-text: #ffe8a3;

  color-scheme: dark;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  transition:
    background 0.35s var(--ease-out-5),
    color 0.35s var(--ease-out-5);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand-name,
.hub-btn__label {
  font-family: "Poppins", sans-serif;
  line-height: var(--lh-tight);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
}

@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;
  }
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Consistent, always-visible focus ring */
:focus-visible {
  outline: 0.125rem solid var(--gold-deep);
  outline-offset: 0.1875rem;
  border-radius: 0.5rem;
}

html[data-theme="dark"] :focus-visible {
  outline-color: var(--gold-light);
}

.hub-btn:focus-visible,
.avatar-btn:focus-visible,
#wheelCanvas:focus-visible {
  outline-offset: 0.25rem;
}

/* ============================= BACKGROUND ============================= */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: -10%;
  background: var(--page-bg-image);
  animation: drift 22s ease-in-out infinite alternate;
  transition: background 0.35s var(--ease-out-5);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-1.5%, 1%, 0) scale(1.03);
  }
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(5.625rem);
  opacity: var(--glow-opacity);
  transition: opacity 0.35s var(--ease-out-5);
}

.bg-glow--gold {
  width: clamp(15rem, 30vw, 23.75rem);
  height: clamp(15rem, 30vw, 23.75rem);
  background: var(--gold);
  top: 6%;
  right: -6%;
  animation: floaty 14s ease-in-out infinite;
}

.bg-glow--violet {
  width: clamp(18rem, 36vw, 30rem);
  height: clamp(18rem, 36vw, 30rem);
  background: var(--violet-glow);
  bottom: -8%;
  left: -8%;
  animation: floaty 18s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-1.875rem) translateX(0.9375rem);
  }
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================= NAVBAR ============================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) clamp(1.25rem, 4vw, 3.5rem);
  background: var(--surface-nav);
  backdrop-filter: blur(1.125rem) saturate(1.1);
  border-bottom: 0.0625rem solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 40;
  transition:
    background 0.35s var(--ease-out-5),
    border-color 0.35s var(--ease-out-5);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 1.75rem;
}

.nav-logo-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.01em;
}

.navbar__wallet {
  display: flex;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.wallet-chip {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 0.0625rem solid var(--glass-border);
  font-family: "DM Mono", monospace;
  backdrop-filter: blur(0.25rem);
}

.wallet-chip--gold {
  border-color: var(--glass-border-strong);
  background: rgba(245, 196, 81, 0.08);
}

.wallet-chip__icon {
  color: var(--ink-violet);
  font-size: var(--text-sm);
}

.wallet-chip--gold .wallet-chip__icon {
  color: var(--ink-gold);
}

.wallet-chip__value {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--txt);
}

.wallet-chip__label {
  font-family: "Inter", sans-serif;
  font-size: var(--text-xs);
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 0.0625rem solid var(--glass-border);
  color: var(--txt-3);
  cursor: pointer;
  transition:
    color 0.2s var(--ease-out-5),
    border-color 0.2s var(--ease-out-5),
    transform 0.2s var(--ease-out-5),
    background 0.2s var(--ease-out-5);
}

.icon-btn:hover {
  color: var(--ink-gold);
  border-color: var(--glass-border-strong);
  transform: translateY(-0.125rem);
  background: rgba(245, 196, 81, 0.1);
}

.icon-btn.is-muted {
  color: var(--ink-rose);
  border-color: var(--ink-rose);
}

.avatar-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(
    135deg,
    var(--violet-mid),
    var(--violet-deep)
  );
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-gold);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  transition: transform 0.2s var(--ease-out-5);
}

html[data-theme="dark"] .avatar-btn {
  color: var(--gold-light);
}

.avatar-btn:hover {
  transform: scale(1.05);
}

.avatar-btn__ring {
  position: absolute;
  inset: -0.1875rem;
  border-radius: 50%;
  border: 0.09375rem solid var(--gold);
  opacity: 0.7;
}

/* ============================= LAYOUT ============================= */

.layout {
  max-width: 82.5rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem)
    var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ============================= HERO ============================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-gold);
  font-weight: 700;
}

.eyebrow__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0.625rem var(--emerald);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--txt);
}

.hero__title-accent {
  background: linear-gradient(
    120deg,
    var(--ink-gold),
    var(--gold) 45%,
    var(--ink-violet)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .hero__title-accent {
  background: linear-gradient(
    120deg,
    var(--gold-light),
    var(--gold) 45%,
    var(--violet-glow)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  color: var(--txt-3);
  font-size: var(--text-md);
  max-width: 40ch;
  line-height: var(--lh-relaxed);
}

.hero__meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.countdown-card,
.jackpot-card {
  background: var(--glass);
  border: 0.0625rem solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  min-width: 10rem;
  backdrop-filter: blur(0.5rem);
  flex: 1 1 auto;
}

.countdown-card__label,
.jackpot-card__label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-3);
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.countdown-card__timer {
  font-family: "DM Mono", monospace;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink-gold);
  letter-spacing: 0.03em;
}

.jackpot-card {
  border-color: var(--glass-border-strong);
  position: relative;
  overflow: hidden;
}

.jackpot-card__value {
  display: flex;
  gap: 0.1875rem;
  font-family: "DM Mono", monospace;
  font-size: var(--text-lg);
  font-weight: 500;
  flex-wrap: wrap;
}

.jackpot-digit {
  background: var(--surface-digit);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  color: var(--digit-text);
  box-shadow: inset 0 0 0 0.0625rem rgba(245, 196, 81, 0.18);
  font-weight: 700;
}

.daily-reward {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(245, 196, 81, 0.05)
  );
  border: 0.0625rem solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-1);
}

.daily-reward__icon {
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.daily-reward__body {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  flex: 1;
  min-width: 0;
  gap: 0.125rem;
}

.daily-reward__body strong {
  font-size: var(--text-md);
  color: var(--txt);
}

.daily-reward__body span {
  color: var(--txt-3);
}

.daily-reward__pips {
  display: flex;
  gap: 0.3125rem;
}

.pip {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pip-bg);
}

.pip--done {
  background: var(--gold);
  box-shadow: 0 0 0.375rem var(--gold);
}

/* ============================= WHEEL ============================= */

.hero__wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.wheel-stage {
  position: relative;
  width: min(27.5rem, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.wheel-rim-glow {
  position: absolute;
  inset: -1.125rem;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--gold-light),
    var(--violet-glow),
    var(--gold),
    var(--violet-glow),
    var(--gold-light)
  );
  filter: blur(1.75rem);
  opacity: 0.45;
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

#wheelCanvas {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 0.5rem #14101f,
    0 0 0 0.625rem rgba(245, 196, 81, 0.4),
    var(--shadow-deep);
  cursor: pointer;
  z-index: 2;
  transition: box-shadow 0.3s var(--ease-out-5);
}

#wheelCanvas:hover {
  box-shadow:
    0 0 0 0.5rem #14101f,
    0 0 0 0.75rem rgba(245, 196, 81, 0.5),
    var(--shadow-deep);
}

.wheel-pointer {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  filter: drop-shadow(0 0.5rem 0.75rem rgba(0, 0, 0, 0.5));
}

.hub-btn {
  position: absolute;
  z-index: 6;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #2c2340, #140f22 70%);
  box-shadow:
    0 0 0 0.1875rem var(--gold),
    0 0 1.75rem rgba(245, 196, 81, 0.4),
    inset 0 0.125rem 0.375rem rgba(255, 255, 255, 0.12),
    inset 0 -0.375rem 0.625rem rgba(0, 0, 0, 0.6);
  transition:
    transform 0.15s var(--ease-out-5),
    box-shadow 0.2s var(--ease-out-5);
}

.hub-btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 0.25rem var(--gold),
    0 0 2.25rem rgba(245, 196, 81, 0.5),
    inset 0 0.125rem 0.375rem rgba(255, 255, 255, 0.15);
}

.hub-btn:active {
  transform: scale(0.94);
}

.hub-btn__label {
  font-weight: 800;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffe8a3, #f5c451);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-btn__ring {
  position: absolute;
  inset: 0.375rem;
  border-radius: 50%;
  border: 0.0625rem solid rgba(245, 196, 81, 0.3);
}

.confetti-canvas {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  pointer-events: none;
  z-index: 8;
}

.spin-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(145deg, #ffe8a3, #b9822b);
  color: #241705;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  box-shadow: 0 0.75rem 1.75rem -0.625rem rgba(245, 196, 81, 0.45);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s var(--ease-out-5),
    box-shadow 0.18s var(--ease-out-5);
  text-decoration: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 3.4s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -60%;
  }
  40%,
  100% {
    left: 130%;
  }
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-0.1875rem) scale(1.02);
  box-shadow: 0 1.125rem 2rem -0.625rem rgba(245, 196, 81, 0.6);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.btn-ghost {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  border: 0.0625rem solid var(--glass-border-strong);
  background: transparent;
  color: var(--txt);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition:
    background 0.2s var(--ease-out-5),
    border-color 0.2s var(--ease-out-5);
}

.btn-ghost:hover {
  background: var(--glass);
  border-color: var(--ink-gold);
}

.ticket-pill {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 0.0625rem solid var(--glass-border);
  font-size: var(--text-sm);
  color: var(--txt-3);
  backdrop-filter: blur(0.25rem);
}

.ticket-pill span:first-child {
  font-size: var(--text-base);
}

#ticketCount {
  color: var(--ink-gold);
  font-weight: 700;
}

/* ============================= TRIAL STRIP ============================= */

.trial-strip {
  width: 100%;
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  background: var(--glass);
  border-radius: var(--radius-md);
  border: 0.0625rem solid var(--glass-border);
  backdrop-filter: blur(0.25rem);
}

.trial-strip__track {
  width: 100%;
  height: 0.375rem;
  border-radius: var(--radius-pill);
  background: var(--pip-bg);
  overflow: hidden;
}

.trial-strip__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--violet-glow), var(--gold));
  transition: width 0.5s var(--ease-out-5);
}

.trial-strip__text {
  font-size: var(--text-sm);
  color: var(--txt-3);
  text-align: center;
  font-weight: 500;
}

/* ============================= STATS STRIP ============================= */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  padding: var(--space-4) clamp(1rem, 3vw, 2.5rem);
  background: var(--glass);
  border: 0.0625rem solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(0.5rem);
}

.stat-block {
  text-align: center;
}

.stat-block__value {
  font-family: "DM Mono", monospace;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-gold);
}

.stat-block__label {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============================= PANELS ============================= */

.panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.panel {
  background: var(--glass);
  border: 0.0625rem solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  backdrop-filter: blur(0.5rem);
  transition:
    transform 0.25s var(--ease-out-5),
    border-color 0.25s var(--ease-out-5),
    box-shadow 0.25s var(--ease-out-5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.panel:hover {
  transform: translateY(-0.25rem);
  border-color: var(--glass-border-strong);
  box-shadow: var(--shadow-deep);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.panel__head h2 {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--txt);
}

.panel__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #062117;
  background: var(--emerald);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.panel__tag--muted {
  background: var(--pip-bg);
  color: var(--txt-3);
}

.panel__hint {
  font-size: var(--text-sm);
  color: var(--txt-3);
  margin-top: var(--space-2);
  text-align: center;
  font-weight: 450;
}

.winners-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.winners-list li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  padding: 0.25rem 0;
  border-bottom: 0.0625rem solid var(--hairline-soft);
}

.winners-list li:last-child {
  border-bottom: none;
}

.winner-avatar {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  background: linear-gradient(
    135deg,
    var(--violet-mid),
    var(--violet-deep)
  );
  border: 0.0625rem solid var(--glass-border-strong);
  flex-shrink: 0;
}

.winner-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.winner-info strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--txt);
}

.winner-info span {
  font-size: var(--text-xs);
  color: var(--txt-3);
}

.winner-amount {
  color: var(--ink-gold);
  font-family: "DM Mono", monospace;
  font-size: var(--text-sm);
  font-weight: 700;
}

.missions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.mission {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mission__check {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 0.09375rem solid var(--glass-border-strong);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  color: var(--bg);
  flex-shrink: 0;
  font-weight: 700;
}

.mission--done .mission__check {
  background: var(--emerald);
  border-color: var(--emerald);
}

.mission__body {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  color: var(--txt);
  gap: 0.0625rem;
}

.mission__body span {
  font-size: var(--text-xs);
  color: var(--txt-3);
}

.mission--done .mission__body strong {
  color: var(--txt-3);
  text-decoration: line-through;
  text-decoration-color: var(--strike-color);
}

.panel--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.panel--split__cell:first-child {
  border-right: 0.0625rem solid var(--hairline);
  padding-right: var(--space-2);
}

.panel--split__cell {
  display: flex;
  flex-direction: column;
}

.lucky-number {
  display: grid;
  place-items: center;
  padding: var(--space-1) 0;
  flex: 1;
}

#luckyNumber {
  font-family: "DM Mono", monospace;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-gold);
}

html[data-theme="dark"] #luckyNumber {
  text-shadow: 0 0 1.75rem rgba(245, 196, 81, 0.25);
}

.bonus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--txt-3);
  flex: 1;
  justify-content: center;
}

.bonus-list li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.history-table th {
  text-align: left;
  color: var(--txt-3);
  font-weight: 600;
  padding-bottom: var(--space-1);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-table td {
  padding: 0.375rem 0;
  border-top: 0.0625rem solid var(--hairline-soft);
  color: var(--txt);
}

.history-table tr:first-child td {
  border-top: none;
}

.history-table tr td:last-child {
  text-align: right;
}

/* ============================= MODAL ============================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  -webkit-backdrop-filter: blur(0.5rem) saturate(1.1);
  backdrop-filter: blur(0.5rem) saturate(1.1);
  display: grid;
  place-items: center;
  padding: var(--space-2);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out-5),
    background 0.35s var(--ease-out-5);
}

/* Solid background fallback for mobile browsers that misrender backdrop-filter with position:fixed (especially iOS Safari) */
@supports not (( -webkit-backdrop-filter: blur(0.5rem) ) or ( backdrop-filter: blur(0.5rem) )) {
  .modal-overlay {
    background: rgba(20, 12, 40, 0.85);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(24rem, 88vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6) var(--space-4) var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(
    165deg,
    var(--modal-grad-1),
    var(--modal-grad-2)
  );
  border: 0.0625rem solid var(--glass-border-strong);
  box-shadow: var(--shadow-deep);
  transform: scale(0.9) translateY(1.25rem);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition:
    transform 0.4s var(--ease-out-5),
    background 0.35s var(--ease-out-5);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 16.25rem;
  height: 16.25rem;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(245, 196, 81, 0.3),
    transparent 65%
  );
  filter: blur(0.625rem);
  pointer-events: none;
}

.modal-card__icon {
  font-size: clamp(2.75rem, 8vw, 3.6rem);
  margin-bottom: var(--space-1);
  filter: drop-shadow(0 0.625rem 1rem rgba(245, 196, 81, 0.3));
  animation: pop-in 0.5s var(--ease-out-5);
  position: relative;
  z-index: 2;
}

@keyframes pop-in {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.modal-card__eyebrow {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-gold);
  font-weight: 700;
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 2;
}

.modal-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--txt);
  line-height: var(--lh-snug);
  position: relative;
  z-index: 2;
  padding: 0 var(--space-1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.modal-card__amount {
  font-family: "DM Mono", monospace;
  font-size: var(--text-xl);
  color: var(--ink-emerald);
  margin-bottom: var(--space-5);
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.modal-card__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Auth gate specific styles */
.auth-card {
  text-align: center;
}

.auth-card__lede {
  font-size: var(--text-md);
  color: var(--txt-3);
  margin: var(--space-1) 0 var(--space-5);
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 2;
  padding: 0 var(--space-1);
}

.auth-card__lede strong {
  color: var(--ink-gold);
  font-family: "DM Mono", monospace;
}

.modal-card__actions--stack {
  flex-direction: column;
  width: 100%;
}

.modal-card__actions--stack .btn-primary,
.modal-card__actions--stack .btn-ghost {
  width: 100%;
  justify-content: center;
}

.btn-text {
  background: none;
  border: none;
  color: var(--txt-3);
  font-size: var(--text-sm);
  cursor: pointer;
  padding: var(--space-1);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition:
    color 0.2s var(--ease-out-5),
    text-decoration-color 0.2s var(--ease-out-5);
  font-weight: 500;
}

.btn-text:hover {
  color: var(--ink-gold);
  text-decoration-color: currentColor;
}

/* ============================= SPARKLES ============================= */

.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
}

.sparkle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 0.5rem 0.125rem var(--gold);
  animation: sparkle-pop 0.9s ease-out forwards;
}

@keyframes sparkle-pop {
  0% {
    transform: scale(0) translateY(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(-3.75rem);
    opacity: 0;
  }
}

/* ============================= FOOTER ============================= */

.footer {
  background: linear-gradient(
    135deg,
    #0a0f1a 0%,
    #141b2b 50%,
    #1a2335 100%
  );
  color: rgba(255, 255, 255, 0.6);
  padding: clamp(50px, 6vw, 70px) 0 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(99, 102, 241, 0.06) 0%,
    rgba(139, 92, 246, 0.04) 30%,
    transparent 60%
  );
  animation: footerGlow 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes footerGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5%, 5%) scale(1.2);
  }
}

.footer .container {
  position: relative;
  z-index: 1;
}

.ft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 700px;
}

.ft-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ft-logo img {
  height: 30px;
  width: auto;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

.ft-logo:hover img {
  filter: brightness(1.3);
}

.ft-logo-name {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
}

.ft-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 600px;
}

.ft-desc strong {
  color: rgba(255, 255, 255, 0.7);
}

.ft-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 6px;
}

.ft-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}

.ft-contact:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.ft-contact a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.ft-contact a:hover {
  color: #c7d2fe;
}

.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.ft-copy a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ft-copy a:hover {
  color: #93c5fd;
}

/* ============================= TOASTS ============================= */

.toast-stack {
  position: fixed;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 200;
  width: min(24rem, 90vw);
  align-items: center;
}

.toast {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--modal-grad-1);
  border: 0.0625rem solid var(--glass-border-strong);
  box-shadow: var(--shadow-deep);
  font-size: var(--text-sm);
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  animation: toast-in 0.35s var(--ease-out-5);
  backdrop-filter: blur(0.5rem);
}

.toast--success {
  border-color: rgba(46, 217, 160, 0.55);
}

.toast--error {
  border-color: rgba(244, 91, 141, 0.55);
}

.toast.is-leaving {
  animation: toast-out 0.3s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.96);
  }
}

/* ============================= RIPPLE ============================= */

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet and smaller (≤48em / 768px) */
@media (max-width: 48em) {
  .modal-card {
    width: min(22rem, 92vw);
    padding: var(--space-5) var(--space-3) var(--space-3);
    max-height: 85vh;
  }
  
  .modal-card__title {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }
  
  .modal-card__amount {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: var(--space-4);
  }
  
  .modal-card__actions {
    gap: var(--space-1);
  }
  
  .modal-card__icon {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }
}

/* ≤67.5em / 1080px: tablet landscape */
@media (max-width: 67.5em) {
  .panels {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-3);
  }
}

/* ≤55em / 880px: large mobile / small tablet */
@media (max-width: 55em) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .hero__intro {
    order: 2;
    text-align: center;
    align-items: center;
  }
  .hero__wheel {
    order: 1;
  }
  .hero__meta,
  .daily-reward {
    justify-content: center;
  }
  .hero__subtitle {
    margin-inline: auto;
  }
  .navbar__wallet {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .trial-strip {
    max-width: 100%;
  }
  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .modal-card {
    width: min(20rem, 90vw);
    padding: var(--space-4) var(--space-2) var(--space-3);
  }
  
  .modal-card__glow {
    width: 14rem;
    height: 14rem;
    top: -35%;
  }
}

/* ≤37.5em / 600px: mobile */
@media (max-width: 37.5em) {
  .panels {
    grid-template-columns: 1fr;
  }
  .panel--split {
    grid-template-columns: 1fr;
  }
  .panel--split__cell:first-child {
    border-right: none;
    border-bottom: 0.0625rem solid var(--hairline);
    padding-right: 0;
    padding-bottom: var(--space-2);
  }
  .wallet-chip__label {
    display: none;
  }
  .stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    padding: var(--space-3);
  }
  .spin-controls {
    flex-direction: column;
    width: 100%;
  }
  .spin-controls .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .ticket-pill {
    width: 100%;
    justify-content: center;
  }
  .ft-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .ft-bottom {
    justify-content: center;
    text-align: center;
  }
  .layout {
    gap: var(--space-6);
  }
  
  /* Mobile modal styles */
  .modal-overlay {
    padding: 0.75rem;
    overflow-y: auto;
    align-content: center;
  }
  
  .modal-card {
    width: min(20rem, 95vw);
    padding: var(--space-4) var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    max-height: 80vh;
    margin: auto;
  }
  
  .modal-card__glow {
    width: 12rem;
    height: 12rem;
    top: -30%;
  }
  
  .modal-card__icon {
    font-size: clamp(2rem, 7vw, 2.75rem);
    margin-bottom: 0.5rem;
  }
  
  .modal-card__eyebrow {
    font-size: var(--text-xs);
  }
  
  .modal-card__title {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    margin-bottom: var(--space-2);
  }
  
  .modal-card__amount {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    margin-bottom: var(--space-3);
  }
  
  .modal-card__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .modal-card__actions .btn-primary,
  .modal-card__actions .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-sm);
  }
  
  .auth-card__lede {
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
  }
  
  .toast-stack {
    width: 95vw;
    bottom: var(--space-2);
  }
}

/* Very small phones (≤23em / 368px) */
@media (max-width: 23em) {
  .modal-card {
    width: 98vw;
    padding: var(--space-3) var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    max-height: 75vh;
  }
  
  .modal-card__glow {
    width: 10rem;
    height: 10rem;
    top: -25%;
  }
  
  .modal-card__icon {
    font-size: 1.75rem;
  }
  
  .modal-card__title {
    font-size: 1rem;
    margin-bottom: var(--space-1);
  }
  
  .modal-card__amount {
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
  }
  
  .modal-card__actions .btn-primary,
  .modal-card__actions .btn-ghost {
    padding: 0.625rem var(--space-1);
    font-size: 0.8rem;
  }
  
  .modal-card__eyebrow {
    font-size: 0.65rem;
  }
  
  .auth-card__lede {
    font-size: 0.8rem;
  }
  
  .btn-text {
    font-size: 0.75rem;
  }
}

/* Landscape mode on mobile */
@media (max-height: 30em) and (orientation: landscape) {
  .modal-card {
    max-height: 95vh;
    padding: var(--space-3) var(--space-2);
  }
  
  .modal-card__glow {
    width: 8rem;
    height: 8rem;
    top: -40%;
  }
  
  .modal-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }
  
  .modal-card__title {
    font-size: 0.95rem;
    margin-bottom: var(--space-1);
  }
  
  .modal-card__amount {
    font-size: 0.9rem;
    margin-bottom: var(--space-2);
  }
}
