:root {
  --radius: 1.25rem;
  --background: #ffffff;
  --foreground: #282b33;
  --card: #ffffff;
  --card-foreground: #282b33;
  --secondary: #f7f7f7;
  --muted-foreground: #808080;
  --border: #ececec;
  --shadow-soft: 0 10px 28px -10px rgba(40, 43, 51, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-z-10 { z-index: -10; }
.z-20 { z-index: 20; }

.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }

.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

.bg-white { background-color: #ffffff; }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary\/60 { background-color: rgba(247, 247, 247, 0.6); }

.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }

.sticky { position: sticky; }
.top-0 { top: 0; }
.backdrop-blur { backdrop-filter: blur(8px); }

/* Custom Styles */
.copa-card {
  position: relative;
  border-radius: 24px;
  background: #ffffff;
  padding: 2rem 1.75rem;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 12px 32px -16px rgba(0,0,0,0.18),
    0 30px 60px -30px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.05);
}

.copa-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #00A859, #FFCC29 30%, #E94E1B 55%, #C8102E 75%, #1F4E9D 100%);
  pointer-events: none;
  z-index: 1;
}

.copa-pattern-light {
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0,168,89,0.55) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 28%, rgba(255,204,41,0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 28% 78%, rgba(200,16,46,0.5) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 82%, rgba(31,78,157,0.5) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 50%, rgba(233,78,27,0.5) 0 4px, transparent 5px);
  background-size: 320px 320px;
  background-repeat: repeat;
  opacity: 0.06;
}

.copa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 50%, #0a0a0a 100%);
  background-size: 200% 200%;
  color: #fff;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 28px -10px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-position 0.6s ease;
}

.copa-cta:hover {
  background-position: 100% 50%;
  box-shadow:
    0 18px 38px -10px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.copa-cta:active { transform: translateY(1px); scale: 0.97; }

.copa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0a;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.1);
}

.quiz-option {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
}

.quiz-option:hover {
  border-color: rgba(40, 43, 51, 0.4);
  background-color: var(--secondary);
}

.quiz-option.selected {
  border-color: var(--foreground);
  background-color: var(--foreground);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.progress-bar-bg {
  height: 6px;
  background: var(--secondary);
  border-radius: 999px;
  width: 100%;
  margin-top: 0.75rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--foreground);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease forwards;
}

.hidden { display: none !important; }

/* Flags */
.flag-base {
  height: 1.5rem;
  width: 2rem;
  border-radius: 0.125rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}

.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }
