@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("hindregularbn.font") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("hindregularla.font") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("hindmediumbn.font") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("hindmediumla.font") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("hindsemiboldbn.font") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("hindsemiboldla.font") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("hindboldbn.font") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("hindboldla.font") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100dvh;
  font-family: "Hind Siliguri", sans-serif;
  font-weight: 500;
  color: #F7F1FF;
  background: #12081C url("klglow.webp") center/cover fixed;
  line-height: 1.55;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a, button, span, p, h1, h2, h3, li, strong, em, b {
  text-decoration: none;
}
::spelling-error, ::grammar-error {
  text-decoration: none;
  background: transparent;
}
::selection { background: #FF2D6A; color: #F7F1FF; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid #D4FF00;
  outline-offset: 2px;
}
[hidden] { display: none !important; }
.frame {
  width: min(100%, 440px);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  background:
    linear-gradient(180deg, rgba(18, 8, 28, .72), rgba(18, 8, 28, .92)),
    url("klglow.webp") top center / cover no-repeat;
  overflow: hidden;
}
#splash {
  position: absolute;
  inset: 0;
  z-index: 6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #12081C url("klglow.webp") center/cover;
  transition: opacity .25s linear;
}
#splash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 8, 28, .18), rgba(18, 8, 28, .86));
}
#splash img, #splash p { position: relative; z-index: 1; }
#splash .splash-mark { width: 132px; filter: drop-shadow(0 0 18px rgba(212, 255, 0, .45)); }
#splash .splash-burst {
  position: absolute;
  width: 210px;
  opacity: .88;
  z-index: 0;
  pointer-events: none;
  animation: burstpop 1.5s ease both;
}
@keyframes burstpop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: .88; }
}
#splash p {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #D4FF00;
  text-shadow: 3px 3px 0 #FF2D6A;
}
#splash.off { opacity: 0; pointer-events: none; }
#onboard {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(18, 8, 28, .55), rgba(18, 8, 28, .82)),
    url("kitetrail.webp") center/cover;
}
.ob-head, .top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
}
.ob-head img, .top img { width: 48px; height: 52px; object-fit: contain; }
.ob-head strong, .top h1 {
  display: block;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #D4FF00;
}
.ob-head span, #streak-line {
  display: block;
  margin: 0;
  color: #C9B8D8;
  font-size: 14px;
}
.ob-head > div { flex: 1; }
#ob-skip {
  border: 1px solid rgba(212, 255, 0, .55);
  background: #1B1028;
  color: #D4FF00;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 14px;
}
.ob-track {
  position: relative;
  height: 86px;
  margin: 0 16px 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #1B1028 url("kitetrail.webp") center/cover;
  border: 1px solid rgba(212, 255, 0, .45);
}
.ob-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 8, 28, .15), rgba(18, 8, 28, .55));
}
#ob-gates {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 46px 10px 0;
}
#ob-gates li {
  width: 22%;
  text-align: center;
  font-size: 12px;
  color: #F7F1FF;
  opacity: .7;
}
#ob-gates li.is-now { color: #D4FF00; opacity: 1; font-weight: 700; }
#ob-gates li.is-done { color: #C9B8D8; }
#ob-ball {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 0;
  width: 34px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35));
}
#ob-stage {
  margin: 0 16px 12px;
  padding: 22px 18px;
  border-radius: 36px 36px 42px 18px;
  background: #1B1028;
  border: 4px solid #FF2D6A;
  box-shadow: 10px 14px 0 rgba(212, 255, 0, .22);
  transform: rotate(-1deg);
  flex: 1;
}
.eyebrow {
  margin: 0 0 4px;
  color: #C9B8D8;
  font-size: 13px;
}
#ob-stage h2, .pane h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
}
.mini, .opt, .chip, .board-row, .gold-btn, .green-btn, .pin, .text-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mini {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 255, 0, .35);
  background: #160C22;
}
.mini.is-open { border-color: #FF2D6A; background: #FF2D6A; }
.mini strong { font-size: 16px; }
.mini em { font-style: normal; color: #D4FF00; font-size: 13px; }
.hint, .note, .lock, .ready {
  margin: 8px 0 0;
  color: #C9B8D8;
  font-size: 14px;
}
.reveal, .tap-zone {
  width: 100%;
  min-height: 112px;
  border-radius: 16px;
  border: 2px solid #D4FF00;
  background: rgba(212, 255, 0, .14);
  color: #D4FF00;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-weight: 700;
}
.reveal.is-open, .tap-zone.is-open { background: #FF2D6A; color: #F7F1FF; }
.reveal b, .tap-zone b { font-size: 32px; color: #D4FF00; }
.yes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yes-row button {
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(212, 255, 0, .45);
  background: #160C22;
  font-size: 22px;
  font-weight: 700;
}
.yes-row .is-yes { background: #FF2D6A; border-color: #FF2D6A; }
.shake { animation: shake .35s linear; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.gold-btn, .green-btn {
  border: 0;
  border-radius: 14px;
  min-height: 52px;
  font-weight: 700;
  font-size: 18px;
}
.gold-btn {
  background: #D4FF00;
  color: #12081C;
  width: calc(100% - 32px);
  margin: 0 16px 18px;
  border-radius: 999px;
  box-shadow: 0 5px 0 #8eae00;
}
.pane .gold-btn { width: 100%; margin: 10px 0 0; }
.green-btn {
  background: #FF2D6A;
  color: #F7F1FF;
  width: 100%;
  border-radius: 999px;
  box-shadow: 0 5px 0 #9a1a42;
}
#app { height: 100%; display: flex; flex-direction: column; overflow: auto; }
.brand { flex: 1; }
#point-chip {
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: #1B1028;
  border: 1px solid rgba(212, 255, 0, .5);
  color: #D4FF00;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
main { flex: 1; }
.pane { display: none; padding: 4px 16px 18px; }
.pane.is-on { display: block; }
.tabs {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: #0E0616;
  border-top: 1px solid rgba(255, 45, 106, .85);
}
.tabs button {
  border: 0;
  background: transparent;
  color: #C9B8D8;
  border-radius: 12px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
}
.tabs button.is-on {
  background: #241433;
  color: #F7F1FF;
  border: 2px solid #D4FF00;
  box-shadow: 4px 5px 0 rgba(255, 45, 106, .28);
}
.tabs img { width: 22px; height: 22px; object-fit: contain; }
.scoreline, .hud, .split {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.scoreline { grid-template-columns: repeat(3, 1fr); }
.hud { grid-template-columns: repeat(4, 1fr); }
.split { grid-template-columns: 1fr 1fr; }
.scoreline span, .hud span, .split div {
  background: #1B1028;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  color: #C9B8D8;
  font-size: 12px;
}
.scoreline b, .hud b, .split strong {
  display: block;
  color: #D4FF00;
  font-size: 18px;
}
.lead { margin: 0 0 12px; color: #C9B8D8; }
.card {
  position: relative;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #1B1028;
  border: 1px solid rgba(212, 255, 0, .28);
  overflow: hidden;
}
.card.is-pin { border-color: #D4FF00; }
.card .open {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 72px 14px 14px;
  display: grid;
  gap: 6px;
}
.card .open p { margin: 0; color: #F7F1FF; font-size: 15px; }
.tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tag-cricket { background: #FF2D6A; color: #F7F1FF; }
.tag-football { background: #F42A41; color: #F7F1FF; }
.tag-bd { background: #D4FF00; color: #12081C; }
.pin {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 255, 0, .6);
  background: transparent;
  color: #D4FF00;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}
.pin.is-on { background: #D4FF00; color: #12081C; }
.sheet .text-btn, .text-btn {
  background: transparent;
  border: 0;
  color: #D4FF00;
  font-weight: 700;
  padding: 0 0 8px;
}
.sheet h2 { margin-top: 8px; }
.sheet p { font-size: 17px; }
.board-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  text-align: left;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 255, 0, .28);
  background: #1B1028;
}
.board-row:disabled { opacity: .45; }
.board-row b { color: #D4FF00; white-space: nowrap; }
.strikes { display: flex; gap: 8px; margin-bottom: 12px; }
.strikes i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #F42A41;
  display: block;
}
.strikes i.on { background: #F42A41; }
.slot {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: #160C22;
}
.slot em { font-style: normal; color: #C9B8D8; }
.slot b { color: #D4FF00; font-size: 18px; }
.slot.is-hid span, .slot.is-hid b { visibility: hidden; }
.slot.is-miss { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip, .opt {
  border-radius: 12px;
  border: 1px solid rgba(212, 255, 0, .4);
  background: #1B1028;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 600;
}
.chip:disabled { opacity: .4; }
.opt { width: 100%; text-align: left; margin-bottom: 8px; }
.opt.is-yes { background: #FF2D6A; border-color: #FF2D6A; }
.opt.is-no { background: #F42A41; border-color: #F42A41; color: #F7F1FF; }
.final {
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #FF2D6A;
  text-align: center;
}
.final strong { display: block; font-size: 40px; color: #D4FF00; }
.pips { display: flex; gap: 6px; margin: 4px 0 12px; }
.pips i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #160C22;
  display: block;
}
.pips i.on { background: #FF2D6A; }
#pitch {
  position: relative;
  height: 270px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #1B1028 url("klglow.webp") center 62%/cover;
  border: 1px solid rgba(212, 255, 0, .45);
}
#pitch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  height: 3px;
  background: #D4FF00;
}
.stumps {
  position: absolute;
  right: 8px;
  bottom: 18%;
  width: 54px;
  height: 130px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}
#window {
  position: absolute;
  top: 46%;
  height: 38%;
  border-radius: 12px;
  border: 2px solid #D4FF00;
  background: rgba(212, 255, 0, .18);
  color: #D4FF00;
  font-weight: 700;
  z-index: 3;
}
#window.hot {
  background: rgba(212, 255, 0, .55);
  color: #12081C;
}
#bowl {
  position: absolute;
  top: 54%;
  width: 42px;
  height: 50px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}
.pop {
  position: absolute;
  left: 50%;
  top: 16%;
  z-index: 4;
  font-weight: 700;
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
}
.pop.is-hit { color: #D4FF00; animation: rise .6s ease; }
.pop.is-out { color: #F42A41; animation: rise .6s ease; }
@keyframes rise {
  from { opacity: 1; transform: translate(-50%, 6px); }
  to { opacity: 0; transform: translate(-50%, -20px); }
}
.lock {
  padding: 12px;
  border-radius: 14px;
  background: rgba(244, 42, 65, .15);
  color: #F7F1FF;
}
@media (min-width: 840px) {
  body { padding: 18px 0; }
  .frame {
    height: calc(100dvh - 36px);
    border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(212, 255, 0, .35);
  }
  #splash, #onboard, #app { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
