:root {
  --red: #d9161c;
  --red-dark: #9c0f14;
  --cream: #f6eedc;
  --white: #fffdf7;
  --green: #1e6b35;
  --green-dark: #13472a;
  --gold: #e3a92b;
  --ink: #16181f;
  --muted: #6e6257;
  --px: 'Press Start 2P', ui-monospace, monospace;
  --play-top: 0px;
}

* { box-sizing: border-box; }

/* que el atributo hidden siempre gane (los .btn y .badge tienen display propio) */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  touch-action: manipulation; /* sin zoom por doble toque en iPhone */
  background: var(--ink);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ------------------------------------------------------------ HUD */

#hud {
  position: absolute;
  left: 0;
  right: 0;
  top: max(calc(env(safe-area-inset-top) + 14px), calc(var(--play-top) * 0.45));
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}
#hud.on { opacity: 1; }

/* contorno de 3px hecho con sombras duras, como en los juegos de 8 bits */
#score {
  font-family: var(--px);
  font-size: 34px;
  line-height: 1;
  color: var(--cream);
  text-shadow:
    3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    3px 3px 0 var(--ink), -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink),
    0 6px 0 var(--ink);
}
#score.bump { animation: bump 0.2s steps(2, end); }
@keyframes bump {
  0% { transform: translateY(-6px); }
  100% { transform: none; }
}

#hint {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  text-align: center;
  font: 12px/1.4 var(--px);
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--ink);
  pointer-events: none;
  opacity: 0;
}
#hint.on { opacity: 1; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

#banner {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(max(calc(env(safe-area-inset-top) + 14px), calc(var(--play-top) * 0.45)) + 52px);
  display: grid;
  justify-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
#banner b {
  font: 16px/1 var(--px);
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 4px 0 var(--ink);
}
#banner span {
  font: 900 14px/1.2 Inter, sans-serif;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink);
}
#banner.on { visibility: visible; animation: banner 1.7s steps(1, end) forwards; }
@keyframes banner {
  0% { opacity: 1; transform: translateY(-6px); }
  8% { transform: none; }
  20% { opacity: 1; }
  25% { opacity: 0.4; }
  30% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.icon-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: calc(env(safe-area-inset-right) + 12px);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 3px solid var(--cream);
  background: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
  color: var(--cream);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.icon-btn .cross { display: none; }
.icon-btn.off .cross { display: inline; }
.icon-btn.off .waves { display: none; }

#toast {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  transform: translate(-50%, 20px);
  width: min(92vw, 380px);
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--ink);
  padding: 12px 16px;
  font: 700 15px/1.35 Inter, sans-serif;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s steps(2), transform 0.2s steps(2);
  z-index: 10;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

#err {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 20;
  background: var(--red);
  color: var(--white);
  padding: 12px 14px;
  font: 400 14px/1.4 Inter, sans-serif;
  box-shadow: 0 0 0 3px var(--ink);
}
#err small { display: block; margin-top: 4px; opacity: 0.85; word-break: break-word; }

#boot {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink);
  color: var(--cream);
  font: 12px/1.8 var(--px);
  text-align: center;
}

/* ------------------------------------------------------------ pantallas */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 70px) 24px calc(env(safe-area-inset-bottom) + 28px);
  background: rgba(10, 11, 15, 0.45);
}
.screen.on { display: flex; animation: pop 0.18s steps(3, end); }
.screen.locked { pointer-events: none; }
.screen.locked .btn { opacity: 0.55; }
@keyframes pop {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* tarjeta con marco de pixeles: crema, negro, rojo, negro y sombra dura */
.card {
  width: min(100%, 372px);
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--cream);
  padding: 20px 18px 16px;
  text-align: center;
  box-shadow:
    0 0 0 4px var(--ink),
    0 0 0 8px var(--red),
    0 0 0 12px var(--ink),
    10px 14px 0 12px rgba(0, 0, 0, 0.45);
  user-select: text;
  -webkit-user-select: text;
}

.brand {
  font: 11px/1 var(--px);
  color: var(--red);
}

.keyart {
  display: block;
  width: auto;
  max-width: 76%;
  height: min(22vh, 210px);
  object-fit: contain;
  margin: 8px auto -2px;
  pointer-events: none;
  mix-blend-mode: multiply; /* el fondo blanco de la ilustración se funde con el crema */
}

.title {
  font-family: var(--px);
  font-weight: 400;
  color: var(--red);
  font-size: clamp(24px, 8vw, 32px);
  line-height: 1.25;
  text-transform: uppercase;
  margin: 8px 0 10px;
  text-shadow: 3px 3px 0 var(--ink);
}

h2 {
  font-family: var(--px);
  font-weight: 400;
  color: var(--red);
  font-size: 18px;
  line-height: 1.35;
  text-transform: uppercase;
  margin: 4px 0 10px;
  text-shadow: 2px 2px 0 var(--ink);
}

h3 {
  font: 11px/1.5 var(--px);
  color: var(--red);
  margin: 18px 0 8px;
  text-transform: uppercase;
}

.lede, .sub {
  font: 400 15px/1.4 Inter, sans-serif;
  color: var(--muted);
  margin: 0 0 14px;
}

.prize {
  display: grid;
  gap: 6px;
  background: var(--white);
  border: 3px dashed var(--red);
  padding: 12px 10px;
  margin: 0 0 18px;
}
.prize > span { font: 700 12px/1 Inter, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prize strong { font: 14px/1.4 var(--px); color: var(--ink); font-weight: 400; }
.prize small { font: 700 13px/1.25 Inter, sans-serif; color: var(--green); }

/* botones: biseles de pixel + sombra dura que se "hunde" al tocar */
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 15px 12px;
  margin: 0 0 16px;
  font: 13px/1.2 var(--px);
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.25),
    inset 4px 4px 0 rgba(255, 255, 255, 0.2),
    0 0 0 3px var(--ink),
    0 6px 0 3px var(--ink);
  cursor: pointer;
}
.btn:active {
  transform: translateY(4px);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.25),
    inset 4px 4px 0 rgba(255, 255, 255, 0.2),
    0 0 0 3px var(--ink),
    0 2px 0 3px var(--ink);
}
.btn.big { font-size: 17px; padding: 19px 12px; }
.btn.alt { background: var(--green); }
.btn.ghost {
  background: var(--white);
  color: var(--red);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.08), 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
}
.btn.ghost:active { box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.08), 0 0 0 3px var(--ink), 0 2px 0 3px var(--ink); }
.btn:disabled { opacity: 0.6; }

.row { display: flex; gap: 14px; }
.row .btn { flex: 1; font-size: 9px; line-height: 1.5; padding: 13px 6px; }

.link {
  background: none;
  border: 0;
  padding: 8px;
  font: 700 13px/1.2 Inter, sans-serif;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.link.inline { padding: 0; font: inherit; color: var(--red); }

/* game over */
.quote {
  font: italic 700 16px/1.4 Inter, sans-serif;
  color: var(--ink);
  margin: 2px 4px 12px;
}
.label { font: 10px/1 var(--px); text-transform: uppercase; color: var(--muted); }
.big-score {
  font-family: var(--px);
  font-size: 48px;
  line-height: 1.4;
  color: var(--red);
  text-shadow: 4px 4px 0 var(--ink);
}
.best { font: 700 15px/1.3 Inter, sans-serif; color: var(--muted); margin-bottom: 12px; }
.best b { color: var(--ink); }
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 5px 6px;
  background: var(--gold);
  color: var(--ink);
  font: 8px/1.2 var(--px);
  text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--ink);
}
.status {
  font: 400 14px/1.4 Inter, sans-serif;
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 10px 12px;
  margin: 0 0 16px;
}
.cta {
  background: var(--white);
  border: 3px solid var(--green);
  box-shadow: 0 0 0 3px var(--ink);
  padding: 14px 12px 2px;
  margin: 3px 3px 20px;
}
.cta strong { font: 11px/1.5 var(--px); color: var(--green); font-weight: 400; }
.cta p { font: 400 14px/1.4 Inter, sans-serif; margin: 6px 0 12px; }

/* registro */
.form { text-align: left; }
.form h2, .form .sub { text-align: center; }
.form label { display: block; font: 700 14px/1.3 Inter, sans-serif; margin: 0 0 14px; }
.form input[type='tel'], .form input:not([type]) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  font: 700 17px/1.2 Inter, sans-serif;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 0;
  outline: none;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.08);
}
.form input:focus { border-color: var(--red); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--red); }
.form .check em { color: var(--muted); }
.fine { font: 400 12.5px/1.45 Inter, sans-serif; color: var(--muted); margin: 0 0 10px; }
.error { color: var(--red); font: 700 14px/1.3 Inter, sans-serif; min-height: 18px; margin: 0 0 8px; text-align: center; }
.form .link { display: block; margin: 0 auto; }

/* leaderboard */
.board {
  list-style: none;
  margin: 6px 0 12px;
  padding: 0;
  text-align: left;
}
.board li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font: 700 16px/1.2 Inter, sans-serif;
}
.board li:nth-child(odd) { background: var(--white); }
.board li.me { background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink); }
.board li.muted { color: var(--muted); font-weight: 400; justify-content: center; background: none; }
.board .rank { width: 30px; font: 12px/1 var(--px); color: var(--red); text-align: right; }
.board li:nth-child(-n + 3) .rank { color: var(--gold); text-shadow: 2px 2px 0 var(--ink); }
.board li.me .rank { color: var(--ink); text-shadow: none; }
.board .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .pts { font: 12px/1 var(--px); }
.me-line { font: 700 14px/1.3 Inter, sans-serif; color: var(--muted); margin: 0 0 14px; min-height: 4px; }

/* bases */
.bases { text-align: left; }
.bases h2 { text-align: center; }
.bases p, .bases li { font: 400 14px/1.5 Inter, sans-serif; }
.bases ul { padding-left: 18px; margin: 0 0 8px; }
.bases li { margin-bottom: 6px; }
.bases mark { background: #ffe39a; padding: 0 3px; }
.bases .btn { margin-top: 16px; }

@media (max-height: 640px) {
  .keyart { height: 19vh; }
  .lede { display: none; }
  .title { font-size: 22px; }
}

/* ================================================================
   Interfaz B · "Postal fina": tarjeta crema con esquinas de pixel
   recortadas, filo negro delgado, letra pixel Press Start 2P y
   líneas punteadas. Sobrescribe el estilo anterior.
   ================================================================ */
:root { --px: 'Press Start 2P', ui-monospace, monospace; }

.card {
  width: min(100%, 360px);
  padding: 26px 22px 18px;
  box-shadow: none;
  outline: 2px solid var(--ink);
  outline-offset: -9px;
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
}
.screen { padding-top: calc(env(safe-area-inset-top) + 64px); padding-bottom: calc(env(safe-area-inset-bottom) + 20px); }

.brand { font: 400 clamp(16px, 5vw, 20px)/1.2 var(--px); letter-spacing: 0; margin-top: 2px; }
.keyart { height: min(18vh, 150px); max-width: 60%; margin: 4px auto 0; mix-blend-mode: normal; image-rendering: pixelated;
  animation: headbob 0.9s steps(1, end) infinite; }
.title { font: 400 clamp(24px, 8vw, 32px)/1.25 var(--px); letter-spacing: 0; text-shadow: 3px 3px 0 var(--ink); margin: 8px 0 0; }
.title::after, .rule {
  content: ''; display: block; height: 2px; margin: 12px 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px);
}
h2 { font: 400 18px/1.35 var(--px); text-shadow: 2px 2px 0 var(--ink); letter-spacing: 0; }
h3 { font: 400 11px/1.5 var(--px); letter-spacing: 0; }
.lede, .sub { font-size: 14px; color: #5f554b; }

.prize {
  border: 0; background:
    repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px) top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat;
  padding: 12px 4px; margin: 0 0 16px;
}
.prize > span { font: 400 8px/1.4 var(--px); letter-spacing: 0.05em; }
.prize strong { font: 400 14px/1.4 var(--px); }

.btn, .btn:active, .btn.ghost, .btn.ghost:active {
  border: 2px solid var(--ink); box-shadow: none;
}
.btn { font: 400 13px/1.2 var(--px); letter-spacing: 0; padding: 15px 12px; margin: 0 0 10px; }
.btn:active { transform: translateY(2px); }
.btn.big { font-size: 16px; padding: 17px 12px; }
.btn.ghost { background: transparent; color: var(--ink); }
.row { gap: 10px; }
.row .btn { font-size: 9px; line-height: 1.5; padding: 12px 6px; }

.quote { font-size: 15px; }
.label { font: 400 10px/1 var(--px); letter-spacing: 0.05em; }
.big-score { font: 400 48px/1.3 var(--px); text-shadow: 4px 4px 0 var(--ink); margin: 6px 0 8px; }
.badge { font: 400 8px/1.2 var(--px); }
.status { border-width: 2px; }
.cta { border: 2px dashed var(--green); box-shadow: none; margin: 0 0 14px; }
.cta strong { font: 400 11px/1.5 var(--px); }
.form input[type='tel'], .form input:not([type]) { border-width: 2px; box-shadow: none; }
.board li.me { box-shadow: inset 0 0 0 2px var(--ink); }
.board .rank, .board .pts { font: 400 12px/1 var(--px); }

#score {
  font: 400 34px/1 var(--px);
  text-shadow: 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink),
    2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink), 0 5px 0 var(--ink);
}
#hint { font: 400 12px/1.4 var(--px); letter-spacing: 0; }
#banner b { font: 400 16px/1 var(--px); }
#boot { font: 400 12px/1.8 var(--px); }

/* ------------------------------------------------------------ cinemática */
#cine { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 40; touch-action: none; }
#cine-caption {
  position: absolute; z-index: 41; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 72px);
  transform: translateX(-50%); width: min(88vw, 340px);
  background: var(--cream); color: var(--ink); text-align: center;
  font: 400 11px/1.7 var(--px); padding: 16px 14px;
  outline: 2px solid var(--ink); outline-offset: -6px;
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  opacity: 0;
}
#cine-caption.on { opacity: 1; animation: pop 0.2s steps(3, end); }
#cine-skip {
  position: absolute; z-index: 42; right: calc(env(safe-area-inset-right) + 12px); top: calc(env(safe-area-inset-top) + 12px);
  background: var(--ink); color: var(--cream); border: 2px solid var(--cream);
  font: 400 10px/1 var(--px); letter-spacing: 0; padding: 11px 12px; cursor: pointer;
}

/* ------------------------------------------------------------ game over: Santa con globo de texto */
.speech { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; text-align: left; }
.speech-head {
  flex: none; width: 84px; height: auto; margin: -6px -4px -6px -8px; image-rendering: pixelated;
  animation: headbob 0.9s steps(1, end) infinite;
}
@keyframes headbob { 50% { transform: translateY(2px); } }
.bubble {
  position: relative; flex: 1; margin: 0;
  background: var(--white); border: 2px solid var(--ink);
  padding: 10px 12px; font: italic 700 15px/1.35 Inter, sans-serif; color: var(--ink);
}
/* colita del globo en escalones de pixel, apuntando a la cabeza */
.bubble::before, .bubble::after { content: ''; position: absolute; top: 50%; }
.bubble::before {
  left: -12px; width: 12px; height: 12px; margin-top: -6px; background: var(--ink);
  clip-path: polygon(100% 0, 66% 0, 66% 33%, 33% 33%, 33% 66%, 0 66%, 0 100%, 100% 100%);
}
.bubble::after {
  left: -7px; width: 9px; height: 6px; margin-top: -1px; background: var(--white);
  clip-path: polygon(100% 0, 66% 0, 66% 50%, 0 50%, 0 100%, 100% 100%);
}

/* ------------------------------------------------------------ botones (sin trazo negro)
   Cada botón usa su mismo color en tono oscuro para el borde y la base 3D,
   un brillo arriba, esquinas de pixel y se "hunde" al tocarlo. */
.btn, .btn:active, .btn.ghost, .btn.ghost:active, .btn.alt, .btn.alt:active {
  border: 0;
}
.btn {
  --b: var(--red);
  --bd: var(--red-dark);
  --hi: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  background: var(--b);
  color: var(--white);
  padding-bottom: 19px;
  box-shadow: inset 0 0 0 2px var(--bd), inset 0 -6px 0 var(--bd), inset 0 4px 0 0 var(--hi);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  text-shadow: 0 2px 0 var(--bd);
  transition: transform 0.05s steps(1), box-shadow 0.05s steps(1);
}
.btn:active {
  transform: translateY(3px);
  padding-bottom: 16px;
  padding-top: 18px;
  box-shadow: inset 0 0 0 2px var(--bd), inset 0 -2px 0 var(--bd), inset 0 3px 0 0 rgba(0, 0, 0, 0.12);
}
@media (hover: hover) { .btn:hover { filter: brightness(1.06); } }
.btn.big { padding-bottom: 21px; }
.btn.alt { --b: var(--green); --bd: var(--green-dark); }
.btn.ghost {
  --b: var(--white);
  --bd: #e0cfb4;
  --hi: rgba(255, 255, 255, 0.9);
  color: var(--red);
  text-shadow: none;
}
.row .btn { padding-bottom: 16px; }

/* brillo de pixel que cruza el botón principal cada tantito */
.btn.big::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 16%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-20deg);
  animation: shine 3.4s steps(14, end) infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 62% { left: -30%; }
  100% { left: 130%; }
}

/* botón de sonido y "saltar": mismo estilo, sin trazo negro */
.icon-btn, #cine-skip {
  border: 0;
  background: rgba(22, 24, 31, 0.78);
  box-shadow: inset 0 0 0 2px rgba(246, 238, 220, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
/* variantes: misma receta, ganándole a las reglas viejas de .btn.ghost / .btn.alt */
.btn.ghost, .btn.alt {
  background: var(--b);
  box-shadow: inset 0 0 0 2px var(--bd), inset 0 -6px 0 var(--bd), inset 0 4px 0 0 var(--hi);
}
.btn.ghost:active, .btn.alt:active {
  box-shadow: inset 0 0 0 2px var(--bd), inset 0 -2px 0 var(--bd), inset 0 3px 0 0 rgba(0, 0, 0, 0.08);
}
.btn.ghost { --bd: #d2bc96; }

/* ------------------------------------------------------------ portada: premio protagonista */
.keyart { margin: 14px auto 6px; }
.prize.prize-hero {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 10px 14px;
  margin: 4px 0 18px;
  clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
  box-shadow: inset 0 0 0 3px #2a2d38, inset 0 -5px 0 #0c0d12;
}
/* borde punteado dorado por dentro, como boleto */
.prize.prize-hero::before {
  content: '';
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px) top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(0deg, var(--gold) 0 4px, transparent 4px 8px) left / 2px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--gold) 0 4px, transparent 4px 8px) right / 2px 100% no-repeat;
  opacity: 0.7;
}
.prize-hero .prize-label {
  font: 400 11px/1.4 var(--px);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gold);
}
.prize-hero .prize-main { display: flex; align-items: center; justify-content: center; gap: 8px; }
.prize-hero .prize-main img { width: 28px; height: auto; image-rendering: pixelated; animation: headbob 0.9s steps(1, end) infinite; }
.prize-hero .prize-main img:last-child { animation-delay: 0.45s; }
.prize-hero strong {
  font: 400 clamp(15px, 4.6vw, 19px)/1.35 var(--px);
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--red);
}
.prize-hero .prize-date {
  font: 400 9px/1.4 var(--px);
  color: var(--white);
  background: var(--red);
  padding: 7px 10px 8px;
  box-shadow: inset 0 0 0 2px var(--red-dark), inset 0 -3px 0 var(--red-dark);
}
.prize-hero .prize-date { font-size: 8px; padding: 7px 8px 8px; white-space: nowrap; }

/* game over: llamado a registrarse más grande y en mayúsculas */
.cta strong { display: block; font: 400 14px/1.5 var(--px); text-transform: uppercase; margin: 2px 0 4px; }

/* portada: sin línea punteada bajo SANTA CHUCK */
.title::after { content: none; display: none; }
.title { margin-bottom: 14px; }
