@font-face {
  font-family: "Outfit";
  src: url("outfit-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --black: #000000;
  --shark: #272729;
  --white: #ffffff;
  --jade: #00B24C;
  --azure: #0285F0;
  --ink: #041208;
  --muted: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .1);
  --font: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --display: "Rajdhani", "Arial Narrow", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; }
html { background: var(--black); }
body {
  min-height: 100%;
  color: var(--white);
  background: var(--black);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("bg-night.jpg") center/cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .84));
}
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
button {
  appearance: none;
  background: var(--shark);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
::selection { background: var(--jade); color: var(--ink); }
h1, h2, h3, .stat strong, .streak-count, .log strong, .flash, .splash-line, .ticker-track span {
  font-family: var(--display);
  font-weight: 700;
}
h1, h2, h3, p { overflow-wrap: break-word; }
p { margin: 0; }
[hidden] { display: none !important; }
.kicker {
  margin: 0;
  color: var(--jade);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.lede, .fine, .panel-head p, .lane-now { color: var(--muted); }
.fine { margin-top: 8px; font-size: 13px; }
.lane-now { margin: 0; color: var(--azure); font-weight: 600; }
.app {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 16px 16px calc(112px + env(safe-area-inset-bottom));
}
.accent {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--jade), var(--azure));
  margin-bottom: 14px;
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand img, .splash-card img { width: 52px; height: 52px; object-fit: contain; }
.brand h1, .splash-card h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 56px);
  line-height: .85;
  letter-spacing: .02em;
}
.ticker {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 12px;
  border-radius: 999px;
  background: var(--shark);
}
.ticker-track { display: flex; width: max-content; animation: ticker 18s linear infinite; }
.ticker-track span {
  padding: 7px 0;
  letter-spacing: .18em;
  font-size: 14px;
  white-space: nowrap;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lede { margin: 0 0 14px; max-width: 68ch; font-size: 15px; }
.view { display: none; }
.view.is-on { display: grid; gap: 12px; }
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  background: var(--shark);
  border-radius: 16px;
  padding: 10px;
  min-width: 0;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stat strong {
  display: block;
  font-size: clamp(18px, 4.6vw, 32px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.panel {
  background: var(--shark);
  border-radius: 22px;
  padding: 14px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}
.panel h2, .panel-head h2 { margin: 0; font-size: clamp(26px, 5vw, 34px); letter-spacing: .02em; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preset { display: grid; gap: 2px; text-align: left; min-width: 0; background: #1c1c1e; }
.preset b { font-family: var(--display); font-size: 20px; line-height: 1; }
.preset small { color: var(--muted); font-size: 12px; }
.preset.is-on { border-color: var(--jade); box-shadow: inset 0 0 0 1px var(--jade); }
.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  border-radius: 28px;
  overflow: hidden;
  background: #000 url("bg-circuit.jpg") center/cover no-repeat;
  border: 1px solid var(--line);
  user-select: none;
}
.pitch-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .58));
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.wires polygon { fill: none; stroke: var(--jade); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: .8; }
.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(46px, 15vw, 78px);
  height: clamp(46px, 15vw, 78px);
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  z-index: 3;
}
.marker img { width: 78%; height: 78%; object-fit: contain; position: absolute; pointer-events: none; }
.marker span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}
.marker.is-hot { box-shadow: 0 0 0 3px var(--jade), 0 0 22px rgba(0, 178, 76, .65); }
.marker.is-hot::after {
  content: "TAP";
  position: absolute;
  top: -16px;
  color: var(--jade);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.marker.is-miss { animation: shake .36s linear; }
@keyframes shake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(calc(-50% - 6px), -50%); }
  75% { transform: translate(calc(-50% + 6px), -50%); }
}
.ring {
  position: absolute;
  width: clamp(68px, 22vw, 118px);
  height: clamp(68px, 22vw, 118px);
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  border-radius: 50%;
  --p: 1;
  background: conic-gradient(var(--jade) calc(var(--p) * 360deg), rgba(255, 255, 255, .16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}
.ball {
  position: absolute;
  width: clamp(28px, 8vw, 38px);
  height: clamp(28px, 8vw, 38px);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
  transition: left .32s ease, top .32s ease;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45));
}
.flash {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: clamp(40px, 10vw, 64px);
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
}
.flash.is-jade { color: var(--jade); }
.flash.is-azure { color: var(--azure); }
.flash.is-miss { color: var(--white); }
.flash.is-on { animation: pop .62s ease; }
@keyframes pop {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -78%); }
}
.meter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.meter i { display: block; height: 8px; border-radius: 99px; background: #1c1c1e; }
.meter i.is-hit { background: var(--jade); }
.meter i.is-miss { background: var(--white); }
.meter i.is-now { background: var(--azure); }
.cue { min-height: 2.7em; margin: 0; }
.btn-jade {
  background: var(--jade);
  color: var(--ink);
  border-color: var(--jade);
  font-weight: 700;
  width: 100%;
}
#start-run, .panel > .btn-jade, .card > .btn-jade { margin-top: 12px; }
.card h3, .card p, .answer, .preset small, .log b, .log span, .pin-slot button, .foot p {
  overflow-wrap: break-word;
}
.btn-ghost { background: transparent; color: var(--white); }
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.log li.empty { display: block; color: var(--muted); }
.log b, .log span, .log small { display: block; }
.log span, .log small { color: var(--muted); font-size: 13px; }
.log strong { font-size: clamp(22px, 5vw, 30px); line-height: 1; }
.heat {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 118px;
}
.heat-col, .streak-cell { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.heat-col b {
  width: min(100%, 18px);
  border-radius: 99px 99px 4px 4px;
  background: var(--azure);
  display: block;
}
.heat-col:last-child b { background: var(--jade); }
.heat-col span, .heat-col small, .streak-cell span { font-size: 11px; color: var(--muted); }
.pins { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pin-slot {
  min-height: 74px;
  min-width: 0;
  border-radius: 14px;
  background: #1c1c1e;
  padding: 8px;
  display: grid;
  align-content: center;
  gap: 4px;
}
.pin-slot button { width: 100%; text-align: left; }
.pin-slot .link { width: auto; text-align: left; padding: 0; }
.pin-slot.is-empty {
  color: var(--muted);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, .18);
  place-items: center;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.card { background: var(--shark); border-radius: 22px; padding: 14px; min-width: 0; }
.card.is-active { box-shadow: inset 0 0 0 1px var(--jade); }
.card.is-pinned { box-shadow: inset 3px 0 0 var(--azure); }
.card.is-active.is-pinned { box-shadow: inset 3px 0 0 var(--azure), inset 0 0 0 1px var(--jade); }
.card-top { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; }
.card-top img { width: 54px; height: 54px; object-fit: contain; }
.tag {
  margin: 0 0 2px;
  color: var(--azure);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.card h3, .detail h2 { margin: 0 0 4px; font-size: 28px; }
.card-actions, .detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.detail ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
#quiz-root { max-width: 720px; }
.ask { font-size: 20px; font-weight: 600; margin: 4px 0 12px; }
.answers { display: grid; gap: 8px; }
.answer { text-align: left; width: 100%; background: #1c1c1e; }
.answer.is-right, .answer.is-key { border-color: var(--jade); background: #12351f; }
.answer.is-wrong { border-color: var(--white); background: #111; }
.strikes { display: flex; align-items: center; gap: 8px; }
.strikes span { display: inline-flex; gap: 5px; }
.strikes i, .streak-cell b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  background: #1c1c1e;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.strikes i.is-used { background: var(--white); }
.streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak-count { font-size: clamp(48px, 12vw, 76px); line-height: .85; margin: 0 0 8px; }
.streak-cell.is-on b { background: var(--jade); box-shadow: none; }
.streak-cell.is-today b { box-shadow: 0 0 0 2px var(--azure); }
.badge {
  width: min(168px, 46vw);
  height: auto;
  display: block;
  margin: 8px auto;
  opacity: .38;
  filter: grayscale(1);
}
.badge.is-on { opacity: 1; filter: none; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.link { background: none; border: 0; color: var(--azure); padding: 8px 0; font-weight: 700; width: auto; }
.menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .94);
  border-top: 1px solid var(--line);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.menu-inner { width: min(1080px, 100%); margin: 0 auto; }
.menu-label { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.menu-dots { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.menu-dots::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--jade), var(--azure));
  opacity: .7;
  pointer-events: none;
}
.dot {
  background: transparent;
  border: 0;
  border-radius: 14px;
  padding: 4px 2px 2px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  min-width: 0;
}
.dot span { font-size: 13px; font-weight: 600; }
.dot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--shark);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4);
  position: relative;
  z-index: 1;
}
.dot.is-on { color: var(--white); }
.dot.is-on i { background: var(--jade); box-shadow: 0 0 12px rgba(0, 178, 76, .85); }
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(108px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  max-width: calc(100% - 24px);
  background: var(--shark);
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity .2s ease, transform .2s ease;
}
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }
#splash {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #000 url("bg-night.jpg") center/cover no-repeat;
  text-align: center;
  transition: opacity .3s linear;
}
#splash::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.splash-card { position: relative; z-index: 1; padding: 16px; }
.splash-card img { width: 92px; height: 92px; }
.splash-line { margin-top: 10px; letter-spacing: .16em; font-size: 16px; }
#splash.is-out { opacity: 0; }
#onboard {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  background: rgba(0, 0, 0, .78);
  padding: 12px;
  overflow: auto;
}
.sheet {
  width: min(560px, 100%);
  margin: 0 auto;
  background: var(--shark);
  border-radius: 24px;
  padding: 16px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
#ob-title { margin: 4px 0 8px; font-size: 36px; }
#ob-copy { color: var(--muted); margin-bottom: 12px; }
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pick-grid button { text-align: left; min-width: 0; background: #1c1c1e; }
.pick-grid b, .pick-grid small { display: block; }
.pick-grid small { color: var(--muted); font-size: 12px; }
.pick-grid button.is-on { border-color: var(--jade); box-shadow: inset 0 0 0 1px var(--jade); }
.trial {
  position: relative;
  height: 210px;
  border-radius: 22px;
  overflow: hidden;
  background: #000 url("bg-circuit.jpg") center/cover no-repeat;
  margin-bottom: 10px;
}
.relay-open { display: grid; gap: 8px; }
.relay-open ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ob-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--shark);
  padding-top: 12px;
}
.demo-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.demo-row img { width: 72px; height: 72px; object-fit: contain; }
.noscript { margin: 16px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dot span { font-size: 11px; }
  .preset b { font-size: 16px; }
  .marker span { font-size: 16px; }
}
@media (max-width: 280px) {
  .presets { grid-template-columns: 1fr; }
}
@media (min-width: 480px) {
  .pick-grid, .pins { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  #onboard { align-items: center; }
  .pins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .circuit-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 12px;
    align-items: start;
  }
  .pitch { aspect-ratio: 1 / 1; }
  #day-root { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; }
  .badge-panel { grid-column: 2; grid-row: 1 / span 2; }
}
@media (hover: hover) {
  .dot:hover, .preset:hover, .answer:hover, .card button:hover { border-color: rgba(255, 255, 255, .28); }
  .btn-jade:hover { filter: brightness(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ball, .flash.is-on { animation: none; transition: none; }
  .flash.is-on { opacity: 1; }
}
