/* ==============================
   SEDA College — World Cup Quiz 2026
   Premium Landing Page Styles
   ============================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* SEDA College Brand Colors (Official Brand Guide) */
  --seda-navy: #2B4F60;
  --seda-navy-dark: #1A3545;
  --seda-navy-light: #3A6A80;
  --seda-orange: #D4892A;
  --seda-orange-dark: #B5721E;
  --seda-orange-light: #EAA04A;
  --seda-gold: #F4C542;
  --seda-gold-dark: #D4A017;

  /* World Cup 2026 Accents */
  --wc-red: #C0392B;
  --wc-white: #FFFFFF;

  /* Neutrals */
  --bg-dark: #0C1620;
  --bg-card: #111E2B;
  --bg-card-hover: #162636;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--seda-navy) 0%, var(--seda-orange) 100%);
  --gradient-seda: linear-gradient(135deg, var(--seda-navy) 0%, var(--seda-navy-light) 100%);
  --gradient-orange: linear-gradient(135deg, var(--seda-orange) 0%, var(--seda-orange-light) 100%);
  --gradient-gold: linear-gradient(135deg, var(--seda-gold) 0%, var(--seda-gold-dark) 100%);
  --gradient-hero: linear-gradient(180deg, var(--bg-dark) 0%, #0e1e2d 50%, #0c1620 100%);

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
}

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

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

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

/* --- Particles Canvas --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* --- Utility Classes --- */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(212, 137, 42, 0.12);
  border: 1px solid rgba(212, 137, 42, 0.3);
  color: var(--seda-orange-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--seda-orange);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(212, 137, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--seda-orange-dark);
  box-shadow: 0 8px 30px rgba(212, 137, 42, 0.5);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--seda-orange);
  color: var(--seda-orange-light);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 16px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 28, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo-img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo-img {
  height: 36px;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.footer-logo-img:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text-primary);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(212, 137, 42, 0.5);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(10, 15, 28, 0.98);
  backdrop-filter: blur(20px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 24px 80px;
  gap: 60px;
}

.hero-bg-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-circle-1 {
  width: 600px;
  height: 600px;
  background: var(--seda-navy);
  top: -200px;
  right: -100px;
  animation: floatSlow 20s ease-in-out infinite;
}

.hero-circle-2 {
  width: 400px;
  height: 400px;
  background: var(--seda-orange);
  bottom: -100px;
  left: -50px;
  animation: floatSlow 15s ease-in-out infinite reverse;
}

.hero-circle-3 {
  width: 300px;
  height: 300px;
  background: var(--seda-gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatSlow 25s ease-in-out infinite;
}

.stadium-lines {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(43, 79, 96, 0.12) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255, 255, 255, 0.02) 80px, rgba(255, 255, 255, 0.02) 81px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  flex: 1;
}

/* Hero Logo Showcase */
.hero-logo-showcase {
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.hero-logo-img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(212, 137, 42, 0.1);
  border: 1px solid rgba(212, 137, 42, 0.3);
  color: var(--seda-orange-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}

.badge-icon {
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
  display: block;
  color: var(--text-primary);
}

.title-highlight {
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.15em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Hero Visual (Ball + Flags) */
.hero-visual {
  position: relative;
  z-index: 2;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}

.floating-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatBall 4s ease-in-out infinite;
}

.ball-inner {
  width: 180px;
  height: 180px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.ball-svg {
  width: 100%;
  height: 100%;
}

.ball-shadow {
  width: 120px;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3), transparent);
  margin: 20px auto 0;
  border-radius: 50%;
  animation: shadowPulse 4s ease-in-out infinite;
}

.floating-flags {
  position: absolute;
  inset: 0;
}

.flag {
  position: absolute;
  font-size: 2rem;
  animation: floatFlag 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.flag-1 {
  top: 5%;
  left: 20%;
  animation-delay: 0s;
}

.flag-2 {
  top: 10%;
  right: 15%;
  animation-delay: 0.8s;
}

.flag-3 {
  top: 35%;
  right: 0;
  animation-delay: 1.6s;
}

.flag-4 {
  bottom: 30%;
  right: 10%;
  animation-delay: 2.4s;
}

.flag-5 {
  bottom: 10%;
  right: 30%;
  animation-delay: 3.2s;
}

.flag-6 {
  bottom: 5%;
  left: 25%;
  animation-delay: 4s;
}

.flag-7 {
  top: 40%;
  left: 0;
  animation-delay: 4.8s;
}

.flag-8 {
  top: 15%;
  left: 5%;
  animation-delay: 5.6s;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScroll 2s ease-in-out infinite;
}

/* --- Why English Section --- */
.why-english {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(212, 137, 42, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Quiz Section --- */
.quiz-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(43, 79, 96, 0.12) 0%, transparent 60%);
}

.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 48px;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.quiz-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Quiz Start */
.quiz-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.quiz-start-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

.trophy-icon {
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: trophyBounce 2s ease-in-out infinite;
}

.ring {
  position: absolute;
  border: 2px solid rgba(212, 137, 42, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.ring-2 {
  width: 130px;
  height: 130px;
  animation-delay: 0.5s;
}

.ring-3 {
  width: 160px;
  height: 160px;
  animation-delay: 1s;
}

/* --- Registration Form --- */
.quiz-register {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.register-icon {
  font-size: 3rem;
  margin-bottom: 4px;
}

.quiz-register h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.quiz-register p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.register-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--seda-orange);
  background: rgba(212, 137, 42, 0.05);
  box-shadow: 0 0 0 3px rgba(212, 137, 42, 0.15);
}

.form-group input.input-error {
  border-color: var(--wc-red);
  background: rgba(192, 57, 43, 0.05);
}

.form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--wc-red);
  margin-top: 4px;
  min-height: 18px;
}

.register-submit-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.register-back-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* --- Blocked Screen --- */
.quiz-blocked {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: fadeIn 0.4s ease;
}

.blocked-icon {
  font-size: 3.5rem;
  margin-bottom: 4px;
}

.quiz-blocked h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--seda-orange-light);
}

.blocked-message {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.6;
}

.blocked-score-summary {
  display: flex;
  gap: 24px;
  margin: 16px 0;
}

.blocked-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.blocked-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.blocked-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.blocked-total {
  color: var(--seda-orange);
}

.blocked-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown-timer {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--seda-orange-light);
  font-family: 'Outfit', sans-serif;
}

/* --- Accumulated Score (Results) --- */
.accumulated-score-section {
  margin: 24px 0;
}

.accumulated-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(43, 79, 96, 0.2) 0%, rgba(212, 137, 42, 0.1) 100%);
  border: 1px solid rgba(212, 137, 42, 0.25);
  border-radius: 16px;
}

.accumulated-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.accumulated-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accumulated-stages {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.next-quiz-info {
  font-size: 0.9rem;
  color: var(--seda-orange-light);
  margin-top: 12px;
  font-weight: 600;
}

.quiz-start h3 {
  font-size: 2rem;
  font-weight: 800;
}

.quiz-start p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.7;
}

.difficulty-badges {
  display: flex;
  gap: 12px;
}

.diff-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.diff-badge.easy {
  background: rgba(39, 174, 96, 0.15);
  color: #27AE60;
}

.diff-badge.medium {
  background: rgba(244, 197, 66, 0.15);
  color: #F4C542;
}

.diff-badge.hard {
  background: rgba(192, 57, 43, 0.15);
  color: #E74C3C;
}

/* Stage Selector (Public) */
.stage-selector-public {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.stage-btn-pub {
  display: flex;
  flex: 1 1 0;
  min-width: 120px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: 'Outfit', sans-serif;
}

.stage-btn-pub .stage-num {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stage-btn-pub .stage-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stage-btn-pub.available {
  border-color: rgba(212, 137, 42, 0.4);
  color: var(--seda-orange-light);
  background: rgba(212, 137, 42, 0.08);
  cursor: pointer;
}

.stage-btn-pub.available:hover {
  border-color: var(--seda-orange);
  background: rgba(212, 137, 42, 0.15);
  transform: translateY(-2px);
}

.stage-btn-pub.available.active {
  border-color: var(--seda-orange);
  background: rgba(212, 137, 42, 0.2);
  box-shadow: 0 0 20px rgba(212, 137, 42, 0.2);
}

.stage-btn-pub.completed {
  border-color: rgba(39, 174, 96, 0.4);
  color: #27AE60;
  background: rgba(39, 174, 96, 0.08);
  cursor: pointer;
}

.stage-btn-pub.completed:hover {
  border-color: #27AE60;
  background: rgba(39, 174, 96, 0.15);
}

.stage-btn-pub.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.stage-info-public {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.next-quiz-info {
  font-size: 0.95rem;
  color: var(--seda-orange-light);
  font-weight: 600;
}

/* Accumulated Score */
.accumulated-score-section {
  margin: 20px 0;
}

.accumulated-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.accumulated-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.accumulated-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accumulated-stages {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .stage-selector-public {
    gap: 8px;
  }

  .stage-btn-pub {
    padding: 10px 12px;
    flex: 1 1 calc(33.333% - 8px);
    min-width: 90px;
  }

  .stage-btn-pub .stage-num {
    font-size: 1.8rem;
  }

  .stage-btn-pub .stage-label {
    font-size: 0.6rem;
  }
}

/* Quiz Active */
.quiz-active {
  animation: fadeIn 0.4s ease;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.quiz-progress {
  flex: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 10%;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quiz-timer {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.timer-fill {
  fill: none;
  stroke: var(--seda-orange);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.timer-fill.warning {
  stroke: var(--seda-gold);
}

.timer-fill.danger {
  stroke: var(--wc-red);
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.quiz-score {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.quiz-score span:last-child {
  color: var(--seda-gold);
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

.question-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 16px;
  background: rgba(39, 174, 96, 0.15);
  color: #27AE60;
}

.question-badge.medium {
  background: rgba(244, 197, 66, 0.15);
  color: #F4C542;
}

.question-badge.hard {
  background: rgba(192, 57, 43, 0.15);
  color: #E74C3C;
}

.quiz-question {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  padding: 18px 24px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quiz-option:hover:not(.disabled) {
  border-color: var(--seda-orange-light);
  background: rgba(212, 137, 42, 0.08);
  transform: translateX(4px);
}

.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.quiz-option:hover:not(.disabled) .option-letter {
  background: var(--seda-navy);
  color: white;
}

.quiz-option.correct {
  border-color: #27AE60 !important;
  background: rgba(39, 174, 96, 0.15) !important;
}

.quiz-option.correct .option-letter {
  background: #27AE60 !important;
  color: white !important;
}

.quiz-option.incorrect {
  border-color: var(--wc-red) !important;
  background: rgba(192, 57, 43, 0.15) !important;
}

.quiz-option.incorrect .option-letter {
  background: var(--wc-red) !important;
  color: white !important;
}

.quiz-option.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.quiz-option.correct.disabled,
.quiz-option.incorrect.disabled {
  opacity: 1;
}

/* Quiz Feedback */
.quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s;
}

.feedback-icon {
  font-size: 1.5rem;
}

.feedback-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Quiz Results */
.quiz-results {
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.results-visual {
  position: relative;
  margin-bottom: 20px;
}

.result-emoji {
  font-size: 5rem;
  animation: trophyBounce 2s ease-in-out infinite;
}

.results-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.results-score {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.score-fill {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1.5s ease;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.score-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-total {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.results-message {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.level-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.level-badge.beginner {
  background: rgba(192, 57, 43, 0.15);
  color: #E74C3C;
}

.level-badge.intermediate {
  background: rgba(244, 197, 66, 0.15);
  color: #F4C542;
}

.level-badge.advanced {
  background: rgba(39, 174, 96, 0.15);
  color: #27AE60;
}

.level-badge.master {
  background: rgba(43, 79, 96, 0.2);
  color: var(--seda-navy-light);
}

.level-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.results-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- World Cup Info --- */
.wc-info {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.info-card:hover::after {
  transform: scaleX(1);
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 137, 42, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-number {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.info-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Ranking / Leaderboard --- */
.ranking-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.leaderboard-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table thead {
  background: rgba(255, 255, 255, 0.04);
}

.lb-table th {
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: left;
}

.lb-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lb-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lb-pos {
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  width: 50px;
}

.lb-name {
  font-weight: 600;
  color: var(--text-primary);
}

.lb-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--seda-gold);
}

.lb-time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lb-stages {
  font-size: 0.85rem;
}

/* Top 3 highlights */
.lb-top1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), transparent) !important;
}

.lb-top1 .lb-name {
  color: #FFD700;
}

.lb-top2 {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06), transparent) !important;
}

.lb-top2 .lb-name {
  color: #C0C0C0;
}

.lb-top3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06), transparent) !important;
}

.lb-top3 .lb-name {
  color: #CD7F32;
}

/* Empty state */
.lb-empty {
  text-align: center;
  padding: 48px 24px;
}

.lb-empty span {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.lb-empty p {
  font-size: 1rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {

  .lb-table th,
  .lb-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .lb-city {
    display: none;
  }

  .lb-table th:nth-child(3) {
    display: none;
  }

  .lb-pos {
    width: 36px;
    font-size: 0.95rem;
  }
}

/* --- Rules Section --- */
.rules-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, rgba(27, 94, 140, 0.06) 0%, transparent 60%);
}

.rules-container {
  max-width: 800px;
  margin: 0 auto;
}

.rules-highlight {
  text-align: center;
  padding: 36px 32px !important;
  border: 2px solid rgba(212, 137, 42, 0.3) !important;
  background: linear-gradient(135deg, rgba(212, 137, 42, 0.08), rgba(244, 197, 66, 0.04)) !important;
  margin-bottom: 20px;
}

.rules-highlight h3 {
  font-size: 1.5rem !important;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.rules-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 28px 24px;
  transition: var(--transition-smooth);
}

.rules-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.rules-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.rules-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.rules-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rules-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 24px;
  border-radius: 14px;
  background: rgba(212, 137, 42, 0.06);
  border: 1px solid rgba(212, 137, 42, 0.15);
}

.rules-note span {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rules-note p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 100%, rgba(212, 137, 42, 0.08) 0%, transparent 60%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(212, 137, 42, 0.12);
  border: 1px solid rgba(212, 137, 42, 0.3);
  color: var(--seda-orange-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 36px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--seda-orange-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

@keyframes floatBall {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

@keyframes shadowPulse {

  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.3;
  }

  50% {
    transform: scaleX(0.7);
    opacity: 0.15;
  }
}

@keyframes floatFlag {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

@keyframes mouseScroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
}

@keyframes trophyBounce {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes ringPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0;
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100px) rotate(720deg);
    opacity: 0;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    width: 300px;
    height: 300px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid> :last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-visual {
    width: 240px;
    height: 240px;
  }

  .ball-inner {
    width: 120px;
    height: 120px;
  }

  .flag {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid> :last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  .quiz-container {
    padding: 28px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .info-number {
    font-size: 3rem;
  }

  .quiz-question {
    font-size: 1.1rem;
  }

  .quiz-option {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}