:root {
  --panel: rgba(8, 10, 14, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-glow: 0 0 28px rgba(255, 210, 120, 0.18), 0 10px 40px rgba(0, 0, 0, 0.55);
  --text: #f4f6f8;
  --muted: rgba(244, 246, 248, 0.78);
  --rule: rgba(255, 255, 255, 0.55);
  --gold: #f0c14b;
  --accent: #d4a017;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  background: #05070b;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 50% 20%, rgba(80, 55, 20, 0.35), transparent 60%),
    radial-gradient(900px 500px at 15% 80%, rgba(30, 40, 70, 0.35), transparent 55%),
    radial-gradient(900px 500px at 85% 80%, rgba(30, 40, 70, 0.35), transparent 55%),
    linear-gradient(180deg, #141821 0%, #07090e 55%, #030407 100%);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.55));
}

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 22vw) 1fr minmax(260px, 22vw);
  gap: clamp(18px, 2.5vw, 40px);
  align-items: center;
  padding: clamp(28px, 4vh, 56px) clamp(24px, 3.5vw, 64px);
}

.board {
  height: min(68vh, 720px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: var(--panel-glow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
}

.board-head h2 {
  margin: 0;
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 1.7vw, 30px);
  letter-spacing: 0.04em;
  text-transform: none;
}

.trophy {
  display: inline-flex;
  filter: drop-shadow(0 0 6px rgba(240, 193, 75, 0.45));
}

.rule {
  height: 1px;
  margin: 12px 4px 10px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  opacity: 0.85;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0 2px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  min-height: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
}

.row-left {
  display: flex;
  gap: 0.35em;
  min-width: 0;
  overflow: hidden;
}

.row-rank {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
}

.row-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-value {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
  min-width: 0;
  padding-bottom: 4vh;
}

.brand-mark {
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: 0.12em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff6d2 0%, #f0c14b 42%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #1a1200) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.brand-sub {
  margin-top: 4px;
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.82);
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 48px;
}

.meta-line {
  font-size: clamp(14px, 1.1vw, 17px);
  color: rgba(255, 255, 255, 0.78);
}

.meta-line.status {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(13px, 1vw, 15px);
}

.progress-wrap {
  width: min(420px, 70%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 16px rgba(240, 193, 75, 0.35);
  transition: width 0.25s ease;
}

.progress-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-content: start;
    gap: 16px;
    overflow: auto;
  }

  .board {
    height: auto;
    max-height: none;
  }

  .rows {
    gap: 8px;
    justify-content: flex-start;
    padding: 4px 0 8px;
  }
}
