/* Base Styles & Typography */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  /* Rarity Palette */
  --rarity-common: #4b69ff;    /* Tier 0 - Common (Blue) */
  --rarity-rare: #8847ff;      /* Tier 1 - Rare (Purple) */
  --rarity-epic: #d32ce6;      /* Tier 2 - Epic (Magenta) */
  --rarity-legendary: #eb4b4b; /* Tier 3 - Legendary (Red) */
  --rarity-ancient: #ffd700;   /* Tier 4 - Ancient / Mythical (Gold) */
  
  --step-width: 254px;
  --card-width: 240px;
  --card-height: 290px;
}

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

body {
  font-family: var(--font-main);
  background-color: #0e1115;
  color: #e5e7eb;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

/* Header */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform 0.2s;
}

.brand:hover .brand-icon {
  transform: rotate(-8deg) scale(1.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  transition: all 0.2s;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Theme Switcher Bar */
.theme-selector-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.theme-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  transition: all 0.2s;
}

.theme-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Main Container */
.main-content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  flex: 1;
  width: 100%;
}

/* Hero Title Section */
.hero-section {
  text-align: center;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 15px;
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto 16px;
}

.spin-stats {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
}

.spin-stats strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .site-header {
    padding: 0 16px;
    height: 64px;
  }
  .theme-tab-btn span {
    display: none;
  }
  .main-content {
    padding: 20px 12px 40px;
  }
}
