/* White page canvas only — banner keeps site gradient-bg */
.rec-page:not(.gradient-bg) {
  background: #fff;
}

.rec-main {
  padding: 2rem 0 2.5rem;
}

/* Premium dark panels on white page */
.rec-card {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(8, 11, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  color: #e8ecff;
  /* reset.css --para-color (#484748) is too dark on card background */
  --para-color: #c5d4e3;
  --rec-muted-color: #96a2cf;
}

.rec-card p,
.rec-card li {
  color: var(--para-color);
}

.rec-card h3,
.rec-card h4 {
  color: #fff;
}

.rec-spotlight-title {
  text-align: center;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 45%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 28px rgba(250, 204, 21, 0.25));
}

.rec-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.08);
  color: #d8defa;
}

.rec-chip-gold {
  background: rgba(255, 187, 51, 0.18);
  color: #ffd784;
}

.rec-rank-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
}

.rec-member-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.rec-name {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.rec-muted {
  color: var(--rec-muted-color, #96a2cf);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.85rem;
}

.rec-kv {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rec-kv li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.16rem 0;
  font-size: 0.86rem;
  color: var(--para-color);
}

.rec-kv li span:last-child {
  color: #dce2ff;
  font-weight: 600;
}

.rec-table-wrap {
  overflow-x: auto;
}

.rec-table {
  width: 100%;
  min-width: 820px;
}

.rec-card .rec-table th,
.rec-card .rec-table td {
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.09) !important;
  color: var(--para-color);
}

.rec-card .rec-table thead th {
  color: #fff;
}

.rec-top3-1 {
  background: rgba(251, 191, 36, 0.13);
}

.rec-top3-2 {
  background: rgba(148, 163, 184, 0.15);
}

.rec-top3-3 {
  background: rgba(217, 119, 6, 0.16);
}

.rec-score-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.28);
  color: #d9c8ff;
  font-weight: 700;
}

.rec-winner {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1rem;
  align-items: center;
}

.rec-winner-photo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.35rem;
  box-sizing: border-box;
}

.rec-winner-photo {
  display: block;
  height: 90%;
  width: auto;
  aspect-ratio: 1 / 1;
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.rec-archive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

/* Disclaimer sits on white page, not inside dark cards */
.rec-disclaimer {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 1rem;
}

@media (max-width: 1199px) {
  .rec-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .rec-winner {
    grid-template-columns: 1fr;
  }

  .rec-winner-photo-frame {
    max-width: 200px;
    margin: 0 auto;
  }

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