/* Should They Have Gone For It? — broadcast-scoreboard meets quant terminal */
:root {
  --bg: #0a0f11;
  --bg-2: #0e1518;
  --panel: #111a1d;
  --panel-2: #0d1416;
  --line: #20302f;
  --ink: #eaf2ee;
  --muted: #7f8f8a;
  --chalk: #f3efe2;
  --go: #31d67e;
  --punt: #f2b03c;
  --fg: #57a6ff;
  --danger: #ff5573;
  --turf-a: #1c6a3c;
  --turf-b: #124f2c;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, sans-serif;
  --disp: "Anton", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, #123 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mono {
  font-family: var(--mono);
}
a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(87, 166, 255, 0.35);
}
a:hover {
  border-color: var(--fg);
}
b {
  color: #fff;
  font-weight: 700;
}

/* masthead */
.masthead {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 6vw, 64px) 20px 0;
}
.mast-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
}
/* brandmark: the "4" tile stamps down with a chalk-paint splat on load */
.brandmark {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.mark-4 {
  position: relative;
  z-index: 2;
  display: block;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
  transform-origin: 50% 60%;
  animation: stamp 0.62s cubic-bezier(0.18, 1.25, 0.4, 1) both;
}
.splat {
  position: absolute;
  inset: -16px;
  z-index: 1;
  background: radial-gradient(
    closest-side,
    rgba(49, 214, 126, 0.55),
    transparent 72%
  );
  clip-path: polygon(
    50% 0%,
    63% 16%,
    84% 10%,
    82% 32%,
    100% 42%,
    84% 55%,
    92% 78%,
    68% 74%,
    55% 96%,
    44% 76%,
    18% 84%,
    24% 60%,
    4% 50%,
    22% 36%,
    14% 14%,
    38% 20%
  );
  animation: splat 0.62s ease-out both;
  pointer-events: none;
}
@keyframes stamp {
  0% {
    transform: scale(1.7) rotate(-9deg);
    opacity: 0;
  }
  55% {
    transform: scale(0.93) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
@keyframes splat {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  42% {
    transform: scale(1.18);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 0.26;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mark-4,
  .splat {
    animation: none;
  }
  .splat {
    opacity: 0.26;
  }
}
h1 {
  font-family: var(--disp);
  font-weight: 400;
  line-height: 0.9;
  margin: 0.32em 0 0.18em;
  font-size: clamp(46px, 10vw, 120px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 em {
  font-style: normal;
  color: var(--go);
  position: relative;
}
h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.07em;
  background: var(--go);
  opacity: 0.25;
}
.dek {
  max-width: 60ch;
  color: #c3cec9;
  font-size: clamp(15px, 1.6vw, 18px);
}
.dek b {
  color: var(--go);
  font-weight: 700;
}

/* tabs */
.tabs {
  display: flex;
  gap: 2px;
  margin: 26px 0 0;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
  transition: color 0.18s;
}
.tab:hover {
  color: var(--ink);
}
.tab.is-active {
  color: var(--ink);
}
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--go);
}

/* views */
main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}
.view {
  display: none;
  animation: fade 0.4s ease;
}
.view.is-active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.panel-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.call-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .call-grid {
    grid-template-columns: 1fr;
  }
}

/* field */
.field-wrap {
  margin-bottom: 20px;
}
.field {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #0c3a20;
  box-shadow: inset 0 2px 30px rgba(0, 0, 0, 0.4);
}
.ez {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c3a20;
}
.ez span {
  font-family: var(--disp);
  font-size: 13px;
  color: #5f8a72;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.ez-opp span {
  transform: rotate(0);
}
.turf {
  position: relative;
  cursor: crosshair;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 9.9%,
      rgba(255, 255, 255, 0.28) 9.9% 10.1%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1) 0 8px,
      transparent 8px 16px
    ),
    linear-gradient(90deg, var(--turf-b), var(--turf-a) 50%, var(--turf-b));
}
.turf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.16) 0 5%,
    transparent 5% 10%
  );
}
.ball {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 20px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%, #b5623a, #6f3115);
  border-radius: 50%/42%;
  border: 1px solid #2b120a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  z-index: 3;
  transition: left 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.ball::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.5px;
  height: 9px;
  background: #f3efe2;
  border-radius: 2px;
}
.togo-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--go);
  opacity: 0.85;
  z-index: 2;
  box-shadow: 0 0 8px var(--go);
  transition: left 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.togo-marker::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -3px;
  width: 8px;
  height: 8px;
  background: var(--go);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.spot-readout {
  margin-top: 12px;
  font-family: var(--disp);
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--chalk);
}
.spot-readout .mono {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}

/* controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ctrl label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 7px;
}
.ctrl output {
  color: var(--ink);
}
.ctrl-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--go) var(--fill, 50%),
    #22302e var(--fill, 50%)
  );
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--chalk);
  border: 2px solid var(--go);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--chalk);
  border: 2px solid var(--go);
}
.seg {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.seg button {
  background: var(--panel-2);
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: 0.15s;
}
.seg button:last-child {
  border-right: 0;
}
.seg button.on {
  background: var(--go);
  color: #06210f;
  font-weight: 700;
}
.seg button:hover:not(.on) {
  color: var(--ink);
}

/* verdict */
.verdict-panel {
  position: sticky;
  top: 16px;
}
.verdict {
  border-radius: 10px;
  padding: 22px 20px;
  margin-bottom: 18px;
  text-align: center;
  background: radial-gradient(
    120% 120% at 50% 0%,
    rgba(49, 214, 126, 0.14),
    transparent 70%
  );
  border: 1px solid var(--line);
  transition: 0.3s;
}
.v-call {
  font-family: var(--disp);
  font-size: clamp(34px, 6vw, 52px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--go);
  text-shadow: 0 0 30px rgba(49, 214, 126, 0.35);
}
.v-edge {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.verdict.is-punt {
  background: radial-gradient(
    120% 120% at 50% 0%,
    rgba(242, 176, 60, 0.14),
    transparent 70%
  );
}
.verdict.is-punt .v-call {
  color: var(--punt);
  text-shadow: 0 0 30px rgba(242, 176, 60, 0.3);
}
.verdict.is-fg {
  background: radial-gradient(
    120% 120% at 50% 0%,
    rgba(87, 166, 255, 0.14),
    transparent 70%
  );
}
.verdict.is-fg .v-call {
  color: var(--fg);
  text-shadow: 0 0 30px rgba(87, 166, 255, 0.3);
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 54px;
  align-items: center;
  gap: 10px;
}
.bar-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.bar-track {
  height: 22px;
  background: #0c1513;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.bar-fill {
  height: 100%;
  border-radius: 5px 0 0 5px;
  transition: width 0.45s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
}
.bar-fill.go {
  background: linear-gradient(90deg, #1c8a4f, var(--go));
}
.bar-fill.punt {
  background: linear-gradient(90deg, #a9772a, var(--punt));
}
.bar-fill.fg {
  background: linear-gradient(90deg, #2f6bb5, var(--fg));
}
.bar-val {
  font-family: var(--mono);
  font-size: 14px;
  text-align: right;
  color: var(--ink);
  font-weight: 500;
}
.bar-row.best .bar-name {
  color: var(--ink);
}
.bar-row.best .bar-track {
  box-shadow: 0 0 0 1px currentColor;
}
.bar-row.best.go {
  color: var(--go);
}
.bar-row.best.punt-c {
  color: var(--punt);
}
.bar-row.best.fg-c {
  color: var(--fg);
}
.v-note {
  margin-top: 16px;
  font-size: 13px;
  color: #aebbb6;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.v-note b {
  color: #fff;
}

.fineprint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
  max-width: 70ch;
  line-height: 1.6;
}

/* leaderboard */
.board-head {
  margin-bottom: 18px;
}
.board-head h2,
.method h2 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}
.board-head p {
  color: #b4c0bb;
  max-width: 72ch;
  margin: 0;
}
.board-panel {
  padding: 6px 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
thead th.num {
  text-align: right;
}
thead th:hover {
  color: var(--ink);
}
thead th.sorted {
  color: var(--go);
}
tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #172221;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: rgba(49, 214, 126, 0.04);
}
td.num {
  text-align: right;
  font-family: var(--mono);
}
.rank {
  font-family: var(--disp);
  color: var(--muted);
  font-size: 16px;
  width: 36px;
}
.rank.top {
  color: var(--danger);
}
.coach-name {
  font-weight: 600;
}
.team-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #182422;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.wp-cell {
  position: relative;
}
.wp-bar {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 85, 115, 0.16),
    rgba(255, 85, 115, 0.42)
  );
  z-index: 0;
}
.wp-cell span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
}

/* method */
.method {
  max-width: 78ch;
}
.method p {
  color: #c3cec9;
}
.method h3 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--go);
  margin: 32px 0 10px;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #c3cec9;
  font-size: 14.5px;
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 13px;
  font-family: var(--disp);
  font-size: 20px;
  color: var(--go);
  width: 26px;
  text-align: center;
}
.assump {
  padding-left: 18px;
  color: #c3cec9;
}
.assump li {
  margin-bottom: 9px;
}
.build-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--go);
  background: var(--panel-2);
  border-radius: 0 10px 10px 0;
}

/* footer */
.foot {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.foot b {
  color: var(--ink);
  font-weight: 600;
}
.foot-data {
  opacity: 0.7;
}
.nr {
  color: #22c55e;
  font-weight: 700;
  border-bottom: 0;
}
.nr:hover {
  border-bottom: 1px solid #22c55e;
}
@media (max-width: 620px) {
  .foot {
    justify-content: flex-start;
  }
  .foot-data {
    display: none;
  }
}
