:root {
  --blood: #3d000a;
  --deep: #6e0014;
  --red: #b8001f;
  --passion: #e0102f;
  --crimson: #ff2e4d;
  --pink: #ff8fa3;
  --blush: #ffd3db;
  --paper: #fff4f6;
  --ink: #2e0007;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  background: var(--deep);
  -webkit-tap-highlight-color: transparent;
}
/* Fondo fijo en su propia capa: scroll fluido también en celular */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' shape-rendering='crispEdges'%3E%3Cpath fill='%23ff8fa3' fill-opacity='.09' d='M8 10h3v1h1v1h2v-1h1v-1h3v1h1v4h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1H7v-4h1zM44 46h3v1h1v1h2v-1h1v-1h3v1h1v4h-1v1h-1v1h-1v1h-1v1h-2v-1h-1v-1h-1v-1h-1v-1h-1v-4h1z'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 35%, #e0102f 0%, #a8001c 38%, #5c0011 75%, #2e0007 100%);
  background-size: 72px 72px, cover;
  animation: bgDrift 40s linear infinite;
}
@keyframes bgDrift { to { background-position: 72px -72px, 0 0; } }
:root { --ease: cubic-bezier(.22, 1, .36, 1); }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ---------- Corazones flotando ---------- */
.float-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.float-layer svg { position: absolute; bottom: -50px; opacity: .55; animation: rise linear infinite; }
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .6; }
  50% { transform: translateY(-55vh) translateX(18px); }
  100% { transform: translateY(-115vh) translateX(-10px); opacity: 0; }
}
.sparkle { position: fixed; pointer-events: none; z-index: 0; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.6); } }

/* ---------- Piezas pixel ---------- */
.pixel-title {
  font-family: "Silkscreen", monospace;
  font-weight: 700;
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--blood), 0 0 24px rgba(255, 90, 120, .65);
  letter-spacing: 2px;
  line-height: 1.05;
  margin: 0;
}
.on-paper { color: var(--red); text-shadow: 3px 3px 0 var(--blush); }
.hearts { display: flex; gap: 6px; justify-content: center; }
.heart { width: 30px; height: 26px; }
.beat { animation: beat 1.4s ease-in-out infinite; }
.hearts .heart:nth-child(2) { animation-delay: .15s; }
.hearts .heart:nth-child(3) { animation-delay: .3s; }
.hearts .heart:nth-child(4) { animation-delay: .45s; }
.hearts .heart:nth-child(5) { animation-delay: .6s; }
@keyframes beat { 0%,100% { transform: none; } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }

.btn {
  color: var(--ink);
  background: var(--blush);
  border: none;
  padding: 9px 30px;
  font-size: 19px;
  cursor: pointer;
  outline: 3px solid var(--ink);
  box-shadow:
    inset -3px -3px 0 #a3001b,
    inset 3px 3px 0 #ffffff;
}
.btn:hover { background: #ffe6eb; }
.btn:active { box-shadow: inset 3px 3px 0 #a3001b, inset -3px -3px 0 #ffffff; }
.btn:focus-visible { outline: 3px dashed var(--paper); outline-offset: 3px; }
.btn.primary {
  background: var(--passion); color: #fff;
  box-shadow: inset -3px -3px 0 var(--deep), inset 3px 3px 0 var(--pink);
}
.btn.primary:hover { background: var(--crimson); }
.btn.primary:active { box-shadow: inset 3px 3px 0 var(--deep), inset -3px -3px 0 var(--pink); }

.window {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--blood), 0 0 40px rgba(255, 46, 77, .35);
  position: relative;
}
.window-bar {
  background: linear-gradient(90deg, var(--red), var(--passion));
  color: #fff;
  font-family: "Silkscreen", monospace;
  font-size: 14px;
  padding: 5px 8px 5px 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-bottom: 3px solid var(--ink);
}
.window-bar .dots { display: flex; gap: 4px; }
.window-bar .dots i { width: 12px; height: 12px; background: var(--blush); box-shadow: inset -2px -2px 0 #a3001b; display: block; }
.window-body { padding: 24px; }

/* ---------- Pantallas ---------- */
.screen {
  display: none; position: relative; z-index: 1;
  min-height: 100vh; padding: 32px 16px 110px;
}
.screen.active { display: block; animation: screenIn .7s var(--ease) both; }
.screen.leaving { animation: screenOut .35s ease-in both; pointer-events: none; }
@keyframes screenOut { to { opacity: 0; transform: translateY(-12px) scale(.98); filter: blur(3px); } }
.screen.center { place-items: center; }
.screen.center.active { display: grid; }
@keyframes screenIn { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.wrap { max-width: 1040px; margin: 0 auto; }

/* Intro */
.intro-card { text-align: center; max-width: 680px; width: 100%; }
.intro-card .pixel-title { white-space: nowrap; font-size: clamp(40px, 11vw, 92px); margin: 18px 0 12px; }
.intro-card p {
  font-family: "Silkscreen", monospace; font-size: 15px; text-transform: uppercase;
  margin: 0 auto 28px; max-width: 380px; line-height: 1.45;
}
.intro-btns { display: flex; gap: 44px; justify-content: center; min-height: 52px; }
#noBtn { position: relative; transition: transform .45s var(--ease); }
#yesBtn { transition: transform .45s var(--ease), background .2s; }
#noMsg { min-height: 28px; margin-top: 18px; font-size: 17px; color: var(--red); font-weight: 600; }

/* Cómo funciona */
.how { max-width: 720px; width: 100%; }
.how h1 { text-align: center; font-size: clamp(28px, 6vw, 46px); margin: 6px 0 22px; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.steps .n {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--passion); color: #fff; font-family: "Silkscreen", monospace; font-size: 24px;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--blood);
}
.steps b { color: var(--red); }
.steps p { margin: 4px 0 0; font-size: 19px; }
.how-foot { text-align: center; }

/* Mapa de semanas */
.map-head { text-align: center; padding: 26px 0 8px; }
.map-head .pixel-title { font-size: clamp(32px, 7vw, 60px); }
.stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 6px; }
.stat {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blood);
  min-width: 96px; padding: 8px 10px; text-align: center;
}
.stat b { display: block; font-family: "Silkscreen", monospace; font-size: 30px; color: var(--red); line-height: 1.1; }
.stat span { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.left-note { text-align: center; color: var(--blush); font-size: 19px; margin: 14px 0 0; }
.left-note b { color: #fff; }

.levels {
  display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 18px;
  margin: 36px auto 0;
}
.level { cursor: pointer; padding: 0; color: inherit; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); will-change: transform; }
.level:hover { transform: translateY(-8px); box-shadow: 7px 13px 0 var(--blood), 0 0 50px rgba(255, 46, 77, .6); }
.level:active { transform: translateY(-2px) scale(.98); }
.level .window-body { padding: 16px 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.level .badge { position: relative; width: 84px; height: 72px; display: grid; place-items: center; }
.level .badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.level .badge span { position: relative; font-family: "Silkscreen", monospace; font-size: 26px; color: #fff; margin-top: -6px; text-shadow: 2px 2px 0 var(--blood); }
.level h3 { margin: 4px 0 0; font-family: "Silkscreen", monospace; font-size: 14px; color: var(--red); line-height: 1.25; min-height: 36px; display: grid; place-items: center; }
.level small { font-size: 14px; opacity: .85; }
.level.locked .badge svg.h { filter: grayscale(1) brightness(.75); opacity: .5; }
.level.locked h3 { color: #8a6066; letter-spacing: 3px; }
.level .tag {
  margin-top: 4px; font-size: 13px; padding: 1px 10px; border: 2px solid var(--ink);
  background: var(--blush); font-family: "Silkscreen", monospace;
}
.level.open .tag { background: var(--passion); color: #fff; }

.final-wrap { display: flex; justify-content: center; margin-top: 26px; }
.level.final { width: min(100%, 440px); }
.level.final .window-bar { background: linear-gradient(90deg, var(--blood), var(--red), var(--blood)); }
.level.final .badge { width: 120px; height: 104px; }
.level.final .badge span { font-size: 22px; line-height: 1; }
.level.final h3 { font-size: 20px; }
.map-foot { text-align: center; margin-top: 30px; }
.linkish { background: none; border: none; color: var(--blush); text-decoration: underline; cursor: pointer; font-size: 17px; }

/* Pantalla de semana */
.week-top { display: flex; justify-content: space-between; align-items: center; max-width: 860px; margin: 0 auto 18px; gap: 10px; }
.week-top .btn { font-size: 16px; padding: 6px 16px; }
.week-top .crumb { color: var(--blush); font-family: "Silkscreen", monospace; font-size: 14px; }
.week-window { max-width: 860px; margin: 0 auto; }

/* Candado + PIN */
.lock { text-align: center; max-width: 420px; margin: 0 auto; }
.lock .padlock { width: 84px; height: 96px; margin: 0 auto 10px; }
.lock h2 { font-size: clamp(24px, 5vw, 34px); margin-bottom: 6px; }
.lock .when { margin: 0 0 6px; }
.lock .cd { font-family: "Silkscreen", monospace; font-size: clamp(20px, 5vw, 28px); color: var(--red); margin: 0 0 20px; }
.lock .or { font-size: 16px; margin: 0 0 12px; opacity: .85; }
.pin-boxes { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.pin-boxes i {
  width: 48px; height: 56px; border: 3px solid var(--ink); background: #fff;
  display: grid; place-items: center; font-style: normal; font-family: "Silkscreen", monospace; font-size: 28px; color: var(--red);
  box-shadow: inset 3px 3px 0 #f1c6cd;
}
.pin-boxes.shake { animation: shake .4s ease-in-out; }
.pin-boxes.shake i { border-color: var(--passion); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; }
.pad .btn { padding: 10px 0; font-size: 22px; }
.pin-msg { min-height: 28px; margin-top: 14px; color: var(--red); font-weight: 600; }

/* Contenido: carta + polaroids */
.section-title { text-align: center; font-size: clamp(24px, 5vw, 36px); margin: 4px 0 18px; }
.section-sub { text-align: center; margin: -8px 0 22px; }
.letter { font-size: 20px; max-width: 620px; margin: 0 auto; }
.letter p { margin: 0 0 14px; }
.letter .sign { text-align: right; color: var(--red); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin-top: 26px; }
.polaroid {
  background: #fff; padding: 8px 8px 30px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red); cursor: zoom-in; position: relative;
}
.polaroid::after { content: "♥"; position: absolute; bottom: 4px; right: 10px; color: var(--passion); font-size: 16px; }
.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(1.5deg); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 2; }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
#lightbox { position: fixed; inset: 0; background: rgba(46, 0, 7, .92); display: none; place-items: center; z-index: 60; padding: 16px; cursor: zoom-out; }
#lightbox.open { display: grid; }
#lightbox img { max-height: 88vh; border: 6px solid #fff; box-shadow: 8px 8px 0 var(--passion); }

/* Razones */
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.reason { perspective: 600px; height: 150px; cursor: pointer; }
.reason-inner { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.reason.flipped .reason-inner { transform: rotateY(180deg); }
.reason-face { position: absolute; inset: 0; backface-visibility: hidden; border: 3px solid var(--ink); display: grid; place-items: center; text-align: center; padding: 10px; box-shadow: 4px 4px 0 var(--blood); }
.reason-front { background: var(--passion); color: #fff; font-family: "Silkscreen", monospace; font-size: 26px; }
.reason-back { background: #fff; transform: rotateY(180deg); font-size: 16px; }

/* Quiz */
.quiz-q { font-size: 22px; margin-bottom: 14px; text-align: center; }
.quiz-opts { display: grid; gap: 14px; max-width: 420px; margin: 0 auto; }
.quiz-opts .btn.right { background: #a8e0a0; }
.quiz-opts .btn.wrong { background: #ff9aa9; }
.quiz-foot { text-align: center; margin-top: 16px; min-height: 30px; }

/* Cupones */
.coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.coupon { border: 3px dashed var(--passion); background: #fff; padding: 16px; text-align: center; position: relative; }
.coupon h4 { margin: 0 0 6px; font-family: "Silkscreen", monospace; color: var(--red); font-size: 16px; }
.coupon .btn { font-size: 15px; padding: 4px 16px; margin-top: 10px; }
.coupon.used { opacity: .5; }
.coupon.used::after { content: "USADO"; position: absolute; inset: 0; display: grid; place-items: center; font-family: "Silkscreen", monospace; font-size: 34px; color: var(--red); transform: rotate(-14deg); }

.placeholder { border: 3px dashed #c98a94; padding: 14px; background: #fde8ec; font-size: 16px; margin-top: 14px; }

/* Reproductor */
#music {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blood);
  padding: 6px 12px 6px 6px;
}
#music.show { display: flex; }
#music button {
  width: 40px; height: 40px; flex: none; cursor: pointer; border: none; outline: 2px solid var(--ink);
  background: var(--passion); color: #fff; font-size: 16px;
  box-shadow: inset -3px -3px 0 var(--deep), inset 3px 3px 0 var(--pink);
}
#music .t { font-size: 14px; line-height: 1.2; min-width: 0; }
#music .t b { display: block; color: var(--red); font-family: "Silkscreen", monospace; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#music .eq { display: flex; gap: 2px; align-items: flex-end; height: 18px; }
#music .eq i { width: 4px; background: var(--passion); animation: eq .9s ease-in-out infinite; }
#music .eq i:nth-child(2) { animation-delay: .2s; } #music .eq i:nth-child(3) { animation-delay: .4s; }
#music.paused .eq i { animation: none; height: 4px; }
@keyframes eq { 0% { height: 4px; } 50% { height: 18px; } 100% { height: 9px; } }
#yt { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; }

.fall { position: fixed; top: -40px; z-index: 70; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(20deg); } }

/* ---------- Fluidez ---------- */
.btn { transition: transform .18s var(--ease), background .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(.7); opacity: .55; cursor: not-allowed; transform: none; }
#lightbox { opacity: 0; transition: opacity .35s var(--ease); display: grid; pointer-events: none; }
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox img { transform: scale(.92); transition: transform .45s var(--ease); }
#lightbox.open img { transform: none; }
.polaroid { transition: transform .35s var(--ease); }
.polaroid img, .fade-img { opacity: 0; transition: opacity .6s ease; }
.polaroid img.loaded, .fade-img.loaded { opacity: 1; }
.float-layer svg { will-change: transform, opacity; }
.reveal { animation: reveal .6s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .06s; } .reveal:nth-child(3) { animation-delay: .12s; }
.reveal:nth-child(4) { animation-delay: .18s; } .reveal:nth-child(5) { animation-delay: .24s; }
.reveal:nth-child(6) { animation-delay: .3s; }
@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Semana 1: cita de cine ---------- */
.progress { display: flex; justify-content: center; gap: 10px; margin: -4px 0 22px; }
.progress i { width: 34px; height: 8px; background: var(--blush); border: 2px solid var(--ink); transition: background .4s var(--ease); }
.progress i.on { background: var(--passion); }
.step { animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.step-nav.center { justify-content: center; }

.envelope { width: min(320px, 80%); margin: 10px auto 18px; cursor: pointer; display: block; background: none; border: none; padding: 0; }
.envelope svg { width: 100%; height: auto; display: block; overflow: visible; margin-top: 48px; }
.envelope .flap { transform-box: fill-box; transform-origin: 50% 0; transition: transform .5s ease-in; }
.envelope .letter-in { transition: transform .8s var(--ease) .25s; }
.envelope.open .flap { transform: scaleY(0); }
.envelope .flap-back { opacity: 0; transition: opacity .2s .45s; }
.envelope.open .flap-back { opacity: 1; }
.envelope .seal { transition: opacity .2s; }
.envelope.open .seal { opacity: 0; }
.envelope.open .letter-in { transform: translateY(-16px); }
.envelope:not(.open) { animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%,80%,100% { transform: rotate(0); } 85% { transform: rotate(-3deg); } 90% { transform: rotate(3deg); } 95% { transform: rotate(-2deg); } }
.tap-hint { text-align: center; font-size: 16px; opacity: .8; }
.invite-text { text-align: center; }
.invite-text .big { font-family: "Silkscreen", monospace; font-size: clamp(20px, 4.4vw, 28px); color: var(--red); margin: 6px 0; line-height: 1.2; }
.invite-text .when-box {
  display: inline-block; margin: 12px 0 4px; padding: 10px 18px; background: var(--passion); color: #fff;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blood); font-size: 19px;
}

.movies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.movie {
  position: relative; text-align: left; cursor: pointer; padding: 0; border: 3px solid var(--ink);
  background: #fff; box-shadow: 4px 4px 0 var(--blood); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.movie:hover { transform: translateY(-5px); box-shadow: 6px 10px 0 var(--blood); }
.movie .poster {
  height: 120px; display: grid; place-items: center; font-size: 54px; border-bottom: 3px solid var(--ink);
  background: linear-gradient(160deg, var(--c1), var(--c2));
}
.movie .meta { padding: 10px 12px 12px; }
.movie h4 { margin: 0; font-family: "Silkscreen", monospace; font-size: 14px; line-height: 1.25; color: var(--red); }
.movie small { display: block; font-size: 14px; opacity: .8; margin-top: 3px; }
.movie p { margin: 6px 0 0; font-size: 14px; line-height: 1.35; }
.movie .check {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--passion); color: #fff; border: 2px solid var(--ink); font-size: 16px;
  transform: scale(0); transition: transform .35s var(--ease);
}
.movie.selected { background: #ffe6eb; transform: translateY(-5px); box-shadow: 0 0 0 4px var(--passion), 6px 10px 0 var(--blood); }
.movie.selected .check { transform: scale(1); }

.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 620px; margin: 0 auto; }
.rule {
  display: grid; grid-template-columns: 34px 46px 1fr; gap: 12px; align-items: center; cursor: pointer;
  background: #fff; border: 3px solid var(--ink); padding: 12px 14px; box-shadow: 4px 4px 0 var(--blood);
  transition: background .3s, transform .25s var(--ease);
}
.rule:hover { transform: translateX(4px); }
.rule .box { width: 30px; height: 30px; border: 3px solid var(--ink); background: #fff; display: grid; place-items: center; color: #fff; font-size: 18px; transition: background .25s; }
.rule.done { background: #ffe6eb; }
.rule.done .box { background: var(--passion); }
.rule .ico { font-size: 32px; text-align: center; }
.rule b { color: var(--red); display: block; }
.rule span { font-size: 16px; line-height: 1.35; }

.summary { max-width: 460px; margin: 0 auto; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blood); }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 2px dashed #f1b9c3; }
.summary div:last-child { border-bottom: none; }
.summary dt { font-family: "Silkscreen", monospace; font-size: 13px; color: var(--red); }
.summary dd { margin: 0; text-align: right; }
.confirm-btns { display: flex; gap: 36px; justify-content: center; margin-top: 26px; min-height: 52px; }
.confirm-btns .btn { transition: transform .45s var(--ease); }

.sending { text-align: center; padding: 30px 0; }
.sending .env-fly { font-size: 60px; display: inline-block; animation: fly 1.4s var(--ease) infinite; }
@keyframes fly { 0% { transform: translate(-40px, 10px) rotate(-10deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(60px, -40px) rotate(12deg); opacity: 0; } }

.ticket {
  display: grid; grid-template-columns: 1fr 120px; max-width: 600px; margin: 0 auto;
  filter: drop-shadow(6px 6px 0 var(--blood));
  animation: ticketIn .9s var(--ease) both;
}
@keyframes ticketIn { from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(.9); } to { opacity: 1; transform: rotate(-1deg); } }
.ticket .main, .ticket .stub { background: var(--passion); color: #fff; padding: 18px; position: relative; }
.ticket .main { border: 3px solid var(--ink); border-right: 3px dashed var(--blush); }
.ticket .stub { border: 3px solid var(--ink); border-left: none; display: grid; place-items: center; text-align: center; font-family: "Silkscreen", monospace; font-size: 13px; }
.ticket .stub b { font-size: 34px; display: block; line-height: 1; }
.ticket .admit { font-family: "Silkscreen", monospace; font-size: 13px; letter-spacing: 3px; opacity: .9; }
.ticket h3 { margin: 4px 0 10px; font-family: "Silkscreen", monospace; font-size: clamp(20px, 4.5vw, 28px); line-height: 1.1; text-shadow: 3px 3px 0 var(--blood); }
.ticket .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 15px; }
.ticket .rows b { display: block; font-family: "Silkscreen", monospace; font-size: 11px; color: var(--blush); letter-spacing: 1px; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.ticket-actions a { text-decoration: none; display: inline-block; }
.mail-status { text-align: center; margin-top: 18px; font-size: 17px; min-height: 26px; }
.mail-status.ok { color: #1f7a2e; }
.mail-status.err { color: var(--red); }

/* ---------- Fotos decorativas ---------- */
.deco-polaroid {
  background: #fff; padding: 7px 7px 26px; border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--blood); position: relative; width: 170px;
}
.deco-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.deco-polaroid::before {   /* cinta */
  content: ""; position: absolute; top: -12px; left: 50%; width: 64px; height: 22px; margin-left: -32px;
  background: rgba(255, 179, 193, .85); border: 1px solid rgba(46, 0, 7, .25); transform: rotate(-4deg);
}
.deco-polaroid::after { content: "♥"; position: absolute; bottom: 3px; right: 9px; color: var(--passion); font-size: 15px; }
.sway { animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(var(--r, -6deg)) translateY(0); } 50% { transform: rotate(calc(var(--r, -6deg) * -.4)) translateY(-8px); } }

.intro-stage { position: relative; width: 100%; max-width: 680px; }
.intro-stage .deco-polaroid { position: absolute; z-index: 2; }
.intro-stage .p1 { --r: -9deg; left: -150px; top: 30px; }
.intro-stage .p2 { --r: 8deg; right: -150px; bottom: 10px; animation-delay: -3s; }

.photo-row { display: flex; justify-content: center; gap: 18px; margin: 4px 0 24px; flex-wrap: wrap; }
.photo-row .deco-polaroid { width: 128px; padding: 6px 6px 22px; }
.photo-row .deco-polaroid:nth-child(1) { --r: -6deg; }
.photo-row .deco-polaroid:nth-child(2) { --r: 3deg; animation-delay: -2s; margin-top: 10px; }
.photo-row .deco-polaroid:nth-child(3) { --r: 7deg; animation-delay: -4s; }

/* Avatares pixel */
.mc-duo { display: block; margin: 0 auto; image-rendering: pixelated; overflow: visible; }
.mc-duo .him, .mc-duo .her { animation: mcBob 1.6s ease-in-out infinite; }
.mc-duo .her { animation-delay: -.8s; }
.mc-duo .mc-heart { animation: mcHeart 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mcBob { 50% { transform: translateY(-1px); } }
@keyframes mcHeart { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1.5px) scale(1.15); } }
.mc-duo text { font-family: "Silkscreen", monospace; font-size: 2.6px; fill: #fff; text-anchor: middle; }
.mc-duo .tag-bg { fill: rgba(0, 0, 0, .45); }
.mc-map { width: min(300px, 70vw); height: auto; margin-bottom: 6px; filter: drop-shadow(6px 6px 0 rgba(46, 0, 7, .6)); }
.mc-intro { position: absolute; width: 150px; left: 50%; margin-left: -75px; top: -132px; z-index: 3; filter: drop-shadow(4px 4px 0 rgba(46, 0, 7, .5)); }
#s-intro { padding-top: 170px; }

.tod-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
/* ---------- Semana 2: trivia + tarjeta ---------- */
.tv-bar { display: flex; gap: 6px; justify-content: center; margin: -6px 0 20px; flex-wrap: wrap; }
.tv-bar i { width: 22px; height: 12px; border: 2px solid var(--ink); background: #fff; }
.tv-bar i.ok { background: var(--passion); }
.tv-bar i.no { background: #c98a94; }
.tv-bar i.now { background: var(--blush); animation: beat 1.4s ease-in-out infinite; }
.tv-card { max-width: 520px; margin: 0 auto; padding: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--blood); text-align: center; }
.tv-card > b { font-family: "Silkscreen", monospace; color: var(--red); font-size: 14px; letter-spacing: 2px; }
.tv-card .quiz-opts .btn { text-align: left; padding-left: 16px; }
.tv-card .quiz-opts .btn:disabled { cursor: default; transform: none; }
.tv-score { font-family: "Silkscreen", monospace; font-size: clamp(44px, 12vw, 72px); color: var(--red); line-height: 1; margin: 6px 0; }

.lovecard {
  position: relative; width: min(100%, 380px); aspect-ratio: 1.586; margin: 4px auto 0; padding: 18px 20px; color: #fff; overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.22), transparent 40%), linear-gradient(135deg, var(--crimson), var(--red) 45%, var(--blood));
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--blood);
  display: grid; grid-template-rows: auto 1fr auto auto; animation: ticketIn .9s var(--ease) both;
}
.lovecard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%);
  transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite 1s;
}
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.lovecard .lc-top { display: flex; justify-content: space-between; align-items: center; font-family: "Silkscreen", monospace; font-size: 13px; letter-spacing: 1px; }
.lovecard .lc-top b { font-size: 16px; }
.lovecard .chip { width: 46px; height: 34px; margin-top: 12px; border-radius: 6px; border: 2px solid #8a5a00; background: linear-gradient(135deg, #ffe7a3, #d9a520); }
.lovecard .num { font-family: "Silkscreen", monospace; font-size: clamp(15px, 4.6vw, 21px); letter-spacing: 2px; text-shadow: 2px 2px 0 var(--blood); }
.lovecard .lc-foot { display: flex; justify-content: space-between; align-items: end; font-size: 13px; line-height: 1.2; }
.lovecard .lc-foot small { display: block; font-family: "Silkscreen", monospace; font-size: 9px; opacity: .8; letter-spacing: 1px; }
.lovecard .lc-foot b { font-family: "Silkscreen", monospace; font-size: 14px; }
.lovecard .wave { position: absolute; right: 22px; top: 58px; font-family: "Silkscreen", monospace; font-size: 22px; letter-spacing: -4px; opacity: .9; }
.lc-balance { text-align: center; margin: 18px 0 6px; font-size: 17px; }
.lc-balance b { color: var(--red); }
.bonos { list-style: none; padding: 0; margin: 14px auto 0; max-width: 560px; display: grid; gap: 10px; }
.bono {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 3px solid var(--ink); padding: 10px 12px; box-shadow: 4px 4px 0 var(--blood); position: relative;
}
.bono .ico { font-size: 30px; text-align: center; }
.bono b { color: var(--red); display: block; line-height: 1.2; }
.bono span { font-size: 15px; line-height: 1.3; display: block; }
.bono .btn { font-size: 14px; padding: 4px 12px; }
.bono.used { background: #f3e3e6; }
.bono.used .ico, .bono.used div { opacity: .55; }
.bono .paid { font-family: "Silkscreen", monospace; font-size: 11px; color: #1f7a2e; text-align: right; line-height: 1.3; }

@media (max-width: 480px) {
  .bono { grid-template-columns: 34px 1fr; }
  .bono .ico { font-size: 24px; }
  .bono .btn, .bono .paid { grid-column: 2; justify-self: start; text-align: left; }
}
.clue-card { max-width: 520px; margin: 0 auto; padding: 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--blood); text-align: center; }
.clue-card > b { font-family: "Silkscreen", monospace; color: var(--red); font-size: 14px; letter-spacing: 2px; }
.t-form { display: flex; gap: 10px; }
.t-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 19px; padding: 9px 12px; border: 3px solid var(--ink);
  box-shadow: inset 3px 3px 0 #f1c6cd; outline: none; color: var(--ink);
}
.t-form input:focus { border-color: var(--passion); }
.t-form input.shake { animation: shake .4s ease-in-out; border-color: var(--passion); }
.clue-reveal { background: var(--blush); border: 3px dashed var(--passion); padding: 14px; font-size: 19px; }

/* ---------- Semana 4: ábrela cuando ---------- */
.envelopes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ow-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; cursor: pointer; text-align: center;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blood);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.ow-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 6px 10px 0 var(--blood); }
.ow-card .ow-icon { font-size: 38px; }
.ow-card small { font-size: 13px; opacity: .75; }
.ow-card b { color: var(--red); font-size: 16px; line-height: 1.2; min-height: 40px; display: grid; place-items: center; }
.ow-state { margin-top: 6px; font-family: "Silkscreen", monospace; font-size: 11px; padding: 1px 8px; border: 2px solid var(--ink); background: var(--passion); color: #fff; }
.ow-card.opened { background: #ffe6eb; }
.ow-card.opened .ow-state { background: var(--blush); color: var(--ink); }
.ow-reader { margin-top: 24px; }
.ow-letter {
  max-width: 520px; margin: 0 auto; padding: 24px; text-align: center; background: #fffdf8; border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blood); background-image: repeating-linear-gradient(transparent 0 31px, #f6d3da 31px 32px);
}
.ow-letter h3 { font-family: "Silkscreen", monospace; color: var(--red); margin: 6px 0 10px; font-size: 18px; }
.ow-letter p { font-size: 20px; margin: 0 0 14px; }
.ow-big { font-size: 46px; display: block; }

/* ---------- Semana 5: mixtape ---------- */
.cassette {
  width: min(380px, 100%); margin: 0 auto 24px; padding: 14px 16px 10px; background: #2a2a2a; border: 4px solid #000;
  box-shadow: 6px 6px 0 var(--blood); position: relative; transition: transform .6s var(--ease);
}
.cassette.flip { transform: rotateY(180deg) scale(.9); }
.cas-label {
  background: var(--blush); border: 3px solid #000; padding: 6px 10px 70px; display: flex; justify-content: space-between; align-items: start;
  font-family: "Silkscreen", monospace; font-size: 11px; position: relative;
  background-image: linear-gradient(var(--passion) 0 0); background-size: 100% 6px; background-repeat: no-repeat; background-position: 0 28px;
}
.cas-label b { color: var(--red); font-size: 14px; }
.cas-window {
  position: absolute; left: 50%; top: 52px; width: 64%; margin-left: -32%; height: 54px; background: #3b2a24; border: 3px solid #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
}
.cas-window .tape { position: absolute; left: 30%; right: 30%; top: 50%; height: 14px; margin-top: -7px; background: #5a3a2e; }
.reel {
  width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid #000; position: relative; z-index: 1;
  background-image: conic-gradient(#000 0 15deg, transparent 15deg 60deg, #000 60deg 75deg, transparent 75deg 120deg, #000 120deg 135deg, transparent 135deg 180deg, #000 180deg 195deg, transparent 195deg 240deg, #000 240deg 255deg, transparent 255deg 300deg, #000 300deg 315deg, transparent 315deg);
}
.cassette.playing .reel { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cas-bottom { display: flex; justify-content: center; gap: 22px; margin-top: 8px; }
.cas-bottom i { width: 10px; height: 10px; background: #000; border-radius: 50%; }
.tracks { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; display: grid; gap: 10px; }
.track {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 14px; cursor: pointer; text-align: left;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blood);
  transition: transform .25s var(--ease), background .25s;
}
.track:hover { transform: translateX(4px); }
.track.on { background: var(--passion); color: #fff; }
.track.on .t-info small, .track.on .t-num { color: var(--blush); }
.t-num { font-family: "Silkscreen", monospace; color: var(--red); font-size: 18px; }
.t-info { flex: 1; min-width: 0; }
.t-info b { display: block; }
.t-info small { font-size: 14px; opacity: .8; }
.t-play { font-size: 14px; }
.t-why { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.t-why.open { max-height: 260px; }
.t-why p { margin: 10px 4px 8px; font-size: 18px; }
.t-why .btn { font-size: 15px; padding: 5px 14px; text-decoration: none; display: inline-block; margin: 0 0 6px 4px; }

/* ---------- El gran día: línea del tiempo ---------- */
.timeline { position: relative; max-width: 760px; margin: 10px auto 0; padding: 10px 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: repeating-linear-gradient(var(--passion) 0 12px, var(--blush) 12px 24px); border: 2px solid var(--ink); }
.tl-item { position: relative; width: 50%; padding: 12px 34px; }
.tl-item.left { left: 0; }
.tl-item.right { left: 50%; }
.tl-dot { position: absolute; top: 28px; width: 30px; height: 26px; z-index: 1; }
.tl-item.left .tl-dot { right: -15px; }
.tl-item.right .tl-dot { left: -15px; }
.tl-dot svg { width: 100%; height: 100%; animation: beat 1.4s ease-in-out infinite; }
.tl-card { background: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--blood); padding: 10px; display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; }
.tl-card img { width: 90px; height: 90px; object-fit: cover; border: 2px solid var(--ink); cursor: zoom-in; }
.tl-card small { font-family: "Silkscreen", monospace; color: var(--passion); font-size: 12px; }
.tl-card b { display: block; color: var(--red); line-height: 1.2; }
.tl-card p { margin: 4px 0 0; font-size: 15px; line-height: 1.35; }
.final-q { margin-top: 36px; text-align: center; }
.final-answer { font-size: 22px; color: var(--red); font-weight: 700; min-height: 30px; margin-top: 18px; }

@media (max-width: 700px) {
  .envelopes { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 18px; }
  .tl-item, .tl-item.right { width: 100%; left: 0; padding: 10px 0 10px 46px; }
  .tl-item.left .tl-dot, .tl-item.right .tl-dot { left: 4px; right: auto; }
}
@media (max-width: 520px) {
  .memory { gap: 8px; }
  .die { min-width: 130px; font-size: 15px; }
  .tl-card { grid-template-columns: 70px 1fr; }
  .tl-card img { width: 70px; height: 70px; }
}

.riddle-photo { position: relative; width: 150px; margin: 6px auto 18px; }
.riddle-photo .deco-polaroid { width: 150px; transform: rotate(-4deg); }
.riddle-photo img { filter: blur(3px) saturate(1.2); }
.padlock.mini { position: absolute; width: 56px; height: 64px; right: -22px; bottom: -14px; filter: drop-shadow(3px 3px 0 var(--blood)); }
.riddle {
  font-size: clamp(20px, 4.5vw, 25px); font-weight: 700; color: var(--red); margin: 6px 0 16px;
  background: #fff; border: 3px solid var(--ink); padding: 12px 14px; box-shadow: 4px 4px 0 var(--blood);
}

.confirm-layout { display: flex; gap: 30px; justify-content: center; align-items: center; flex-wrap: wrap; }
.confirm-layout .deco-polaroid { --r: 5deg; width: 180px; }
.confirm-layout .summary { flex: 1 1 300px; margin: 0; }

.ticket .main { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: start; }
.ticket-photo { width: 96px; height: 120px; object-fit: cover; border: 3px solid #fff; transform: rotate(3deg); box-shadow: 3px 3px 0 var(--blood); }

/* Película personalizada */
.custom-movie { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, margin .4s; max-width: 460px; margin: 0 auto; }
.custom-movie.show { max-height: 140px; opacity: 1; margin: 20px auto 0; }
.custom-movie label { display: block; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.custom-movie input {
  width: 100%; font: inherit; font-size: 19px; padding: 10px 12px; border: 3px solid var(--ink);
  background: #fff; box-shadow: inset 3px 3px 0 #f1c6cd; color: var(--ink); outline: none;
}
.custom-movie input:focus { border-color: var(--passion); }
.movies.four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .intro-stage .p1 { left: -40px; top: -110px; width: 120px; }
  .intro-stage .p2 { right: -30px; bottom: -120px; width: 120px; }
  #s-intro { padding-top: 140px; padding-bottom: 170px; }
}
@media (max-width: 880px) {
  .movies, .movies.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .intro-stage .p1 { left: -4px; top: -104px; width: 104px; }
  .intro-stage .p2 { right: -4px; bottom: -112px; width: 104px; }
  .photo-row { gap: 10px; }
  .photo-row .deco-polaroid { width: 96px; padding: 5px 5px 18px; }
  .movies.four { grid-template-columns: 1fr; }
  .ticket .main { grid-template-columns: 1fr 76px; }
  .ticket-photo { width: 76px; height: 96px; }
}
@media (max-width: 520px) {
  .movies { grid-template-columns: 1fr; }
  .movie { display: grid; grid-template-columns: 90px 1fr; }
  .movie .poster { height: auto; min-height: 96px; border-bottom: none; border-right: 3px solid var(--ink); font-size: 40px; }
  .rule { grid-template-columns: 30px 34px 1fr; gap: 10px; padding: 10px; }
  .rule .ico { font-size: 26px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .main { border-right: 3px solid var(--ink); border-bottom: 3px dashed var(--blush); }
  .ticket .stub { border-left: 3px solid var(--ink); border-top: none; padding: 12px; }
  .confirm-btns { gap: 18px; }
}

@media (max-width: 880px) {
  .levels { grid-template-columns: 1fr; max-width: 440px; gap: 14px; }
  .level .window-body { flex-direction: row; text-align: left; gap: 14px; padding: 12px 14px; }
  .level .badge { width: 60px; height: 52px; flex: none; }
  .level .badge span { font-size: 20px; }
  .level h3 { min-height: 0; display: block; }
  .level .info { flex: 1; }
  .level .tag { margin: 0; }
  .level.final .window-body { flex-direction: column; text-align: center; }
  .level.final .badge { width: 104px; height: 90px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .window-body { padding: 18px 16px; }
  .intro-btns { gap: 22px; }
  .stat { min-width: 72px; padding: 6px; }
  .stat b { font-size: 24px; }
  .pad { grid-template-columns: repeat(3, 64px); }
  .steps li { grid-template-columns: 42px 1fr; }
  .steps .n { width: 42px; height: 42px; font-size: 20px; }
}

/* ---------- Celular ---------- */
@media (max-width: 560px) {
  #s-week { padding: 14px 8px 96px; }
  .week-top { margin-bottom: 12px; }
  .week-window .window-body { padding: 14px 10px; }
  .section-title { font-size: clamp(20px, 6.4vw, 28px); margin-bottom: 14px; }
  .section-sub { font-size: 16px; }
  #music { right: 8px; bottom: 8px; padding: 4px 8px 4px 4px; }
  #music button { width: 34px; height: 34px; }
}

/* Fotos pixel de la demo: se ven nítidas al agrandarlas */
body.pixel-fotos img[src^="fotos/"] { image-rendering: pixelated; }

/* Cinta de la demo */
.demo-ribbon {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 6px 10px; background: var(--ink); color: var(--blush); font-family: "Silkscreen", monospace; font-size: 12px; text-align: center;
}
.demo-ribbon a { color: #fff; background: var(--passion); padding: 2px 10px; border: 2px solid var(--blush); text-decoration: none; white-space: nowrap; }
body.has-ribbon .screen, body.has-ribbon #s-week { padding-top: 76px; }
body.has-ribbon #s-intro { padding-top: 200px; }

/* ---------- Dinámica: memoria ---------- */
.mem-hud { display: flex; justify-content: center; gap: 12px; margin: -6px 0 18px; flex-wrap: wrap; }
.mem-hud span { background: #fff; border: 3px solid var(--ink); padding: 2px 12px; font-family: "Silkscreen", monospace; font-size: 13px; color: var(--red); box-shadow: 3px 3px 0 var(--blood); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 520px; margin: 0 auto; }
.mem-card { aspect-ratio: 1; perspective: 600px; cursor: pointer; background: none; border: none; padding: 0; }
.mem-card .in { position: relative; width: 100%; height: 100%; transition: transform .5s var(--ease); transform-style: preserve-3d; }
.mem-card.up .in, .mem-card.done .in { transform: rotateY(180deg); }
.mem-card .f, .mem-card .b { position: absolute; inset: 0; backface-visibility: hidden; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--blood); }
.mem-card .f { background: var(--passion); display: grid; place-items: center; }
.mem-card .f svg { width: 46%; height: 46%; }
.mem-card .b { transform: rotateY(180deg); background: #fff; }
.mem-card .b img { width: 100%; height: 100%; object-fit: cover; }
.mem-card.done .b { box-shadow: 0 0 0 3px var(--passion), 3px 3px 0 var(--blood); }
.win-box { max-width: 520px; margin: 22px auto 0; text-align: center; }
.win-box .big { font-family: "Silkscreen", monospace; color: var(--red); font-size: clamp(22px, 5vw, 30px); margin: 0 0 8px; }

/* ---------- Dinámica: rompecabezas ---------- */
.puz-wrap { display: flex; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.puz { position: relative; width: min(100%, 360px); aspect-ratio: 1; background: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--blood); touch-action: manipulation; }
.puz .tile {
  position: absolute; border: 1px solid var(--ink); cursor: pointer; padding: 0;
  background-repeat: no-repeat; transition: left .18s var(--ease), top .18s var(--ease);
}
.puz.solved .tile { border-color: transparent; cursor: default; }
.puz-ref { width: 120px; text-align: center; font-size: 14px; }
.puz-ref .deco-polaroid { width: 120px; padding: 5px 5px 20px; --r: 4deg; }

/* ---------- Dinámica: ruleta ---------- */
.wheel-box { position: relative; width: min(100%, 380px); margin: 0 auto; }
.wheel-box canvas { width: 100%; height: auto; display: block; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--blood); transition: transform 4.2s cubic-bezier(.12, .7, .1, 1); }
.wheel-pin { position: absolute; left: 50%; top: -14px; width: 34px; margin-left: -17px; z-index: 2; filter: drop-shadow(2px 2px 0 var(--blood)); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--paper); border: 4px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.wheel-hub svg { width: 60%; height: 60%; }
.wheel-result { max-width: 460px; margin: 22px auto 0; text-align: center; min-height: 40px; }
.wheel-result b { display: block; font-family: "Silkscreen", monospace; color: var(--red); font-size: clamp(18px, 4.6vw, 24px); margin: 4px 0 12px; }

/* ---------- Dinámica: video ---------- */
.video-box { max-width: 640px; margin: 22px auto 0; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--blood); background: #000; }
.video-box video, .video-box iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-box video.vertical { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; width: auto; max-width: 100%; }

/* Botón de WhatsApp */
.btn.wa { background: #1fa855; color: #fff; box-shadow: inset -3px -3px 0 #0d6b33, inset 3px 3px 0 #7be0a3; text-decoration: none; display: inline-block; }
.btn.wa:hover { background: #25c263; }

@media (max-width: 520px) {
  .mem-grid { gap: 8px; }
  .puz-ref { width: 100%; display: flex; gap: 12px; align-items: center; justify-content: center; }
  .puz-ref .deco-polaroid { width: 80px; padding: 4px 4px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
