/* ==========================================================================
   Arcade v4 — performance dashboard
   Every st-* class reported by stats.js.
   ========================================================================== */

.st-wrap { display: grid; gap: clamp(16px, 2.2vw, 24px); }

/* ---------- header -------------------------------------------------------- */

.st-head { display: flex; align-items: center; gap: 14px; }
.st-back {
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-s);
  cursor: pointer;
}
.st-back:hover { background: var(--paper-3); }
.st-head__kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- hero score ---------------------------------------------------- */

.st-hero {
  display: grid;
  gap: 6px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-card);
  background: var(--on-pastel);
  color: #fff;
  box-shadow: 0 18px 44px rgba(47,38,32,.26);
}
.st-hero__kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}
.st-hero__score {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 9vw, 88px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.st-hero__of {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.55);
  font-family: var(--display);
}
.st-hero__rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--butter);
}
.st-hero__line { font-size: 14px; color: rgba(255,255,255,.7); }
.st-hero__note { font-size: 13px; color: rgba(255,255,255,.5); }

/* rank progress */
.st-rankbar { display: grid; gap: 8px; margin-top: 12px; }
.st-rankbar__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}
.st-rankbar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--coral);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.st-rankbar__caps {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.st-rankbar__cap:last-child { color: var(--butter); }

/* ---------- panels -------------------------------------------------------- */

.st-panel {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-s);
  padding: clamp(18px, 2.4vw, 28px);
}
.st-panel__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--ink);
  margin-bottom: 4px;
}
.st-panel__sub { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }

.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
@media (max-width: 760px) { .st-cols { grid-template-columns: 1fr; } }

/* ---------- radar --------------------------------------------------------- */

.st-radar { width: 100%; max-width: 340px; margin: 0 auto; display: block; }
.st-radar__box { display: grid; place-items: center; }
.st-radar__ring { fill: none; stroke: #e4e7ee; stroke-width: 1; }
.st-radar__axis { stroke: #e4e7ee; stroke-width: 1; }
.st-radar__shape {
  fill: rgba(255,158,128,.32);
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: all .4s ease;
}
.st-radar__dot { fill: var(--coral); }
.st-radar__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 10px;
  fill: var(--ink-2);
}

/* ---------- category bars ------------------------------------------------- */

.st-bars { display: grid; gap: 12px; }
.st-bar { display: grid; gap: 5px; }
.st-bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.st-bar__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.st-bar__pct { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.st-bar__track {
  height: 12px;
  border-radius: 999px;
  background: var(--ground);
  overflow: hidden;
}
.st-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mint);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.st-bar__note { font-size: 12px; color: var(--ink-3); }

/* ---------- drill history ------------------------------------------------- */

.st-drill { display: grid; gap: 14px; }
.st-drill__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st-drill__badge {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink-2);
}
.st-drill__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-fig {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--ground);
}
.st-fig__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.st-fig__v { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.9vw, 20px); color: var(--ink); }
.st-fig--best .st-fig__v { color: #a8411c; }

.st-drill__chartwrap { width: 100%; }
.st-drill__chart { width: 100%; height: 120px; display: block; }
.st-drill__line { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.st-drill__dot { fill: var(--coral); }
.st-drill__dot--last { fill: var(--ink); }
.st-drill__tick { stroke: #e4e7ee; stroke-width: 1; }
.st-drill__trend { font-size: 13px; color: var(--ink-2); }

/* ---------- best/avg pairs ------------------------------------------------ */

.st-pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-pair {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--ground);
  text-align: center;
}
.st-pair__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.st-pair__v { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.9vw, 20px); color: var(--ink); }
.st-pair--best .st-pair__v { color: #a8411c; }
.st-pair--gap .st-pair__v { color: #2f6d5f; }

/* ---------- weakest category --------------------------------------------- */

.st-weak {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-card);
  background: linear-gradient(150deg, #fff4ee, #ffe9df);
  border: 2px dashed rgba(226,96,60,.4);
}
.st-weak__tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a8411c;
}
.st-weak__text {
  flex: 1;
  min-width: 200px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.st-weak__body { flex: 1; min-width: 200px; }
.st-weak__btn { flex: none; }

/* ---------- totals -------------------------------------------------------- */

.st-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px) { .st-totals { grid-template-columns: repeat(2, 1fr); } }
.st-total {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-s);
  text-align: center;
}
.st-total__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.st-total__v { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); }

.st-foot { font-size: 13px; color: var(--ink-3); text-align: center; }
.st-next {
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  padding: 10px;
}
/* inside the dark hero this text must be light */
.st-hero .st-next { color: rgba(255,255,255,.66); }
.st-hero .st-hero__note { color: rgba(255,255,255,.58); }