@font-face {
  font-family: Poppins;
  src: url("poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("poppins-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("poppins-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
::spelling-error, ::grammar-error { text-decoration: none; background: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  font-family: Poppins, sans-serif;
  background: #101410 url("street.webp") center / cover no-repeat;
  color: #fff;
}
button, input { font-family: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; }
a { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #CDDC39; outline-offset: 2px; }
.shell {
  width: min(100%, 440px);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: #101410;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.splash {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(16, 20, 16, .28), rgba(16, 20, 16, .78)),
    url("street.webp") center / cover;
  transition: opacity .25s linear;
}
.splash img { width: 104px; height: 104px; object-fit: contain; position: relative; }
.splash strong {
  position: relative;
  margin-top: 6px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.splash .bar {
  position: relative;
  width: 72px;
  height: 4px;
  margin-top: 12px;
  background: #CDDC39;
}
.splash em {
  position: relative;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #CDDC39;
}
.splash .glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: url("chili.webp") center / cover;
  opacity: .5;
  pointer-events: none;
}
.splash.out { opacity: 0; pointer-events: none; }
.onboard {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(16, 20, 16, .42), rgba(16, 20, 16, .9)),
    url("street.webp") center / cover;
}
.ob-ticks { display: flex; gap: 6px; }
.ob-ticks i { flex: 1; height: 4px; background: rgba(255, 255, 255, .22); }
.ob-ticks i.on { background: #CDDC39; }
.scene { display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; }
.kicker {
  margin: 0;
  color: #CDDC39;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.onboard h1 {
  margin: 0;
  font-size: 42px;
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 800;
}
.lead { margin: 0; color: #e7eadf; font-size: 16px; line-height: 1.4; }
.compas { display: flex; gap: 10px; }
.compa {
  flex: 1;
  min-height: 196px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: #171717;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}
.compa img { width: 76px; height: 76px; object-fit: contain; }
.compa.on { background: #fff; color: #101410; border-left-color: #CDDC39; }
.sheet {
  border: 0;
  text-align: left;
  background: #fff;
  color: #101410;
  border-radius: 12px;
  border-left: 4px solid #E53935;
  min-height: 200px;
  padding: 18px 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}
.sheet .inner { display: none; }
.sheet.open .face { display: none; }
.sheet.open .inner { display: block; }
.sheet.open { border-left-color: #CDDC39; }
.pista {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: 12px;
  touch-action: none;
  background:
    linear-gradient(180deg, rgba(16, 20, 16, .15), rgba(16, 20, 16, .55)),
    url("chili.webp") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.ventana {
  position: absolute;
  left: 0;
  top: 0;
  width: 32%;
  min-width: 86px;
  max-width: 116px;
  height: 68px;
  border: 3px solid #CDDC39;
  background: rgba(205, 220, 57, .2);
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform;
}
.ventana img { width: 28px; height: 28px; object-fit: contain; }
.count { margin: 0; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.bubble { width: 72px; height: 64px; object-fit: contain; }
.choice {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font-size: 20px;
}
.choice.si { background: #fff; color: #E53935; box-shadow: inset 4px 0 0 #E53935; }
.choice.no { background: #CDDC39; color: #101410; }
.miss { margin: 0; color: #fff; background: #E53935; border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.okcard {
  margin: 0;
  background: #fff;
  color: #101410;
  border-radius: 8px;
  border-left: 4px solid #CDDC39;
  padding: 12px;
  font-weight: 600;
}
.btn {
  border: 0;
  border-radius: 8px;
  background: #CDDC39;
  color: #101410;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
}
.btn.block { width: 100%; }
.go { margin-top: auto; }
.shake { animation: shake .35s linear; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(16, 20, 16, .9), rgba(16, 20, 16, .94)),
    url("street.webp") center top / cover;
}
.top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
  box-shadow: inset 0 -3px 0 #E53935;
  position: relative;
  z-index: 5;
}
#menu {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #CDDC39;
  display: grid;
  gap: 5px;
  place-content: center;
  padding: 0;
}
#menu i { display: block; width: 16px; height: 2px; background: #101410; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: #fff; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand strong { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.pts {
  background: #fff;
  color: #101410;
  border-radius: 8px;
  padding: 6px 10px 5px;
  text-align: right;
  min-width: 72px;
}
.pts b { display: block; font-size: 16px; line-height: 1; font-weight: 800; }
.pts span {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5c6560;
  font-weight: 700;
}
.dim {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(16, 20, 16, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.shell.open .dim { opacity: 1; pointer-events: auto; }
.side {
  position: absolute;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(78%, 300px);
  background: #171717;
  color: #fff;
  transform: translateX(-105%);
  transition: transform .28s ease;
  border-right: 3px solid #CDDC39;
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 0 16px;
}
.shell.open .side { transform: translateX(0); }
.edge {
  position: absolute;
  top: 18px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #CDDC39;
  color: #101410;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}
.side-brand { padding: 0 16px; flex: none; }
.side-brand strong { font-size: 28px; }
.label {
  margin: 22px 16px 6px;
  color: #8d948e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.side nav { display: flex; flex-direction: column; }
.side nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  border-left: 4px solid transparent;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
}
.side nav button img { width: 22px; height: 22px; object-fit: contain; }
.side nav button.on { color: #CDDC39; border-left-color: #CDDC39; }
.foot {
  margin: auto 16px 0;
  color: #8d948e;
  font-size: 11px;
  line-height: 1.45;
}
.daybar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px 4px;
}
.daybar b { font-size: 14px; font-weight: 800; }
.daybar p { margin: 2px 0 0; color: #c9d0c4; font-size: 12px; }
.cells { display: flex; gap: 4px; }
.cells i {
  width: 12px;
  height: 22px;
  background: #242824;
  border-left: 2px solid #101410;
}
.cells i.on { background: #CDDC39; }
.alley-wrap { flex: none; position: relative; }
.alley-wrap::before, .alley-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  z-index: 2;
  pointer-events: none;
}
.alley-wrap::before { left: 0; background: linear-gradient(90deg, #101410, transparent); }
.alley-wrap::after { right: 0; background: linear-gradient(270deg, #101410, transparent); }
.alley {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 6px;
  scrollbar-width: none;
}
.alley::-webkit-scrollbar { display: none; }
.door {
  flex: 0 0 46%;
  scroll-snap-align: center;
  height: 112px;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 12px;
  background: #171717;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  padding: 10px;
  text-align: left;
}
.door img { width: 32px; height: 32px; object-fit: contain; margin-bottom: auto; }
.door b { font-size: 16px; letter-spacing: -.03em; }
.door small { color: #c5cdc0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.door.on { background: #fff; color: #101410; border-left-color: #CDDC39; }
.door.on small { color: #5c6560; }
main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 14px calc(22px + env(safe-area-inset-bottom));
}
.head { display: flex; gap: 10px; align-items: center; color: #fff; margin: 4px 2px 12px; }
.head img { width: 42px; height: 42px; object-fit: contain; }
.head h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; font-weight: 800; line-height: 1; }
.head p { margin: 3px 0 0; color: #d5dccf; font-size: 13px; }
.head .kicker { color: #CDDC39; }
.card {
  background: #fff;
  color: #101410;
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 10px;
  border-left: 4px solid transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
button.card { width: 100%; text-align: left; font: inherit; }
.card.pinned, .card.full { border-left-color: #CDDC39; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag {
  display: inline-block;
  background: #fff;
  color: #E53935;
  border-left: 3px solid #E53935;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pin {
  background: transparent;
  color: #101410;
  border: 0;
  border-left: 3px solid #CDDC39;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card h2 { margin: 8px 0 4px; font-size: 18px; letter-spacing: -.03em; line-height: 1.15; }
.card p { margin: 0; color: #243028; font-size: 14px; line-height: 1.45; }
.back {
  background: transparent;
  color: #fff;
  border: 0;
  border-left: 3px solid #CDDC39;
  padding: 4px 8px;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 13px;
}
.pct { margin: 0 0 8px; font-size: 42px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.pct small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #CDDC39; font-weight: 700; }
.meter { height: 8px; background: #242824; margin: 0 0 12px; }
.meter span { display: block; height: 100%; background: #CDDC39; }
.guess { display: flex; gap: 8px; margin-bottom: 6px; }
.guess input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #101410;
  font-size: 15px;
  box-shadow: inset 3px 0 0 #E53935;
}
.guess input:focus { outline: none; box-shadow: inset 3px 0 0 #CDDC39; }
.msg { min-height: 18px; margin: 0 0 8px; color: #fff; font-size: 13px; font-weight: 600; }
.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #101410;
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 6px;
  border-left: 4px solid #e6e8e2;
}
.slot b { font-weight: 700; }
.slot.known { border-left-color: #CDDC39; }
.slot.missed { border-left-color: #E53935; color: #5c6560; }
.slot span { font-weight: 800; }
.opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  color: #101410;
  border: 0;
  border-left: 4px solid #e6e8e2;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.opt.good { border-left-color: #CDDC39; background: #f4f8d8; }
.opt.bad { border-left-color: #E53935; }
.hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #d5dccf;
}
.hud b { display: block; color: #fff; font-size: 18px; letter-spacing: -.03em; }
.ticks { display: flex; gap: 3px; margin: 8px 0 12px; }
.ticks i { flex: 1; height: 8px; background: #242824; }
.ticks i.hit { background: #CDDC39; }
.ticks i.miss { background: #E53935; }
.scoreline {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.scoreline span {
  flex: 1;
  background: #fff;
  color: #101410;
  border-radius: 8px;
  border-left: 3px solid #CDDC39;
  padding: 8px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}
.scoreline b { display: block; font-size: 18px; letter-spacing: -.03em; margin-top: 2px; }
.pista.live { box-shadow: inset 0 0 0 2px rgba(205, 220, 57, .35); }
.pista.bad { box-shadow: inset 0 0 0 2px #E53935; }
.end {
  background: #fff;
  color: #101410;
  border-radius: 12px;
  border-left: 4px solid #CDDC39;
  padding: 14px;
}
.end strong { display: block; font-size: 36px; letter-spacing: -.04em; line-height: 1; }
.end p { margin: 6px 0 12px; color: #243028; }
@media (min-width: 860px) {
  body { display: flex; }
  .shell {
    height: min(920px, calc(100dvh - 32px));
    margin: auto;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash, .side, .dim { transition: none; }
}
