:root {
  --background: 222 42% 5%;
  --foreground: 42 48% 92%;
  --primary: 43 96% 56%;
  --primary-foreground: 222 42% 6%;
  --secondary: 36 38% 18%;
  --secondary-foreground: 43 96% 88%;
  --muted: 223 22% 15%;
  --muted-foreground: 42 18% 68%;
  --destructive: 0 78% 58%;
  --destructive-foreground: 0 0% 100%;
  --border: 43 34% 22%;
  --card: 224 34% 9%;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 26px 80px rgba(245, 180, 35, 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

.dark {
  --background: 222 42% 5%;
  --foreground: 42 48% 92%;
  --primary: 43 96% 56%;
  --secondary: 36 38% 18%;
  --muted: 223 22% 15%;
  --destructive: 0 78% 58%;
  --border: 43 34% 22%;
  --card: 224 34% 9%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: hsl(var(--foreground));
  background:
    radial-gradient(circle at top left, rgba(245, 180, 35, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(255, 215, 92, 0.08), transparent 28rem),
    hsl(var(--background));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
input, select { font-size: max(16px, 1rem); }

.gold-glow { box-shadow: 0 0 40px rgba(245, 180, 35, 0.20); }
.glass {
  background: linear-gradient(145deg, rgba(18, 23, 38, 0.88), rgba(8, 10, 18, 0.76));
  border: 1px solid hsl(var(--border));
  backdrop-filter: blur(18px);
}
.shine {
  position: relative;
  overflow: hidden;
}
.shine::after {
  content: "";
  position: absolute;
  inset: -80% auto auto -40%;
  width: 35%;
  height: 260%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: rotate(25deg);
  animation: shine 4.8s infinite;
}
@keyframes shine {
  0%, 55% { left: -45%; }
  100% { left: 125%; }
}
@keyframes floatUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseCoin {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(245,180,35,0); }
  50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(245,180,35,0.24); }
}
.animate-float-up { animation: floatUp 700ms ease both; }
.coin-pulse { animation: pulseCoin 2.8s ease-in-out infinite; }

.safe-bottom { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: calc(1rem + env(safe-area-inset-top)); }