/* ═══════════════════════════════════════
   Finals Page — Compact spacing
   ═══════════════════════════════════════ */
[data-page="finals"] .section {
  padding: 32px 0;
}

/* ── FINALS HERO ── */
.finals-hero .page-hero-badge-dot {
  background: var(--gold);
}

/* Trophy layout: text fills left, trophy anchored in fixed right column */
.finals-hero .page-hero-inner {
  justify-content: flex-start;
  gap: 0;
}

.finals-hero .page-hero-inner > div:first-child {
  flex: 1;
  min-width: 0;
}

.finals-hero .page-hero-right {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finals-hero .page-hero-right img {
  max-height: 280px;
  width: auto;
}

.finals-hero-dates {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.finals-hero-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.finals-date-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.finals-date-info {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ── FINAL SECTION HEAD ── */
.final-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* No separate h2 — section-label acts as heading */
.final-section-head .section-label {
  margin-bottom: 0;
  font-size: 13px;
}

.final-date-pill {
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  white-space: nowrap;
}

.final-date-chal {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple-mid);
}

.final-date-open {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid var(--blue-mid);
}

/* ═══════════════════════════════════════
   Unified Final Card
   ═══════════════════════════════════════ */
.final-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.final-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ── Card header bar ── */
.final-card-header {
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chal-header        { background: var(--purple); }
.open-online-header { background: var(--blue); }
.open-live-header   { background: linear-gradient(135deg, var(--green-dark) 0%, #0a0d1c 100%); }

.final-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.final-card-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tag-free-entry {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tag-live-event {
  background: var(--gold);
  color: #1a0d00;
  border: none;
  font-weight: 800;
}

/* ── Two-column layout: card | prizes ── */
.final-card-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: stretch;
}

.final-card-main {
  padding: 12px 16px;
  flex: 1;
}

.final-card-main > p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── Format chips (compact inline pills) ── */
.final-format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px 13px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.format-chip strong {
  color: var(--dark);
  font-weight: 700;
}

/* ── Prizes — standalone card ── */
.final-card-prizes {
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.final-prizes-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Prizes label accent per card type */
.chal-prizes .final-prizes-label  { color: var(--purple); }
.open-prizes .final-prizes-label  { color: var(--blue); }
.live-prizes .final-prizes-label  { color: var(--green); }

/* ── Perk footer ── */
.final-perk-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.final-perk-footer strong {
  color: var(--dark);
  font-weight: 700;
}

.chal-perk  { background: var(--purple-light); border-top-color: var(--purple-mid); }
.open-perk  { background: var(--blue-light);   border-top-color: var(--blue-mid); }
.live-perk  {
  background: rgba(0, 99, 63, 0.06);
  border-top-color: rgba(0, 99, 63, 0.18);
}

/* ═══════════════════════════════════════
   Live Final Section — Light + Accents
   (Accessibility: high contrast for 65+ users)
   ═══════════════════════════════════════ */
.finals-live-section {
  background: #f0f7f4;
  border-top: 3px solid var(--green);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.finals-live-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 99, 63, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(201, 168, 76, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.finals-live-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.finals-live-section .section-label {
  color: var(--green);
}

.finals-live-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.finals-live-sub {
  font-size: 16px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 18px;
  line-height: 1.65;
}

.finals-live-players-note {
  display: inline-block;
  background: rgba(0, 99, 63, 0.08);
  border: 1px solid rgba(0, 99, 63, 0.22);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.finals-live-players-note strong {
  color: var(--green);
  font-weight: 700;
}

/* ── Light overrides for final-card inside live section ── */
.finals-live-section .final-card {
  background: var(--white);
  border-color: rgba(0, 99, 63, 0.2);
  box-shadow: 0 2px 16px rgba(0, 99, 63, 0.08);
}

.finals-live-section .final-card:hover {
  box-shadow: 0 4px 24px rgba(0, 99, 63, 0.14);
}

.finals-live-section .final-card-main > p {
  color: var(--text);
}

.finals-live-section .format-chip {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.finals-live-section .format-chip strong {
  color: var(--dark);
}

.finals-live-section .final-card-prizes {
  background: var(--white);
  border-color: rgba(0, 99, 63, 0.22);
  box-shadow: 0 2px 16px rgba(0, 99, 63, 0.08);
}

.finals-live-section .final-prizes-label {
  color: var(--green);
  border-bottom-color: rgba(0, 99, 63, 0.15);
}

.finals-live-section .prize-row {
  border-bottom-color: var(--border);
}

.finals-live-section .prize-rank          { color: var(--text); }
.finals-live-section .prize-rank.gold     { color: #8a6a10; font-weight: 800; }
.finals-live-section .prize-rank.silver   { color: #546474; font-weight: 700; }
.finals-live-section .prize-rank.bronze   { color: #7a4a28; font-weight: 700; }
.finals-live-section .prize-amount        { color: var(--dark); font-weight: 700; }
.finals-live-section .prize-amount.top    { color: #8a6a10; font-size: 17px; font-weight: 800; }

/* ═══════════════════════════════════════
   Live Experience Layout — Venue featured
   ═══════════════════════════════════════ */
.live-experience-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
  position: relative;
}

/* Venue card (left, taller — contains map) */
.live-venue-card {
  display: flex;
  flex-direction: column;
}

/* Right side: 3 stacked cards */
.live-details-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base experience card */
.live-exp-card {
  background: var(--white);
  border: 1px solid rgba(0, 99, 63, 0.15);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.live-exp-card:hover {
  background: #f8fdf9;
  border-color: rgba(0, 99, 63, 0.3);
  transform: translateY(-3px);
}

.live-exp-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 10px;
}

.live-exp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.3;
}

.live-exp-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.65;
}

/* Photo in experience cards */
.live-exp-photo {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.live-exp-photo img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Map embed */
.live-exp-map {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 1;
  min-height: 180px;
}

.live-exp-map iframe {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  border: none;
}

/* Smaller photo for hotel (compact stacked card) */
.live-exp-photo-sm {
  margin-top: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.live-exp-photo-sm img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

/* Travel amounts */
.live-travel-amounts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 99, 63, 0.12);
}

.live-travel-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.live-travel-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   Responsive — Finals
   ═══════════════════════════════════════ */

/* Venue/experience layout stacks on tablets */
@media (max-width: 1100px) {
  .live-experience-layout {
    grid-template-columns: 1fr;
  }

  /* Hide trophy when hero becomes column layout */
  .finals-hero .page-hero-right {
    display: none;
  }
}

/* Card + prizes stack on mobile */
@media (max-width: 680px) {
  .final-card-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* On mobile, prizes card loses its independent card look
     and blends as a continuation block */
  .final-card-prizes {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 768px) {
  [data-page="finals"] .section {
    padding: 28px 0;
  }

  .finals-live-section {
    padding: 36px 0;
  }

  .finals-live-title {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .finals-hero-dates {
    flex-direction: column;
  }

  .final-card-header {
    padding: 10px 16px;
  }

  .final-card-main {
    padding: 12px 16px;
  }

  .final-card-prizes {
    padding: 14px 16px;
  }

  .final-perk-footer {
    padding: 8px 16px;
  }

  .final-format-chips {
    gap: 6px;
  }

  .format-chip {
    font-size: 12px;
    padding: 4px 11px;
  }
}
