/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  background-color: #141414;
  color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  /* Reduced padding for mobile */
}

/* Typography */
.font-racing {
  font-family: 'Orbitron', monospace;
}

/* Colors */
:root {
  --racing-blue: #0018F3;
  --racing-black: #141414;
  --racing-white: #fafafa;
  --racing-gray: #817878;
  --racing-yellow: #ffd700;
  --racing-silver: #c0c0c0;
  --racing-orange: #ea580c;
}

.text-blue {
  color: var(--racing-blue);
}

.text-yellow {
  color: var(--racing-yellow);
}

.text-silver {
  color: var(--racing-silver);
}

.highlight {
  color: var(--racing-yellow);
  font-weight: 600;
}

/* Animations */
@keyframes speed-blur {
  0% {
    transform: translateX(-100px) scaleX(0.8);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

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

@keyframes pit-stop {
  0%, 100% {
    transform: translateY(0);
  }

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

@keyframes checkered-wave {
  0% {
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  }

  100% {
    background-position: 20px 0, 20px 10px, 30px -10px, 10px 0px;
  }
}

.animate-speed-blur {
  animation: speed-blur 0.8s ease-out forwards;
}

.animate-pit-stop {
  animation: pit-stop 2s ease-in-out infinite;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  /* Reduced height for mobile */
  background: url('../img/background.jpg') center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay preto com pouca opacidade */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* Para garantir que o conteúdo fique acima do overlay */
.hero>* {
  position: relative;
  z-index: 2;
}

.speed-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 4px);
  opacity: 0.2;
}

.checkered-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 96px;
  /* Reduced height for mobile */
  background-image:
    linear-gradient(45deg, transparent 25%, rgba(0, 0, 0, 0.1) 25%),
    linear-gradient(-45deg, transparent 25%, rgba(0, 0, 0, 0.1) 25%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.1) 75%, transparent 75%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 75%, transparent 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  animation: checkered-wave 1s linear infinite;
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
}

.logo-badge {
  width: 80px;
  /* Smaller for mobile */
  height: 80px;
  background: var(--racing-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pit-stop 2s ease-in-out infinite;
}

.logo-badge i {
  width: 40px;
  height: 40px;
  color: white;
}

.title-section {
  animation: speed-blur 0.8s ease-out forwards;
}

.main-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.25rem, 5vw, 3rem);
  /* Adjusted for mobile */
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}

.title-line {
  height: 3px;
  width: 100px;
  /* Slightly smaller for mobile */
  background: var(--racing-blue);
  margin: 0 auto 16px;
}

.subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1rem, 3.5vw, 2rem);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.description {
  margin: 24px 0 32px;
  animation: speed-blur 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.description p {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--racing-silver);
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  /* Adjusted for mobile */
  gap: 16px;
  max-width: 100%;
  margin: 0 auto 32px;
}

.stat-card {
  background: rgba(51, 51, 51, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 24, 243, 0.3);
  border-radius: 8px;
  padding: 16px;
  /* Reduced padding */
  animation: speed-blur 0.8s ease-out forwards;
  opacity: 0;
}

.stat-card:nth-child(1) {
  animation-delay: 0.5s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.7s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.9s;
}

.stat-card i {
  width: 28px;
  height: 28px;
  color: var(--racing-blue);
  margin: 0 auto 8px;
  display: block;
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 1.75rem;
  /* Slightly smaller */
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--racing-silver);
  text-transform: uppercase;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  animation: speed-blur 0.8s ease-out 1.1s forwards;
  opacity: 0;
}

.btn {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  /* Reduced padding */
  border-radius: 4px;
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-block;
  min-width: 200px;
  /* Adjusted for mobile */
}

.btn-primary {
  background: var(--racing-blue);
  border-color: var(--racing-blue);
  color: white;
}

.btn-primary:hover {
  background: rgba(0, 24, 243, 0.9);
  border-color: var(--racing-yellow);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border-color: var(--racing-yellow);
  color: white;
}

.btn-secondary:hover {
  background: var(--racing-yellow);
  color: var(--racing-black);
  transform: scale(1.05);
}

.racing-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  /* Slightly thinner */
  background: linear-gradient(to right, var(--racing-blue), var(--racing-yellow), var(--racing-blue));
}

/* Competition Section */
.competition {
  padding: 48px 0;
  /* Reduced padding */
  background: linear-gradient(to bottom, var(--racing-black), rgba(51, 51, 51, 0.95));
}

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

.section-icon {
  width: 48px;
  /* Smaller for mobile */
  height: 48px;
  background: var(--racing-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.section-icon i {
  width: 24px;
  height: 24px;
  color: white;
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.25rem, 5vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.section-line {
  height: 3px;
  width: 80px;
  /* Adjusted for mobile */
  background: var(--racing-yellow);
  margin: 0 auto 16px;
}

.section-description {
  font-size: 1rem;
  color: var(--racing-silver);
  max-width: 90%;
  margin: 0 auto;
}

.competition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.leaderboard-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.team-card {
  background: rgba(51, 51, 51, 0.3);
  border-left: 4px solid;
  border-radius: 8px;
  padding: 12px 16px;
  /* Reduced padding */
  margin-bottom: 12px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.team-card:hover {
  background: rgba(51, 51, 51, 0.4);
  transform: scale(1.02);
}

.team-1 {
  border-left-color: var(--racing-yellow);
}

.team-2 {
  border-left-color: var(--racing-silver);
}

.team-3 {
  border-left-color: var(--racing-orange);
}

.team-4, .team-5 {
  border-left-color: rgba(192, 192, 192, 0.5);
}

.team-card>div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.position-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 0.625rem;
  color: white;
  line-height: 1;
}

.pos-1 {
  background: var(--racing-yellow);
  color: var(--racing-black);
}

.pos-2 {
  background: var(--racing-silver);
}

.pos-3 {
  background: var(--racing-orange);
}

.pos-4, .pos-5 {
  background: var(--racing-gray);
}

.team-details h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team-details p {
  font-size: 0.75rem;
  color: var(--racing-silver);
}

.team-score {
  text-align: right;
}

.score-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 4px;
}

.score-display i {
  width: 20px;
  height: 20px;
}

.team-1 .score-display i {
  color: var(--racing-yellow);
}

.team-2 .score-display i, .team-3 .score-display i {
  color: var(--racing-silver);
}

.team-4 .score-display i, .team-5 .score-display i {
  color: var(--racing-gray);
}

.score-display span {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--racing-yellow);
}

.team-score p {
  font-size: 0.625rem;
  color: var(--racing-silver);
  text-transform: uppercase;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(20, 20, 20, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.team-1 .progress-fill {
  background: var(--racing-yellow);
}

.team-2 .progress-fill {
  background: var(--racing-silver);
}

.team-3 .progress-fill {
  background: var(--racing-orange);
}

.team-4 .progress-fill, .team-5 .progress-fill {
  background: var(--racing-gray);
}

/* Podium Section */
.podium-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  text-align: center;
}

.podium-section svg {
  display: block;
  margin: 1.5rem auto 0.5rem;
  max-width: 90vmin;
  /* Adjusted for mobile */
  width: 100%;
  height: auto;
}

/* Caminho animado do circuito */
svg .circuit-path {
  stroke-width: 1.5px;
  /* Thinner for mobile */
  stroke: steelblue;
  fill: none;
  transform-origin: center;
  transition: stroke-width 0.25s, stroke 0.25s, opacity 0.25s;
}

/* Texto da animação motivacional */
.motivation-message {
  margin-top: 1rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.25rem;
  /* Smaller for mobile */
  text-align: center;
  color: #333;
  min-height: 1.5em;
}

.motivation-message strong {
  color: var(--racing-blue);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

/* Título da seção do pódio */
.podium-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

/* Container geral do pódio */
.podium-container {
  width: 100%;
  max-width: 320px;
  /* Adjusted for mobile */
}

/* Linha dos degraus do pódio */
.podium-steps {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

/* Degrau individual do pódio */
.podium-step {
  text-align: center;
}

/* Ícone animado do pódio */
.podium-icon {
  width: 48px;
  /* Smaller for mobile */
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  animation: pit-stop 2s ease-in-out infinite;
}

.first-place .podium-icon {
  width: 64px;
  height: 64px;
  background: var(--racing-yellow);
  animation-delay: 0.5s;
}

.second-place .podium-icon {
  background: var(--racing-silver);
}

.third-place .podium-icon {
  background: var(--racing-orange);
  animation-delay: 1s;
}

.podium-icon i {
  width: 24px;
  height: 24px;
}

.first-place .podium-icon i {
  width: 32px;
  height: 32px;
  color: var(--racing-black);
}

.second-place .podium-icon i,
.third-place .podium-icon i {
  color: white;
}

.podium-base {
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 6px;
  width: 60px;
  /* Smaller for mobile */
}

.pos-1 {
  background: rgba(255, 215, 0, 0.9);
}

.pos-2 {
  background: rgba(192, 192, 192, 0.8);
}

.pos-3 {
  background: rgba(234, 88, 12, 0.8);
}

.podium-base span {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

.pos-1 span {
  font-size: 2rem;
  color: var(--racing-black);
}

.podium-team {
  font-size: 0.625rem;
  color: var(--racing-silver);
  margin-top: 6px;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-place .podium-team {
  max-width: 80px;
  color: var(--racing-yellow);
  font-weight: 600;
}

.podium-foundation {
  width: 100%;
  height: 12px;
  background: linear-gradient(to right, var(--racing-silver), var(--racing-yellow), var(--racing-orange));
  border-radius: 6px;
}

/* Campaign Section */
.campaign {
  padding: 48px 0;
  /* Reduced padding */
  background: var(--racing-gray);
  color: var(--racing-black);
}

.campaign .section-description {
  color: var(--racing-white);
}

.campaign .section-title {
  color: var(--racing-white);
}

.campaign .section-icon {
  color: var(--racing-white);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* Adjusted for mobile */
  gap: 24px;
  margin-bottom: 48px;
}

.mechanic-card {
  background: white;
  border: 2px solid rgba(51, 51, 51, 0.2);
  border-radius: 8px;
  padding: 24px 16px;
  /* Adjusted padding */
  text-align: center;
  transition: all 0.3s ease;
}

.mechanic-card:hover {
  border-color: rgba(0, 24, 243, 0.5);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mechanic-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--racing-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--racing-yellow);
}

.mechanic-header i {
  width: 20px;
  height: 20px;
  color: var(--racing-blue);
}

.mechanic-card h3 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--racing-black);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mechanic-card p {
  color: var(--racing-gray);
}

.rewards-header {
  text-align: center;
  margin-bottom: 32px;
}

.rewards-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.25rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.rewards-header .section-line {
  background: var(--racing-yellow);
  width: 48px;
}

.rewards-header p {
  color: var(--racing-silver);
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.reward-card {
  border: 2px solid;
  border-radius: 8px;
  padding: 24px 16px;
  /* Adjusted padding */
  text-align: center;
  transition: transform 0.3s ease;
}

.reward-card:hover {
  transform: scale(1.05);
}

.reward-card.first {
  border-color: var(--racing-yellow);
  background: rgba(255, 215, 0, 0.1);
}

.reward-card.second {
  border-color: var(--racing-silver);
  background: rgba(192, 192, 192, 0.1);
}

.reward-card.third {
  border-color: var(--racing-orange);
  background: rgba(234, 88, 12, 0.1);
}

.reward-card i {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  display: block;
}

.first i {
  color: var(--racing-yellow);
}

.second i {
  color: var(--racing-silver);
}

.third i {
  color: var(--racing-orange);
}

.reward-card h4 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  margin-bottom: 8px;
}

.reward-card h5 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin-bottom: 8px;
}

.reward-card p {
  font-size: 0.75rem;
  color: var(--racing-silver);
}

.final-cta {
  background: linear-gradient(to right, var(--racing-blue), var(--racing-yellow));
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  margin: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: white;
}

.final-cta h3 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.final-cta p {
  font-size: 1rem;
  margin-bottom: 16px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn-primary {
  background: white;
  color: var(--racing-black);
  border-color: white;
}

.final-cta .btn-primary:hover {
  background: var(--racing-silver);
  border-color: var(--racing-black);
}

.final-cta .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.final-cta .btn-secondary:hover {
  background: white;
  color: var(--racing-black);
}

/* Footer */
.footer {
  position: relative;
  margin-top: 0;
  background: var(--racing-black);
  padding: 32px 0;
  /* Reduced padding */
}

/* Borda colorida com gradiente no topo do footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--racing-blue), var(--racing-yellow));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* Adjusted for mobile */
  gap: 24px;
  margin-bottom: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-icon {
  width: 40px;
  height: 40px;
  background: var(--racing-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon i {
  width: 20px;
  height: 20px;
  color: white;
}

.footer-logo h3 {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.125rem;
  color: white;
}

.footer-logo p {
  font-size: 0.625rem;
  color: var(--racing-silver);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 0.75rem;
  color: var(--racing-silver);
  line-height: 1.5;
}

.footer-links h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-links h4 i {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--racing-silver);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--racing-yellow);
}

.footer-status h4 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-status h4 i {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.status-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-card {
  background: rgba(51, 51, 51, 0.2);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.status-value {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.status-card:first-child .status-value {
  color: var(--racing-yellow);
}

.status-card:last-child .status-value {
  color: var(--racing-blue);
}

.status-label {
  font-size: 0.625rem;
  color: var(--racing-silver);
  text-transform: uppercase;
}

.footer-bottom {
  border-top: 1px solid rgba(51, 51, 51, 0.3);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-info {
  font-size: 0.75rem;
  color: var(--racing-silver);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.online-status span {
  font-size: 0.625rem;
  color: var(--racing-silver);
}

.divider {
  height: 12px;
  width: 1px;
  background: rgba(51, 51, 51, 0.5);
}

.update-info {
  font-size: 0.625rem;
  color: var(--racing-silver);
}

.footer-stripe {
  margin-top: 24px;
  height: 3px;
  width: 100%;
  background: linear-gradient(to right, var(--racing-blue), var(--racing-yellow), var(--racing-blue));
  border-radius: 2px;
}

/* MARCOS DA CORRIDA */
#frames {
  padding: 48px 0;
  /* Reduced padding */
  background: #000000;
}

.bar {
  transition: fill 0.3s ease;
  fill: var(--racing-blue);
}

.bar-blocked {
  fill: #cccccc;
}

.label {
  fill: #FFF;
  font-weight: bold;
  font-size: 0.75rem;
  /* Adjusted for mobile */
}

/* RANKING */
#rewards {
  padding: 48px 0;
  /* Reduced padding */
  background: #000000;
}

#rewards h6 {
  fill: #FFF;
  font-weight: bold;
  font-size: 24px;
  /* Smaller for mobile */
}

.accordion-container {
  width: 100%;
}

.accordion {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  /* Adjusted padding */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.accordion-header span.icon {
  font-size: 16px;
}

.accordion-header h6 {
  margin: 0;
  font-size: 14px;
}

.accordion-header .accordion-arrow {
  font-size: 12px;
  margin-left: 6px;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #FFF;
  background-color: var(--racing-gray);
}

.accordion-panel.open {
  max-height: 180px;
  /* Adjusted for mobile */
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 8px;
  padding: 32px 12px;
  color: #FFF !important;
}

.accordion-panel.open p {
  color: #FFF !important;
  font-size: 14px;
}

/* Estilos por estado */
.enabled {
  color: #1d4ed8;
  border-color: #1d4ed8;
}

.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.accordion-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

.card-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  #viz {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    color: #ccc;
    padding-bottom: 20px !important;
  }

  text {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    color: #ccc;
    padding-bottom: 20px !important;
  }

  text .label {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    color: #ccc;
    padding-bottom: 20px !important;
  }

  .bar {
    padding-top: 30px !important;
    margin-top: 30px !important;
  }

  .container {
    padding: 0 12px;
  }

  .hero {
    min-height: 70vh;
    padding: 100px 0px;
  }

  .checkered-pattern {
    height: 80px;
  }

  .logo-badge {
    width: 64px;
    height: 64px;
  }

  .logo-badge i {
    width: 32px;
    height: 32px;
  }

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

  .stat-card {
    padding: 12px;
  }

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

  .btn {
    min-width: 100%;
    font-size: 0.75rem;
    padding: 10px 20px;
  }

  .competition {
    padding: 32px 0;
  }

  .section-icon {
    width: 40px;
    height: 40px;
  }

  .section-icon i {
    width: 20px;
    height: 20px;
  }

  .section-title {
    font-size: clamp(1rem, 4vw, 2.5rem);
  }

  .section-line {
    width: 64px;
  }

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

  .team-card {
    padding: 10px 12px;
  }

  .position-badge {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
  }

  .team-details h4 {
    font-size: 0.875rem;
  }

  .score-display span {
    font-size: 1rem;
  }

  .podium-section {
    padding: 1.5rem 0.5rem 3rem;
  }

  .podium-container {
    max-width: 280px;
  }

  .podium-base {
    width: 50px;
  }

  .podium-icon {
    width: 40px;
    height: 40px;
  }

  .first-place .podium-icon {
    width: 56px;
    height: 56px;
  }

  .podium-base span {
    font-size: 1.25rem;
  }

  .pos-1 span {
    font-size: 1.75rem;
  }

  .podium-team {
    max-width: 50px;
  }

  .first-place .podium-team {
    max-width: 70px;
  }

  .campaign {
    padding: 32px 0;
  }

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

  .mechanic-card {
    padding: 16px 12px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

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

  .reward-card {
    padding: 16px 12px;
  }

  .final-cta {
    padding: 16px;
  }

  .final-cta h3 {
    font-size: clamp(1rem, 3.5vw, 2rem);
  }

  .footer {
    padding: 24px 0;
  }

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

  .footer-logo h3 {
    font-size: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #frames {
    padding: 32px 0;
  }

  #rewards {
    padding: 32px 0;
  }

  #rewards h6 {
    font-size: 20px;
  }

  .accordion-header {
    padding: 6px 10px;
  }

  .accordion-panel.open {
    max-height: 160px;
    padding: 24px 10px;
  }
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .mechanics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .rewards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: clamp(1rem, 4.5vw, 2.5rem);
  }

  .subtitle {
    font-size: clamp(0.875rem, 3vw, 1.5rem);
  }

  .description p {
    font-size: clamp(0.75rem, 1.8vw, 1rem);
  }

  .podium-section svg {
    max-width: 100vmin;
  }

  .motivation-message {
    font-size: 1rem;
  }
}

@keyframes slideInCar {
  0% {
    opacity: 0;
    transform: translateX(-120%);
  }

  60% {
    opacity: 1;
    transform: translateX(10%);
  }

  100% {
    opacity: 1;
    transform: translateX(0%);
  }
}

#motivation-text.slide-in {
  animation: slideInCar 0.8s ease-out;
}