/* QuizWheel — colourful, energetic game styling */

:root {
  --qw-bg: #1a0f3c;
  --qw-bg-gradient: linear-gradient(135deg, #1a0f3c 0%, #2d1b69 50%, #1a0f3c 100%);
  --qw-card-bg: rgba(255, 255, 255, 0.08);
  --qw-card-border: rgba(255, 255, 255, 0.12);
  --qw-text: #ffffff;
  --qw-text-muted: rgba(255, 255, 255, 0.75);
  --qw-accent: #fbbf24;
  --qw-accent-2: #f472b6;
  --qw-purple: #8b5cf6;
  --qw-blue: #3b82f6;
  --qw-green: #22c55e;
  --qw-orange: #f97316;
  --qw-radius: 1.25rem;
  --qw-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --qw-glow: 0 0 20px rgba(251, 191, 36, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.qw-body {
  min-height: 100vh;
  background: var(--qw-bg-gradient);
  color: var(--qw-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: calc(100vh - 220px);
}

/* Navbar */
.qw-navbar {
  background: rgba(26, 15, 60, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--qw-card-border);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.qw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.6rem;
  text-decoration: none;
}

.qw-brand-wheel {
  font-size: 1.8rem;
  animation: spin-slow 12s linear infinite;
  display: inline-block;
}

.qw-brand-text {
  background: linear-gradient(90deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qw-brand-accent {
  background: linear-gradient(90deg, #fbbf24 0%, #f472b6 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qw-nav-link {
  color: var(--qw-text-muted) !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s, background 0.2s;
}

.qw-nav-link:hover,
.qw-nav-link:focus {
  color: var(--qw-text) !important;
  background: rgba(255, 255, 255, 0.08);
}

.qw-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.qw-toggler .navbar-toggler-icon {
  filter: invert(1);
}

.qw-btn-sm {
  background: linear-gradient(90deg, var(--qw-purple), var(--qw-blue));
  color: white;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.45rem 1.25rem;
  border: none;
  box-shadow: var(--qw-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qw-btn-sm:hover,
.qw-btn-sm:focus {
  transform: translateY(-2px);
  box-shadow: var(--qw-glow);
  color: white;
}

/* Hero */
.qw-hero {
  padding: 2rem 0 3rem;
}

.qw-hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.qw-hero-tagline {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--qw-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.qw-hero-sub {
  font-size: 1.15rem;
  color: var(--qw-text-muted);
}

.qw-date-picker {
  margin-top: 1rem;
}

.qw-date-picker label {
  color: var(--qw-text-muted);
  font-weight: 700;
}

.qw-date-input {
  width: auto;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--qw-card-border);
  color: white;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.qw-date-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--qw-accent);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

.qw-difficulty-input {
  width: auto;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--qw-card-border);
  color: white;
  border-radius: 0.75rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
}

.qw-difficulty-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--qw-accent);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

.qw-difficulty-input option {
  background: #1a0f3c;
  color: white;
}

.qw-date-note {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--qw-accent);
  font-size: 0.95rem;
}

/* Leaderboard */
.qw-leaderboard-table {
  --bs-table-bg: transparent;
  --bs-table-color: white;
  --bs-table-border-color: var(--qw-card-border);
  margin-bottom: 0;
}

.qw-leaderboard-table th {
  color: var(--qw-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.qw-leaderboard-rank {
  font-weight: 800;
  color: var(--qw-accent);
}

/* Achievements */
.qw-achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.qw-achievement-badge {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.qw-achievement-icon {
  font-size: 1.25rem;
}

/* Share section */
.qw-share-section {
  margin-top: 1.5rem;
}

.qw-share-label {
  color: var(--qw-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.qw-share-section .btn {
  margin: 0.25rem;
}

/* Stats */
.qw-stats-bar {
  max-width: 720px;
  margin: 2rem auto 0;
}

.qw-stat-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 1rem 0.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--qw-shadow);
  transition: transform 0.2s;
}

.qw-stat-card:hover {
  transform: translateY(-4px);
}

.qw-stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.qw-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qw-text-muted);
}

.qw-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.qw-progress-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.qw-progress-label {
  font-size: 0.9rem;
  color: var(--qw-text-muted);
  margin-bottom: 0.35rem;
}

.qw-progress {
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qw-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6);
  border-radius: 1rem;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wheel area */
.qw-wheel-area {
  margin-top: 2.5rem;
  text-align: center;
}

.qw-wheel-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(92vw, 520px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

#quizWheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.25);
}

.qw-pointer {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: var(--qw-accent);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  z-index: 10;
}

.qw-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(100px, 28%, 150px);
  height: clamp(100px, 28%, 150px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde047, #f97316);
  border: 6px solid #fff;
  color: #1a0f3c;
  font-weight: 900;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.55), inset 0 -6px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
  transition: transform 0.15s, box-shadow 0.15s;
  animation: pulse 2s ease-in-out infinite;
}

.qw-spin-btn:hover:not(:disabled),
.qw-spin-btn:focus:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 40px rgba(253, 224, 71, 0.7);
}

.qw-spin-btn:disabled {
  filter: grayscale(0.6);
  cursor: not-allowed;
  animation: none;
}

.qw-hero-message {
  font-size: 1.15rem;
  color: var(--qw-text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.qw-hero-cta {
  font-size: 1.1rem;
  color: var(--qw-accent);
  margin-top: 0.75rem;
}

/* Buttons */
.qw-btn-lg {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 3rem;
  padding: 0.85rem 2.25rem;
  border: none;
  box-shadow: var(--qw-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qw-btn-lg:hover,
.qw-btn-lg:focus {
  transform: translateY(-3px);
  box-shadow: var(--qw-glow);
  color: white;
}

/* Celebration panel */
.qw-celebration-panel {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 2.5rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--qw-shadow);
  backdrop-filter: blur(8px);
}

.qw-celebration-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1.5s infinite;
}

.qw-celebration-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  background: linear-gradient(90deg, #fde047, #f472b6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qw-celebration-text {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.qw-celebration-sub {
  color: var(--qw-text-muted);
}

.qw-celebration-streak {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qw-accent);
  margin: 1rem 0;
}

.qw-countdown {
  font-size: 0.95rem;
  color: var(--qw-text-muted);
}

/* How it works */
.qw-how-it-works {
  padding: 3rem 0 5rem;
}

.qw-section-title {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 2rem;
}

.qw-step-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qw-step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--qw-shadow);
}

.qw-step-number {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.qw-step-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.qw-step-card p {
  color: var(--qw-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Ad slot */
.qw-ad-slot {
  max-width: 728px;
  margin: 2rem auto;
  min-height: 90px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--qw-radius);
  color: var(--qw-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* Page sections */
.qw-page-section {
  padding: 4rem 0;
}

.qw-page-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.qw-lead {
  font-size: 1.2rem;
  color: var(--qw-text-muted);
  margin-bottom: 2rem;
}

.qw-info-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.qw-info-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.qw-info-card p {
  color: var(--qw-text-muted);
  margin: 0;
}

.qw-link {
  color: #22d3ee;
  font-weight: 700;
  text-decoration: none;
}

.qw-link:hover {
  text-decoration: underline;
}

/* Category tiles */
.qw-category-tile {
  background: var(--qw-card-bg);
  border: 2px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border-top: 4px solid var(--tile-colour);
}

.qw-category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--tile-colour);
}

.qw-category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.qw-category-name {
  font-weight: 800;
  color: white;
}

.qw-category-hero {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-top: 5px solid var(--category-colour);
  border-radius: var(--qw-radius);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--qw-shadow);
}

.qw-category-hero-icon {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

/* Quiz */
.qw-quiz-section {
  padding: 2rem 0 4rem;
}

.qw-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-left: 5px solid var(--quiz-colour);
  border-radius: var(--qw-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.qw-quiz-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.qw-quiz-icon {
  font-size: 1.5rem;
}

.qw-quiz-count {
  color: var(--qw-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.qw-difficulty-badge {
  margin-left: 0.75rem;
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--qw-accent) !important;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 1rem;
  padding: 0.35rem 0.7rem;
}

.qw-question-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 1.75rem 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}

.qw-question-text {
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 800;
  margin: 0;
}

.qw-answer-btn {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.qw-answer-btn:hover,
.qw-answer-btn:focus {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--qw-accent);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
  outline: none;
}

.qw-answer-btn.selected {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
  border-color: var(--qw-accent);
  pointer-events: none;
}

/* Results */
.qw-results-section {
  padding: 2rem 0 4rem;
}

.qw-result-pass,
.qw-result-fail {
  margin-bottom: 1.5rem;
}

.qw-result-emoji {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.qw-result-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--result-colour);
}

.qw-score-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto 2rem;
  box-shadow: var(--qw-shadow);
}

.qw-score-main {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.qw-score-sep,
.qw-score-total {
  color: var(--qw-text-muted);
}

.qw-score-percentage {
  font-size: 2rem;
  font-weight: 800;
  color: var(--qw-accent);
  margin-top: 0.5rem;
}

.qw-score-message {
  color: var(--qw-text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.qw-result-difficulty {
  color: var(--qw-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.qw-review-section {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.qw-review-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.qw-review-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.qw-review-question {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.qw-review-wrong span {
  color: #f87171;
  font-weight: 700;
}

.qw-review-correct span {
  color: #4ade80;
  font-weight: 700;
}

.qw-review-explanation {
  color: var(--qw-text-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--qw-card-border);
}

/* Sign in */
.qw-signin-card {
  background: var(--qw-card-bg);
  border: 1px solid var(--qw-card-border);
  border-radius: var(--qw-radius);
  padding: 2rem;
  box-shadow: var(--qw-shadow);
}

.qw-btn-google {
  background: white;
  color: #444;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--qw-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qw-btn-google:hover,
.qw-btn-google:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.qw-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  font-size: 1.2rem;
}

.qw-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--qw-text-muted);
  margin: 1.25rem 0;
}

.qw-divider::before,
.qw-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--qw-card-border);
}

.qw-divider span {
  padding: 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qw-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--qw-card-border);
  color: white;
}

.qw-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--qw-accent);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
}

.qw-signin-card input[type="text"],
.qw-signin-card input[type="email"],
.qw-signin-card input[type="password"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--qw-card-border);
  color: white;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
}

.qw-signin-card input[type="text"]:focus,
.qw-signin-card input[type="email"]:focus,
.qw-signin-card input[type="password"]:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--qw-accent);
  color: white;
  box-shadow: 0 0 0 0.25rem rgba(251, 191, 36, 0.25);
  outline: none;
}

.qw-signin-card .form-text {
  color: var(--qw-text-muted) !important;
}

/* Footer */
.qw-footer {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--qw-card-border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.qw-footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.qw-footer-tagline {
  color: var(--qw-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.qw-footer-copy {
  color: var(--qw-text-muted);
  font-size: 0.9rem;
}

.qw-footer-heading {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.qw-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qw-footer-links li {
  margin-bottom: 0.4rem;
}

.qw-footer-links a {
  color: var(--qw-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.qw-footer-links a:hover {
  color: white;
}

/* Animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .qw-hero {
    padding: 1.5rem 0 2rem;
  }

  .qw-stat-card {
    padding: 0.75rem 0.25rem;
  }

  .qw-stat-icon {
    font-size: 1.5rem;
  }

  .qw-stat-value {
    font-size: 1.1rem;
  }

  .qw-stat-label {
    font-size: 0.65rem;
  }

  .qw-spin-btn {
    border-width: 4px;
  }

  .qw-answer-btn {
    padding: 1rem 1.1rem;
    font-size: 1rem;
  }

  .qw-ad-slot {
    min-height: 60px;
  }
}

/* Difficulty selector form (leaderboard & home) */
.qw-difficulty-form .form-label {
  color: var(--qw-text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.qw-difficulty-form .form-select,
.qw-difficulty-form .btn {
  border-radius: 0.5rem;
}

.qw-difficulty-form .form-select {
  background-color: var(--qw-surface);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--qw-text);
}

.qw-difficulty-form .form-select:focus {
  border-color: var(--qw-accent);
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}
