/* ── The Wear-Off — public landing page ─────────────────────────────────── */

.wear-off-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}
.wear-off-header { text-align: center; margin-bottom: 2rem }
.wear-off-header h1 { font-size: 2rem; margin: 0 0 .4rem; color: var(--text) }
.wear-off-tagline { font-size: 1rem; color: var(--accent); margin: 0 0 .6rem; font-weight: 600 }
.wear-off-explainer { font-size: .88rem; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.55 }

.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 1.8rem 0 .8rem;
}

/* ── Hero matchup (active or most recent) ────────────────────────────────── */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.hero-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-status-bar.live    { background: rgba(231,76,76,.15);  color: #e74c4c; border-bottom: 1px solid rgba(231,76,76,.3) }
.hero-status-bar.final   { background: rgba(124,185,168,.12); color: var(--teal); border-bottom: 1px solid rgba(124,185,168,.3) }
.hero-status-bar.upcoming{ background: var(--surface2); color: var(--muted); border-bottom: 1px solid var(--border) }

.hero-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1rem;
}
.hero-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: .5rem;
  border-radius: 10px;
  transition: background .15s;
}
.hero-cap.winner {
  background: rgba(200,169,110,.08);
  outline: 2px solid var(--accent);
}
.hero-cap-img {
  width: 130px; height: 130px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.hero-cap-img.placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.5rem }
.hero-cap-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.25;
}
.hero-cap-name a { color: inherit; text-decoration: none }
.hero-cap-name a:hover { text-decoration: underline }
.hero-cap-brand { font-size: .72rem; color: var(--muted) }
.hero-cap-wears {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .02em;
  font-feature-settings: "tnum";
}
.hero-cap-wears small { font-size: .68rem; font-weight: 500; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem }

.hero-vs {
  font-weight: 800;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .08em;
}

.hero-cta-bar {
  padding: .7rem 1rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface2);
}
.hero-cta-bar strong { color: var(--text) }

/* ── Bracket rounds (collapsible) ────────────────────────────────────────── */
.round {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .6rem;
  background: var(--surface);
  overflow: hidden;
}
.round summary {
  cursor: pointer;
  list-style: none;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  user-select: none;
}
.round summary::-webkit-details-marker { display: none }
.round summary::before {
  content: "▸";
  color: var(--muted);
  transition: transform .15s;
  font-size: .85rem;
}
.round[open] summary::before { transform: rotate(90deg) }
.round-meta {
  margin-left: auto;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.round-matches {
  display: grid;
  gap: .5rem;
  padding: 0 .9rem .9rem;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .7rem;
  padding: .65rem .8rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.match-card.live    { border-color: rgba(231,76,76,.4)  }
.match-card.final   { border-color: rgba(124,185,168,.3) }

.match-side {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}
.match-side.right { justify-content: flex-end; text-align: right }
.match-side.winner { font-weight: 700 }
.match-side.loser  { opacity: .55 }
.match-cap-img {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.match-cap-img.placeholder { display: flex; align-items: center; justify-content: center; font-size: 1rem }
.match-cap-name {
  font-size: .82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.match-cap-name a { color: inherit; text-decoration: none }
.match-cap-name a:hover { text-decoration: underline }
.match-cap-name .seed-tag {
  display: inline-block;
  font-size: .62rem;
  color: var(--muted);
  background: var(--surface);
  padding: 0 .3rem;
  border-radius: 3px;
  margin-right: .25rem;
  vertical-align: middle;
}
.match-score {
  font-size: 1.1rem;
  font-weight: 800;
  font-feature-settings: "tnum";
  color: var(--text);
  white-space: nowrap;
  padding: 0 .35rem;
}
.match-score .score-sep { color: var(--muted); font-weight: 500 }
.match-status-row {
  grid-column: 1 / -1;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: .35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.match-status-row .live-pill {
  background: rgba(231,76,76,.15);
  color: #e74c4c;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 10px;
  letter-spacing: .06em;
}
.match-status-row .final-pill {
  background: rgba(124,185,168,.12);
  color: var(--teal);
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 10px;
  letter-spacing: .06em;
}
.match-share-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .15rem .55rem;
  border-radius: 6px;
  font-size: .68rem;
  cursor: pointer;
  font-family: inherit;
}
.match-share-btn:hover { color: var(--text); border-color: var(--accent) }

.match-card.tbd {
  opacity: .6;
}
.match-tbd-text {
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ── Champion section (shown when bracket complete) ─────────────────────── */
.champion-card {
  background: linear-gradient(135deg, rgba(200,169,110,.18), rgba(200,169,110,.06));
  border: 1px solid rgba(200,169,110,.35);
  border-radius: 14px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  margin-bottom: 1rem;
}
.champion-label { font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: .5rem }
.champion-name { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: .4rem; line-height: 1.2 }
.champion-img { width: 180px; height: 180px; border-radius: 14px; object-fit: cover; margin: 0 auto .8rem; display: block; border: 2px solid var(--accent) }

/* ── Past brackets list ──────────────────────────────────────────────────── */
.past-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: .35rem;
  background: var(--surface);
}
.past-item a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem }
.past-item a:hover { color: var(--accent) }
.past-item-meta { font-size: .72rem; color: var(--muted) }

/* ── Empty / loading states ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  margin: 1rem 0;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: .5rem }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .wear-off-header h1 { font-size: 1.5rem }
  .hero-cap-img { width: 96px; height: 96px }
  .hero-cap-wears { font-size: 1.3rem }
  .hero-matchup { gap: .4rem; padding: 1rem .6rem }
  .match-card { grid-template-columns: 1fr auto 1fr; padding: .55rem .65rem }
  .match-cap-img { width: 30px; height: 30px }
  .match-cap-name { font-size: .76rem }
  .match-score { font-size: .95rem }
  .champion-name { font-size: 1.2rem }
  .champion-img { width: 140px; height: 140px }
}
