:root {
  /* Luxora palette — gold crown + royal purple gem */
  --bg-deep: #05020c;
  --bg-felt: #0c0618;
  --bg-panel: #140a24;
  --bg-panel-2: #1a0f2e;
  --purple: #6b2fb5;
  --purple-deep: #3a1468;
  --purple-glow: rgba(122, 58, 200, 0.35);
  --accent: #d4af37;
  --accent-bright: #f0d060;
  --accent-dim: #9a7a28;
  --danger: #d46a5c;
  --success: #5ecf9a;
  --text: #f7f1e4;
  /* WCAG AA on dark backgrounds (~#0c0618): ≥4.5:1 for body text */
  --text-muted: #c9bdd8;
  --border: rgba(212, 175, 55, 0.38);
  --border-purple: rgba(122, 58, 200, 0.4);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 28px rgba(240, 208, 96, 0.22);
  --glow-purple: 0 0 40px rgba(107, 47, 181, 0.35);
  --radius: 14px;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-ui: "Outfit", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --rim-w: 2px;
  --rim-duration: 2.6s;
  --focus-ring: #f0d060;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes borderAngleSpin {
  to {
    --border-angle: 360deg;
  }
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(107, 47, 181, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(212, 175, 55, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 35% at 10% 70%, rgba(58, 20, 104, 0.35), transparent 55%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-felt) 48%, #080414 100%);
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 720px) {
  :root {
    --header-h: 172px;
  }

  body {
    background-attachment: scroll;
  }
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

button,
input {
  font-family: inherit;
}

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

/* Skip link — WCAG 2.1 keyboard access */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: #f0d060;
  color: #1a1005;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Touch-friendly targets */
.btn,
.chip-btn,
.mode-btn,
.spin-btn,
.nav a,
.header-daily__claim,
.reviews-nav__btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  .chip-btn,
  .mode-btn,
  .nav a,
  .header-daily__claim {
    min-height: 44px;
    min-width: 44px;
  }

  .spin-btn {
    min-height: 52px;
  }
}

/* Reduce motion for accessibility */
@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;
  }
}
