@font-face {
  font-family: "Manrope";
  src: url("Manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("BarlowCondensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("BarlowCondensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --shark: #272729;
  --black: #000000;
  --white: #ffffff;
  --jade: #00B24C;
  --azure: #0285F0;
  --ink: #04140a;
  --line: rgba(255, 255, 255, 0.1);
  --muted: rgba(255, 255, 255, 0.68);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  background: var(--black) url("bg-harbor.jpg") center/cover no-repeat;
  z-index: 0;
}
body::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.9));
  z-index: 0;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--jade); color: var(--ink); }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 90;
  transform: translateY(-160%);
  background: var(--jade);
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
}
.skip:focus { transform: none; }
#splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: var(--black);
  text-align: center;
  transition: opacity 0.3s ease;
}
#splash.off { opacity: 0; }
#splash img { width: 132px; height: 132px; object-fit: contain; }
#splash .eyebrow {
  margin: 12px 0 0;
  color: var(--jade);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}
#splash h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(72px, 16vw, 112px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0.02em;
}
.app { position: relative; z-index: 1; min-height: 100dvh; }
.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 16px 12px;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.brand { margin: 0; display: grid; gap: 2px; }
.brand small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jade);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}
.brand span {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.03em;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn, .dock a, .chips button {
  border: 0;
  border-radius: 999px;
  background: var(--jade);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}
.btn.ghost, .chips button {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.azure { background: var(--azure); color: #041018; }
.btn:active, .dock a:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
#pinOpen.hot { box-shadow: inset 0 0 0 1px var(--jade); color: var(--jade); background: transparent; }
#toPass[aria-current="page"] { background: var(--azure); color: #041018; }
.ticker {
  overflow: hidden;
  background: var(--black);
  border-top: 2px solid var(--jade);
  border-bottom: 2px solid var(--azure);
  height: 34px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker p {
  margin: 0;
  padding: 6px 18px 0 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
main {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 16px 28px;
}
.fine {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 4px 16px 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.94);
  border-top: 1px solid var(--line);
}
.dock a {
  background: transparent;
  color: var(--white);
  box-shadow: none;
  min-height: 42px;
  font-size: 14px;
}
.dock a[aria-current="page"] { background: var(--jade); color: var(--ink); }
.hero, .panel, .card, .sheet, .result {
  background: rgba(39, 39, 41, 0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.hero, .panel { padding: 16px; margin-bottom: 14px; }
.hero { display: flex; gap: 14px; align-items: center; }
h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
h2 { margin: 0; font-size: clamp(32px, 6vw, 44px); line-height: 0.95; }
h3 { margin: 0 0 8px; font-size: 32px; line-height: 1; }
.quiz-head h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.05; }
.eyebrow, .kicker, .lbl {
  margin: 0 0 4px;
  color: var(--azure);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede { margin: 8px 0 0; color: var(--muted); }
.well {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--black);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.well img { width: 76px; height: 76px; object-fit: contain; }
.well.round { border-radius: 50%; }
.legend, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: 0 0 auto; }
.legend li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.chips button[aria-selected="true"] { background: var(--jade); color: var(--ink); box-shadow: none; }
.grid { display: grid; gap: 12px; }
.card { padding: 14px; }
.card[data-status="live"] { box-shadow: inset 0 3px 0 var(--jade); }
.card[data-status="soon"] { box-shadow: inset 0 3px 0 var(--azure); }
.card[data-status="final"] { box-shadow: inset 0 3px 0 var(--white); }
.card[data-status="delay"] { box-shadow: inset 0 3px 0 var(--azure), inset 0 0 0 1px rgba(2, 133, 240, 0.45); }
.card-top, .card-bot, .row, .side, .sheet-top, .statline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-top { margin-bottom: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.comp, .note, .muted { color: var(--muted); }
.comp { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.clock { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; margin-bottom: 8px; }
.sides { display: grid; gap: 8px; }
.side { min-width: 0; }
.side .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.side b { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1; min-width: 1.2ch; text-align: right; }
.crest {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--jade);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.crest.b { color: var(--azure); }
.card-bot { margin-top: 10px; color: var(--muted); font-size: 13px; }
.note { margin: 8px 0 0; font-size: 14px; }
.pin, .texty {
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.pin[aria-pressed="true"], .texty[aria-pressed="true"] { color: var(--ink); background: var(--jade); box-shadow: none; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}
.dot.live { background: var(--jade); box-shadow: 0 0 10px var(--jade); animation: pulse 1.4s ease-in-out infinite; }
.dot.soon { background: var(--azure); box-shadow: 0 0 10px var(--azure); }
.dot.final { background: var(--white); box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
.dot.delay { background: var(--azure); box-shadow: 0 0 10px var(--azure); animation: blink 1s steps(2, end) infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@keyframes blink { 50% { opacity: 0.25; } }
.tape h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.excerpt, .body p { margin: 0; color: var(--muted); }
.body { margin-top: 12px; display: grid; gap: 10px; }
.body p { color: var(--white); }
.row { margin-top: 12px; justify-content: flex-start; flex-wrap: wrap; }
.quiz-head, .pass-head, .day-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.quiz-head > div { min-width: 0; }
.strike-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.strike-row .lbl { margin: 0; }
.strike-row .strikes { margin: 0; }
.scorebox { margin-left: auto; text-align: right; }
.scorebox b, .mega, .streak b {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0.02em;
}
.scorebox b { font-size: 48px; display: block; }
.scorebox span, .streak span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.strikes { display: flex; gap: 8px; margin: 12px 0; }
.strikes i { width: 14px; height: 14px; border-radius: 50%; background: var(--shark); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.strikes i.on { background: var(--white); box-shadow: 0 0 10px var(--white); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--black);
}
.board li.open { background: rgba(0, 178, 76, 0.16); box-shadow: inset 0 0 0 1px rgba(0, 178, 76, 0.5); }
.board li.missed { opacity: 0.72; background: rgba(2, 133, 240, 0.12); box-shadow: inset 0 0 0 1px rgba(2, 133, 240, 0.4); }
.rank { font-family: var(--display); font-size: 28px; color: var(--azure); }
.board b { font-family: var(--display); font-size: 32px; }
.bar { display: block; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); }
.guess { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.guess label { flex: 1 1 180px; display: grid; gap: 6px; }
.guess input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--black);
  padding: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.banner { margin: 12px 0 0; font-weight: 700; }
.banner.clear { color: var(--jade); }
.banner.miss { color: var(--white); }
.narrow { max-width: 760px; }
.statline { margin: 8px 0 12px; flex-wrap: wrap; }
.statline div { min-width: 68px; }
.statline div { display: grid; }
.statline b { font-family: var(--display); font-size: 36px; line-height: 0.9; }
.statline span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 12px; }
.pips i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.pips i.now { background: var(--azure); box-shadow: 0 0 10px var(--azure); }
.pips i.hit { background: var(--jade); box-shadow: 0 0 10px var(--jade); }
.pips i.miss { background: var(--white); }
.lane {
  position: relative;
  width: 100%;
  height: 188px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 178, 76, 0.5);
  background: #000 url("bg-pitch.jpg") center/cover no-repeat;
  padding: 0;
  display: block;
  text-align: left;
  touch-action: manipulation;
  user-select: none;
}
.lane::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.jwin {
  position: absolute;
  top: 22px;
  bottom: 22px;
  border-radius: 16px;
  background: rgba(0, 178, 76, 0.28);
  box-shadow: inset 0 0 0 2px var(--jade), 0 0 24px rgba(0, 178, 76, 0.45);
  pointer-events: none;
}
.ball {
  position: absolute;
  top: 50%;
  width: 68px;
  height: 68px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.65));
}
.flash {
  position: absolute;
  left: 12px;
  top: 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.flash.good { color: var(--jade); }
.flash.bad { color: var(--white); }
.meter { margin-top: 10px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; background: var(--jade); transform-origin: left center; }
.lane.hit { box-shadow: inset 0 0 0 2px var(--jade); }
.lane.miss { box-shadow: inset 0 0 0 2px var(--white); }
.hint { color: var(--muted); margin: 10px 0 0; }
.wide { display: none; }
.mega { font-size: clamp(72px, 16vw, 120px); margin: 0; }
.result { padding: 18px; display: grid; gap: 8px; }
.streak { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.streak b { font-size: 92px; }
.segs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.segs i { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); }
.segs i.on { background: var(--jade); box-shadow: 0 0 10px var(--jade); }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cell {
  position: relative;
  height: 72px;
  border-radius: 14px;
  background: var(--black);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px;
}
.cell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h);
  background: var(--jade);
}
.cell.lv0::before { height: 4px; background: rgba(255, 255, 255, 0.18); }
.cell.lv1 { --h: 32%; }
.cell.lv2 { --h: 52%; }
.cell.lv3 { --h: 74%; }
.cell.lv4 { --h: 100%; }
.cell.today { outline: 2px solid var(--azure); outline-offset: -2px; }
.cell span { position: relative; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cell.lv4 span { color: var(--ink); }
.badge { display: flex; gap: 14px; align-items: center; }
.badge img { width: 96px; height: 96px; object-fit: contain; background: var(--black); border-radius: 18px; }
.badge img.locked { filter: grayscale(1) brightness(0.55); }
.runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.runs li, .mini {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr 1.2fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--black);
}
.runs b, .mini b { font-family: var(--display); font-size: 28px; }
.runs time, .mini span { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); margin: 8px 0; }
.shelf {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  align-items: end;
}
.shelf[hidden] { display: none; }
.sheet { width: min(560px, 100%); margin: 0 auto; border-radius: 20px 20px 0 0; padding: 16px; max-height: min(78dvh, 640px); overflow: auto; }
.sheet-top { margin-bottom: 10px; }
.sheet h2 { margin: 0; font-family: var(--display); font-size: 36px; }
.shelf-card { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.shelf-card p { margin: 0; }
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(420px, calc(100% - 24px));
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  text-align: center;
  border-radius: 16px;
  padding: 12px 14px;
  transition: 0.2s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 24px; }
@media (hover: hover) {
  .card { transition: transform 0.18s ease; }
  .card:hover { transform: translateY(-2px); }
}
@media (min-width: 720px) {
  .grid.cards { grid-template-columns: 1fr 1fr; }
  .runs li, .mini { grid-template-columns: 120px 120px 100px 1fr; }
}
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .shell { padding-bottom: 0; }
  .dock {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 22px 14px;
    border-top: 0;
    border-right: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.9);
  }
  .dock a { justify-content: flex-start; padding-left: 16px; min-height: 46px; }
  .wide { display: block; }
  .sheet { border-radius: 20px; align-self: center; }
  .shelf { align-items: center; }
  #toast { bottom: 24px; }
}
@media (min-width: 1200px) {
  .grid.cards.fixtures { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .dot.live, .dot.delay { animation: none; }
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
