/* hub.css — ESOC Tournament Hub: landing cards + legacy event viewer.
   Builds on the shared root style.css design tokens. */

.main-content { padding-top: 2.2rem; padding-bottom: 3rem; }

/* "live" badge on cross-site nav links (EPL 6 season in progress) */
.nav-live {
  display: inline-block;
  margin-left: 0.15em;
  padding: 0.05em 0.4em;
  font-family: var(--font-body, sans-serif);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.18em;
  color: #0d0d0d;
  background: linear-gradient(180deg, #ffd76a, var(--color-gold, #d4af37));
  border-radius: 999px;
  animation: nav-live-pulse 2s ease-in-out infinite;
}
@keyframes nav-live-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .nav-live { animation: none; } }

/* ---------------------------------------------------------------- hero */
.hub-hero { text-align: center; margin: 1.5rem 0 2.2rem; position: relative; }
.hub-hero-ornament {
  width: min(360px, 70%);
  height: 14px;
  margin: 0 auto 1.1rem;
  background:
    linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55) 20%, rgba(212, 175, 55, 0.55) 80%, transparent) center / 100% 1px no-repeat,
    radial-gradient(circle at center, var(--color-gold) 0 3px, transparent 3.5px) center / 14px 14px no-repeat;
}
.hub-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-gold);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.15rem;
}
.hub-lede {
  max-width: 46em;
  margin: 0 auto 1.2rem;
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}
.hub-stats { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; color: var(--color-text-muted); font-size: 0.95rem; }
.hub-stats strong { color: var(--color-gold-light); font-weight: 700; font-family: var(--font-display); font-size: 1.05em; }
.hub-stat-sep { opacity: 0.5; }
.hub-filter { margin: 0 0 2.4rem; display: flex; justify-content: center; }
.hub-filter .player-search {
  width: min(100%, 26rem);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
}
.hub-filter .player-search:focus { outline: 1px solid var(--color-gold); }

/* ------------------------------------------------------------ sections */
.hub-section { margin-bottom: 3.2rem; }
.hub-section-head { margin-bottom: 1.3rem; }
.hub-section-blurb { color: var(--color-text-muted); margin-top: 0.3rem; font-size: 0.92rem; }

.tcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
}

/* ---------------------------------------------------------------- cards */
.tcard {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem 1.2rem 1.05rem;
  background:
    linear-gradient(150deg, rgba(29, 20, 13, 0.92) 0%, rgba(13, 9, 6, 0.96) 70%),
    url("dark_wood.webp") repeat;
  background-size: auto, var(--wood-size, 480px) var(--wood-size, 480px);
  background-blend-mode: overlay;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}
/* Accent bar in the event's seasonal colour */
.tcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 2%, var(--card-accent, var(--color-gold)) 30%, var(--card-accent, var(--color-gold)) 70%, transparent 98%);
  opacity: 0.75;
}
.tcard:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-lg), 0 0 22px rgba(212, 175, 55, 0.12);
}
/* Faded event-logo watermark, brightens on hover */
.tcard-watermark {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 150px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.055;
  filter: saturate(0.4);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tcard:hover .tcard-watermark { opacity: 0.13; }
.tcard > *:not(.tcard-watermark) { position: relative; }

/* Live card: animated gold gradient border + glow */
.tcard-live {
  border: 1px solid transparent;
  background:
    linear-gradient(150deg, rgba(29, 20, 13, 0.94) 0%, rgba(13, 9, 6, 0.97) 70%) padding-box,
    linear-gradient(120deg, rgba(212, 175, 55, 0.85), rgba(120, 80, 20, 0.4), rgba(255, 224, 130, 0.9)) border-box;
  animation: liveGlow 2.6s ease-in-out infinite;
}
@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.18), var(--shadow-md); }
  50% { box-shadow: 0 0 26px rgba(212, 175, 55, 0.38), var(--shadow-md); }
}

.tcard-head { display: flex; align-items: center; gap: 0.85rem; }
.tcard-logo { width: 54px; height: 54px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5)); }
.tcard-logo-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--color-gold); background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--color-border-gold); border-radius: 50%;
}
.tcard-title { font-size: 1.02rem; line-height: 1.3; font-family: var(--font-heading); }
.tcard-title a { color: var(--color-text-primary); text-decoration: none; }
.tcard-title a:hover { color: var(--color-gold-light); }
.tcard-dates { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.2rem; }

.tcard-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.chip-prize { color: var(--color-gold-light); border-color: var(--color-border-gold); }
.tier-s { color: #ffd700; border-color: rgba(255, 215, 0, 0.45); background: rgba(255, 215, 0, 0.07); }
.tier-a { color: #c0c8ff; border-color: rgba(160, 170, 255, 0.35); }
.tier-b { color: #c9a97c; }
.chip-live {
  color: #ff6b6b; border-color: rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.08);
  font-weight: 700; animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 50% { opacity: 0.55; } }

.card-podium { display: flex; flex-direction: column; gap: 0.55rem; }

/* Featured champion: portrait with the name + a gold "Champion" plate floated
   over a darkening gradient. */
.champ-hero {
  position: relative;
  width: 100%;
  height: 132px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.4);
}
.champ-hero-lg { height: 208px; }
.champ-hero-sm { height: 104px; }
/* second & third sit side by side under the champion */
.podium-minors { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.podium-minors .champ-hero { height: 104px; min-width: 0; }
.podium-minors .champ-name { font-size: 0.95rem; }
.podium-minors .champ-plate { font-size: 0.58rem; padding: 0.12rem 0.5rem; letter-spacing: 0.12em; }
.champ-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}
.champ-face.is-logo { background-size: contain; background-repeat: no-repeat; background-position: center; margin: 0.6rem; inset: 0.6rem; }
.tcard:hover .champ-face, .spot-champ:hover .champ-face { transform: scale(1.06); }
.champ-face-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 50% 20%, rgba(212, 175, 55, 0.22), rgba(20, 14, 9, 0.95));
}
.champ-face-blank span { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; color: var(--color-gold-light); opacity: 0.8; }
.champ-hero-lg .champ-face-blank span { font-size: 5rem; }
/* darkening veil so the floated caption stays legible on any portrait */
.champ-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.9) 100%);
}
.champ-plate {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.16rem 0.62rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a1e07;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold), var(--color-gold-dark));
  border: 1px solid rgba(255, 240, 190, 0.7);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
/* silver / bronze placement plates */
.pl-2 .champ-plate {
  color: #23262b;
  background: linear-gradient(180deg, #f4f6f9, #c8ccd2 55%, #9aa0a8);
  border-color: #dfe3e8;
}
.pl-3 .champ-plate {
  color: #2a1608;
  background: linear-gradient(180deg, #e8a877, #c17a45 55%, #96592e);
  border-color: #e0a877;
}
.champ-caption { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.55rem; }
.champ-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8);
  word-break: break-word;
}
.champ-hero-lg .champ-name { font-size: 1.75rem; }
.champ-hero-lg .champ-plate { font-size: 0.72rem; padding: 0.2rem 0.8rem; }

.podium-line { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; }
.podium-medal { width: 1.3em; text-align: center; }
.podium-team-logo { width: 20px; height: 20px; object-fit: contain; }
.podium-name { color: var(--color-text-secondary); }
.podium-first { color: var(--color-gold-light); font-weight: 600; }
.live-note { color: var(--color-text-muted); font-size: 0.85rem; font-style: italic; }

.tcard-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.btn-sm { padding: 0.4rem 0.95rem; font-size: 0.82rem; }

/* ---------------------------------------------------- legacy event viewer */
.ev-header { margin: 1rem 0 2rem; }
.ev-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.4rem); color: var(--color-gold); margin-bottom: 0.5rem; }
.ev-meta { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 0.7rem 0 0.4rem; }
.ev-podium { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.9rem; }
.ev-podium .podium-line { font-size: 1rem; }
.ev-podium .medal { width: 18px; height: 18px; margin-right: 0.15rem; }

.ev-section-title {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-size: 1.25rem;
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border-gold);
}

.ev-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }

.ev-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ev-table th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--color-text-muted); padding: 0.35rem 0.55rem; border-bottom: 1px solid var(--color-border);
}
.ev-table td { padding: 0.42rem 0.55rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.ev-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ev-table th.num { text-align: right; }
.status-up { color: #7ddf8f; }
.status-down { color: #e08a8a; }
.status-dq { color: #e05a5a; text-decoration: line-through; }

/* series cards (matches) */
.ev-series { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: rgba(0, 0, 0, 0.22); margin-bottom: 0.55rem; }
.ev-series summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  list-style: none;
}
.ev-series summary::-webkit-details-marker { display: none; }
.ev-series-side { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.ev-series-side.right { justify-content: flex-end; text-align: right; }
.ev-series-side .team-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.ev-series-side.won { color: var(--color-gold-light); font-weight: 600; }
.ev-series-score { font-family: var(--font-display); font-size: 1.05rem; color: var(--color-gold); white-space: nowrap; }
.ev-series-tag { font-size: 0.72rem; color: var(--color-text-muted); white-space: nowrap; }
.ev-series-detail { padding: 0.2rem 0.9rem 0.9rem; }
.ev-series-detail .games-note { color: var(--color-text-muted); font-size: 0.82rem; }
.ev-series-links { margin-top: 0.5rem; font-size: 0.82rem; }
.ev-series-links a { color: var(--color-gold); }

.civ-ico-sm { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; margin-right: 0.35rem; vertical-align: -2px; }
.won-cell { color: var(--color-gold-light); font-weight: 600; }

/* teams */
.ev-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.ev-team-card { padding: 1rem 1.1rem; }
.ev-team-name { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-heading); color: var(--color-gold-light); margin-bottom: 0.6rem; }
.ev-team-name img { width: 30px; height: 30px; object-fit: contain; }
.ev-roster { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; color: var(--color-text-secondary); }
.ev-roster li { padding: 0.16rem 0; }
.ev-roster .cap { color: var(--color-gold); font-weight: 600; }

/* participants */
.ev-participants { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ev-participants .chip { font-size: 0.8rem; }

.data-error-banner {
  background: rgba(180, 40, 40, 0.15);
  border: 1px solid rgba(220, 90, 90, 0.4);
  color: #f0b7b7;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  margin: 1.2rem 0;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .ev-series summary { grid-template-columns: 1fr auto 1fr; }
  .ev-series-tag { display: none; }
}

/* ---------------------------------------------------------- players tab */
/* Avatar/flag primitives (hub pages don't load est.css). */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
  vertical-align: middle;
}
.avatar-sm { width: 26px; height: 26px; }
.avatar-xl {
  width: 88px;
  height: 88px;
  border-width: 2px;
  border-color: var(--color-gold);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.35);
}
span.avatar-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  color: var(--color-text-muted);
}
span.avatar-blank.avatar-sm { font-size: 12px; }
span.avatar-blank.avatar-xl { font-size: 36px; }
.flag-chip {
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  opacity: 0.85;
}

.showall-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.players-card { padding: 0.4rem 0.6rem; }
.table-scroll { overflow-x: auto; }
.lb-table { min-width: 720px; }
.lb-table th { cursor: pointer; user-select: none; white-space: nowrap; }
.lb-table th.sorted { color: var(--color-gold); }
.lb-table tbody tr { cursor: pointer; transition: background 0.15s ease; }
.lb-table tbody tr:hover { background: rgba(212, 175, 55, 0.06); }
.lb-table .p-cell { display: inline-flex; align-items: center; gap: 0.5rem; }
.lb-table .rank-cell { color: var(--color-text-muted); }
.lb-table .elo-cell { color: var(--color-gold-light); font-weight: 700; }
.lb-table .pods-cell { white-space: nowrap; }

/* Metallic podium medallions (replace emoji medals). */
.medal-item { display: inline-flex; align-items: center; margin: 0 0.28rem 0 0; }
.medal {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  vertical-align: -0.16em;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.7), inset 0 -1.5px 2px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.55);
}
.medal-gold { background: radial-gradient(circle at 34% 28%, #fff1b8 0 18%, #f0c24a 55%, #a9791a); border: 1px solid #ffe08a; }
.medal-silver { background: radial-gradient(circle at 34% 28%, #ffffff 0 18%, #ccd1d7 55%, #8f959d); border: 1px solid #e6eaee; }
.medal-bronze { background: radial-gradient(circle at 34% 28%, #f6c79a 0 18%, #c8814c 55%, #8a5228); border: 1px solid #e2aa79; }
.medal-count { font-family: var(--font-display); font-size: 0.76rem; color: var(--color-text-secondary); margin-left: 0.16rem; }
.medal-chip { display: inline-flex; align-items: center; gap: 0.3rem; }
.alias-hit { color: var(--color-text-muted); font-size: 0.75rem; font-style: italic; margin-left: 0.3rem; }
.anc { font-size: 0.7rem; margin-left: 0.25rem; vertical-align: 0.08em; cursor: help; }
.anc-ffp { color: var(--color-gold); }
.anc-manual { color: var(--color-text-secondary); }
.anc-era { color: var(--color-text-secondary); opacity: 0.85; }
.anc-default { color: var(--color-text-muted); opacity: 0.7; }
.decay-mark { color: #d99; font-size: 0.72rem; margin-left: 0.2rem; cursor: help; opacity: 0.85; }
.hidden-count { color: var(--color-text-muted); opacity: 0.8; }
.prof-faded { color: #e0a0a0; border-color: rgba(210, 130, 130, 0.4); }
.lb-legend { margin-top: 0.7rem; font-size: 0.78rem; color: var(--color-text-muted); display: flex; gap: 1.1rem; flex-wrap: wrap; }
.lb-legend .anc { margin-left: 0; margin-right: 0.15rem; }

/* profile */
.prof-head { margin: 1.2rem 0 1.6rem; display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.prof-identity { display: flex; align-items: center; gap: 1.1rem; }
.prof-aliases { color: var(--color-text-muted); font-size: 0.85rem; display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.prof-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.tl-svg { width: 100%; height: auto; display: block; }
.tl-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.tl-label { fill: var(--color-text-muted); font-size: 11px; font-family: var(--font-body); }
.tl-line { fill: none; stroke: var(--color-gold); stroke-width: 2; }
.tl-area { fill: rgba(212, 175, 55, 0.09); stroke: none; }
.tl-dot { fill: rgba(212, 175, 55, 0.55); transition: r 0.1s ease, fill 0.1s ease; }
.tl-dot-final { fill: var(--color-gold-light); stroke: rgba(0, 0, 0, 0.6); stroke-width: 1; }
.tl-hit { fill: transparent; cursor: pointer; }
.tl-dot-hover { fill: var(--color-gold-light); r: 5; }

/* Timeline hover tooltip */
.pl-tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  min-width: 130px;
  max-width: 260px;
  padding: 0.5rem 0.7rem;
  background: var(--color-surface-solid, #1c150e);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  font-size: 0.8rem;
  line-height: 1.35;
}
.pl-tip-title { font-family: var(--font-heading); color: var(--color-gold-light); font-weight: 600; margin-bottom: 0.15rem; }
.pl-tip-body { color: var(--color-text); }
.pl-tip-elo { font-weight: 700; }
.pl-tip-rec { color: var(--color-gold-light); font-weight: 600; }
.pl-tip-delta.up { color: #6fcf7f; }
.pl-tip-delta.down { color: #e07a6a; }
.pl-tip-date { color: var(--color-text-muted); font-size: 0.72rem; margin-top: 0.15rem; }

/* Leaderboard superlatives grid */
.pl-topbar { margin-bottom: 1.6rem; }
.pl-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.pl-eyebrow {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-gold); margin: 0;
}
.pl-totals { color: var(--color-text-muted); font-size: 0.82rem; }
.pl-statgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 0.7rem; margin-bottom: 1.1rem;
}
.pl-stat {
  display: flex; flex-direction: column; gap: 0.4rem; text-align: left;
  padding: 0.7rem 0.8rem; cursor: pointer;
  background:
    linear-gradient(160deg, rgba(212, 175, 55, 0.07), rgba(0, 0, 0, 0)) ,
    var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pl-stat:hover {
  border-color: var(--color-border-gold); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.pl-stat:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.pl-stat-label {
  font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.pl-stat-hero { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.pl-stat-hero .avatar-sm { width: 26px; height: 26px; flex: 0 0 auto; }
.pl-stat-name {
  font-family: var(--font-heading); font-weight: 600; color: var(--color-gold-light);
  font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-stat-val {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--color-gold-light);
  display: flex; align-items: baseline; gap: 0.3rem;
  text-shadow: 0 0 14px rgba(255, 224, 130, 0.18);
}
.pl-stat-unit { font-family: var(--font-body); font-size: 0.72rem; font-weight: 500; color: var(--color-text-secondary); }
.pl-stat-val .medal { transform: translateY(1px); }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; align-items: start; }
.res-event { padding: 0.9rem 1rem; }
.res-event-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.55rem; }
.res-event-title { display: inline-flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; min-width: 0; }
.res-event-ne { opacity: 0.92; }
.ne-tag {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.ne-tag.ne-show { color: #c9a6d8; border-color: rgba(180, 140, 200, 0.4); }
.ne-tag.ne-tourn { color: #9fb8d8; border-color: rgba(140, 170, 210, 0.4); }
.res-event-name { font-family: var(--font-heading); color: var(--color-gold-light); text-decoration: none; font-size: 0.95rem; }
.res-event-name:hover { color: var(--color-gold); }
.res-row {
  display: grid;
  grid-template-columns: 1.4rem 5.2rem 3.2rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.28rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.res-row:last-child { border-bottom: none; }
.res-badge { text-align: center; font-weight: 800; font-size: 0.75rem; border-radius: 4px; padding: 0.05rem 0; color: var(--color-text-muted); background: rgba(255,255,255,0.05); }
.res-badge.res-w { color: #7ddf8f; background: rgba(60, 180, 90, 0.12); }
.res-badge.res-l { color: #e08a8a; background: rgba(200, 70, 70, 0.12); }
.res-round { color: var(--color-text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-score { font-variant-numeric: tabular-nums; color: var(--color-text-primary); }
.res-opp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-opp a { color: var(--color-text-primary); text-decoration: none; border-bottom: 1px dotted var(--color-text-muted); }
.res-opp a:hover { color: var(--color-gold-light); border-bottom-color: var(--color-gold); }
.res-date { color: var(--color-text-muted); font-size: 0.75rem; white-space: nowrap; }

@media (max-width: 640px) {
  .res-row { grid-template-columns: 1.4rem 3rem 1fr auto; }
  .res-round { display: none; }
}

/* ------------------------------------------------------------ live banner */
.live-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.6rem;
  padding: 1.05rem 1.4rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  border: 1px solid transparent;
  background:
    radial-gradient(120% 160% at 8% 50%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(150deg, rgba(30, 21, 13, 0.95), rgba(12, 8, 5, 0.97)) padding-box,
    linear-gradient(120deg, rgba(212, 175, 55, 0.9), rgba(110, 75, 20, 0.45), rgba(255, 224, 130, 0.85)) border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: liveGlow 2.6s ease-in-out infinite;
  transition: var(--transition-smooth);
}
.live-banner:hover { transform: translateY(-2px); }
.live-dot {
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.55);
  animation: liveDot 1.7s ease-out infinite;
}
@keyframes liveDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(255, 90, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}
.live-banner-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.live-banner-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ff8a8a;
  font-weight: 800;
}
.live-banner-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-gold-light); }
.live-banner-sub { color: var(--color-text-muted); font-size: 0.85rem; }
.live-banner-cta { flex: none; }
@media (max-width: 640px) {
  .live-banner { flex-wrap: wrap; }
  .live-banner-cta { width: 100%; text-align: center; }
}

/* -------------------------------------------------------------- spotlight */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.4rem;
}
.spot-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.25rem 1.05rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background:
    linear-gradient(160deg, rgba(27, 18, 12, 0.93), rgba(12, 8, 5, 0.97)),
    url("dark_wood.webp") repeat;
  background-size: auto, var(--wood-size, 480px) var(--wood-size, 480px);
  background-blend-mode: overlay;
  box-shadow: var(--shadow-md);
}
.spot-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}
.spot-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
  text-align: center;
}
/* champion spotlight */
.spot-champ { text-align: center; }
.spot-champ .spot-label { text-align: left; }
.spot-champ-sub { color: var(--color-text-secondary); font-size: 0.9rem; margin-top: 0.55rem; }
.spot-event-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px dotted var(--color-text-muted);
}
.spot-event-link:hover { color: var(--color-gold); border-bottom-color: var(--color-gold); }
/* leaderboard / records rows */
.spot-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.3rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}
.spot-row:hover { background: rgba(212, 175, 55, 0.07); }
.spot-rank { width: 1.1em; text-align: center; color: var(--color-text-muted); font-family: var(--font-display); }
.spot-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.spot-row-label { color: var(--color-text-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; width: 6.4rem; flex: none; }
.spot-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.spot-bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-light)); }
.spot-elo { font-variant-numeric: tabular-nums; color: var(--color-gold-light); font-weight: 700; margin-left: auto; }
.spot-ico { width: 20px; height: 20px; object-fit: contain; flex: none; }
.spot-more {
  display: block;
  margin-top: 0.7rem;
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-gold);
  text-decoration: none;
}
.spot-more:hover { color: var(--color-gold-light); }
