/* ============================================================
   PWR — Power in the Prize
   Shared design tokens. Every page on the site imports this.
   ============================================================ */

:root {
  /* Core palette — matches the model tools (picks card, slate feed) */
  --bg: #0a0612;
  --bg-deep: #06040c;
  --panel: #0f0819;
  --card: #160e24;
  --card-hover: #1c1230;
  --card-border: #2a1a42;
  --card-border-hover: #3d2560;

  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --purple-dim: rgba(168, 85, 247, 0.15);
  --gold: #f0c14b;
  --gold-dim: rgba(240, 193, 75, 0.15);

  --text: #f2f0f8;
  --text-dim: #a89bc2;
  --text-faint: #6f6285;

  --green: #34d17c;
  --green-dim: rgba(52, 209, 124, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 8px 30px rgba(88, 28, 135, 0.15);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.25);
  --shadow-glow-gold: 0 0 40px rgba(240, 193, 75, 0.2);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(240, 193, 75, 0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

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

::selection { background: var(--purple-dim); color: var(--text); }

/* Focus states — visible keyboard navigation, not just mouse hover */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Shared button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(90deg, var(--purple-deep), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(124, 58, 237, 0.5); }

.btn-ghost {
  background: var(--card);
  color: var(--text-dim);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { border-color: var(--card-border-hover); color: var(--text); }

/* Shared card style */
.card {
  background: linear-gradient(160deg, #1a1029 0%, var(--card) 45%, #120a1c 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
