/* Groove Matic Games · web */

:root {
  --tinta: #0F0E13;
  --grafito: #1C1B22;
  --grafito-2: #26252E;
  --linea: rgba(245, 242, 235, .12);
  --niebla: #8E8A9C;
  --papel: #F5F2EB;
  --texto-suave: #C9C5D3;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { background: var(--tinta); color: var(--papel); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #FFD23F; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--papel); color: var(--tinta); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

h1 { font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; }
h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
h3 { font-weight: 600; font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
.small-title { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--niebla); margin-bottom: 18px; }
.lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--texto-suave); }
.lead + .lead { margin-top: 16px; }

/* ---------- botones ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--papel); color: var(--tinta); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--tinta); color: var(--papel); }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: rgba(245, 242, 235, .35); color: var(--papel); }
.btn-outline:hover { border-color: var(--papel); }
.btn-outline-dark { border-color: rgba(15, 14, 19, .3); color: var(--tinta); }
.btn-outline-dark:hover { border-color: var(--tinta); }
.btn-soon { border: 1px dashed rgba(245, 242, 235, .25); color: var(--niebla); font-size: 14px; cursor: default; }
.chip { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linea); color: var(--texto-suave); font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: rgba(245, 242, 235, .4); color: var(--papel); }
.chip.on { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.link-arrow { font-weight: 500; text-decoration: none; color: var(--texto-suave); white-space: nowrap; }
.link-arrow:hover { color: var(--papel); }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(15, 14, 19, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--linea); }
.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 34px; width: auto; }
.brand .logo-mark { display: none; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--texto-suave); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--papel); }
.nav .lang { font-size: 13px; font-weight: 500; border: 1px solid var(--linea); border-radius: 999px; padding: 4px 11px; }

/* ---------- banner de juegos ---------- */
.banner { padding: 16px 0 0; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 24px;
  min-height: clamp(460px, 64vh, 620px); padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px);
  background: var(--slide-bg); color: var(--papel); overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.slide.on-light { color: var(--tinta); }
.slide-copy { position: relative; z-index: 1; }
.slide h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: .95; letter-spacing: -.045em; margin: 14px 0 16px; }
.slide p { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; opacity: .85; max-width: 22ch; }
.slide .badge { color: inherit; opacity: .7; }
.slide-media { align-self: stretch; display: flex; align-items: center; justify-content: center; min-width: 0; }
.slide-media .shot { width: 100%; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transform: translateY(12px); transition: transform 1s var(--ease); }
.slide.active .slide-media .shot { transform: none; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; }
.phones img { width: clamp(120px, 15vw, 190px); border-radius: 20px; border: 6px solid var(--tinta); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .4); transition: transform 1s var(--ease); }
.phones img:nth-child(1) { transform: translate(30px, 30px) rotate(-6deg); }
.phones img:nth-child(2) { position: relative; z-index: 1; transform: translateY(10px) scale(1.06); }
.phones img:nth-child(3) { transform: translate(-30px, 30px) rotate(6deg); }
.slide.active .phones img:nth-child(1) { transform: translate(24px, 18px) rotate(-6deg); }
.slide.active .phones img:nth-child(2) { transform: scale(1.06); }
.slide.active .phones img:nth-child(3) { transform: translate(-24px, 18px) rotate(6deg); }
.slide:not(.on-light) .phones img { border-color: #2A2933; }

.banner-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.dots { display: flex; gap: 8px; flex: 1; max-width: 360px; }
.dot { flex: 1; height: 24px; display: flex; align-items: center; }
.dot span { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--grafito-2); overflow: hidden; position: relative; }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--papel); transform: scaleX(0); transform-origin: left; }
.dot.on span::after { animation: progress var(--dur, 6s) linear forwards; }
.banner.paused .dot.on span::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); font-size: 18px; transition: border-color .2s; }
.arrow:hover { border-color: var(--papel); }

/* ---------- catálogo ---------- */
section { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card { display: flex; flex-direction: column; text-decoration: none; background: var(--grafito); border-radius: var(--radius); overflow: hidden; }
.game-card[hidden] { display: none; }
.game-card:hover { background: var(--grafito-2); }
.cover { aspect-ratio: 4 / 3; background: var(--grafito-2); display: grid; place-items: center; overflow: hidden; }
.cover img { transition: transform .8s var(--ease); }
.cover.fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.fit-contain img { width: 40%; max-height: 62%; object-fit: contain; }
.game-card:hover .cover img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { color: var(--texto-suave); font-size: 15px; line-height: 1.45; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plats { display: inline-flex; align-items: center; gap: 6px; color: var(--niebla); }
.plats .ico { width: 17px; height: 17px; display: block; }
.plats-sep { width: 1px; height: 14px; background: var(--linea); margin: 0 3px; }
.game-card:hover .plats { color: var(--texto-suave); }
.ico { flex: none; }
.btn .ico { width: 19px; height: 19px; margin-left: -4px; }
.devices { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--texto-suave); font-size: 15px; }
.devices li { display: inline-flex; align-items: center; gap: 7px; }
.devices .ico { width: 20px; height: 20px; color: var(--niebla); }
.badge { font-size: 13px; font-weight: 500; color: var(--niebla); }
.status-soon .cover.fit-contain img { filter: grayscale(1); opacity: .5; } /* solo iconos provisionales */

.soon { padding-top: 0; }
.soon-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.soon-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--grafito); text-decoration: none; font-size: 15px; transition: background-color .2s; }
.soon-list a:hover { background: var(--grafito-2); }
.soon-list img { width: 40px; height: 40px; border-radius: 10px; flex: none; filter: grayscale(1); opacity: .7; }

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 44px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.catalog-full { padding-top: 0; }
.text-page { min-height: 52vh; }
.text-page h1 { margin-bottom: 28px; }
.mail { display: inline-block; margin-top: 28px; font-size: clamp(26px, 4vw, 48px); font-weight: 600; letter-spacing: -.02em; }
.nf + .nf { margin-top: 48px; }
.nf h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 12px; }

/* ---------- estudio ---------- */
.studio-head { padding-bottom: clamp(16px, 3vw, 32px); }
.studio-head h1 { margin-bottom: 28px; }
.studio-lead { font-size: clamp(24px, 3vw, 40px); line-height: 1.25; letter-spacing: -.02em; max-width: 26ch; color: var(--papel); }
.values { padding-top: clamp(40px, 5vw, 64px); }
.value-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-grid li { background: var(--grafito); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.value-n { font-size: 14px; font-weight: 500; color: var(--niebla); margin-bottom: 10px; }
.value-grid h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.value-grid p { color: var(--texto-suave); font-size: 16.5px; line-height: 1.55; }
.me { padding-top: 0; }
.me-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 6vw, 96px); border-top: 1px solid var(--linea); padding-top: clamp(40px, 5vw, 72px); }
.me-text p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--texto-suave); }
.me-text p + p { margin-top: 1em; }
.me-text .signature { color: var(--papel); font-weight: 500; margin-top: 1.6em; }

/* ---------- privacidad ---------- */
.policy-list { list-style: none; margin-top: 32px; display: grid; gap: 10px; }
.policy-list a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; background: var(--grafito); text-decoration: none; font-weight: 500; transition: background-color .2s; }
.policy-list a:hover { background: var(--grafito-2); }
.policy-list img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.policy-list span:last-child { margin-left: auto; color: var(--niebla); }
.policy-wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 32px; }
.policy { padding: clamp(32px, 4vw, 48px) 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.policy h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 14px; }
.policy-meta { color: var(--niebla); font-size: 15px; margin-bottom: 28px; }
.policy-body h2 { font-size: 21px; letter-spacing: -.01em; margin: 32px 0 10px; }
.policy-body h3 { font-size: 17px; margin: 22px 0 6px; }
.policy-body p, .policy-body li { color: var(--texto-suave); font-size: 16.5px; line-height: 1.65; }
.policy-body p + p { margin-top: .8em; }
.policy-body ul { padding-left: 22px; margin: 10px 0; }
.policy-body li { margin: 4px 0; }
.policy-body a, .policy-meta a { color: var(--papel); }
.policy mark { background: #FFD23F; color: var(--tinta); border-radius: 4px; padding: 0 4px; }
.privacy-link { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--niebla); }
.privacy-link:hover { color: var(--papel); }

/* ---------- ficha de juego ---------- */
.game-hero { padding: 24px 0 clamp(48px, 6vw, 80px); }
.back { display: inline-block; text-decoration: none; color: var(--niebla); font-size: 15px; margin-bottom: 28px; }
.back:hover { color: var(--papel); }
.game-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.game-cover { border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--grafito); aspect-ratio: 63 / 50; display: grid; place-items: center; }
.game-cover.fit-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover.fit-contain img { width: 38%; }
.game-intro h1 { margin: 10px 0 14px; }
.game-tagline { font-size: clamp(20px, 2vw, 25px); color: var(--texto-suave); line-height: 1.35; }
.tags { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tags li { font-size: 13px; border: 1px solid var(--linea); border-radius: 999px; padding: 3px 12px; color: var(--texto-suave); }
.note { margin-top: 20px; color: var(--niebla); }

.player { padding: 0 0 clamp(48px, 6vw, 80px); }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.player-frame { background: #000; border-radius: var(--radius); overflow: hidden; margin: 0 auto; }
.player-frame.portrait { width: min(100%, calc(80vh * 9 / 16)); aspect-ratio: 9 / 16; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }

.game-body { padding-top: 0; }
.game-body-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--linea); padding-top: clamp(40px, 5vw, 64px); }
.prose p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--texto-suave); }
.prose p + p { margin-top: 1em; }
.features { list-style: none; }
.features li { padding: 11px 0; border-bottom: 1px solid var(--linea); }
.features li:first-child { border-top: 1px solid var(--linea); }

.shots { padding-top: 0; }
.shot-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--grafito-2) transparent;
}
.shot-rail img { flex: none; scroll-snap-align: start; border-radius: 14px; background: var(--grafito); }
.shot-rail.landscape img { height: clamp(200px, 32vw, 420px); width: auto; }
.shot-rail.portrait img { height: clamp(340px, 46vw, 540px); width: auto; }
.more { padding-top: 0; }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--linea); padding: 40px 0 28px; font-size: 15px; margin-top: clamp(24px, 4vw, 48px); }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-in img { height: 32px; width: auto; }
.footer-nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--texto-suave); text-decoration: none; }
.footer-nav a:hover { color: var(--papel); }
.footer-base { margin-top: 28px; color: var(--niebla); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .game-hero-in, .game-body-in, .me-in { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .slide { grid-template-columns: 1fr; align-content: center; gap: 28px; min-height: 0; }
  .slide-media { order: -1; min-height: 240px; }
  .slide p { max-width: none; }
  .phones img { width: clamp(96px, 24vw, 150px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .game-grid, .value-grid { grid-template-columns: 1fr; }
  .btn { height: 46px; padding: 0 20px; }
  .slide { padding: 24px 20px 28px; }
  .slide .actions { margin-top: 24px; }
  .section-head { flex-direction: column; gap: 6px; }
}
.menu-btn { display: none; }
@media (max-width: 640px) {
  /* menú: botón y panel a pantalla completa */
  .brand { position: relative; z-index: 2; }
  .brand img { height: 30px; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; position: relative; z-index: 2;
    width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--papel); cursor: pointer;
  }
  .menu-btn i { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-open .menu-btn i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--tinta); border-top: 1px solid var(--linea);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .site-header { background: var(--tinta); }
  .nav a:not(.lang) { font-size: 34px; font-weight: 600; letter-spacing: -.03em; padding: 14px 0; border-bottom: 1px solid var(--linea); color: var(--papel); }
  .nav a[aria-current="page"] { color: var(--niebla); }
  .nav .lang { align-self: flex-start; margin-top: auto; font-size: 15px; padding: 10px 18px; }
  .menu-open .nav a { animation: fade-up .4s var(--ease) both; }
  .menu-open .nav a:nth-child(2) { animation-delay: .04s; } .menu-open .nav a:nth-child(3) { animation-delay: .08s; } .menu-open .nav a:nth-child(4) { animation-delay: .12s; }

  /* carrusel: escena compacta arriba, texto y botones siempre a la vista */
  .slide { gap: 18px; padding: 20px 20px 24px; }
  .slide-media { min-height: 0; }
  .slide h2 { margin: 8px 0 10px; }
  .slide p { font-size: 17px; }
  .slide .actions { display: flex; gap: 10px; margin-top: 20px; }
  .slide .actions .btn { flex: 1 1 0; justify-content: center; padding: 0 14px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .slide .actions { flex-direction: column; }
  .slide .actions .btn { flex: none; }
}

/* =====================================================================
   MOVIMIENTO
   Todo con transform/opacity. Se apaga con prefers-reduced-motion.
   ===================================================================== */
@property --rx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* ---- transición entre páginas: cortina de rejilla ---- */
.pt { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; }
.pt i { display: block; transform: scale(0); border-radius: 50%; will-change: transform; }
.pt-in .pt i { transform: scale(1.08); border-radius: 6%; }
.pt-in body { overflow: hidden; }
.pt-in .pt { animation: pt-fallback 0s 2s forwards; } /* si el JS no carga, no se queda tapado */
@keyframes pt-fallback { to { visibility: hidden; } }

/* ---- cabecera: entra al cargar, se esconde al bajar ---- */
.site-header { transition: border-color .2s, transform .29s var(--ease); }
.first-visit .site-header { animation: drop-in .55s var(--ease) .5s both; } /* solo la primera vez, cuando se recoge la cortina */
.site-header.hide { transform: translateY(-100%); }
@keyframes drop-in { from { transform: translateY(-100%); } }

/* ---- banner ---- */
.slides { position: relative; }
.slide .lw { display: inline-block; white-space: nowrap; }
.slide .ch { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0; }
.slide h2 { overflow: hidden; padding-bottom: .16em; margin-bottom: 0; }
.slide .lw { padding-bottom: .02em; }
.slide.active .ch { animation: rise .59s var(--ease) both; animation-delay: calc(var(--i) * 21ms + 78ms); }
.slide .badge, .slide p, .slide .actions { opacity: 0; transform: translateY(18px); }
.slide.active .badge { animation: fade-up .45s var(--ease) .03s both; }
.slide.active p { animation: fade-up .52s var(--ease) .29s both; }
.slide.active .actions { animation: fade-up .52s var(--ease) .39s both; }
@keyframes rise { from { transform: translateY(110%) rotate(6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.slide-media .shot { transform: translateY(40px) scale(.94) rotate(-2deg); opacity: 0; transition: transform .72s var(--ease) .1s, opacity .39s .1s; }
.slide.active .slide-media .shot { transform: none; opacity: 1; animation: bob 6s ease-in-out 1.3s infinite; }
.phones img { opacity: 0; transition: transform .72s var(--ease), opacity .33s; }
.phones img:nth-child(1) { transform: translate(90px, 80px) rotate(-14deg); transition-delay: .13s; }
.phones img:nth-child(2) { transform: translateY(90px) scale(1); transition-delay: .07s; }
.phones img:nth-child(3) { transform: translate(-90px, 80px) rotate(14deg); transition-delay: .2s; }
.slide.active .phones img { opacity: 1; animation: bob 5s ease-in-out infinite; }
.slide.active .phones img:nth-child(1) { animation-delay: .91s; }
.slide.active .phones img:nth-child(2) { animation-delay: .72s; animation-duration: 3.64s; }
.slide.active .phones img:nth-child(3) { animation-delay: 1.1s; animation-duration: 2.99s; }
@keyframes bob { 50% { translate: 0 -12px; } }

/* ---- cinta de nombres ---- */
.marquee { padding: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; user-select: none; }
.marquee-row { display: flex; white-space: nowrap; }
.marquee-row + .marquee-row { margin-top: -.1em; }
.marquee-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); will-change: transform; }
.marquee span { font-size: clamp(44px, 8vw, 120px); font-weight: 600; letter-spacing: -.045em; line-height: 1.25; color: var(--papel); }
.marquee-row:nth-child(2) span {
  /* Outfit tiene contornos que se solapan: el borde se pinta debajo y el relleno (color del fondo)
     tapa las líneas interiores, así solo queda el perfil exterior. */
  color: var(--tinta); -webkit-text-stroke: 3px rgba(245, 242, 235, .5); paint-order: stroke fill;
}
.marquee i { flex: none; width: clamp(14px, 1.8vw, 26px); height: clamp(14px, 1.8vw, 26px); border-radius: 30%; background: var(--grafito-2); animation: note 3.5s steps(1) infinite; }
.marquee i:nth-of-type(7n+1) { --n: #FF4D4D; } .marquee i:nth-of-type(7n+2) { --n: #FF8A3D; animation-delay: .5s; }
.marquee i:nth-of-type(7n+3) { --n: #FFD23F; animation-delay: 1s; } .marquee i:nth-of-type(7n+4) { --n: #3DDC84; animation-delay: 1.5s; }
.marquee i:nth-of-type(7n+5) { --n: #2EC4F1; animation-delay: 2s; } .marquee i:nth-of-type(7n+6) { --n: #4D6BFF; animation-delay: 2.5s; }
.marquee i:nth-of-type(7n) { --n: #A259FF; animation-delay: 3s; }
@keyframes note { 0% { background: var(--n); transform: scale(1.25); } 14%, 100% { background: var(--grafito-2); transform: none; } }

/* ---- titulares palabra a palabra ---- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; transform: translateY(105%); transition: transform .59s var(--ease); transition-delay: calc(var(--i) * 36ms); }
.split.in .wi { transform: none; }

/* ---- aparición al hacer scroll ---- */
.rv { opacity: 0; --lift: 48px; transition: opacity .52s var(--ease), --lift .59s var(--ease), --rx .59s var(--ease), --ry .59s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; --lift: 0px; }
.rv:not(.game-card) { transform: translateY(var(--lift)); }
.rv-clip { clip-path: inset(18% 0 0 0 round var(--radius)); transition: clip-path .72s var(--ease), opacity .52s var(--ease); transition-delay: var(--d, 0s); opacity: 0; }
.rv-clip.in { clip-path: inset(0 0 0 0 round var(--radius)); opacity: 1; }
.rv-clip img { transform: scale(1.15); transition: transform 1.04s var(--ease); transition-delay: var(--d, 0s); }
.rv-clip.in img { transform: none; }

/* ---- tarjetas: inclinación 3D y brillo ---- */
.game-card { transform: perspective(900px) translateY(calc(var(--lift) + var(--hover, 0px))) rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .52s var(--ease), --lift .59s var(--ease), --rx .33s var(--ease), --ry .33s var(--ease), background-color .2s; transition-delay: var(--d, 0s); position: relative; }
.game-card:hover { transform: perspective(900px) translateY(calc(var(--lift) - 6px)) rotateX(var(--rx)) rotateY(var(--ry)); }
.game-card .badge { transition: color .2s; }
.game-card:hover .badge { color: var(--papel); }

.soon-list li { opacity: 0; transform: translateY(20px) scale(.96); transition: opacity .39s var(--ease), transform .45s var(--ease); transition-delay: var(--d, 0s); }
.soon-list.in li { opacity: 1; transform: none; }
.soon-list a:hover img { filter: none; opacity: 1; transform: rotate(-8deg) scale(1.1); }
.soon-list img { transition: transform .26s var(--ease), filter .2s, opacity .2s; }

/* ---- ficha de juego ---- */
.game-intro > * { opacity: 0; transform: translateY(24px); animation: fade-up .59s var(--ease) both; }
.game-intro > :nth-child(1) { animation-delay: .1s; } .game-intro > :nth-child(2) { animation-delay: .14s; }
.game-intro > :nth-child(3) { animation-delay: .22s; } .game-intro > :nth-child(4) { animation-delay: .29s; }
.game-intro > :nth-child(5) { animation-delay: .35s; } .game-intro > :nth-child(6) { animation-delay: .42s; }
.game-cover { animation: cover-in .78s var(--ease) both; }
.game-cover img { animation: cover-img 1.04s var(--ease) both; }
@keyframes cover-in { from { clip-path: inset(30% 10% 30% 10% round 40px); } to { clip-path: inset(0 round var(--radius)); } }
@keyframes cover-img { from { transform: scale(1.3); } }
.features li { opacity: 0; transform: translateX(-16px); transition: opacity .39s var(--ease), transform .45s var(--ease); transition-delay: var(--d, 0s); }
.features.in li { opacity: 1; transform: none; }
.shot-rail { cursor: grab; }
.shot-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.shot-rail.dragging img { pointer-events: none; }
.shot-rail img { opacity: 0; transform: translateX(60px); transition: opacity .45s var(--ease), transform .65s var(--ease); transition-delay: var(--d, 0s); }
.shot-rail.in img { opacity: 1; transform: none; }
.player:not([hidden]) .player-frame { animation: player-in .52s var(--ease) both; }
@keyframes player-in { from { transform: scale(.92); opacity: 0; } }

/* ---- botones ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill, rgba(255,255,255,.12)); transform: translateY(101%); transition: transform .29s var(--ease); }
.btn:hover::before { transform: none; }
.btn-light, .btn-dark { --fill: #FFD23F; }
.btn-light:hover, .btn-dark:hover { color: var(--tinta); background: var(--papel); }
.btn-outline-dark { --fill: rgba(15, 14, 19, .08); }
.btn-soon::before { display: none; }
.arrow { transition: border-color .13s, transform .2s var(--ease); }
.arrow:hover { transform: scale(1.08); }
.arrow:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .pt { display: none; }
  .first-visit .site-header { animation: none; }
  .slide .ch, .slide .badge, .slide p, .slide .actions, .slide-media .shot, .phones img,
  .game-intro > *, .features li, .shot-rail img, .soon-list li, .split .wi { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rv, .rv-clip { opacity: 1 !important; clip-path: none !important; --lift: 0px !important; }
  .marquee-track { transform: none !important; }
}

/* =====================================================================
   ESCENA · POWER SQUARE (carrusel de la portada)
   Usa la paleta, la tipografía (Fredoka) y los iconos del propio juego.
   ===================================================================== */
.scene-power-square {
  --ps-tile: #BFC8FF; --ps-tile-lo: #9DA7EE; --ps-on-tile: #4A4E9C; --ps-open: #FDFCFF; --ps-pip: #5B5788;
  --ps-skull: #FFC4CD; --ps-on-skull: #B4475F; --ps-shield: #BDEBD3; --ps-on-shield: #2A8562;
  --ps-sun: #FFE3A1; --ps-on-sun: #5A4611; --ps-eye: #E6CCF7; --ps-on-eye: #7B4AA6;
  --ps-bomb: #FFD3B5; --ps-on-bomb: #A8562B; --ps-crown: #E9B949; --ps-ink: #3F3B63;
  position: relative;
}
.scene-power-square .slide-copy, .scene-power-square .slide-media { position: relative; z-index: 1; }

/* logo construido: P O W E R en fichas + SQUARE */
.slide h2.has-logo { overflow: visible; margin: 18px 0 22px; line-height: 1; }
.ps-logo { display: inline-flex; flex-direction: column; align-items: center; gap: clamp(8px, 1vw, 14px); --ls: clamp(50px, 6.4vw, 96px); }
.ps-word { display: flex; gap: calc(var(--ls) * .1); }
.ps-letter {
  position: relative; width: var(--ls); height: var(--ls); border-radius: 24%; display: grid; place-items: center;
  font-family: "Fredoka", var(--font); font-weight: 600; font-size: calc(var(--ls) * .58); letter-spacing: 0;
  box-shadow: inset 0 calc(var(--ls) * -.07) 0 rgba(0, 0, 0, .12);
}
.ps-letter:nth-child(odd) { rotate: -3deg; } .ps-letter:nth-child(even) { rotate: 2.5deg; }
.ps-l-tile { background: var(--ps-tile); color: var(--ps-on-tile); }
.ps-l-sun { background: var(--ps-sun); color: var(--ps-on-sun); }
.ps-l-shield { background: var(--ps-shield); color: var(--ps-on-shield); }
.ps-l-skull { background: var(--ps-skull); color: var(--ps-on-skull); }
.ps-l-eye { background: var(--ps-eye); color: var(--ps-on-eye); }
.ps-crown { position: absolute; left: -10%; top: -42%; width: 62%; color: var(--ps-crown); rotate: -18deg; }
.ps-crown svg { width: 100%; display: block; }
.ps-square {
  font-family: "Fredoka", var(--font); font-weight: 600; font-size: calc(var(--ls) * .5); letter-spacing: .14em; color: var(--ps-ink);
  background: #F6F3FB; border-radius: 999px; padding: calc(var(--ls) * .08) calc(var(--ls) * .5) calc(var(--ls) * .06) calc(var(--ls) * .64);
}
.scene-power-square .ps-letter, .scene-power-square .ps-square, .scene-power-square .ps-crown { opacity: 0; }
.scene-power-square.active .ps-letter { animation: ps-drop .5s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 60ms + 60ms); }
.scene-power-square.active .ps-square { animation: ps-pop .45s cubic-bezier(.3, 1.6, .5, 1) .38s both; }
.scene-power-square.active .ps-crown { animation: ps-crown .55s cubic-bezier(.3, 1.6, .5, 1) .6s both; }
@keyframes ps-drop { from { opacity: 0; transform: translateY(-70%) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ps-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes ps-crown { from { opacity: 0; transform: translateY(40%) rotate(30deg) scale(.4); } to { opacity: 1; transform: none; } }

/* tablero */
.ps-scene { width: 100%; display: grid; place-items: center; }
.ps-board {
  --t: clamp(44px, 5.2vw, 74px); --g: calc(var(--t) * .13);
  position: relative; display: grid; grid-template-columns: repeat(5, var(--t)); gap: var(--g);
  padding: calc(var(--g) * 1.6); border-radius: calc(var(--t) * .42); background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); rotate: 3deg;
}
.ps-tile { width: var(--t); height: var(--t); perspective: 500px; }
.ps-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.3, 1.3, .5, 1); }
.ps-tile.open .ps-in { transform: rotateY(180deg); }
.ps-face { position: absolute; inset: 0; border-radius: 26%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.ps-face:not(.ps-closed) { transform: rotateY(180deg); }
.ps-face svg { width: 56%; height: 56%; }
.ps-closed { background: var(--ps-tile); box-shadow: inset 0 calc(var(--t) * -.08) 0 var(--ps-tile-lo); }
.ps-open { background: var(--ps-open); box-shadow: inset 0 calc(var(--t) * -.06) 0 #E4DFF1; }
.ps-skull { background: var(--ps-skull); color: var(--ps-on-skull); }
.ps-shield { background: var(--ps-shield); color: var(--ps-on-shield); }
.ps-star { background: var(--ps-sun); color: var(--ps-on-sun); }
.ps-eye { background: var(--ps-eye); color: var(--ps-on-eye); }
.ps-pips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12%; width: 56%; height: 56%; }
.ps-pips i { border-radius: 50%; }
.ps-pips i.on { background: var(--ps-pip); }
.ps-tile.open .ps-pips i.on { animation: ps-pip .35s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: .18s; }
@keyframes ps-pip { from { transform: scale(0); } }
.ps-tile.is-skull.open .ps-in { animation: ps-shake .45s ease-in-out .3s; }
@keyframes ps-shake { 25% { translate: -4px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
.ps-tile.open .ps-face.ps-star svg, .ps-tile.open .ps-face.ps-shield svg, .ps-tile.open .ps-face.ps-eye svg { animation: ps-pop .4s cubic-bezier(.3, 1.8, .5, 1) .2s both; }
.ps-ring { position: absolute; width: var(--t); height: var(--t); border-radius: 30%; border: 3px solid #fff; opacity: 0; pointer-events: none;
  left: calc(var(--g) * 1.6 + 2 * (var(--t) + var(--g))); top: calc(var(--g) * 1.6 + 2 * (var(--t) + var(--g))); }
.ps-board.tapping .ps-ring { animation: ps-ring .6s ease-out both; }
@keyframes ps-ring { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.6); } }
.scene-power-square .ps-tile { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.scene-power-square.active .ps-tile { opacity: 1; transform: none; transition-delay: calc(var(--n, 0) * 18ms + 150ms); }

/* fichas sueltas de fondo */
.ps-floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ps-float {
  --size: clamp(48px, 6.4vw, 96px); position: absolute; left: var(--x); top: var(--y); width: calc(var(--size) * var(--s)); height: calc(var(--size) * var(--s));
  border-radius: 26%; display: grid; place-items: center; rotate: var(--r); translate: -50% -50%;
  box-shadow: inset 0 calc(var(--size) * -.06) 0 rgba(0, 0, 0, .1);
  opacity: 0; transition: opacity .6s;
}
.scene-power-square.active .ps-float { opacity: 1; transition-delay: calc(var(--i) * 60ms); animation: ps-float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
@keyframes ps-float { 50% { transform: translateY(-10px) rotate(4deg); } }
.ps-float svg { width: 52%; height: 52%; }
.ps-float .ps-pips { width: 52%; height: 52%; }
.ps-f-tile { background: var(--ps-tile); } .ps-f-open { background: var(--ps-open); }
.ps-f-skull { background: var(--ps-skull); color: var(--ps-on-skull); } .ps-f-shield { background: var(--ps-shield); color: var(--ps-on-shield); }
.ps-f-sun { background: var(--ps-sun); color: var(--ps-on-sun); } .ps-f-eye { background: var(--ps-eye); color: var(--ps-on-eye); }
.ps-f-bomb { background: var(--ps-bomb); color: var(--ps-on-bomb); }

@media (max-width: 1000px) {
  .ps-board { --t: clamp(40px, 11vw, 64px); }
  .ps-logo { --ls: clamp(42px, 11vw, 70px); }
  .slide h2.has-logo { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-power-square .ps-letter, .scene-power-square .ps-square, .scene-power-square .ps-crown,
  .scene-power-square .ps-tile, .scene-power-square .ps-float { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =====================================================================
   ESCENA · DERRAPE! (carrusel de la portada)
   El icono de la app en movimiento. Colores y tipografía (Bungee) del juego.
   Ciclo de 4 s: el coche va centro → derecha → centro → izquierda; el tráfico
   y las monedas cruzan su altura justo cuando se aparta (s 1 y 3).
   ===================================================================== */
.scene-derrape {
  --dr-ground: #E39B3B; --dr-road: #34304A; --dr-ink: #221E33; --dr-cream: #F7EEDF;
  --dr-coral: #FF5A4E; --dr-gold: #F6C744; --dr-cycle: 4s;
  position: relative;
}
.scene-derrape .slide-copy, .scene-derrape .slide-media { position: relative; z-index: 1; }

/* logo */
.dr-logo { display: inline-flex; font-family: "Bungee", var(--font); font-weight: 400; font-size: clamp(46px, 6.6vw, 98px); letter-spacing: .01em; line-height: 1; color: var(--dr-cream); text-shadow: -.03em .07em 0 var(--dr-coral); }
.dr-logo span { display: inline-block; opacity: 0; }
.scene-derrape.active .dr-logo span { animation: dr-letter .45s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 45ms + 60ms); }
@keyframes dr-letter { from { opacity: 0; transform: translateX(-60%) skewX(-18deg); } to { opacity: 1; transform: none; } }

/* el icono-escenario */
.dr-tile {
  --tile: clamp(250px, 33vw, 460px);
  position: relative; width: var(--tile); height: var(--tile); border-radius: 22%; overflow: hidden;
  background: var(--dr-ground); rotate: -6deg; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.scene-derrape.active .dr-tile { opacity: 1; transform: none; transition-delay: .1s; }
.dr-road { position: absolute; left: 21%; top: -25%; width: 58%; height: 150%; background: var(--dr-road); transform: rotate(-10deg); }
.dr-curb { position: absolute; top: 0; bottom: 0; width: 6%; background: repeating-linear-gradient(180deg, var(--dr-coral) 0 18px, var(--dr-cream) 18px 36px); animation: dr-scroll36 .13s linear infinite; }
.dr-curb-l { left: 0; } .dr-curb-r { right: 0; }
.dr-lines { position: absolute; top: 0; bottom: 0; left: 50%; width: 2.4%; translate: -50% 0; background: repeating-linear-gradient(180deg, rgba(247, 238, 223, .55) 0 26px, transparent 26px 64px); animation: dr-scroll64 .23s linear infinite; }
@keyframes dr-scroll36 { to { background-position: 0 36px; } }
@keyframes dr-scroll64 { to { background-position: 0 64px; } }

.dr-road svg { display: block; width: 100%; height: auto; overflow: visible; }
.dr-player, .dr-cop, .dr-traffic { position: absolute; width: 22%; }
/* tu coche: derrapa de carril en carril */
.dr-player { bottom: 40%; animation: dr-weave var(--dr-cycle) ease-in-out infinite; }
.dr-player .dr-car { animation: dr-drift var(--dr-cycle) ease-in-out infinite; filter: drop-shadow(-3px 6px 0 rgba(34, 30, 51, .35)); }
@keyframes dr-weave {
  0%, 100% { left: 39%; } 25% { left: 64%; } 50% { left: 39%; } 75% { left: 14%; }
}
@keyframes dr-drift {
  0%, 25%, 50%, 75%, 100% { rotate: 0deg; }
  12% { rotate: 16deg; } 37% { rotate: -16deg; } 62% { rotate: -16deg; } 87% { rotate: 16deg; }
}
.dr-smoke { position: absolute; left: 50%; bottom: -18%; width: 0; height: 0; }
.dr-smoke i { position: absolute; left: -14px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(247, 238, 223, .55); animation: dr-smoke .6s ease-out infinite; }
.dr-smoke i:nth-child(2) { animation-delay: .2s; left: -22px; } .dr-smoke i:nth-child(3) { animation-delay: .4s; left: -6px; }
@keyframes dr-smoke { from { transform: translateY(0) scale(.35); opacity: .8; } to { transform: translateY(70px) scale(1.4); opacity: 0; } }
/* la poli: sigue tu trazada con medio segundo de retraso */
.dr-cop { bottom: 22%; animation: dr-weave var(--dr-cycle) ease-in-out infinite; animation-delay: -3.55s; }
.dr-cop .dr-car { animation: dr-drift var(--dr-cycle) ease-in-out infinite; animation-delay: -3.55s; }
.dr-siren { animation: dr-blink .36s steps(1) infinite; }
.dr-blue { animation-delay: -.18s; }
@keyframes dr-blink { 50% { opacity: .15; } }
/* tráfico: va más lento que tú, así que baja por la pantalla */
.dr-traffic { top: -20%; animation: dr-fall var(--dr-cycle) linear infinite; }
.dr-t1 { left: 14%; animation-delay: -.86s; }   /* carril izq.: te cruza en el s 1 (estás a la derecha) */
.dr-t2 { left: 64%; animation-delay: -2.86s; }   /* carril dcho.: te cruza en el s 3 (estás a la izquierda) */
@keyframes dr-fall { to { top: 120%; } }
.dr-coin { position: absolute; top: -20%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: var(--dr-gold); box-shadow: inset 0 0 0 3px #D9A92C; animation: dr-coin var(--dr-cycle) linear infinite; }
.dr-c1 { left: 71.5%; animation-delay: -.86s; }  /* la recoges en el s 1 */
.dr-c2 { left: 21.5%; animation-delay: -2.86s; }  /* y esta en el s 3 */
@keyframes dr-coin {
  0% { top: -20%; opacity: 1; transform: none; }
  46% { top: 45%; opacity: 1; transform: none; }
  53% { top: 51%; opacity: 0; transform: scale(2); }
  100% { top: 120%; opacity: 0; }
}

/* fondo: monedas y coches sueltos */
.dr-floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dr-float { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--r); opacity: 0; transition: opacity .5s; }
.scene-derrape.active .dr-float { opacity: .9; transition-delay: calc(var(--i) * 60ms); animation: ps-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.8s); }
.dr-f-coin { width: calc(clamp(26px, 3vw, 44px) * var(--s)); aspect-ratio: 1; border-radius: 50%; background: var(--dr-gold); box-shadow: inset 0 0 0 4px #D9A92C; }
.dr-f-car { width: calc(clamp(30px, 3.6vw, 52px) * var(--s)); }
.dr-f-car svg { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .scene-derrape .dr-logo span, .scene-derrape .dr-tile, .scene-derrape .dr-float { opacity: 1 !important; transform: none !important; animation: none !important; }
  .scene-derrape .dr-tile * { animation-play-state: paused !important; }
}

/* =====================================================================
   ESCENA · DIE CUT (carrusel de la portada)
   El pozo de papel recortado de la pantalla de título. Tipografía Caprasimo y
   colores del juego. Ciclo de 6 s: cada 2 s Hoja embiste y un enemigo cae al fondo.
   ===================================================================== */
.scene-die-cut { --dc-ink: #2D3558; --dc-paper: #FFFDF8; --dc-hero: #FFB84D; --dc-foe: #F2788F; position: relative; }
.scene-die-cut .slide-copy, .scene-die-cut .slide-media { position: relative; z-index: 1; }
.scene-die-cut .badge { color: var(--dc-ink); }

/* logo */
.dc-logo { display: inline-flex; flex-direction: column; align-items: flex-start; font-family: "Caprasimo", var(--font); font-weight: 400; font-size: clamp(54px, 7vw, 104px); line-height: .9; letter-spacing: .01em; }
.dc-logo > span { display: inline-flex; position: relative; -webkit-text-stroke: .13em var(--dc-hero); paint-order: stroke fill; filter: drop-shadow(0 .05em 0 var(--dc-ink)) drop-shadow(0 0 1px var(--dc-ink)); }
.dc-die { color: var(--dc-foe); }
.dc-cut { color: var(--dc-ink); margin-left: .35em; }
.dc-logo span span { display: inline-block; opacity: 0; }
.scene-die-cut.active .dc-logo span span { animation: dc-stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes dc-stamp { from { opacity: 0; transform: scale(1.8) rotate(-10deg); } to { opacity: 1; transform: none; } }
/* tijeras: recortan la palabra CUT de lado a lado */
.dc-snip { position: absolute; left: 0; right: 0; top: 50%; height: 0; pointer-events: none; -webkit-text-stroke: 0; }
.dc-snip i { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--dc-paper); opacity: .9; }
.dc-snip svg { position: absolute; top: -.2em; left: 0; width: .55em; height: .28em; translate: -40% 0; filter: drop-shadow(0 1px 0 var(--dc-paper)); }
.scene-die-cut.active .dc-snip i { animation: dc-cutline 5s cubic-bezier(.6, 0, .3, 1) 1.1s infinite; }
.scene-die-cut.active .dc-snip svg { animation: dc-scissors 5s cubic-bezier(.6, 0, .3, 1) 1.1s infinite; }
.dc-b1, .dc-b2 { transform-origin: 34px 12px; }
.scene-die-cut.active .dc-b1 { animation: dc-blade1 .25s ease-in-out 1.1s 12 alternate; }
.scene-die-cut.active .dc-b2 { animation: dc-blade2 .25s ease-in-out 1.1s 12 alternate; }
@keyframes dc-cutline { 0% { width: 0; opacity: .9; } 40% { width: 100%; opacity: .9; } 70%, 100% { width: 100%; opacity: 0; } }
@keyframes dc-scissors { 0% { left: 0; opacity: 1; } 40% { left: 100%; opacity: 1; } 55%, 100% { left: 100%; opacity: 0; } }
@keyframes dc-blade1 { to { rotate: -14deg; } }
@keyframes dc-blade2 { to { rotate: 14deg; } }

/* el pozo */
.dc-pit {
  --pit: clamp(260px, 34vw, 470px);
  position: relative; width: var(--pit); height: var(--pit);
  opacity: 0; transform: scale(.85) rotate(-4deg); transition: opacity .3s, transform .6s cubic-bezier(.3, 1.4, .5, 1);
}
.scene-die-cut.active .dc-pit { opacity: 1; transform: none; transition-delay: .1s; }
.dc-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dc-ring { transform-box: view-box; transform-origin: 50px 50px; rotate: var(--r0); animation: dc-spin calc(70s - var(--i) * 9s) linear infinite; }
@keyframes dc-spin { to { rotate: calc(var(--r0) + var(--dir) * 360deg); } }
.dc-eyes { transform-box: fill-box; transform-origin: center; animation: dc-blink 4s ease-in-out infinite; }
@keyframes dc-blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
.dc-st { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 3px 2px rgba(27, 23, 51, .3)); }
.dc-hero, .dc-foe { position: absolute; translate: -50% -50%; }
.dc-hero { left: 50%; top: 9%; width: 16%; animation: dc-lunge 2s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes dc-lunge { 0%, 62%, 100% { transform: none; } 72% { transform: translateY(14%) rotate(6deg) scale(1.08); } 80% { transform: translateY(-6%); } }
.dc-hero .dc-blade { transform-box: fill-box; transform-origin: 50% 100%; animation: dc-stab 2s ease-in-out infinite; }
@keyframes dc-stab { 0%, 62%, 100% { rotate: 0deg; } 72% { rotate: 28deg; } }
/* enemigos: esperan en su anillo y caen en espiral al fondo, uno cada 2 s */
.dc-foe { width: 9%; left: var(--x); top: var(--y); animation: dc-fall 6s ease-in infinite; animation-delay: var(--d); }
.dc-f1 { --x: 70%; --y: 64%; --d: -.3s; }
.dc-f2 { --x: 28%; --y: 60%; --d: -2.3s; }
.dc-f3 { --x: 60%; --y: 30%; --d: -4.3s; }
@keyframes dc-fall {
  0%, 30% { left: var(--x); top: var(--y); opacity: 1; transform: none; }
  34% { transform: translateY(-14%) rotate(-12deg); }
  52% { left: 50%; top: 50%; opacity: .9; transform: scale(.2) rotate(420deg); }
  56% { left: 50%; top: 50%; opacity: 0; transform: scale(0) rotate(480deg); }
  57%, 82% { left: var(--x); top: var(--y); opacity: 0; transform: scale(.4); }
  92%, 100% { left: var(--x); top: var(--y); opacity: 1; transform: none; }
}

/* confeti de papel de fondo */
.dc-confetti { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dc-confetti i { position: absolute; left: var(--x); top: var(--y); width: clamp(10px, 1.2vw, 16px); height: clamp(14px, 1.7vw, 22px); background: var(--c); border-radius: 2px; rotate: var(--r); opacity: 0; transition: opacity .5s; box-shadow: 0 2px 3px rgba(45, 53, 88, .15); }
.scene-die-cut.active .dc-confetti i { opacity: .85; transition-delay: calc(var(--i) * 60ms); animation: dc-flutter 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes dc-flutter { 50% { transform: translateY(-12px) rotate(25deg) scaleX(.7); } }

@media (prefers-reduced-motion: reduce) {
  .scene-die-cut .dc-logo span span, .scene-die-cut .dc-pit, .scene-die-cut .dc-confetti i { opacity: 1 !important; transform: none !important; animation: none !important; }
  .scene-die-cut .dc-pit *, .scene-die-cut .dc-snip * { animation: none !important; }
  .dc-snip { display: none; }
}

/* ---------- escenas del carrusel en el móvil (van al final para ganar a los tamaños de cada escena) ---------- */
@media (max-width: 640px) {
  .dr-tile { --tile: min(58vw, 30vh, 240px); }
  .dc-pit { --pit: min(62vw, 32vh, 250px); }
  .ps-board { --t: min(10.4vw, 5.4vh, 46px); }
  .dr-logo { font-size: min(12.5vw, 50px); }
  .dc-logo { font-size: min(14vw, 56px); }
  .ps-logo { --ls: min(10.5vw, 46px); }
  .ps-floaters, .dr-floaters, .dc-confetti { bottom: auto; height: 46%; }
  /* logo, eslogan y botones centrados */
  .slide-copy { text-align: center; }
  .slide p { margin-left: auto; margin-right: auto; text-wrap: balance; }
  .slide .actions { justify-content: center; }
}
