/* ------------------------------------------------------------------
   BOOP AND PALS · estilos
   Paleta del canal: cielo azul, naranja badge-8 de Boop, rosa del logo y el morado
   oscuro del contorno de la cabecera. Cherry Bomb One para títulos, Fredoka para texto.
   Todas las líneas miden 1 px o más.
   ------------------------------------------------------------------ */
@font-face { font-family: 'Cherry Bomb One'; src: url('../fonts/CherryBombOne-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #2a1245; --ink70: rgba(42, 18, 69, .74); --ink50: rgba(42, 18, 69, .52); --ink15: rgba(42, 18, 69, .16);
  --orange: #ff8a1f; --pink: #ff3f7f; --sky: #44b6ff; --paper: #fff8ee; --cream: #fff1d6; --white: #fff;
  --red: #ff4d4d; --yel: #ffd23f; --lilac: #c9b5ff; --blue: #6db3ff; --green: #4cd964;
  --display: 'Cherry Bomb One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gut: clamp(18px, 4vw, 48px); --maxw: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 500; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.nojs { padding: 12px var(--gut); text-align: center; background: var(--cream); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: #8fd6ff; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; }
.sky svg { width: 100%; height: 100%; }
.cloud { animation: drift 38s ease-in-out infinite alternate; }
.cloud.c2 { animation-duration: 46s; animation-delay: -12s; } .cloud.c3 { animation-duration: 52s; animation-delay: -20s; } .cloud.c4 { animation-duration: 41s; animation-delay: -7s; } .cloud.c5 { animation-duration: 58s; animation-delay: -30s; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(50px); } }
.sun { transform-box: fill-box; transform-origin: center; animation: sunp 5s ease-in-out infinite; cursor: pointer; }
@keyframes sunp { 50% { transform: scale(1.04); } }
.hero-in { position: relative; z-index: 3; padding: clamp(18px, 4.2vh, 44px) var(--gut) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 10.5vw, 128px); line-height: .9; letter-spacing: .005em; display: flex; align-items: baseline; justify-content: center; gap: .14em; flex-wrap: wrap; margin: 0; }
.logo span { display: inline-block; -webkit-text-stroke: .11em var(--ink); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--ink); animation: bob 3.6s ease-in-out infinite; }
.l-boop { color: var(--orange); transform-origin: 50% 100%; }
.l-and { color: #fff; font-size: .42em; animation-delay: -1.2s !important; }
.l-pals { color: var(--pink); animation-delay: -2.2s !important; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-.045em) rotate(1.4deg); } }
.logo.pop span { animation: logopop .6s var(--spring), bob 3.6s ease-in-out .6s infinite; }
@keyframes logopop { from { transform: scale(.7) rotate(-6deg); } }
.tag { margin-top: clamp(8px, 1.6vh, 16px); font-size: clamp(17px, 2.1vw, 22px); font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .72); padding: 5px 16px 6px; border-radius: 99px; text-wrap: balance; }

/* ---------- botones del linktree ---------- */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; max-width: 740px; margin-top: clamp(14px, 2.6vh, 26px); }
.links li { flex: 1 1 calc(25% - 10px); min-width: 140px; }
.links li.wide { flex: 1 1 calc(50% - 10px); min-width: 240px; }
.lk { --c: #fff; --t: var(--ink); display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 18px 8px 12px; border: 2px solid var(--ink); border-radius: 18px; background: var(--c); color: var(--t); text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform .18s var(--spring), box-shadow .18s; text-align: left; font-family: var(--body); }
.lk:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 7px 0 var(--ink); }
.lk:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.lk svg { width: 30px; height: 30px; flex: none; padding: 5px; border-radius: 10px; background: rgba(255, 255, 255, .55); fill: currentColor; }
.lk .tx { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.lk b { font-weight: 700; font-size: 17px; white-space: nowrap; }
.lk small { font-size: 13px; opacity: .78; white-space: nowrap; }
.lk--red { --c: var(--red); --t: #fff; } .lk--red svg { background: rgba(255, 255, 255, .22); }
.lk--yellow { --c: var(--yel); } .lk--pink { --c: #ff9ec1; } .lk--lilac { --c: var(--lilac); } .lk--cream { --c: var(--cream); } .lk--blue { --c: #8cc8ff; } .lk--teal { --c: #7fe6d8; }
.lk--soon::after { content: 'SOON'; margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border: 1px solid var(--ink); border-radius: 99px; background: #fff; }
.links--end { margin-inline: auto; }

/* ---------- pradera con los personajes ---------- */
.meadow { position: relative; z-index: 2; flex: 1 1 auto; min-height: clamp(300px, 44vh, 520px); margin-top: clamp(0px, 1vh, 12px); touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.ground { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; z-index: 0; }
.field { position: absolute; inset: 0; z-index: 2; --s: clamp(150px, 27vh, 280px); }
.fgrass { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(54px, 8vh, 90px); z-index: 4; pointer-events: none; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.hint { position: absolute; left: 50%; bottom: clamp(8px, 1.6vh, 18px); transform: translateX(-50%); z-index: 5; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); pointer-events: none; transition: opacity .6s; white-space: nowrap; }
.hint.gone { opacity: 0; }
.snd { position: absolute; right: clamp(12px, 2vw, 24px); top: clamp(12px, 2vw, 22px); z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 3px 0 var(--ink); }
.snd svg { width: 20px; height: 20px; }
.snd .w { opacity: 0; transition: opacity .2s; } .snd[aria-pressed="true"] .w { opacity: 1; }
.snd:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* personajes */
.chw { position: absolute; width: calc(var(--s) * var(--k, 1)); aspect-ratio: 200 / 240; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.field .chw { bottom: var(--b, 8%); left: var(--x); transform: translateX(-50%); z-index: var(--z, 1); }
.ch { width: 100%; height: 100%; overflow: visible; }
.rig { transform-origin: 100px 222px; }
.idle { transform-origin: 100px 222px; animation: breathe 3.8s ease-in-out infinite; }
.chw:nth-child(2n) .idle { animation-delay: -1.4s; } .chw:nth-child(3n) .idle { animation-delay: -2.4s; animation-duration: 4.4s; }
@keyframes breathe { 50% { transform: scale(1.015, .985); } }
.chw--puff .idle, .chw--zzz .idle { animation-name: floaty; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
.bubble { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); z-index: 20; width: max-content; max-width: min(250px, 62vw); padding: 8px 14px; border: 2px solid var(--ink); border-radius: 16px; background: #fff; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 3px 0 var(--ink); pointer-events: none; text-wrap: balance; }
.bubble::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -6px) rotate(45deg); }
.bubble.on { animation: bpop .35s var(--spring); }
@keyframes bpop { from { transform: translate(-50%, 8px) scale(.6); opacity: 0; } }
.fx { position: absolute; z-index: 30; pointer-events: none; display: block; will-change: transform; }
.fx--z { transform-origin: center; }

/* indicación con el dedo real */
.finger-hint { position: absolute; z-index: 7; left: 0; top: 0; width: 120px; height: 120px; overflow: visible; pointer-events: none; opacity: 0; }

/* ================= SECCIONES ================= */
.sec { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; text-wrap: balance; }
.sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink70); max-width: 52ch; margin-top: 14px; text-wrap: pretty; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .8s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 24px; border: 2px solid var(--ink); border-radius: 18px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 18px; box-shadow: 0 4px 0 var(--ink); transition: transform .18s var(--spring), box-shadow .18s; }
.btn svg { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 15px; border-radius: 14px; box-shadow: 0 3px 0 var(--ink); background: #fff; }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Watch ---------- */
.sec--watch { background: var(--cream); border-block: 2px solid var(--ink); }
.watch-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin-top: 28px; }
.watch-title { margin-top: 18px; min-height: 1.5em; font-weight: 700; color: var(--ink70); }
.phone { width: min(340px, 78vw); margin-inline: auto; padding: 10px; border: 2px solid var(--ink); border-radius: 38px; background: var(--ink); box-shadow: 8px 10px 0 var(--orange); }
.player { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; max-height: 72vh; margin-inline: auto; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-ph { display: grid; place-items: center; height: 100%; color: #fff; font-weight: 700; }

/* ---------- Pals ---------- */
.sec--pals { background: linear-gradient(#fff8ee, #ffeaf2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 26px; background: #fff; overflow: hidden; box-shadow: 0 5px 0 var(--ink); transition: transform .25s var(--spring); }
.card:hover { transform: translateY(-4px); }
.card-st { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: end center; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--pc) 34%, #fff) 0 38%, color-mix(in srgb, var(--pc) 14%, #fff) 70%); border-bottom: 2px solid var(--ink); touch-action: pan-y; overflow: hidden; user-select: none; -webkit-user-select: none; }
.card-st .chw { position: relative; width: 78%; margin-bottom: 4%; }
.card-b { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; }
.card p { font-size: 15.5px; color: var(--ink70); line-height: 1.38; text-wrap: pretty; }
.card .cnt { position: absolute; top: 10px; right: 12px; z-index: 3; min-width: 28px; padding: 1px 9px; border: 1px solid var(--ink); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; text-align: center; opacity: 0; transition: opacity .2s; }
.card .cnt.on { opacity: 1; }

/* ---------- Juegos ---------- */
.sec--play { background: var(--sky); border-top: 2px solid var(--ink); }
.sec--play h2, .sec--play .sub { color: #fff; } .sec--play .eyebrow { color: var(--yel); }
.sec--play h2 { -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; }
.sec--play .sub { color: #fff; text-shadow: 0 1px 0 rgba(42, 18, 69, .35); }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.game { border: 2px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: 0 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.game-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--ink); background: #fff; }
.game-h h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.game-h .gest { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 99px; background: var(--yel); border: 1px solid var(--ink); white-space: nowrap; }
.stage { position: relative; aspect-ratio: 10 / 9; overflow: hidden; background: #cfeeff; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.stage--none { touch-action: none; }
.stage .chw { position: absolute; }
.stage svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.game-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 2px solid var(--ink); background: var(--cream); min-height: 62px; }
.game-f p { font-weight: 700; font-size: 16px; line-height: 1.25; }
.stage .cap { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 10; padding: 4px 14px; border-radius: 99px; background: rgba(255, 255, 255, .88); border: 1px solid var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; pointer-events: none; }
.stage .meter { position: absolute; left: 12px; top: 12px; z-index: 10; padding: 3px 11px; border-radius: 99px; background: rgba(255, 255, 255, .9); border: 1px solid var(--ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; pointer-events: none; }

/* ---------- Cierre ---------- */
.sec--end { background: linear-gradient(#52d37c, #18917a); color: #fff; border-top: 2px solid var(--ink); text-align: center; padding-bottom: 150px; }
.sec--end h2 { margin-bottom: clamp(24px, 4vw, 40px); -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; text-shadow: 0 .05em 0 var(--ink); }
.fine { margin-top: 44px; font-size: 14px; opacity: .92; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }

/* ---------- dock ---------- */
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 140%); display: flex; gap: 8px; padding: 8px; border: 2px solid var(--ink); border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 5px 0 var(--ink); transition: transform .45s var(--spring); }
.dock.on { transform: translate(-50%, 0); }
.dock a, .dock button { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 15px; background: var(--c, #fff); color: var(--t, var(--ink)); text-decoration: none; transition: transform .18s var(--spring); }
.dock a:hover, .dock button:hover { transform: translateY(-3px) rotate(-4deg); }
.dock svg { width: 24px; height: 24px; fill: currentColor; }
.dock .d-red { --c: var(--red); --t: #fff; } .dock .d-yellow { --c: var(--yel); } .dock .d-pink { --c: #ff9ec1; } .dock .d-lilac { --c: var(--lilac); } .dock .d-cream { --c: var(--cream); } .dock .d-blue { --c: #8cc8ff; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .watch-grid { grid-template-columns: 1fr; text-align: left; }
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .links li, .links li.wide { flex: 1 1 100%; min-width: 0; }
  .links li:not(.wide) { flex: 1 1 calc(50% - 10px); }
  .lk { min-height: 50px; padding: 6px 14px 6px 10px; }
  .snd span { display: none; } .snd { padding: 8px 10px; }
  .field .chw[data-m="0"] { display: none; }
  .hint { font-size: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card h3 { font-size: 24px; } .card p { font-size: 14px; } .card-b { padding: 12px 14px 14px; }
  .stage { aspect-ratio: 1 / 1.05; }
  .dock { gap: 6px; padding: 6px; } .dock a, .dock button { width: 42px; height: 42px; }
}
@media (max-height: 760px) and (min-width: 900px) {
  .hero-in { padding-top: 14px; } .tag { font-size: 17px; }
  .links { margin-top: 12px; } .lk { min-height: 48px; padding-block: 5px; } .lk b { font-size: 16px; }
}

/* ajustes de capas e interacción */
.hero-in { pointer-events: none; } .hero-in .links, .hero-in .links * { pointer-events: auto; }
.sky svg { pointer-events: auto; } .sky .sun, .sky .cloud { pointer-events: auto; }
@media (max-width: 640px) {
  .field { --s: min(23vh, 46vw); }
  .field .chw { left: var(--xm, var(--x)); }
}
@media (max-width: 640px) { .snd { top: auto; bottom: 12px; right: 12px; z-index: 6; } .hint { left: 14px; transform: none; bottom: 22px; } }
