[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100%;
  color: #F2EEE4;
  background: #101010;
  font-family: "Outfit", "Avenir Next", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
}
body.lock { overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16,16,16,.28) 0%, rgba(16,16,16,.62) 46%, rgba(16,16,16,.88) 100%),
    url("bg-noche.webp") center/cover no-repeat;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: #B89A5B; color: #101010; }
:focus-visible { outline: 2px solid #B89A5B; outline-offset: 3px; }
h1, h2, h3 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 500; }
h1 { margin: 0; font-size: 34px; line-height: .95; letter-spacing: .01em; }
h2 { margin: 0 0 8px; font-size: 42px; line-height: .95; }
h3 { margin: 0 0 8px; font-size: 28px; line-height: 1; }
p { margin: 0; }
.tag {
  margin: 0 0 6px;
  color: #B89A5B;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lede { margin: 0 0 16px; max-width: 40em; color: rgba(242,238,228,.84); }
.btn, .btn-ghost, #hold {
  border: 0;
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: .04em;
}
.btn, #hold { background: #B89A5B; color: #101010; }
.btn-ghost { background: transparent; color: #F2EEE4; border: 1px solid rgba(184,154,91,.65); }
button:disabled { opacity: .45; cursor: default; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

#splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #101010;
  text-align: center;
}
.splash-art { position: relative; width: min(86vw, 380px); height: 300px; }
.spl-m { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; }
.spl-t { position: absolute; left: 50%; bottom: 52px; width: 96px; transform: translateX(-50%); }
.splash-title {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(40px, 10vw, 64px);
  color: #F2EEE4;
  line-height: .9;
}
.splash-sub { margin-top: 10px; color: #B89A5B; letter-spacing: .28em; font-size: 12px; font-weight: 600; }

#onboard {
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: auto;
  padding: 32px 18px 48px;
  background:
    linear-gradient(180deg, rgba(16,16,16,.62), rgba(16,16,16,.9)),
    url("bg-noche.webp") center/cover no-repeat;
}
.ob { width: min(560px, 100%); margin: 0 auto; }
.dots { display: flex; gap: 8px; margin-bottom: 18px; }
.dots i { width: 28px; height: 3px; background: rgba(242,238,228,.28); }
.dots i.on { background: #B89A5B; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pick button, .mini button {
  border: 1px solid rgba(184,154,91,.45);
  background: rgba(16,16,16,.72);
  min-height: 168px;
  padding: 12px;
  text-align: left;
}
.pick img { width: 72px; height: 86px; object-fit: contain; margin-bottom: 8px; }
.pick strong, .mini strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 28px; font-weight: 500; }
.mini { display: grid; gap: 10px; margin-top: 16px; }
.mini button { min-height: 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hoja {
  margin-top: 14px;
  background: #F2EEE4;
  color: #101010;
  padding: 16px;
}
.hoja .tag { color: #244237; }
.hoja h3 { font-size: 32px; }
.hoja p { margin-top: 4px; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(10px + env(safe-area-inset-top)) 14px 20px;
  background: linear-gradient(180deg, rgba(16,16,16,.94), rgba(16,16,16,.7) 72%, rgba(16,16,16,0));
}
.brand { width: min(980px, 100%); margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.ficha-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #244237;
  border: 1px solid #B89A5B;
  padding: 4px;
}
main { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding-bottom: 220px; }

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 0 0 calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(16,16,16,0), #101010 26%);
}
#ticker {
  position: relative;
  display: block;
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #B89A5B;
  padding: 10px 0 2px;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.ticker-track { display: inline-block; white-space: nowrap; animation: tick 22s linear infinite; }
#ticker.paused .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
#tpause {
  position: absolute;
  right: 0;
  top: 8px;
  background: #101010;
  color: #F2EEE4;
  font-style: normal;
  letter-spacing: .16em;
  font-size: 11px;
  padding: 2px 8px;
}
.tele {
  position: relative;
  width: min(980px, calc(100% - 8px));
  height: 108px;
  margin: 0 auto;
}
.wire { position: absolute; left: 8%; right: 8%; height: 1px; background: #B89A5B; }
.wire.a { top: 22px; }
.wire.b { top: 28px; opacity: .4; }
#cab {
  position: absolute;
  top: 30px;
  width: 48px;
  transform: translateX(-50%);
  transition: left .55s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}
.st {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  width: 76px;
  min-height: 72px;
  border: 0;
  background: transparent;
  color: rgba(242,238,228,.55);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  z-index: 3;
}
.st::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 10px auto 22px;
  border-radius: 50%;
  background: #244237;
  box-shadow: 0 0 0 2px #B89A5B;
}
.st.on { color: #B89A5B; }
.st.on::before { background: #B89A5B; }

.hero-band {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 12px;
  align-items: end;
  margin-bottom: 18px;
}
.hero-art { position: relative; height: 96px; }
.hero-mnt { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }
.hero-twr { position: absolute; left: 50%; bottom: 18px; width: 36px; transform: translateX(-50%); }
.pinhead, .blockhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0; }
.pinhead span, .count { color: #B89A5B; font-size: 12px; letter-spacing: .08em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.chip {
  flex: 0 0 auto;
  border: 1px solid #B89A5B;
  background: #244237;
  color: #F2EEE4;
  padding: 8px 12px;
}
.cards, .film { display: grid; gap: 12px; }
.card, .frame {
  text-align: left;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(184,154,91,.75);
  background: rgba(16,16,16,.78);
  color: #F2EEE4;
  padding: 14px 14px 16px;
  cursor: pointer;
}
.card .ln { margin: 0; font-size: 15px; color: rgba(242,238,228,.9); }
.card .ln + .ln { margin-top: 2px; }
.pinned { display: inline-block; margin-top: 8px; color: #B89A5B; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.frame p + p { margin-top: 8px; }
.frame button { margin-top: 12px; }
.later-on { background: #B89A5B; color: #101010; border: 0; min-height: 40px; padding: 8px 12px; font-weight: 600; }
.later-off { background: transparent; color: #F2EEE4; border: 1px solid rgba(184,154,91,.65); min-height: 40px; padding: 8px 12px; }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(16,16,16,.62);
}
.paper {
  width: min(560px, 100%);
  max-height: min(90vh, 780px);
  overflow: auto;
  background: #F2EEE4;
  color: #101010;
}
.sheet-hero { width: 100%; height: 180px; object-fit: cover; }
.paper-body { padding: 16px 18px 24px; }
.paper .tag { color: #244237; }
.paper h3 { font-size: 40px; margin-bottom: 10px; }
.paper .ln { font-family: "Cormorant Garamond", serif; font-size: 22px; line-height: 1.2; font-style: italic; }
.paper .ln + .ln { margin-top: 2px; }
.paper dl { margin: 16px 0; }
.paper dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(16,16,16,.14);
}
.paper dt { color: #244237; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.paper dd { margin: 0; text-align: right; }
.paper .btn { background: #244237; color: #F2EEE4; }
.paper .btn-ghost { color: #101010; border-color: rgba(16,16,16,.3); }

.qhead, .dia-hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.qsprite { width: 88px; height: 110px; object-fit: contain; }
.boards { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.boards button {
  flex: 0 0 auto;
  border: 1px solid rgba(184,154,91,.4);
  background: rgba(24,36,58,.72);
  color: #F2EEE4;
  padding: 10px 12px;
}
.boards button.on { background: #B89A5B; color: #101010; border-color: #B89A5B; }
.qpanel { background: rgba(24,36,58,.78); border-top: 1px solid #B89A5B; padding: 14px; }
.arow {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 10px;
  background: #101010;
  color: rgba(242,238,228,.45);
}
.arow b { color: #B89A5B; font-weight: 600; }
.arow.show { color: #F2EEE4; background: #244237; }
.arow.miss { color: rgba(242,238,228,.7); }
.strikes { display: flex; gap: 8px; margin: 12px 0; }
.sx { width: 18px; height: 18px; border: 1px solid #B89A5B; }
.sx.on { background: #B89A5B; }
.guess { display: flex; gap: 8px; }
.guess input {
  flex: 1;
  min-width: 0;
  background: #101010;
  border: 1px solid rgba(184,154,91,.6);
  padding: 12px;
  color: #F2EEE4;
}
#qnote { min-height: 1.4em; margin: 10px 0; color: #B89A5B; }

.dia-hero {
  min-height: 168px;
  padding: 16px;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(16,16,16,.05), rgba(16,16,16,.78)),
    url("bg-torre.webp") center 30% / cover no-repeat;
}
.stats { display: flex; gap: 18px; margin-top: 8px; }
.stats strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 32px; font-weight: 500; line-height: 1; }
.stats span { color: #B89A5B; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.dia-grid { display: grid; gap: 16px; }
.panel { background: rgba(16,16,16,.72); border-top: 1px solid rgba(184,154,91,.7); padding: 14px; margin-bottom: 12px; }
.racha { display: flex; gap: 6px; }
.rcell {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-top: 2px solid rgba(184,154,91,.35);
  color: rgba(242,238,228,.45);
  font-size: 11px;
  text-transform: lowercase;
}
.rcell.on { background: #B89A5B; color: #101010; border-color: #B89A5B; }
.rcell.today:not(.on) { color: #B89A5B; }
.seal-row { display: flex; gap: 14px; align-items: center; }
.seal {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid #B89A5B;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #B89A5B;
  padding: 8px;
}
.seal.on { background: #B89A5B; color: #101010; }
.seal b { font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 500; line-height: 1; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.presets button { border: 1px solid rgba(184,154,91,.55); background: transparent; min-height: 64px; padding: 8px 4px; }
.presets button.on { background: #B89A5B; color: #101010; }
.presets small { display: block; font-size: 11px; opacity: .8; }
.heat { display: flex; align-items: flex-end; gap: 6px; height: 132px; }
.hbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hbar span { display: block; width: 100%; background: #244237; min-height: 6px; }
.hbar.hot span { background: #B89A5B; }
.hbar b, .hbar small { font-weight: 500; font-size: 10px; }
.drow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(242,238,228,.14);
}
.drow b { font-weight: 600; }
.drow span { color: rgba(242,238,228,.7); font-size: 13px; }
.wide { width: 100%; margin-top: 8px; }

#game {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: auto;
  padding: 16px 16px 28px;
  background:
    linear-gradient(180deg, rgba(16,16,16,.78), rgba(24,36,58,.82)),
    url("bg-noche.webp") center/cover no-repeat;
}
.guts { width: min(480px, 100%); margin: 0 auto; }
.g-top { display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.g-top strong { font-family: "Cormorant Garamond", serif; font-size: 40px; font-weight: 500; line-height: .9; }
.lantern { border: 1px solid rgba(184,154,91,.5); padding: 6px 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,238,228,.4); }
.lantern.on { color: #101010; background: #B89A5B; border-color: #B89A5B; }
.adots { display: flex; gap: 4px; margin: 10px 0; }
.adot { flex: 1; height: 4px; background: rgba(242,238,228,.2); }
.adot.now { background: #F2EEE4; }
.adot.did { background: #B89A5B; }
.stage {
  position: relative;
  height: min(58vh, 520px);
  margin: 8px 0 12px;
  background: linear-gradient(180deg, rgba(24,36,58,.28), rgba(16,16,16,.15));
  border-top: 1px solid rgba(184,154,91,.45);
  touch-action: none;
  user-select: none;
}
.stage .line {
  position: absolute;
  top: 8%;
  bottom: 14%;
  left: 50%;
  width: 2px;
  background: #B89A5B;
  transform: translateX(-50%);
}
.zone {
  position: absolute;
  left: 16%;
  right: 16%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.zone.gold { background: rgba(184,154,91,.4); color: #F2EEE4; border: 1px solid #B89A5B; }
.zone.fog { background: rgba(36,66,55,.62); color: #F2EEE4; }
.st-top, .st-bot { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
.st-top { top: 4px; width: 36px; }
.st-bot { bottom: 0; width: 78%; }
#cabin {
  position: absolute;
  left: 50%;
  width: 78px;
  transform: translate(-50%, 50%);
  pointer-events: none;
}
#cabin i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B89A5B;
  transform: translate(-50%, -50%);
}
#gnote { min-height: 1.4em; margin: 8px 0; color: #B89A5B; }
#hold { width: 100%; letter-spacing: .12em; text-transform: uppercase; }
#hold.holding { filter: brightness(1.15); }
.ghost-wide { width: 100%; margin-top: 8px; }
.result-art { width: 72px; margin-bottom: 8px; }
.noscript { padding: 24px; }

@media (min-width: 800px) {
  h1 { font-size: 42px; }
  .cards, .film { grid-template-columns: 1fr 1fr; }
  .dia-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .scrim { align-items: center; }
  .hero-band { grid-template-columns: 140px 1fr; }
  .hero-art { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, #cab { animation: none; transition: none; }
}
