/* PuffiNova mini-site – "Rescue Mission" concept (Oct 2026). Colours taken from the box and rulebook. */
@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-600-normal.woff2') format('woff2'), url('../fonts/fredoka-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-024F; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/nunito-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-024F; }

:root {
  --space: #0B0620; --space-2: #170C3A; --nebula: #3A1F7A; --violet: #6B3FB0; --blue: #3E6FD8;
  --pink: #F25C9E; --gem: #D43F8D; --gold: #FFD36B; --mist: #F4EEFF; --paper: #FBEFF4; --paper-2: #F3E3EE;
  --ink: #2A1840; --ink-soft: #5B4A6E;
  --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px; --shadow: 0 24px 60px -28px rgba(20, 6, 50, .65);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--space); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gem); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(32px, 5vw, 54px); font-weight: 600; letter-spacing: -.5px; }
h3 { font-size: 22px; font-weight: 600; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.wrap--narrow { width: min(780px, 100% - 40px); }
.eyebrow { font: 600 14px/1.3 var(--display); letter-spacing: 3px; text-transform: uppercase; color: var(--gem); margin: 0 0 12px; }
.eyebrow::before { content: '★ '; color: var(--gold); }
.lead { font-size: 20px; max-width: 760px; color: var(--ink-soft); }
.small { font-size: 15px; opacity: .85; }
.note { text-align: center; font-style: italic; color: var(--ink-soft); }
.sr, .skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: 12px 22px; border-radius: 999px; font: 600 17px var(--display); text-decoration: none; border: 0; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s; }
.btn--big { padding: 16px 30px; font-size: 19px; }
.btn--order { background: linear-gradient(135deg, var(--pink), var(--gem)); color: #fff; box-shadow: 0 12px 30px -10px rgba(242, 92, 158, .8); }
.btn--order:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px -12px rgba(242, 92, 158, .95); }
.btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,.55); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--nebula); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 10px 22px; transition: background .3s, box-shadow .3s; }
.top.is-solid { background: rgba(11, 6, 32, .88); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -20px #000; }
.top__logo img { width: 150px; }
.top__nav { margin-left: auto; }
.top__nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.top__nav a { color: #fff; text-decoration: none; font: 500 16px var(--display); padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.top__nav a:hover, .top__nav a.is-here { background: rgba(255,255,255,.12); color: var(--gold); }
.top__burger { display: none; }
.top__lang { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.top__lang a { color: #fff; font: 600 13px var(--display); padding: 5px 9px; border-radius: 999px; text-decoration: none; transition: background .2s; }
.top__lang a:hover { background: rgba(255,255,255,.15); }
.top__lang a.is-on { background: #fff; color: var(--nebula); }

/* ---------- the rescue flight (rocket on the right edge) ---------- */
.flight { position: fixed; right: 18px; top: 90px; bottom: 30px; width: 26px; z-index: 40; pointer-events: none; }
.flight__track { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, rgba(255,255,255,.35) 0 6px, transparent 6px 14px); border-radius: 3px; }
.flight__fill { position: absolute; inset: 0 0 auto 0; height: 0; background: linear-gradient(var(--gold), var(--pink)); border-radius: 3px; box-shadow: 0 0 12px var(--pink); }
.flight__rocket { position: absolute; left: 50%; width: 30px; transform: translate(-50%, -50%) rotate(180deg); top: 0; filter: drop-shadow(0 0 10px rgba(255, 211, 107, .8)); transition: top .12s linear; }
.rescued { position: fixed; right: 54px; bottom: 26px; z-index: 41; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 6, 32, .82); color: #fff; font: 600 14px var(--display); box-shadow: 0 10px 30px -12px #000; border: 1px solid rgba(255,255,255,.15); }
.rescued__star { color: var(--gold); font-size: 18px; display: inline-block; }
.rescued { opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.rescued.is-on { opacity: 1; transform: none; }
.rescued.pop .rescued__star { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.8) rotate(20deg); } }

/* ---------- starfields ---------- */
.stars { position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; }
.stars--1 { background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #fff, transparent), radial-gradient(1.5px 1.5px at 200px 160px, #ffe9a8, transparent), radial-gradient(1px 1px at 60px 190px, #fff, transparent); background-size: 240px 240px; animation: twinkle 4s ease-in-out infinite alternate; }
.stars--2 { background-image: radial-gradient(2px 2px at 50px 60px, #ffd6ec, transparent), radial-gradient(1px 1px at 300px 200px, #fff, transparent), radial-gradient(2px 2px at 380px 40px, #fff, transparent); background-size: 420px 300px; animation: twinkle 6s ease-in-out infinite alternate-reverse; }
.stars--3 { background-image: radial-gradient(3px 3px at 100px 120px, rgba(255,211,107,.9), transparent), radial-gradient(2.5px 2.5px at 500px 300px, rgba(242,92,158,.9), transparent); background-size: 620px 460px; animation: drift 60s linear infinite; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes drift { to { background-position: 620px 460px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 75% 45%, rgba(107, 63, 176, .55), transparent 70%), radial-gradient(ellipse 50% 50% at 10% 90%, rgba(242, 92, 158, .28), transparent 70%), linear-gradient(160deg, var(--space) 0%, var(--space-2) 55%, #241052 100%); }
.hero__inner { position: relative; z-index: 2; width: min(1280px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: center; padding: 110px 0 70px; }
.hero h1 { margin: 0 0 10px; }
.hero__logo { width: min(520px, 100%); filter: drop-shadow(0 10px 30px rgba(242, 92, 158, .45)); }
.hero .eyebrow { color: var(--gold); }
.hero__lead { font-size: 21px; color: #E9E1FF; max-width: 560px; }
.hero__lead strong { color: #fff; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 26px; }
.chips li { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.chips b { font-family: var(--display); color: var(--gold); font-size: 17px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rules { font-size: 15px; color: #CFC3EE; margin-top: 18px; }
.hero__box .float { width: 100%; border-radius: 28px; -webkit-mask: radial-gradient(ellipse 70% 70% at 50% 50%, #000 62%, transparent 100%); mask: radial-gradient(ellipse 70% 70% at 50% 50%, #000 62%, transparent 100%); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-16px) rotate(-.6deg); } }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 24px; transform: translateX(-50%); width: 30px; height: 48px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 5px; height: 9px; margin-left: -2.5px; border-radius: 3px; background: var(--gold); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 60% { transform: translateY(16px); opacity: 0; } }

/* ---------- light "paper" sections (rulebook watercolor pink) ---------- */
.story, .play, .box, .faq { background: radial-gradient(ellipse 60% 40% at 0% 0%, rgba(242,92,158,.12), transparent 70%), radial-gradient(ellipse 50% 40% at 100% 100%, rgba(107,63,176,.12), transparent 70%), var(--paper); }
.creatures, .decks, .gallery { background: linear-gradient(180deg, var(--paper-2), #EBDDF3); }
section.stop { padding: clamp(70px, 10vw, 120px) 0; position: relative; }
section.stop > .wrap > h2 { color: var(--nebula); }

/* story chapters */
.chapters { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: c; }
.chapter { position: relative; background: #fff; border-radius: var(--r); padding: 22px 20px 26px; box-shadow: var(--shadow); }
.chapter__no { position: absolute; top: -16px; left: 18px; width: 40px; height: 40px; display: grid; place-items: center; font: 700 18px var(--display); color: #fff; background: var(--violet); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.chapter img { height: 170px; width: 100%; object-fit: contain; margin: 6px 0 14px; }
.chapter h3 { color: var(--nebula); }
.chapter p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }
.blob { -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }

/* creatures */
.named { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 40px 0; }
.namecard { margin: 0; text-align: center; }
.namecard img { border-radius: 16px; box-shadow: var(--shadow); transition: transform .35s ease; }
.namecard:nth-child(odd) img { transform: rotate(-3deg); }
.namecard:nth-child(even) img { transform: rotate(3deg); }
.namecard:hover img { transform: rotate(0) scale(1.06) translateY(-6px); }
.namecard figcaption { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }
.namecard figcaption b { font-family: var(--display); color: var(--gem); font-size: 19px; }
.floaters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 4px; margin: 20px 0 10px; }
/* the crowd of 36 residents floating in space */
.creatures { background: radial-gradient(ellipse 60% 40% at 20% 10%, rgba(242,92,158,.25), transparent 70%), radial-gradient(ellipse 60% 50% at 90% 80%, rgba(62,111,216,.25), transparent 70%), linear-gradient(180deg, #1A0D40, var(--space) 70%); color: #fff; overflow: hidden; }
section.creatures > .wrap > h2 { color: #fff; }
.creatures .eyebrow { color: var(--gold); }
.creatures .lead, .creatures .note { color: #DCD2F5; }
.creatures .namecard figcaption { color: #CFC3EE; }
.creatures .namecard figcaption b { color: #FF8CC0; }
.crew { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 10px; margin: 30px 0 10px; }
.crew__one { width: 100%; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transform: rotate(var(--r)); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); transition: transform .35s ease, filter .35s ease; cursor: pointer; }
.crew__one:nth-child(even) { margin-top: 34px; }
.crew__one:hover, .crew__one.is-hi { transform: scale(1.25) rotate(0deg); filter: drop-shadow(0 0 22px rgba(255, 211, 107, .75)); animation-play-state: paused; position: relative; z-index: 2; }
/* deep space behind the residents: stars, nebulae, spiral galaxies, planets, shooting stars */
.creatures { position: relative; isolation: isolate; }
.creatures > .wrap { position: relative; z-index: 1; }
.deep { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.deep .stars--1 { background-size: 180px 180px; }
.deep .stars--3 { opacity: .9; }
.nebula { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: breathe 14s ease-in-out infinite alternate; }
.nebula--1 { width: 60vw; height: 40vw; left: -15vw; top: 8%; background: radial-gradient(closest-side, rgba(242, 92, 158, .7), rgba(107, 63, 176, .35) 60%, transparent); }
.nebula--2 { width: 55vw; height: 45vw; right: -18vw; top: 38%; background: radial-gradient(closest-side, rgba(62, 111, 216, .7), rgba(58, 31, 122, .3) 60%, transparent); animation-delay: -5s; }
.nebula--3 { width: 50vw; height: 30vw; left: 20%; bottom: -8%; background: radial-gradient(closest-side, rgba(255, 211, 107, .35), rgba(212, 63, 141, .25) 55%, transparent); animation-delay: -9s; }
@keyframes breathe { to { transform: scale(1.15) translate(2%, -3%); opacity: .75; } }
.galaxy { position: absolute; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #fff 0 3%, rgba(255, 236, 200, .9) 6%, transparent 22%),
              conic-gradient(from 0deg, transparent 0 10%, rgba(200, 170, 255, .55) 18%, transparent 28%, transparent 50%, rgba(255, 170, 220, .5) 60%, transparent 72%, transparent 100%);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%);
  animation: spin 80s linear infinite; }
.galaxy--1 { width: 340px; height: 340px; right: 6%; top: 3%; transform: rotateX(60deg); }
.galaxy--2 { width: 220px; height: 220px; left: 4%; bottom: 14%; opacity: .7; animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }
.planet { position: absolute; border-radius: 50%; animation: drift-planet 40s ease-in-out infinite alternate; }
.planet--ringed { width: 120px; height: 120px; left: 7%; top: 5%; background: radial-gradient(circle at 32% 30%, #FFE2A8, #F2A65A 45%, #8A3B2B 80%, #3A1410); box-shadow: inset -18px -14px 30px rgba(0,0,0,.55), 0 0 40px rgba(255, 180, 100, .35); }
.planet--ringed::after { content: ''; position: absolute; left: -45%; top: 38%; width: 190%; height: 26%; border-radius: 50%; border: 6px solid rgba(255, 220, 170, .55); border-top-color: rgba(255,220,170,.15); transform: rotate(-16deg); }
.planet--pink { width: 70px; height: 70px; right: 12%; top: 44%; background: radial-gradient(circle at 35% 30%, #FFD6EC, #F25C9E 50%, #6B1F4F 90%); box-shadow: inset -10px -8px 18px rgba(0,0,0,.5), 0 0 30px rgba(242, 92, 158, .45); animation-delay: -12s; }
.planet--blue { width: 150px; height: 150px; left: -40px; top: 52%; background: radial-gradient(circle at 60% 35%, #CFE3FF, #3E6FD8 45%, #1A2A6B 85%); box-shadow: inset 20px -16px 34px rgba(0,0,0,.55), 0 0 50px rgba(62, 111, 216, .45); animation-delay: -20s; }
.planet--moon { width: 34px; height: 34px; right: 24%; bottom: 10%; background: radial-gradient(circle at 35% 30%, #fff, #C9C1E0 55%, #5B4A7E); box-shadow: inset -5px -4px 8px rgba(0,0,0,.4), 0 0 16px rgba(255,255,255,.4); animation-delay: -6s; }
@keyframes drift-planet { to { transform: translate(18px, -22px); } }
.shoot { position: absolute; width: 160px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); opacity: 0; transform: rotate(-25deg); animation: shoot 9s ease-in infinite; }
.shoot::after { content: ''; position: absolute; right: -2px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 230, 180, .9); }
.shoot--1 { left: 10%; top: 12%; }
.shoot--2 { left: 45%; top: 30%; animation-delay: 3.5s; animation-duration: 11s; }
.shoot--3 { left: 25%; top: 62%; animation-delay: 6.5s; animation-duration: 13s; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 3% { opacity: 1; } 10% { opacity: 0; translate: 380px 180px; } 100% { opacity: 0; translate: 380px 180px; } }
@media (max-width: 700px) { .galaxy--1 { width: 220px; height: 220px; } .planet--ringed { width: 70px; height: 70px; left: auto; right: 8%; top: 1.5%; } .planet--blue { width: 100px; height: 100px; } }
.more200 { display: flex; align-items: center; justify-content: center; gap: 22px; max-width: 760px; margin: 40px auto 14px; padding: 22px 28px; border-radius: var(--r); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.more200__num { flex: none; font: 700 clamp(46px, 7vw, 72px)/1 var(--display); background: linear-gradient(135deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.more200 p { margin: 0; font-size: 19px; color: #E9E1FF; }
.more200 strong { color: #fff; }
@media (max-width: 560px) { .more200 { flex-direction: column; text-align: center; gap: 8px; padding: 20px; } }
.hero__box { position: relative; }
.hero__pal { position: absolute; z-index: 3; width: 22%; filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); animation: bob 7s ease-in-out infinite; pointer-events: none; }
.hero__pal--1 { left: -6%; top: -4%; animation-delay: -1s; }
.hero__pal--2 { right: -4%; top: -10%; width: 19%; animation-delay: -3s; }
.hero__pal--3 { right: 8%; bottom: -8%; width: 20%; animation-delay: -5s; }
.floater { width: clamp(130px, 15vw, 190px); height: clamp(130px, 15vw, 190px); object-fit: cover; border-radius: 50%; border: 5px solid #fff; background: #F7E8F1; box-shadow: 0 14px 30px -14px rgba(42,24,64,.6); animation: bob 6s ease-in-out infinite; }
.floater:nth-child(2n) { animation-delay: -2s; } .floater:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(2deg); } }

/* how to play */
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0 50px; }
.action { position: relative; background: #fff; border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); }
.action__no { position: absolute; top: -18px; right: 20px; width: 46px; height: 46px; display: grid; place-items: center; font: 700 22px var(--display); color: var(--ink); background: var(--gold); border-radius: 50%; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.action img { height: 130px; width: 100%; object-fit: contain; margin-bottom: 14px; }
.action__card { transform: rotate(-4deg); }
.action h3 { color: var(--nebula); }
.action p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; margin-bottom: 40px; }
.resources, .areas { background: linear-gradient(160deg, var(--nebula), var(--space-2)); color: #fff; border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.resources h3, .areas h3 { color: var(--gold); }
.resources { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; align-items: start; }
.resources h3 { grid-column: 1 / -1; }
.resources__img { width: 60px; background: #fff; border-radius: 14px; padding: 6px; }
.resources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; height: 100%; font: 500 17px var(--display); }
.areas dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.areas dl div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px 16px; }
.areas dt { font: 600 18px var(--display); color: #fff; }
.areas dt span { margin-right: 4px; }
.areas dd { margin: 4px 0 0; font-size: 15.5px; color: #DCD2F5; }
.ending { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); margin-bottom: 40px; }
.ending h3 { color: var(--gem); font-size: 26px; }
.setup { margin: 0; }
.setup img { border-radius: var(--r); box-shadow: var(--shadow); }
.setup figcaption { text-align: center; margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* decks: flip cards */
.deckgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 36px; perspective: 1200px; }
.deck { border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 4 / 5.6; font: inherit; color: inherit; }
.deck__in { position: relative; display: block; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.deck:hover .deck__in { transform: translateY(-8px) rotate(-2deg); }
.deck[aria-pressed="true"] .deck__in { transform: rotateY(180deg); }
.deck__face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.deck__back img { width: 100%; height: 100%; object-fit: cover; }
.deck__back b { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; background: linear-gradient(transparent, rgba(11,6,32,.85)); color: #fff; font: 600 15px var(--display); }
.deck__front { transform: rotateY(180deg); background: linear-gradient(160deg, #fff, var(--mist)); padding: 16px 14px; text-align: left; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); justify-content: center; gap: 6px; }
.deck__front b { font: 600 18px var(--display); color: var(--nebula); }
.deck__front i { font-style: normal; font-weight: 700; color: var(--gem); font-size: 13px; }

/* in the box */
.box__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-top: 30px; }
.box__photo { margin: 0; }
.box__photo img { border-radius: var(--r); box-shadow: var(--shadow); }
.parts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.part { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: 0 10px 26px -18px rgba(42,24,64,.6); transition: transform .25s; }
.part:hover { transform: translateX(6px); }
.part img { width: 86px; height: 62px; object-fit: contain; flex: none; }
.part b { font: 700 24px var(--display); color: var(--gem); margin-right: 4px; }
.part small { display: block; color: var(--ink-soft); font-size: 14px; }
.warn { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }

/* videos */
.videos, .about { background: linear-gradient(180deg, var(--space-2), var(--space)); color: #fff; }
section.videos > .wrap > h2, section.about > .wrap > h2 { color: #fff; }
.videos .eyebrow, .about .eyebrow { color: var(--gold); }
.vgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-top: 30px; }
.vcard { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.vcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(11,6,32,.9)); }
.vcard--soon img { filter: grayscale(.6) blur(1px); opacity: .6; }
.vcard--live:hover img { transform: scale(1.06); }
.vcard__play { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--gem); font-size: 26px; padding-left: 5px; box-shadow: 0 0 0 10px rgba(255,255,255,.18); }
.vcard--live .vcard__play { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 18px rgba(255,255,255,.06); } }
.vcard__txt { position: absolute; z-index: 2; left: 18px; bottom: 14px; font-size: 17px; }
.vcard__txt b { font: 600 20px var(--display); }
.vcard__txt small { display: block; opacity: .75; font-size: 13.5px; }

/* gallery */
.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; margin-top: 30px; }
.g { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.g--wide { grid-column: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g:hover img { transform: scale(1.05); }
.ggrid { grid-auto-flow: dense; }
.g { position: relative; }
.g--tall { grid-row: span 2; }
.g--stage { background: radial-gradient(ellipse 70% 60% at 50% 45%, #5B2FA0 0%, #2A1460 55%, #120A33 100%); }
.g--stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 90px 70px, #fff, transparent), radial-gradient(1.5px 1.5px at 150px 20px, #ffe9a8, transparent); background-size: 180px 110px; opacity: .6; }
.g--stage img { position: relative; object-fit: contain; padding: 18px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
.g--stage:hover img { transform: scale(1.07) rotate(-1.5deg); }
.g__cap { position: absolute; left: 12px; bottom: 10px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(11,6,32,.75); color: #fff; font: 600 14px var(--display); backdrop-filter: blur(4px); }
.lb { background: radial-gradient(ellipse 60% 60% at 50% 50%, #3A1F7A, rgba(6, 3, 26, .97)); }
.lb img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
/* videos: featured looping teaser + clip cards + pop-up player */
.vfeature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; margin-top: 26px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; padding: 18px; }
.vfeature__vid { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; background: #000; box-shadow: var(--shadow); }
.vfeature h3 { font-size: 28px; color: #fff; }
.vfeature p { color: #DCD2F5; }
.vgrid { grid-template-columns: repeat(3, 1fr) !important; grid-auto-flow: dense; }
button.vcard { border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; background: #000; }
button.vcard:hover img { transform: scale(1.06); }
button.vcard:hover .vcard__play { background: var(--pink); color: #fff; }
.vcard--tall { grid-row: span 2; aspect-ratio: auto; }
.vm { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse 60% 60% at 50% 50%, #3A1F7A, rgba(6, 3, 26, .97)); }
.vm[hidden] { display: none; }
.vm video { width: min(1100px, 100%); max-height: 86vh; border-radius: 16px; background: #000; box-shadow: 0 30px 70px -20px #000; }
.vm.is-tall video { width: auto; height: 86vh; }
@media (max-width: 900px) {
  .vfeature { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .vcard__play { width: 44px; height: 44px; font-size: 17px; top: 36%; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
  .vcard__txt { left: 10px; right: 8px; bottom: 8px; font-size: 13px; line-height: 1.25; }
  .vcard__txt b { font-size: 15px; display: block; }
}
.g--soon { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #fff 0 12px, var(--mist) 12px 24px); color: var(--ink-soft); font: 500 17px var(--display); cursor: default; }

/* faq */
.faq details { background: #fff; border-radius: 16px; margin: 0 0 12px; box-shadow: 0 10px 26px -20px rgba(42,24,64,.6); }
.faq summary { cursor: pointer; padding: 18px 22px; font: 600 19px var(--display); color: var(--nebula); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--gem); font-size: 24px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }

/* about */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.person { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 28px 24px; text-align: center; }
.person__ico { font-size: 40px; }
.person h3 { margin: 10px 0 4px; color: #fff; }
.person p { margin: 0 0 8px; color: var(--gold); font-weight: 700; }
.person a { color: #F9B7D6; }

/* final: back home */
.final { overflow: hidden; color: #fff; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(242,92,158,.45), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,63,176,.5), transparent 70%), var(--space); }
.final__inner { position: relative; z-index: 2; }
.final h2 { color: #fff !important; }
.final p { color: #E6DCFF; font-size: 20px; }
.final__friend { width: 240px; margin: 0 auto 10px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.5)); animation: bob 5s ease-in-out infinite; }
.final .btn { margin: 14px 0 18px; }

/* footer */
.foot { background: #06031A; color: #A99CC8; padding: 34px 0 90px; font-size: 15px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot p { margin: 0; }
.foot__jww { color: #F9B7D6; }
.motion-toggle { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 500 14px var(--display); }

/* phone buy bar */
.buybar { display: none; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6, 3, 26, .94); display: grid; place-items: center; padding: 20px; }
.lb[hidden] { display: none; }
.lb img { max-height: 90vh; width: auto; border-radius: 12px; }
.lb__x { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--nebula); font-size: 28px; cursor: pointer; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.chapter.reveal:nth-child(2), .action.reveal:nth-child(2), .namecard:nth-child(2) { transition-delay: .1s; }
.chapter.reveal:nth-child(3), .action.reveal:nth-child(3), .namecard:nth-child(3) { transition-delay: .2s; }
.chapter.reveal:nth-child(4), .namecard:nth-child(4) { transition-delay: .3s; }
.namecard:nth-child(5) { transition-delay: .4s; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .chapters { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .deckgrid { grid-template-columns: repeat(3, 1fr); }
  .crew { grid-template-columns: repeat(4, 1fr); }
  .named { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .top { padding: 8px 14px; gap: 10px; }
  .top__logo img { width: 120px; }
  .top__order { display: none; }
  .top__burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .top__burger span:not(.sr) { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; }
  .top__nav ul { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; background: rgba(11,6,32,.97); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
  .top__nav ul.is-open { display: flex; }
  .top__nav a { display: block; padding: 12px 14px; font-size: 18px; }
  .top__nav { order: 3; margin-left: 0; }
  .top__lang { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 90px; text-align: center; }
  .hero__logo, .hero__lead { margin-left: auto; margin-right: auto; }
  .chips, .hero__cta { justify-content: center; }
  .hero__box { order: -1; }
  .actions, .split, .box__grid, .people, .vgrid { grid-template-columns: 1fr; }
  .ending { grid-template-columns: 1fr; text-align: center; }
  .ending img { max-width: 300px; margin: 0 auto; }
  .areas dl { grid-template-columns: 1fr; }
  .ggrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .flight { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding: 76px 0 50px; gap: 10px; }
  .rescued { right: 12px; bottom: 74px; padding: 6px 11px; font-size: 13px; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,6,32,.95); color: #fff; font: 500 15px var(--display); transform: translateY(110%); transition: transform .35s ease; }
  .buybar.is-on { transform: none; }
  .scroll-hint { display: none; }
}
@media (max-width: 560px) {
  .chapters { grid-template-columns: 1fr 1fr; gap: 16px; }
  .named { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; gap: 16px; padding: 10px 4px 16px; margin: 26px -20px; padding-left: 20px; }
  .namecard { flex: 0 0 46%; scroll-snap-align: start; }
  .chapter { padding: 18px 14px 18px; }
  .chapter img { height: 110px; }
  .chapter p { font-size: 15px; }
  .deckgrid { grid-template-columns: 1fr 1fr; }
  .crew { grid-template-columns: repeat(3, 1fr); gap: 0 4px; }
  .crew__one { height: 120px; }
  .crew__one:nth-child(even) { margin-top: 0; }
  .crew__one:nth-child(3n+2) { margin-top: 26px; }
  .deck__front { font-size: 13px; }
  .resources { grid-template-columns: 48px 1fr; padding: 22px; }
  .resources__img { width: 48px; }
  .ggrid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .g--stage img { padding: 10px; }
  .g__cap { font-size: 12px; padding: 3px 9px; left: 8px; bottom: 8px; }
  .g--wide { grid-column: span 2; }
  .top__lang a { padding: 5px 7px; }
}

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion .reveal { opacity: 1; transform: none; }

/* button to the characters page (under the creatures) */
.chars-cta { text-align: center; margin: 34px 0 10px; }

/* ---------- thin strip to the rest of the Jasu Wonder World website (only inside the all-in-one site, see js/strip.js) ---------- */
.jww-strip { position: fixed; inset: 0 0 auto 0; z-index: 55; height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px; background: linear-gradient(90deg, #C73584, #A9286F); color: #fff; font: 600 13px/1 var(--body); box-shadow: 0 2px 14px -4px rgba(212,63,141,.8); }   /* PuffiNova pink, deep enough for white text to stay readable */
.jww-strip a { color: #fff; text-decoration: none; white-space: nowrap; padding: 6px 2px; }
.jww-strip a:hover { color: #FFD36B; text-decoration: underline; }
.jww-strip__links { display: flex; gap: 18px; }
.has-strip .top { top: 32px; }
.has-strip .flight { top: 122px; }
.has-strip { scroll-padding-top: 112px; }
.has-strip .hero__inner, .has-strip .ch-hero { margin-top: 32px; }
@media (max-width: 560px) { .jww-strip { padding: 0 12px; font-size: 12px; } .jww-strip__links { gap: 12px; } .jww-strip__links a:nth-child(n+4) { display: none; } }
