.card {
  width: 100%;
  max-width: 480px;
  position: relative;
  margin: 0 auto;
  padding: 44px 18px 56px;
  background:
    linear-gradient(to bottom, rgba(4,28,8,0.68) 0%, rgba(4,28,8,0.82) 60%, rgba(4,28,8,0.92) 100%),
    url('https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=900&q=85') center/cover no-repeat;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}

.confetti {
  position: absolute;
  border-radius: 1.5px;
  pointer-events: none;
}

.card h1 {
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(78px, 23vw, 112px) !important;
  line-height: 0.87 !important;
  color: #fff !important;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 28px rgba(0,0,0,0.55);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.card .subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.86) !important;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 28px;
  padding: 0 6px;
}

.next-banner {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,214,0,0.45);
  border-radius: 12px;
  padding: 16px 20px 18px;
  margin-bottom: 28px;
  text-align: center;
}

.next-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #FFD600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.next-fase-name {
  font-family: 'Anton', sans-serif;
  font-size: 38px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

.next-fase-date {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.5px;
}

.table-head {
  display: grid !important;
  grid-template-columns: 112px 1fr 122px;
  gap: 6px;
  padding: 0 2px;
  margin-bottom: 9px;
}

.card .th {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.65) !important;
  background: transparent !important;
  text-transform: uppercase;
  text-align: center;
}

.rows {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
}

.rows .row {
  display: grid !important;
  grid-template-columns: 112px 1fr 122px !important;
  max-width: 100% !important;
  margin: 0 !important;
  width: 100% !important;
  align-items: stretch;
  border-radius: 9px;
  overflow: hidden;
  min-height: 62px;
  transition: opacity 0.3s, transform 0.3s;
}

.rows.has-active .row:not(.active) {
  opacity: 0.52;
  transform: scale(0.97);
}

.rows.has-active .row:not(.active) .fase { font-size: 14px; }
.rows.has-active .row:not(.active) .premio { font-size: 14px; }
.rows.has-active .row:not(.active) .condicion { font-size: 12px; }

.fase {
  background: linear-gradient(135deg, #E83428 0%, #C4261A 100%);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.fase-text { text-align: center; }

.premio {
  background: rgba(255,255,255,0.10);
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white !important;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.condicion {
  background: rgba(255,255,255,0.06);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.72) !important;
  line-height: 1.5;
  border-left: 1px solid rgba(255,255,255,0.09);
}

.rows .row.active {
  min-height: 74px;
  box-shadow: 0 0 0 2px rgba(255,214,0,0.5), 0 6px 24px rgba(255,180,0,0.25);
}

.rows .row.active .fase {
  background: linear-gradient(135deg, #FFD600 0%, #F5B800 100%);
  color: #111;
  font-size: 18px;
}

.rows .row.active .premio {
  background: rgba(255,214,0,0.14);
  color: #fff !important;
  font-size: 18px;
}

.rows .row.active .condicion {
  background: rgba(255,214,0,0.07);
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px;
  border-left-color: rgba(255,214,0,0.25);
}

.cta-btn {
  display: block !important;
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  background: #FFD600;
  color: #111 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none !important;
  border-radius: 100px;
  transition: background 0.15s, transform 0.1s;
}

.cta-btn:hover { background: #F5C000; transform: translateY(-2px); }
.cta-btn:active { transform: translateY(0); }

.rows.ended .row { opacity: 0.35; }
.next-banner.hidden { display: none; }
.cta-btn.hidden { display: none; }

.card .footer-note {
  margin-top: 18px;
  font-size: 11px !important;
  color: rgba(255,255,255,0.40) !important;
  text-align: center;
  font-style: italic;
}

@media (max-width: 360px) {
  .table-head { grid-template-columns: 100px 1fr 108px; }
  .rows .row { grid-template-columns: 100px 1fr 108px !important; }
  .rows.has-active .row:not(.active) .fase { font-size: 12px; }
  .rows.has-active .row:not(.active) .premio { font-size: 12px; }
  .next-fase-name { font-size: 30px; }
}

.rows .row::before,
.rows .row::after {
  display: none !important;
  content: none !important;
}
