:root {
  --live-accent: #d8a62e;
  --live-accent-soft: rgba(216, 166, 46, 0.22);
  --live-accent-faint: rgba(216, 166, 46, 0.08);
  --live-panel: rgba(10, 12, 18, 0.94);
  --live-panel-alt: rgba(24, 17, 8, 0.92);
  --live-border: rgba(216, 166, 46, 0.38);
  --live-text: #f3e7c9;
  --live-muted: rgba(232, 215, 177, 0.55);
}

.live-ticker {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  margin-top: 72px;
  overflow: hidden;
  background: rgba(3, 5, 10, 0.97);
  border-block: 1px solid var(--live-border);
  color: var(--live-text);
}
.live-ticker[hidden], .live-legend[hidden], .live-bosses[hidden] { display: none !important; }
.live-ticker-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 24px;
  flex: 0 0 auto;
  background: #0b0d12;
  border-right: 1px solid var(--live-border);
  color: var(--live-accent);
  font: 700 11px/1 'Cinzel', serif;
  letter-spacing: .18em;
}
.live-ticker-label i { width: 7px; height: 7px; border-radius: 50%; background: #49e487; box-shadow: 0 0 10px #49e487; }
.live-ticker-viewport { min-width: 0; flex: 1; overflow: hidden; }
.live-ticker-track { display: inline-flex; align-items: center; gap: 52px; padding-left: 30px; white-space: nowrap; will-change: transform; }
.live-ticker-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(243,231,201,.84); }
.live-ticker-item i { font-style: normal; color: var(--live-accent); }
.live-ticker-item img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 0 7px var(--live-accent-soft)); }

.live-home { position: relative; z-index: 3; padding: 28px 20px 72px; background: radial-gradient(circle at 50% 20%, var(--live-accent-soft), transparent 42%), #04060b; }
.live-stats { width: min(1380px, 100%); margin: 0 auto; }
.live-stats-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.live-stat {
  min-height: 122px;
  padding: 18px 10px 14px;
  text-align: center;
  background: linear-gradient(145deg, var(--live-accent-faint), rgba(8,10,17,.94));
  border: 1px solid var(--live-border);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.22);
}
.live-stat-icon { font-size: 19px; filter: drop-shadow(0 0 9px var(--live-accent-soft)); }
.live-stat-number { margin-top: 4px; color: var(--live-text); font: 700 25px/1.2 'Cinzel', serif; }
.live-stat-label { margin-top: 7px; color: var(--live-muted); font: 700 9px/1.2 'Cinzel', serif; letter-spacing: .16em; text-transform: uppercase; }

.live-legend { position: relative; width: min(820px, 100%); margin: 62px auto 0; text-align: center; }
.live-kicker { color: var(--live-accent); font: 700 11px/1.4 'Cinzel', serif; letter-spacing: .25em; text-transform: uppercase; }
.live-badge { display: inline-block; margin: 12px 0 20px; padding: 4px 13px; border: 1px solid rgba(74,222,128,.35); border-radius: 99px; color: #4ade80; background: rgba(74,222,128,.08); font-size: 9px; letter-spacing: .12em; }
.live-podium { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.live-podium-card {
  position: relative;
  width: 218px;
  min-height: 255px;
  padding: 30px 18px 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--live-panel-alt), var(--live-panel));
  border: 1px solid var(--live-border);
  clip-path: polygon(8% 0,100% 0,100% 92%,92% 100%,0 100%,0 8%);
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}
.live-podium-card.rank-1 { width: 236px; min-height: 300px; border-color: var(--live-accent); box-shadow: 0 0 35px var(--live-accent-soft); }
.live-podium-card.empty { opacity: .55; filter: grayscale(.7); }
.live-medal { font-size: 38px; }
.live-podium-card h3 { margin-top: 7px; color: var(--live-text); font: 700 18px/1.2 'Cinzel', serif; letter-spacing: .06em; }
.live-podium-card p { min-height: 22px; color: var(--live-muted); font-size: 11px; }
.live-period { display: inline-block; margin-top: 12px; padding: 3px 9px; border: 1px solid var(--live-border); border-radius: 99px; color: var(--live-accent); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.live-pvp-data { display: flex; justify-content: center; gap: 25px; margin-top: 12px; color: var(--live-muted); font-size: 9px; text-transform: uppercase; }
.live-pvp-data span { display: flex; flex-direction: column; }
.live-pvp-data b { color: var(--live-text); font: 700 20px/1.1 'Cinzel', serif; }

.live-bosses {
  position: relative;
  z-index: 3;
  padding: 82px max(24px, calc((100% - 1200px) / 2)) 90px;
  background: linear-gradient(rgba(3,5,9,.82), rgba(3,5,9,.92)), url('../images/oath-fold-rankings.webp') center/cover no-repeat;
  border-block: 1px solid var(--live-border);
}
.live-section-head { text-align: center; margin-bottom: 54px; }
.live-section-label { color: var(--live-accent); font: 700 10px/1.4 'Cinzel', serif; letter-spacing: .28em; }
.live-section-head h2 { color: var(--live-text); font: 700 clamp(27px,4vw,40px)/1.2 'Cinzel', serif; text-transform: uppercase; }
.live-section-head h2 span { color: var(--live-accent); }
.live-section-head > p:last-child { color: var(--live-muted); font-size: 15px; }
.live-boss-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.live-boss-card {
  min-height: 178px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(145deg, var(--live-panel-alt), var(--live-panel));
  border: 1px solid var(--live-border);
  border-radius: 12px;
}
.live-boss-card img { width: 48px; height: 48px; object-fit: contain; margin: 0 auto 5px; filter: drop-shadow(0 0 9px var(--live-accent-soft)); }
.live-boss-card h3 { color: var(--live-text); font: 700 14px/1.3 'Cinzel', serif; text-transform: uppercase; }
.live-boss-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 4px 13px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.live-boss-status i { width: 7px; height: 7px; border-radius: 50%; }
.live-boss-status.alive { color: #4ade80; border: 1px solid rgba(74,222,128,.38); background: rgba(74,222,128,.08); }
.live-boss-status.alive i { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.live-boss-status.dead { color: #f87171; border: 1px solid rgba(248,113,113,.32); background: rgba(248,113,113,.07); }
.live-boss-status.dead i { background: #f87171; }
.live-boss-timer { margin-top: 11px; color: var(--live-accent); font: 700 15px/1.2 'Cinzel', serif; }
.live-boss-timer small { display: block; margin-top: 5px; color: var(--live-muted); font: 700 8px/1.2 'Cinzel', serif; letter-spacing: .17em; text-transform: uppercase; }
.live-boss-timer b { display: block; margin-top: 3px; }

@media (max-width: 1100px) {
  .live-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .live-boss-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .live-ticker { margin-top: 64px; }
  .live-ticker-label { padding: 0 13px; }
  .live-home { padding-inline: 12px; }
  .live-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .live-podium { flex-direction: column; align-items: center; }
  .live-podium-card, .live-podium-card.rank-1 { width: min(310px, 94%); min-height: 240px; }
  .live-podium-card.rank-1 { order: -1; }
  .live-bosses { padding: 64px 14px 70px; }
  .live-boss-grid { grid-template-columns: 1fr; }
}
