@font-face {
  font-family: Anton;
  src: url("anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #0F172A;
  --green: #22C55E;
  --gold: #F5C518;
  --paper: #ffffff;
  --ink: #0F172A;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f1f5f9;
}
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  font-family: Inter, sans-serif;
  background: var(--navy);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--navy) url("wash.jpg") center / cover no-repeat;
}
::selection { background: var(--green); color: var(--navy); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
::spelling-error, ::grammar-error { text-decoration: none; background: transparent; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.kicker {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sheet .kicker, .panel-card .kicker, .qcard .kicker, .story .kicker { color: #15803d; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .2), rgba(15, 23, 42, .55)),
    var(--navy) url("wash.jpg") center / cover no-repeat;
  transition: opacity .35s ease;
}
.splash.leave { opacity: 0; }
.splash-card { text-align: center; }
.splash img { width: 128px; height: 150px; margin: 0 auto 8px; object-fit: contain; }
.splash h1 {
  font-family: Anton, sans-serif;
  font-size: clamp(52px, 16vw, 76px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .01em;
}
.splash h1 span { color: var(--gold); }
.splash p { margin-top: 10px; color: #e2e8f0; font-weight: 600; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: var(--navy);
}
.film {
  height: 26px;
  flex: none;
  background-color: var(--gold);
  background-image: radial-gradient(circle at 14px 13px, var(--navy) 5px, transparent 6px);
  background-size: 34px 26px;
}
.scene { display: none; }
.scene.on {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: calc(100dvh - 26px);
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
}
.scene.wash {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .35), rgba(15, 23, 42, .62)),
    url("wash.jpg") center / cover no-repeat;
}
.scene.haze {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .62), rgba(15, 23, 42, .78)),
    url("haze.jpg") center / cover no-repeat;
}
.scene h2 {
  font-family: Anton, sans-serif;
  font-size: clamp(40px, 12vw, 58px);
  font-weight: 400;
  line-height: .9;
  max-width: 11ch;
}
.lede { color: #e2e8f0; font-size: 16px; line-height: 1.45; max-width: 34ch; }
.steps { display: flex; gap: 6px; }
.steps i {
  width: 32px;
  height: 6px;
  border-radius: 99px;
  display: block;
  background: rgba(255, 255, 255, .28);
}
.steps i.now { background: var(--green); }
.steps i.done { background: var(--gold); }
.chip-col { display: flex; flex-direction: column; gap: 10px; }
.chip {
  min-height: 72px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .35);
  background: rgba(15, 23, 42, .35);
  color: #fff;
  font-family: Anton, sans-serif;
  font-size: 32px;
  letter-spacing: .04em;
}
.chip:nth-child(1) { transform: rotate(-1.5deg); }
.chip:nth-child(3) { transform: rotate(1.5deg); }
.chip.on {
  background: var(--green);
  color: var(--navy);
  border-color: var(--gold);
  transform: rotate(0deg);
}
.note, .count { font-weight: 700; color: #fff; }
.go {
  margin-top: auto;
  min-height: 56px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}
.go:disabled { background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .72); }
.fold {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  perspective: 1200px;
  color: inherit;
}
.fold-inner {
  display: grid;
  min-height: 250px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.fold.open .fold-inner { transform: rotateY(180deg); }
.fold-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.fold-front { background: var(--navy); color: #fff; }
.fold-front img { width: 72px; height: 84px; object-fit: contain; }
.fold-front strong { font-family: Anton, sans-serif; font-size: 36px; font-weight: 400; }
.fold-back {
  background: var(--paper);
  color: var(--ink);
  transform: rotateY(180deg);
}
.fold-back strong { font-family: Anton, sans-serif; font-size: 32px; font-weight: 400; line-height: .95; }
.fold-back span:last-child { color: #334155; line-height: 1.4; }
.lane {
  position: relative;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  touch-action: manipulation;
  background: linear-gradient(#15803d, #166534 42%, #14532d);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28);
}
.lane::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 3px;
  margin-top: -2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
}
.window {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 28%;
  min-width: 72px;
  border: 0;
  border-radius: 18px;
  background: rgba(34, 197, 94, .28);
  box-shadow: inset 0 0 0 4px var(--green), 0 0 0 2px var(--gold);
}
.window.pop { background: var(--green); }
.lane.miss { box-shadow: inset 0 0 0 3px var(--navy); }
.float {
  position: absolute;
  left: 50%;
  top: 8px;
  color: var(--navy);
  font-family: Anton, sans-serif;
  font-size: 22px;
  pointer-events: none;
  animation: rise .48s ease forwards;
}
@keyframes rise {
  to { opacity: 0; transform: translate(-50%, -16px); }
}
.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.sheet img { width: 86px; height: 56px; object-fit: contain; }
.sheet h2 { max-width: none; font-size: clamp(34px, 9vw, 46px); color: var(--ink); }
.sheet p { color: #334155; line-height: 1.4; }
.sheet .go { margin-top: 4px; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yesno button {
  min-height: 68px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-family: Anton, sans-serif;
  font-size: 30px;
}
.yesno button.choose { background: var(--green); border-color: var(--green); }
.fine { font-weight: 700; color: var(--navy); }
.shake { animation: shake .4s linear; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.shell {
  width: min(480px, 100%);
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
}
.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-wrap img { width: 46px; height: 54px; object-fit: contain; flex: none; }
.brand {
  font-family: Anton, sans-serif;
  font-size: 28px;
  line-height: .88;
  letter-spacing: .01em;
}
.brand span { color: var(--gold); }
.sub { margin-top: 4px; color: #cbd5e1; font-size: 11px; font-weight: 700; white-space: nowrap; }
.streak { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.streak b { font-family: Anton, sans-serif; font-size: 22px; font-weight: 400; line-height: 1; }
.pips { display: flex; gap: 4px; }
.pips i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  display: block;
  background: rgba(255, 255, 255, .28);
}
.pips i.on { background: var(--green); }
.pips.full i.on { background: var(--gold); }
.main {
  flex: 1;
  overflow: auto;
  padding: 6px 14px 12px;
  -webkit-overflow-scrolling: touch;
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.intro h2 {
  font-family: Anton, sans-serif;
  font-size: clamp(36px, 10vw, 48px);
  font-weight: 400;
  line-height: .9;
}
.intro p { margin-top: 8px; color: #e2e8f0; line-height: 1.45; }
.dayline { color: var(--gold); font-size: 13px; font-weight: 800; }
.filters { display: flex; gap: 8px; overflow: auto; }
.filters button, .ghost {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 800;
}
.filters button.on, .ghost.on { background: var(--green); color: var(--navy); }
.story, .board, .qcard, .panel-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}
.story.mine { box-shadow: 0 14px 34px rgba(15, 23, 42, .16), inset 0 4px 0 var(--gold); }
.story-top, .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--soft);
  color: var(--navy);
}
.tag[data-sport="AFL"] { background: var(--green); color: #052e16; }
.tag[data-sport="Cricket"] { background: var(--navy); color: #fff; }
.tag[data-sport="NRL"] { background: var(--gold); color: var(--navy); }
.pin {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  color: #94a3b8;
  display: grid;
  place-items: center;
}
.pin[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.story h3 {
  margin-top: 10px;
  font-family: Anton, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: .95;
}
.story p, .board p, .qcard p { margin-top: 8px; color: #334155; line-height: 1.45; }
.meta { color: var(--muted) !important; font-size: 13px; font-weight: 700; }
.hero-ico { width: 72px; height: 72px; object-fit: contain; }
.board h3, .qcard h3, .panel-card h3 {
  font-family: Anton, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: .95;
}
.wide {
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
}
.wide:disabled, .ghost:disabled { opacity: .45; }
.ghost.dark {
  background: var(--soft);
  color: var(--navy);
}
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--soft);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
}
.slot.open { background: var(--navy); color: #fff; }
.slot.open b { color: var(--gold); }
.strikes { display: flex; gap: 8px; }
.strike {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: transparent;
  font-weight: 800;
}
.strike.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.guess { display: flex; gap: 8px; }
.guess input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  padding: 0 14px;
  font-size: 16px;
  text-decoration: none;
  caret-color: var(--green);
  color-scheme: light;
}
.guess input:-webkit-autofill {
  -webkit-text-fill-color: var(--navy);
  box-shadow: 0 0 0 1000px #fff inset;
}
.guess button {
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
}
.mega {
  font-family: Anton, sans-serif;
  font-size: 84px;
  line-height: .8;
  color: var(--green);
}
.mega small { font-size: 40px; color: var(--navy); }
.option {
  width: 100%;
  text-align: left;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.option.right { background: #dcfce7; border-color: var(--green); }
.option.wrong { background: #f8fafc; border-color: var(--navy); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: Anton, sans-serif;
  font-size: 28px;
  font-weight: 400;
}
.stat span { color: var(--muted); font-size: 11px; font-weight: 800; }
.shots { display: flex; gap: 5px; flex-wrap: wrap; }
.shots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  background: var(--line);
}
.shots i.on { background: var(--green); }
.lane-card { padding: 12px; }
.lock { color: var(--muted); font-weight: 700; }
.dock {
  flex: none;
  display: flex;
  gap: 4px;
  margin: 0 12px calc(10px + env(safe-area-inset-bottom));
  padding: 6px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
}
.dock button {
  flex: 1;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
}
.dock button[aria-current="page"] { background: var(--green); color: var(--navy); }
.ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy);
}
.ico img { width: 22px; height: 22px; object-fit: contain; }
@media (min-width: 960px) {
  body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    z-index: -1;
    background: url("haze.jpg") center / cover no-repeat;
  }
  .shell {
    height: calc(100dvh - 48px);
    margin-top: 24px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(15, 23, 42, .5);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  }
}
@media (max-width: 360px) {
  .brand { font-size: 24px; }
  .chip { font-size: 28px; min-height: 64px; }
  .mega { font-size: 68px; }
}
