@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("display.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("text.woff2") format("woff2");
}
:root {
  --pitch: #1B8F3A;
  --jersey: #FFFFFF;
  --stripe: #101410;
  --gold: #F2C14E;
  --wash: #E9E9E9;
  --edge: #DADCDC;
  --foot: #F5F5F5;
  --ink: #212529;
  --muted: #808080;
  --night: #07150c;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { color-scheme: light; }
body {
  min-height: 100dvh;
  font-family: "Outfit", "Trebuchet MS", sans-serif;
  color: var(--jersey);
  background: var(--night);
  spellcheck: false;
  touch-action: manipulation;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--night) url("pitch.png") center/cover no-repeat;
}
button, a, input, textarea { font: inherit; color: inherit; text-decoration: none; }
::spelling-error, ::grammar-error { text-decoration: none; background: transparent; }
::selection { background: var(--pitch); color: var(--jersey); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2, .nama, .rail button, .detik, .splash-nama {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(7, 21, 12, 0.45) url("pitch.png") center/cover;
  text-align: center;
  padding: 24px;
}
.splash-mark { width: min(46vw, 180px); height: auto; }
.splash-nama { font-size: clamp(2rem, 8vw, 3.2rem); text-transform: uppercase; }
.splash-id { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.08em; }
.splash-seam { width: 72px; height: 8px; background: var(--pitch); border: 2px solid var(--jersey); }
#onboarding { position: relative; z-index: 20; min-height: 100dvh; }
.ob-wrap {
  display: grid;
  grid-template-columns: 22px 28px minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 14px 12px calc(18px + env(safe-area-inset-bottom));
}
.tape {
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  background: var(--jersey) url("grain.png") center/cover;
  border: 2px solid var(--stripe);
}
.tape-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--pitch);
}
.marks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  color: var(--gold);
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
}
.ob-card {
  background: var(--jersey);
  color: var(--ink);
  border-left: 12px solid var(--stripe);
  box-shadow: 10px 12px 0 rgba(16, 20, 16, 0.28);
  padding: 16px 14px 18px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  background-image: linear-gradient(var(--jersey), var(--jersey)), url("grain.png");
  background-size: cover;
}
.kicker { color: var(--pitch); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.detik { font-size: 2.4rem; line-height: 1; margin: 4px 0 8px; color: var(--stripe); }
.lewati {
  display: block;
  margin: 0 0 14px auto;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--edge);
  background: var(--foot);
  color: var(--stripe);
  cursor: pointer;
}
.scene h1 { font-size: 1.7rem; text-transform: uppercase; color: var(--stripe); margin-bottom: 6px; }
.scene > p { margin-bottom: 12px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--edge);
  background: var(--foot);
  color: var(--stripe);
  border-radius: 999px;
  min-height: 46px;
  padding: 8px 14px;
  cursor: pointer;
}
.chip small { display: block; color: var(--muted); font-size: 0.72rem; }
.chip.on {
  background: var(--pitch);
  color: var(--jersey);
  border-color: var(--stripe);
  box-shadow: inset 0 -5px 0 var(--gold);
}
.chip.on small { color: var(--jersey); }
.pita-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--stripe);
  color: var(--jersey);
  min-height: 64px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
}
.pita-btn img { width: 46px; height: 46px; object-fit: contain; }
.pita-fold {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s ease;
  background: var(--foot);
  border: 1px solid transparent;
  margin-top: 0;
}
.pita-fold.open {
  max-height: 240px;
  margin-top: 10px;
  padding: 12px;
  border-color: var(--edge);
  border-left: 8px solid var(--pitch);
}
.pita-fold h2 { font-size: 1.15rem; margin: 6px 0; text-transform: uppercase; }
.jalur {
  position: relative;
  height: 118px;
  background: var(--pitch);
  overflow: hidden;
  border: 2px solid var(--stripe);
}
.jalur-demo { height: 96px; }
.kain {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 34%;
  background: var(--jersey) url("grain.png") center/cover;
}
.jendela {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 58%;
  width: 18%;
  background: var(--gold);
  border-left: 2px solid var(--stripe);
  border-right: 2px solid var(--stripe);
}
.zona-label {
  position: absolute;
  top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.z-off { left: 6px; color: var(--jersey); }
.z-emas { left: 60%; color: var(--stripe); }
.z-lewat { right: 6px; color: var(--jersey); }
.bola {
  position: absolute;
  top: 50%;
  left: 0;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  pointer-events: none;
}
.tap, .ya, .aksi, .pilih-papan {
  width: 100%;
  margin-top: 10px;
  min-height: 58px;
  border: 2px solid var(--stripe);
  background: var(--gold);
  color: var(--stripe);
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.ya { background: var(--pitch); color: var(--jersey); }
.flash {
  min-height: 1.4em;
  margin-top: 8px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flash.emas { color: var(--stripe); background: var(--gold); display: inline-block; padding: 2px 8px; }
.flash.offside { color: var(--jersey); background: var(--stripe); display: inline-block; padding: 2px 8px; }
.flash.lewat { color: var(--ink); background: var(--wash); display: inline-block; padding: 2px 8px; }
.whistle-ob { width: 72px; height: 72px; object-fit: contain; margin-bottom: 8px; }
#app {
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px 10px;
  background: var(--pitch);
  color: var(--jersey);
}
.mark-sm { width: 54px; height: 54px; object-fit: contain; }
.nama { font-size: 1.15rem; text-transform: uppercase; line-height: 1; }
.klub-line { margin-top: 4px; font-size: 0.78rem; color: var(--gold); }
.pips { display: flex; gap: 4px; }
.pip {
  width: 8px;
  height: 28px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--jersey);
}
.pip.on { background: var(--gold); border-color: var(--stripe); }
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: var(--stripe);
}
.rail button {
  position: relative;
  min-height: 74px;
  border: 0;
  cursor: pointer;
  background: var(--jersey) url("grain.png") center/cover;
  color: var(--stripe);
  text-transform: uppercase;
  font-size: 0.95rem;
}
.rail button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--stripe);
}
.rail button[aria-current="true"] {
  background: var(--pitch);
  color: var(--jersey);
}
.rail button[aria-current="true"]::before { background: var(--gold); }
.rail button:disabled { opacity: 0.45; cursor: default; }
#layar { padding: 14px 12px 8px; }
.judul {
  font-size: 1.8rem;
  text-transform: uppercase;
  padding-left: 10px;
  border-left: 6px solid var(--gold);
  margin-bottom: 6px;
}
.sub { color: var(--jersey); margin-bottom: 12px; line-height: 1.4; }
.hari {
  background: var(--jersey);
  color: var(--ink);
  padding: 10px 12px;
  border-left: 8px solid var(--pitch);
  margin-bottom: 12px;
}
.daftar { display: grid; gap: 12px; }
.spasi { margin-top: 12px; }
.kartu {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  background: var(--jersey);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-left: 8px solid var(--stripe);
  box-shadow: 0 6px 0 var(--wash);
  padding: 12px;
}
.kartu.semat { border-left-color: var(--gold); }
.tag {
  display: inline-block;
  background: var(--pitch);
  color: var(--jersey);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
}
.kartu h2 { font-size: 1.05rem; text-transform: uppercase; margin: 6px 0; line-height: 1.2; }
.kartu p { line-height: 1.4; font-size: 0.92rem; }
.meta { margin-top: 8px; color: var(--muted); font-size: 0.75rem; background: var(--foot); display: inline-block; padding: 3px 6px; }
.pin {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid var(--edge);
  background: var(--foot);
  color: var(--stripe);
  cursor: pointer;
}
.pin.on { background: var(--gold); border-color: var(--stripe); }
.lead {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.lead img { width: 64px; height: 64px; object-fit: contain; }
.papan, .opsi, .ubin {
  width: 100%;
  text-align: left;
  border: 1px solid var(--edge);
  background: var(--jersey);
  color: var(--ink);
  min-height: 52px;
  padding: 10px 12px;
  cursor: pointer;
  border-left: 8px solid var(--stripe);
}
.papan small, .ubin small { display: block; color: var(--muted); }
.papan { margin-bottom: 8px; }
.ubin.benar { background: var(--pitch); color: var(--jersey); border-left-color: var(--gold); }
.ubin.benar small, .ubin.salah small { color: inherit; }
.ubin.salah { background: var(--stripe); color: var(--jersey); }
.ubin:disabled, .opsi:disabled { cursor: default; }
.opsi { margin-bottom: 8px; }
.opsi.benar { background: var(--pitch); color: var(--jersey); }
.opsi.salah { background: var(--stripe); color: var(--jersey); }
.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.hud div {
  background: var(--jersey);
  color: var(--ink);
  padding: 8px 4px;
  text-align: center;
}
.hud strong { display: block; font-family: "Oswald", sans-serif; font-size: 1.2rem; }
.hud span { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.rekap {
  background: var(--jersey);
  color: var(--ink);
  padding: 14px;
  border-left: 8px solid var(--gold);
  margin-bottom: 10px;
}
.rekap strong { font-family: "Oswald", sans-serif; font-size: 2rem; }
.pita-hasil { margin-top: 8px; }
.kunci-catatan { color: var(--gold); margin-bottom: 10px; }
.rayakan {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--jersey);
  color: var(--ink);
  padding: 8px;
  margin-bottom: 10px;
}
.rayakan img { width: 54px; height: 54px; object-fit: contain; }
.ghost {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
  border: 1px solid var(--jersey);
  background: transparent;
  color: var(--jersey);
  cursor: pointer;
}
@media (max-width: 360px) {
  .rail button { font-size: 0.78rem; min-height: 64px; }
  .hud { grid-template-columns: repeat(2, 1fr); }
  .detik { font-size: 2rem; }
}
@media (min-width: 800px) {
  #app {
    margin-top: 18px;
    margin-bottom: 18px;
    min-height: calc(100dvh - 36px);
    background: rgba(7, 21, 12, 0.35);
  }
  .ob-wrap { padding-top: 28px; }
}
