:root {
  --bg0: #07090c;
  --bg1: #0e1318;
  --bg2: #151c24;
  --line: rgba(180, 210, 200, 0.12);
  --text: #e7efe9;
  --muted: #8a9a92;
  --accent: #7dffb3;
  --accent-dim: rgba(125, 255, 179, 0.14);
  --warn: #ffc857;
  --danger: #ff6b6b;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
}

body {
  position: relative;
  isolation: isolate;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(125, 255, 179, 0.12), transparent 55%),
    radial-gradient(700px 420px at 90% 0%, rgba(255, 180, 80, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0e12 0%, #07090c 45%, #050607 100%);
}

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 9, 12, 0.72);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 7rem;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: var(--accent);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
  background: var(--accent-dim);
  border-color: rgba(125, 255, 179, 0.28);
}

.preset {
  margin-left: auto;
  appearance: none;
  border: 1px solid rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.08);
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease;
}

.preset:hover {
  background: rgba(255, 200, 87, 0.16);
  transform: translateY(-1px);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.panel[hidden] {
  display: none;
}

.panel-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toolbar input {
  font: inherit;
  font-family: var(--mono);
  color: var(--text);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  min-width: 12rem;
}

.toolbar .minute input {
  min-width: 4.5rem;
  width: 4.5rem;
}

.match-list,
.similar-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.match-row,
.similar-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.7rem 0.65rem;
  border-radius: 0.45rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.match-row:hover,
.similar-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.match-row.selected {
  background: var(--accent-dim);
  border-color: rgba(125, 255, 179, 0.25);
}

.match-row .date,
.similar-row .date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.match-row .teams,
.similar-row .teams {
  font-weight: 600;
}

.match-row .meta,
.similar-row .meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  justify-self: end;
}

.match-row.preset-row .teams::after {
  content: " preset";
  color: var(--warn);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.freeze {
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 280ms ease both;
}

.freeze-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.freeze-label {
  margin-top: 0.35rem;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
}

.freeze-meta {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.similar-row .score {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
}

.similar-row {
  grid-template-columns: 4rem 5.5rem 1fr auto;
}

/* ------------------------------------------------------------------ Live */

.tab-badge {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: 0.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.15rem;
  text-align: center;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}

.tab-badge[hidden] {
  display: none;
}

.live-toolbar {
  align-items: center;
  justify-content: space-between;
}

.chip-group {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.chip,
.refresh,
.mini {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.chip:hover,
.refresh:hover,
.mini:hover {
  color: var(--text);
  border-color: rgba(125, 255, 179, 0.3);
}

.chip.active {
  color: var(--text);
  background: var(--accent-dim);
  border-color: rgba(125, 255, 179, 0.32);
}

.refresh:disabled {
  opacity: 0.5;
  cursor: progress;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.live-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.live-meta.stale {
  color: var(--warn);
}

.chiclet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.chiclet {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem 0.85rem 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 28, 36, 0.92), rgba(14, 19, 24, 0.96));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: rise 240ms ease both;
  position: relative;
  overflow: hidden;
}

.chiclet.state-in {
  border-color: rgba(125, 255, 179, 0.28);
}

.chiclet.state-in.red-zone {
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.12);
}

.chiclet.state-pre {
  opacity: 0.82;
}

.chiclet-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.4rem;
}

.status {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.status.live {
  color: var(--accent);
  border-color: rgba(125, 255, 179, 0.4);
  background: var(--accent-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status.live .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  animation: ping 1.4s ease-out infinite;
}

.status.final {
  color: var(--text);
}

.chiclet-head .net {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.wp-bar {
  display: flex;
  height: 1.25rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-bar .seg,
.stat-row .sbar .seg {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.wp-bar .seg {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 0 0.45rem;
  gap: 0.25rem;
}

.wp-bar .seg.a {
  justify-content: flex-start;
}

.wp-bar .seg.h {
  justify-content: flex-end;
}

.team-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.team-row {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto auto 2.6rem;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem 0.3rem 0.55rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--team);
  background: rgba(255, 255, 255, 0.025);
}

.team-row.has-ball {
  background: rgba(125, 255, 179, 0.07);
}

.team-row.loser {
  opacity: 0.6;
}

.team-row .logo {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.logo-fallback {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--team);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
}

.team-row .tname {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.team-row .tname b {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.team-row .tname .full {
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row .rec {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.team-row .poss {
  width: 0.85rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #a0522d;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.team-row .poss::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  top: 50%;
  height: 1px;
  background: #fff;
}

.team-row .to {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.team-row .tscore {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.team-row.winner .tscore {
  color: var(--accent);
}

.drive {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field {
  width: 100%;
  height: 3.4rem;
  border-radius: 0.35rem;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.field .turf {
  fill: #1e5b34;
}

.field .ez {
  opacity: 0.85;
}

.field .ez.hot {
  animation: hot 1.2s ease-in-out infinite alternate;
}

.field .ezt {
  fill: rgba(255, 255, 255, 0.85);
  font-family: var(--mono);
  font-size: 4.5px;
  font-weight: 600;
  text-anchor: middle;
}

.field .yl {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.35;
}

.field .mid {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 0.5;
}

.field .hash {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.3;
}

.field .yn {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 3.6px;
  text-anchor: middle;
}

.field .fd {
  stroke: #ffe45c;
  stroke-width: 0.7;
  stroke-dasharray: 1.5 1;
}

.field .trail {
  stroke: rgba(125, 255, 179, 0.85);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.field .ball ellipse {
  fill: #b5651d;
  stroke: #fff;
  stroke-width: 0.35;
}

.field .ball .arrow {
  fill: #fff;
  opacity: 0.9;
}

.down-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.down-line .dd {
  color: var(--text);
  font-weight: 600;
}

.down-line .rz {
  color: var(--danger);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.last-play {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.28);
  border-left: 2px solid var(--accent);
}

.lp-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.lp-text {
  font-size: 0.82rem;
  line-height: 1.35;
}

.lp-drive {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.stat-compare {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 3.2rem;
  grid-template-areas:
    "a bar h"
    "a label h";
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.stat-row .sv {
  font-variant-numeric: tabular-nums;
}

.stat-row .sv.away {
  grid-area: a;
  text-align: left;
}

.stat-row .sv.home {
  grid-area: h;
  text-align: right;
}

.stat-row .sbar {
  grid-area: bar;
  display: flex;
  height: 1.05rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  gap: 1px;
}

.stat-row .sbar .seg {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0 0.35rem;
  opacity: 0.95;
  transition: width 400ms ease;
}

.stat-row .sbar .seg.a {
  justify-content: flex-start;
}

.stat-row .sbar .seg.h {
  justify-content: flex-end;
}

.stat-row .sl {
  grid-area: label;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.leaders {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.leader-row {
  display: grid;
  grid-template-columns: 1fr 2.6rem 1fr;
  gap: 0.4rem;
  font-size: 0.74rem;
  align-items: start;
}

.leader-row .lv {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leader-row .lv b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-row .lv small {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-row .lv.home {
  text-align: right;
}

.leader-row .ll {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.15rem;
}

.linescore {
  display: grid;
  grid-template-columns: 2.6rem repeat(auto-fit, minmax(1.6rem, 1fr));
  gap: 0.1rem 0.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: center;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.linescore .lsn {
  text-align: left;
  font-weight: 600;
}

.linescore .lsh {
  color: var(--muted);
  font-size: 0.6rem;
}

.linescore .lst {
  font-weight: 700;
  color: var(--accent);
}

.pre-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.chiclet-foot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.2rem;
}

.mini {
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
}

.mini.sim {
  color: var(--accent);
  border-color: rgba(125, 255, 179, 0.3);
}

.snap-label {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- Teams */

.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.rank-chart-card {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 0.85rem;
}

.rank-chart-head h3,
.wp-acc-head h3 {
  margin: 0 0 0.2rem;
}

.rank-chart {
  --weeks: 1;
  --ranks: 32;
  --y: 2.4rem;
  margin-top: 0.6rem;
}

.rank-x {
  display: grid;
  grid-template-columns: var(--y) repeat(var(--weeks), minmax(0, 1fr));
  gap: 0.25rem;
  align-items: end;
  padding-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}

.rank-x .rank-y-lab {
  text-align: right;
  padding-right: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.6rem;
}

.rank-body {
  position: relative;
}

.rank-bumps {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--y);
  width: auto;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.rank-bumps .grid {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 0.4;
}

.rank-bumps .bump {
  fill: none;
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.28;
}

.rank-chart.hot .bump {
  opacity: 0.08;
}

.rank-chart.hot .bump.on {
  opacity: 0.95;
  stroke-width: 2.2;
}

.rank-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rank-row {
  display: grid;
  grid-template-columns: var(--y) repeat(var(--weeks), minmax(0, 1fr));
  gap: 0.25rem;
  align-items: center;
  min-height: 1.35rem;
}

.rank-y {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
  padding-right: 0.4rem;
}

.rank-cell {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  height: 1.3rem;
  padding: 0 0.4rem;
  border: 1px solid transparent;
  border-left: 3px solid var(--team, #555);
  border-radius: 4px;
  background: color-mix(in srgb, var(--team, #555) 22%, rgba(8, 12, 16, 0.7));
  color: var(--text);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.rank-cell b {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.rank-cell .rn {
  color: rgba(231, 239, 233, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-cell.empty {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.rank-chart.hot .rank-cell {
  opacity: 0.22;
}

.rank-chart.hot .rank-cell.on {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.2);
}

.rank-cell:hover,
.rank-chart.hot .rank-cell.on:hover {
  border-color: rgba(125, 255, 179, 0.45);
}

@media (max-width: 760px) {
  .rank-cell .rn {
    display: none;
  }
  .rank-row {
    min-height: 1.2rem;
  }
}

.team-chiclet {
  appearance: none;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-left: 3px solid var(--team);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.team-chiclet:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 255, 179, 0.35);
  border-left-color: var(--team);
}

.team-chiclet .logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.team-chiclet .tname {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.team-chiclet .tname b {
  letter-spacing: 0.03em;
}

.team-chiclet .tname .full {
  color: var(--muted);
  font-size: 0.78rem;
}

.rec-big {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
}

.team-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.6rem;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.kpi small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi b {
  font-weight: 600;
}

.rank {
  display: inline-block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.1rem;
}

.rank.good {
  color: var(--accent);
  border-color: rgba(125, 255, 179, 0.4);
  background: var(--accent-dim);
}

.rank.bad {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.1);
}

.kpi .rank {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.team-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: rise 240ms ease both;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 0.9rem;
  border-bottom: 2px solid var(--team);
}

.detail-head .logo.big {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
}

.detail-title h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.detail-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

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

.card {
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 28, 36, 0.85), rgba(14, 19, 24, 0.95));
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 small {
  margin-left: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 4rem 2.6rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.metric-row.tendency .ml {
  color: var(--muted);
  font-style: italic;
}

.metric-row .mv {
  font-family: var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.metric-row .mr {
  text-align: right;
}

.mix {
  display: grid;
  grid-template-columns: 7.5rem 1fr 4.5rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
}

.mix-label {
  color: var(--muted);
}

.mix-n {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-align: right;
}

.wp-bar.dir .seg {
  justify-content: center;
  background: #3a6ea5;
}

.wp-bar.dir .seg.mid {
  background: #5c4b8a;
}

.mini-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.mini-kpis b {
  color: var(--text);
  font-family: var(--mono);
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem 1.25rem;
}

.pl-block h4 {
  margin: 0 0 0.3rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pl-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-areas:
    "pos name"
    "pos line";
  column-gap: 0.4rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.pl-pos {
  grid-area: pos;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.pl-name {
  grid-area: name;
  font-weight: 600;
}

.pl-line {
  grid-area: line;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.glog-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.glog {
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
}

.glog.open {
  border-color: rgba(125, 255, 179, 0.25);
}

.glog-head {
  display: grid;
  grid-template-columns: 2.6rem 4.5rem 6.5rem 6.5rem 1fr 4.5rem 1rem;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}

.glog-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.glog-week,
.glog-stat {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.7rem;
}

.glog-opp {
  font-weight: 600;
}

.glog-res {
  font-family: var(--mono);
  font-weight: 600;
}

.glog-res.win {
  color: var(--accent);
}

.glog-res.loss {
  color: var(--danger);
}

.glog-caret {
  color: var(--muted);
}

.drives {
  padding: 0.3rem 0.6rem 0.6rem;
}

.drive-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.drive {
  border-radius: 0.4rem;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.drive.mine {
  border-left-color: var(--accent);
}

.drive-head {
  display: grid;
  grid-template-columns: 2.6rem 4.5rem 1fr 6.5rem 5.5rem;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}

.drive-head:hover {
  background: rgba(255, 255, 255, 0.03);
}

.drive-team {
  font-weight: 700;
  font-family: var(--mono);
}

.drive-q,
.drive-mix {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.66rem;
}

.drive-desc {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-res {
  font-family: var(--mono);
  font-weight: 600;
  text-align: right;
  font-size: 0.68rem;
}

.drive-res.td {
  color: var(--accent);
}

.drive-res.fg {
  color: var(--warn);
}

.drive-res.to {
  color: var(--danger);
}

.plays {
  display: flex;
  flex-direction: column;
  padding: 0.2rem 0.55rem 0.5rem;
  gap: 0.15rem;
}

.play {
  display: grid;
  grid-template-columns: 7rem 6rem 1fr 2.6rem;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.25rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  border-left: 2px solid transparent;
}

.play.pass {
  border-left-color: #3a6ea5;
}

.play.rush {
  border-left-color: #3f7f5f;
}

.play.explosive {
  background: rgba(125, 255, 179, 0.06);
}

.play.turnover {
  background: rgba(255, 107, 107, 0.08);
}

.play.scoring .play-yds {
  color: var(--accent);
}

.play-dd,
.play-tag,
.play-yds {
  font-family: var(--mono);
  font-size: 0.64rem;
}

.play-dd {
  color: var(--muted);
}

.play-tag {
  color: var(--accent);
  letter-spacing: 0.04em;
}

.play-text {
  line-height: 1.35;
}

.play-yds {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.play-part {
  grid-column: 3 / span 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .glog-head {
    grid-template-columns: 2.6rem 1fr auto 1rem;
  }
  .glog-stat {
    display: none;
  }
  .drive-head {
    grid-template-columns: 2.6rem 1fr 5rem;
  }
  .drive-q,
  .drive-mix {
    display: none;
  }
  .play {
    grid-template-columns: 1fr 2.6rem;
  }
  .play-dd,
  .play-tag {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------- WinProb */

.wp-record {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.wp-big {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.wp-big-rec {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wp-big-pct {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
}

.wp-week-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.wk {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  min-width: 4.2rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-family: var(--mono);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.wk small {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.wk b {
  font-size: 0.9rem;
  font-weight: 600;
}

.wk span {
  font-size: 0.68rem;
  color: var(--muted);
}

.wk i {
  font-style: normal;
  font-size: 0.58rem;
  color: var(--warn);
}

.wk.good b {
  color: var(--accent);
}

.wk.bad b {
  color: var(--danger);
}

.wk.pending {
  opacity: 0.6;
}

.wk.active,
.wk:hover {
  border-color: rgba(125, 255, 179, 0.4);
  background: var(--accent-dim);
  opacity: 1;
}

.wp-acc-card {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem 1.1rem;
}

.wp-acc {
  --max: 16;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.45rem;
  min-height: 17rem;
  margin-top: 0.7rem;
}

.wp-acc-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-align: right;
  padding: 1.35rem 0 1.7rem;
}

.wp-acc-plot {
  position: relative;
  min-height: 16rem;
}

.wp-acc-grid {
  position: absolute;
  inset: 1.35rem 0 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.wp-acc-grid i {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.wp-acc-grid i:last-child {
  background: rgba(255, 255, 255, 0.18);
}

.wp-acc-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.wp-acc-col {
  appearance: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.wp-acc-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.wp-acc-stack {
  position: relative;
  width: 42%;
  min-width: 1.35rem;
  max-width: 3.4rem;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.wp-acc-stack .miss,
.wp-acc-stack .hit {
  position: absolute;
  left: 0;
  right: 0;
}

.wp-acc-stack .miss {
  inset: 0;
  background: rgba(255, 107, 107, 0.35);
}

.wp-acc-stack .hit {
  bottom: 0;
  background: var(--accent);
}

.wp-acc-col.mid .hit {
  background: var(--warn);
}

.wp-acc-col.bad .hit {
  background: var(--danger);
}

.wp-acc-col.pending .wp-acc-stack {
  background: rgba(255, 255, 255, 0.06);
}

.wp-acc-col.pending .hit,
.wp-acc-col.pending .miss {
  display: none;
}

.wp-acc-x {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  padding-bottom: 0.1rem;
}

.wp-acc-col:hover .wp-acc-stack,
.wp-acc-col.active .wp-acc-stack {
  box-shadow: 0 0 0 2px rgba(125, 255, 179, 0.35);
}

.wp-acc-col.active .wp-acc-x,
.wp-acc-col.active .wp-acc-label {
  color: var(--accent);
}

.wp-buckets {
  margin-bottom: 1.25rem;
}

.bucket-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.bucket-legend .exp {
  display: inline-block;
  width: 2px;
  height: 0.8rem;
  background: var(--warn);
}

.bucket-legend .sw {
  display: inline-block;
  width: 0.8rem;
  height: 0.5rem;
  border-radius: 2px;
}

.bucket-legend .sw.good,
.bk-bar .act.good {
  background: var(--accent);
}

.bucket-legend .sw.bad,
.bk-bar .act.bad {
  background: var(--danger);
}

.bucket-row {
  display: grid;
  grid-template-columns: 4rem 1fr 7rem 9rem 10rem;
  grid-template-areas: "label bar rec exp split";
  gap: 0.6rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
}

.bk-label {
  grid-area: label;
  font-family: var(--mono);
  font-weight: 600;
}

.bk-bar {
  grid-area: bar;
  position: relative;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.bk-bar .act {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 400ms ease;
}

.bk-bar .exp {
  position: absolute;
  top: -0.2rem;
  bottom: -0.2rem;
  width: 2px;
  margin-left: -1px;
  background: var(--warn);
  z-index: 1;
}

.bk-bar .tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.bk-rec {
  grid-area: rec;
  font-family: var(--mono);
}

.bk-exp {
  grid-area: exp;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}

.bk-split {
  grid-area: split;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-align: right;
}

.wp-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0.75rem;
}

.wp-week-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.wp-card.hit {
  border-color: rgba(125, 255, 179, 0.35);
}

.wp-card.miss {
  border-color: rgba(255, 107, 107, 0.4);
}

.verdict {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.verdict.hit {
  color: var(--accent);
  background: var(--accent-dim);
}

.verdict.miss {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.12);
}

.verdict.tie {
  color: var(--warn);
}

.bucket-tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.wp-card .team-row {
  grid-template-columns: 1.7rem 1fr auto 2.6rem;
}

.wp-card .team-row.fav .tname b {
  color: var(--accent);
}

.wp-pct {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.wp-pct.fav {
  color: var(--text);
  font-weight: 600;
}

.wp-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.wp-lines small {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wp-margin {
  color: var(--accent);
  font-weight: 600;
}

.wp-market {
  color: var(--warn);
}

.wp-actual {
  color: var(--text);
}

.wp-more {
  margin-top: 1rem;
}

.wp-more summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.wp-more[open] summary {
  margin-bottom: 0.6rem;
}

.tb-grid {
  display: grid;
  grid-template-columns: 6rem 4.5rem 4.5rem repeat(var(--cols), minmax(3.4rem, 1fr));
  gap: 0.15rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  align-items: center;
}

.tb-h {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line);
}

.tb-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.tb-team .logo {
  width: 1.1rem;
  height: 1.1rem;
  object-fit: contain;
}

.tb-c {
  text-align: center;
  padding: 0.15rem 0;
  border-radius: 0.3rem;
}

.tb-c.good {
  color: var(--accent);
  background: var(--accent-dim);
}

.tb-c.bad {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.1);
}

.tb-c.muted,
.tb-c.empty {
  color: var(--muted);
}

/* ---- power ratings ---- */
.delta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  white-space: nowrap;
}

.delta.up {
  color: var(--accent);
}

.delta.down {
  color: var(--danger);
}

.delta.flat {
  color: var(--muted);
}

.power-line,
.power-trio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: -0.15rem 0 0.4rem;
  flex-wrap: wrap;
}

.side-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.side-pill small {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-pill b {
  font-size: 0.88rem;
  font-weight: 600;
}

.per {
  font-size: 0.62em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.08em;
}

.power-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.power-badge b {
  font-size: 0.92rem;
  font-weight: 600;
}

.spark {
  width: 90px;
  height: 26px;
  flex: none;
}

.spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.spark circle {
  fill: var(--accent);
}

.spark.down polyline {
  stroke: var(--danger);
}

.spark.down circle {
  fill: var(--danger);
}

.spark .zero {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-dasharray: 2 3;
}

.power-card {
  margin-bottom: 1rem;
}

.power-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.power-head h3 {
  margin-bottom: 0.15rem;
}

.lede.small {
  font-size: 0.78rem;
  margin: 0;
}

.power-kpis {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.power-kpis .kpi b {
  font-size: 1.05rem;
}

.power-kpis .kpi .power-num {
  font-size: 1.6rem;
  color: var(--accent);
}

.power-kpis .kpi .delta {
  font-size: 0.9rem;
}

.power-kpis .kpi small .delta {
  font-size: 0.6rem;
}

.power-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.25rem 0 0.5rem;
}

.power-chart .grid {
  stroke: rgba(255, 255, 255, 0.06);
}

.power-chart .grid.zero {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-dasharray: 4 4;
}

.power-chart .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.power-chart circle {
  stroke: var(--bg1);
  stroke-width: 2;
}

.power-chart text {
  font-family: var(--mono);
  fill: var(--muted);
  font-size: 10px;
  text-anchor: middle;
}

.power-chart .ylab {
  text-anchor: end;
}

.power-chart .ylab.avg {
  text-anchor: start;
}

.power-chart .vlab {
  fill: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.power-chart .rlab {
  font-size: 9px;
}

.power-table summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
}

.power-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-family: var(--mono);
}

.power-table th,
.power-table td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.power-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.power-table .num {
  text-align: right;
}

.rating-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
}

.rating-row {
  display: grid;
  grid-template-columns: 2rem 1.3rem 1fr 3rem 3.2rem 3.6rem 2.6rem 4.6rem 3.4rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  width: 100%;
  border-radius: 6px;
}

button.rating-row {
  cursor: pointer;
}

button.rating-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rating-row.head {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rating-row .rp {
  font-family: var(--mono);
  font-weight: 600;
  text-align: right;
}

.rating-row .rd {
  text-align: right;
}

.rating-row .rs .spark {
  width: 70px;
  height: 22px;
}

.rating-row .logo {
  width: 1.3rem;
  height: 1.3rem;
  object-fit: contain;
}

.rating-row .rk,
.rating-row .rr {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.68rem;
}

.rating-row .re {
  font-family: var(--mono);
  text-align: right;
  color: var(--accent);
}

@media (max-width: 760px) {
  .wp-record {
    grid-template-columns: 1fr;
  }
  .bucket-row {
    grid-template-columns: 4rem 1fr 7rem;
    grid-template-areas:
      "label bar rec"
      "exp exp split";
  }
  .bk-split {
    text-align: left;
  }
  .rating-row {
    grid-template-columns: 1.8rem 1.3rem 1fr 3rem 3.2rem 3rem 2.4rem;
  }
  .rating-row .rs,
  .rating-row .re {
    display: none;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes hot {
  from {
    opacity: 0.65;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .top {
    flex-wrap: wrap;
  }
  .preset {
    margin-left: 0;
  }
  .match-row,
  .similar-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .match-row .meta,
  .similar-row .meta {
    justify-self: start;
  }
  .chiclet-grid {
    grid-template-columns: 1fr;
  }
  .live-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
