/* ===== Monster-Mischmasch · The Midnight Monster Mix-Up · landing page ===== */
@font-face { font-family: 'Rubik Wet Paint'; src: url(/assets/fonts/RubikWetPaint.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Spicy Rice'; src: url(/assets/fonts/SpicyRice.woff) format('woff'); font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(/assets/fonts/Fredoka-SemiBold.woff) format('woff'); font-weight: 300 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(/assets/fonts/Fredoka-Bold.woff) format('woff'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/assets/fonts/Nunito-Regular.woff) format('woff'); font-weight: 100 500; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/assets/fonts/Nunito-Bold.woff) format('woff'); font-weight: 600 1000; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(/assets/fonts/Nunito-Italic.woff) format('woff'); font-style: italic; font-display: swap; }

:root {
  --ink: #1a0f2e; --night: #160a33; --night2: #3b1670; --night3: #6a2c91;
  --yellow: #ffe14d; --lime: #c6ff4a; --cyan: #5ee7ff; --orange: #ff9f1c; --pink: #ff6fb5; --violet: #b892ff;
  --paper: #fffaf0; --lilac: #f1e8ff; --text: #2a1d40; --mute: #6b5b85;
  --r: 22px; --bw: 3px; --shadow: 5px 6px 0 var(--ink);
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 17px/1.6 'Nunito', system-ui, sans-serif; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Spicy Rice', 'Fredoka', sans-serif; font-weight: normal; line-height: 1.08; margin: 0 0 .4em; letter-spacing: .5px; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 100; font: 700 15px Fredoka; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font: 700 17px/1.1 'Fredoka', sans-serif; letter-spacing: .02em; text-decoration: none; color: var(--ink);
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; padding: 13px 22px; box-shadow: 3px 4px 0 var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s; }
.btn:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { font-size: 14px; padding: 8px 14px; box-shadow: 2px 3px 0 var(--ink); }
.btn-lg { font-size: 19px; padding: 16px 28px; }
.btn-big { font-size: 21px; padding: 16px 30px; }
.btn-amz { background: var(--yellow); }
.btn-lime { background: var(--lime); }
.btn-yellow { background: var(--yellow); }
.btn-night { background: var(--ink); color: #fff; box-shadow: 3px 4px 0 var(--pink); }
.btn-night:hover { box-shadow: 5px 6px 0 var(--pink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: 3px 4px 0 rgba(0,0,0,.35); }
.paper .btn-ghost, .subpage .paper .btn-ghost { color: var(--ink); border-color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; padding: 10px clamp(14px, 3vw, 34px); background: rgba(22, 10, 51, .86); backdrop-filter: blur(10px); color: #fff; border-bottom: 2px solid rgba(255,255,255,.08); }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 18px 'Spicy Rice'; letter-spacing: .5px; white-space: nowrap; }
.brandmark img { width: 40px; height: 40px; }
.mainnav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.mainnav a { text-decoration: none; font: 600 15px Fredoka; padding: 8px 12px; border-radius: 999px; color: #e9ddff; }
.mainnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.top-r { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { font: 700 13px Fredoka; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); text-decoration: none; border: 2px solid var(--lime); border-radius: 999px; padding: 5px 11px; }
.lang:hover { background: var(--lime); color: var(--ink); }
@media (max-width: 960px) { .mainnav { display: none; } .brandmark span { display: none; } }

/* ---------- night sections ---------- */
.night { position: relative; color: #fff; background: radial-gradient(1200px 600px at 70% 0%, #4a1c86 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night2) 62%, var(--night3) 100%); overflow: hidden; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: tw 3s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .15; transform: scale(.6); } }
.moon { position: absolute; right: 7%; top: 70px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6b0, #ffe066 60%, #f6c945); box-shadow: 0 0 80px 30px rgba(255, 233, 168, .25); }
.moon::before, .moon::after { content: ''; position: absolute; border-radius: 50%; background: rgba(214, 170, 40, .35); }
.moon::before { width: 30px; height: 30px; left: 28px; top: 36px; } .moon::after { width: 20px; height: 20px; right: 30px; bottom: 34px; }
.bats .bat { position: absolute; width: 60px; animation: fly 16s linear infinite; opacity: .75; }
@keyframes fly { 0% { transform: translate(-10vw, 0) } 25% { transform: translate(25vw, -30px) } 50% { transform: translate(55vw, 10px) } 75% { transform: translate(85vw, -25px) } 100% { transform: translate(115vw, 0) } }

/* ---------- hero ---------- */
.hero { padding: 40px clamp(16px, 4vw, 40px) 0; }
.hero-in { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; }
.eyebrow { font: 700 14px Fredoka; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin: 18px 0 8px; }
.logo { font-family: 'Rubik Wet Paint', 'Spicy Rice', sans-serif; font-size: clamp(54px, 8.4vw, 112px); line-height: .95; margin: 0 0 14px; letter-spacing: 1px; }
.logo.three { font-size: clamp(50px, 7.6vw, 100px); }
.lw-line { display: block; position: relative; isolation: isolate; width: max-content; max-width: 100%; }
.lw-line::before { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; color: #fff; -webkit-text-stroke: .2em #fff; text-shadow: .05em .1em 0 var(--ink), -.03em .08em 0 var(--ink); }
.lw-line .l { -webkit-text-stroke: .055em var(--ink); paint-order: stroke fill; display: inline-block; animation: wob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.37s); }
.lw-line.small { font-family: 'Spicy Rice', sans-serif; font-size: .5em; letter-spacing: .1em; }
.lw-line.small .l { color: var(--lime) !important; }
.l.c0 { color: var(--lime); } .l.c1 { color: var(--orange); } .l.c2 { color: var(--pink); } .l.c3 { color: var(--cyan); } .l.c4 { color: var(--yellow); } .l.c5 { color: var(--violet); }
@keyframes wob { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-3px) rotate(-2deg) } }
.banner { display: inline-block; margin: 6px 0 18px; }
.banner span { display: inline-block; font: clamp(20px, 2.6vw, 30px) 'Spicy Rice'; color: #2a0b5e; background: var(--yellow); border: 3px solid var(--ink); padding: 8px 26px; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); box-shadow: 0 0 0 5px #fff; }
.banner { filter: drop-shadow(0 0 0 #fff) drop-shadow(4px 5px 0 var(--ink)); }
.lead { font-size: 18.5px; color: #f1e9ff; max-width: 600px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 18px; }
.ctas.center { justify-content: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 10px; }
.chips li { font: 600 14px Fredoka; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25); }
.hero-book { position: relative; display: flex; justify-content: center; perspective: 1600px; padding: 20px 0 40px; }
.book3d { position: relative; width: min(420px, 80vw); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(6deg); transition: transform .7s cubic-bezier(.2, .8, .2, 1.2); animation: bob 6s ease-in-out infinite; cursor: grab; }
.book3d:hover, .book3d:focus { transform: rotateY(-6deg) rotateX(2deg) scale(1.03); }
@keyframes bob { 50% { translate: 0 -12px; } }
.b-front { position: absolute; inset: 0; transform: translateZ(9px); border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.2); }
.b-front img { width: 100%; height: 100%; object-fit: cover; }
.b-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,.18), transparent 35%, transparent 80%, rgba(0,0,0,.12)); }
.b-spine { position: absolute; left: 0; top: 0; width: 18px; height: 100%; transform-origin: left; transform: rotateY(-90deg) translateX(-9px); background-size: 100% 100%; filter: brightness(.8); }
.b-pages { position: absolute; right: 0; top: 2%; width: 16px; height: 96%; transform-origin: right; transform: rotateY(90deg) translateX(8px); background: repeating-linear-gradient(90deg, #fff 0 2px, #e9e3f5 2px 3px); }
.peek-pip { position: absolute; right: 2%; bottom: 6%; width: 120px; transform-origin: bottom center; animation: peek 7s ease-in-out infinite; z-index: 3; }
@keyframes peek { 0%, 15%, 85%, 100% { transform: translateY(70%) rotate(8deg); } 30%, 70% { transform: translateY(0) rotate(-4deg); } }
.sticker { position: absolute; font: 30px/1 'Spicy Rice'; color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 50%; width: 112px; height: 112px; display: grid; place-items: center; text-align: center; transform: rotate(-12deg); box-shadow: 0 0 0 5px #fff, 5px 7px 0 5px var(--ink); }
.s-age { left: 0; bottom: 4%; z-index: 4; animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: rotate(-6deg) scale(1.08); } }
.hero-monsters { position: relative; z-index: 2; max-width: var(--wrap); margin: 26px auto 0; display: flex; justify-content: space-between; align-items: flex-end; height: 190px; pointer-events: none; }
.hero-monsters svg { height: 100%; width: auto; filter: drop-shadow(0 0 0 #fff) drop-shadow(3px 3px 0 #fff) drop-shadow(-3px -3px 0 #fff); animation: dance 2.6s ease-in-out infinite; transform-origin: bottom center; }
.hero-monsters svg:nth-child(2) { animation-delay: -.9s; height: 80%; } .hero-monsters svg:nth-child(3) { animation-delay: -1.7s; height: 92%; } .hero-monsters svg:nth-child(4) { animation-delay: -.4s; height: 76%; }
@keyframes dance { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }
.facts { position: relative; z-index: 3; list-style: none; margin: 18px auto 0; padding: 0 0 54px; max-width: var(--wrap); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts li { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); border-radius: 16px; padding: 12px 16px; text-align: center; }
.facts b { display: block; font: 22px 'Spicy Rice'; color: var(--yellow); }
.facts span { font: 600 14px Fredoka; color: #e2d6fb; }
.hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; z-index: 2; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero-book { order: -1; } .facts { grid-template-columns: repeat(2, 1fr); } .hero-monsters { height: 120px; } .moon { width: 80px; height: 80px; } }

/* ---------- generic sections ---------- */
.sec { position: relative; padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 40px); }
.wrap { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.paper { background: var(--paper); background-image: radial-gradient(rgba(106, 44, 145, .07) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.lilac { background: var(--lilac); }
.yellow { background: var(--yellow); }
.kicker { font: 700 14px Fredoka; letter-spacing: .18em; text-transform: uppercase; color: var(--night3); margin-bottom: 6px; }
.night .kicker { color: var(--lime); }
.sub { font-size: 19px; color: var(--mute); max-width: 720px; }
.night .sub { color: #e2d6fb; }
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1.2); }
.reveal.in { opacity: 1; transform: none; }

/* steps & benefits */
.steps, .benefits { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.benefits { grid-template-columns: repeat(3, 1fr); }
.steps li, .benefits li { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 22px 20px 18px; box-shadow: var(--shadow); position: relative; }
.steps li { counter-increment: s; }
.steps li::after { content: counter(s); position: absolute; top: -16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 20px 'Spicy Rice'; background: var(--yellow); border: 3px solid var(--ink); }
.steps li:nth-child(2) { transition-delay: .08s; } .steps li:nth-child(3) { transition-delay: .16s; } .steps li:nth-child(4) { transition-delay: .24s; }
.ico { font-size: 40px; display: block; margin-bottom: 8px; }
.steps p, .benefits p { font-size: 16px; color: var(--mute); margin: 0; }
.benefits li:nth-child(3n+1) { background: #fff; } .benefits li:nth-child(3n+2) { background: #fffbe0; } .benefits li:nth-child(3n) { background: #eafcff; }
.quote { font: italic 600 21px/1.4 Nunito; text-align: center; margin: 40px auto 30px; max-width: 760px; color: var(--night2); }
@media (max-width: 900px) { .steps, .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps, .benefits { grid-template-columns: 1fr; } }

/* specs */
.specs-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.specs-book img { border-radius: 8px; box-shadow: 0 20px 40px rgba(26, 15, 46, .3); transform: rotate(-3deg); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 22px; }
.specs dt { font: 700 15px Fredoka; color: var(--night3); }
.specs dd { margin: 0; font-size: 16px; }
@media (max-width: 760px) { .specs-wrap { grid-template-columns: 1fr; } }

/* ---------- film ---------- */
.film-sec .wrap { text-align: center; }
.film-sec .sub { margin: 0 auto 30px; }
.film { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; border: 4px solid #fff; border-radius: 26px; overflow: hidden; background: #0d0620; box-shadow: 0 0 0 4px var(--ink), 8px 10px 0 4px var(--ink), 0 30px 80px rgba(0,0,0,.5); }
.film-stage, .film-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-sub { position: absolute; left: 50%; bottom: 6.5%; transform: translateX(-50%); max-width: 86%; font: 600 clamp(14px, 2vw, 22px)/1.3 Fredoka; color: #fff; background: rgba(26, 15, 46, .78); padding: 7px 16px; border-radius: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.film-sub.on { opacity: 1; }
.film-play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: flex; align-items: center; gap: 12px; font: 700 20px Fredoka; color: var(--ink); background: var(--yellow); border: 4px solid var(--ink); border-radius: 999px; padding: 14px 26px 14px 18px; cursor: pointer; box-shadow: 0 0 0 6px #fff, 6px 8px 0 6px var(--ink); transition: transform .15s; }
.film-play:hover { transform: scale(1.06); }
.film-play .tri { width: 0; height: 0; border-left: 22px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.film.playing .film-play { opacity: 0; pointer-events: none; }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.15); }
.film-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--yellow), var(--pink)); }

/* ---------- games ---------- */
.games-sec { background: linear-gradient(180deg, #e9fbff 0%, #fff6d9 100%); }
.games-sec::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(26,15,46,.06) 2px, transparent 2px); background-size: 28px 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }
.tab { font: 700 17px Fredoka; padding: 11px 20px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 2px 3px 0 var(--ink); }
.tab.on { background: var(--pink); color: #fff; }
.game { display: grid; grid-template-columns: 330px 1fr; gap: 26px; background: #fff; border: 4px solid var(--ink); border-radius: 28px; padding: 24px; box-shadow: 8px 9px 0 var(--ink); min-height: 520px; }
.game[hidden] { display: none; }
#g1 { display: block; }
#g1[hidden] { display: none; }
.g-side { display: flex; flex-direction: column; gap: 16px; }
.g-side p { margin: 0; font-size: 17px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.part { display: flex; align-items: center; justify-content: space-between; border: 2.5px solid var(--ink); border-radius: 14px; padding: 4px; font: 700 15px Fredoka; background: #fbf7ff; }
.part button { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); background: var(--cyan); font: 700 22px/1 Fredoka; cursor: pointer; }
.part button:active { transform: scale(.92); }
.g-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, #fff 0%, #f6f0ff 70%); border-radius: 20px; border: 2.5px dashed #c9b6ef; min-height: 460px; overflow: hidden; }
.mix-name { font: clamp(22px, 2.6vw, 32px) 'Spicy Rice'; color: var(--night2); margin: 10px 0 0; text-align: center; min-height: 1.3em; }
.mix-stage { width: 100%; height: 420px; display: flex; align-items: center; justify-content: center; }
.mix-stage svg { height: 100%; max-width: 100%; }
.mix-stage.spin svg { animation: wig .12s linear infinite; }
@keyframes wig { 50% { transform: rotate(4deg) scale(1.03); } }
.mix-stage.pop svg { animation: popin .5s cubic-bezier(.2, .8, .2, 1.6); }
@keyframes popin { from { transform: scale(.7) rotate(-6deg); } }
.pip-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 18px Fredoka; margin-bottom: 12px; }
.pip-stage { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1400 / 1181; max-height: 70vh; margin: 0 auto; border: 2.5px solid var(--ink); background: #fff; cursor: crosshair; }
.pip-stage svg { width: 100%; height: 100%; display: block; }
.pip-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px; background: rgba(255, 250, 240, .9); z-index: 3; font-size: 19px; }
.pip-msg { text-align: center; font: 700 19px Fredoka; min-height: 1.6em; margin: 12px 0 0; color: var(--night2); }
.pip-ring { position: absolute; border: 5px solid var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px var(--ink); animation: ring .8s ease-out; pointer-events: none; z-index: 4; }
@keyframes ring { from { transform: scale(2.2); opacity: 0; } }
.pip-hintzone { position: absolute; border-radius: 24px; background: rgba(255, 225, 77, .35); border: 3px dashed var(--orange); pointer-events: none; animation: blink 1s ease-in-out infinite; z-index: 2; }
@keyframes blink { 50% { opacity: .3; } }
.miss-dot { position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 4px solid var(--pink); animation: miss .6s ease-out forwards; pointer-events: none; z-index: 4; }
@keyframes miss { to { transform: scale(1.8); opacity: 0; } }
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.palette button { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.palette button[aria-checked="true"] { transform: scale(1.18); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ink); }
.paint-stage { width: 100%; height: 470px; display: flex; align-items: center; justify-content: center; }
.paint-stage svg { height: 100%; max-width: 100%; }
.paint-stage svg .paintable { cursor: pointer; transition: fill .15s; }
.paint-stage svg .paintable:hover { filter: brightness(.94); }
.paint-msg { font: 700 18px Fredoka; color: var(--night3); min-height: 1.5em; }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; padding: 16px; } .mix-stage, .paint-stage { height: 340px; } .g-stage { min-height: 380px; } }

/* ---------- look inside ---------- */
.pages { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pg { all: unset; cursor: zoom-in; display: block; width: 100%; }
.pg img { width: 100%; aspect-ratio: 1; border-radius: 6px; background: #fff; box-shadow: 0 0 0 2px rgba(26,15,46,.12), 6px 8px 0 rgba(26,15,46,.12), 0 14px 30px rgba(26,15,46,.12); transition: transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.pg:hover img, .pg:focus-visible img { transform: rotate(-2deg) scale(1.04); }
.pg span { display: block; font: 600 14px Fredoka; margin-top: 10px; text-align: center; color: var(--night2); }
.pages li:nth-child(4n+2) { transition-delay: .06s; } .pages li:nth-child(4n+3) { transition-delay: .12s; } .pages li:nth-child(4n) { transition-delay: .18s; }
@media (max-width: 860px) { .pages { grid-template-columns: repeat(2, 1fr); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 860px); overflow: visible; }
.lightbox::backdrop { background: rgba(16, 6, 36, .85); }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox p { color: #fff; text-align: center; font: 600 17px Fredoka; margin: 12px 0 0; }
.lb-x, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); font: 700 28px/1 Fredoka; cursor: pointer; }
.lb-x { top: -18px; right: -18px; }
.lb-nav { top: 45%; } .lb-nav.prev { left: -24px; } .lb-nav.next { right: -24px; }

/* ---------- gift ---------- */
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.gift h2 { color: var(--ink); }
.gift .kicker { color: var(--ink); }
.gift-pages { position: relative; height: 360px; }
.gift-pages img { position: absolute; width: 230px; border-radius: 6px; box-shadow: 0 0 0 3px var(--ink), 6px 8px 0 3px var(--ink); left: calc(var(--i) * 70px); top: calc(var(--i) * 22px + 10px); transform: rotate(calc((var(--i) - 1.5) * 6deg)); transition: transform .3s; }
.gift-pages:hover img { transform: rotate(calc((var(--i) - 1.5) * 10deg)) translateY(-8px); }
.meta { font: 600 14px Fredoka; color: var(--night2); margin-top: 12px; }
.meta.light, .light { color: #e2d6fb; }
@media (max-width: 860px) { .gift { grid-template-columns: 1fr; } .gift-pages { height: 300px; } .gift-pages img { width: 180px; left: calc(var(--i) * 48px); } }

/* ---------- faq ---------- */
.faq details { background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; margin-bottom: 12px; box-shadow: 3px 4px 0 var(--ink); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 22px; font: 700 18px Fredoka; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 26px/1 'Spicy Rice'; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--mute); }

/* ---------- final ---------- */
.final { text-align: center; }
.final p { font-size: 19px; color: #e9ddff; }
.final-monsters { display: flex; justify-content: center; align-items: flex-end; gap: 14px; height: 180px; margin-bottom: 18px; }
.final-monsters svg { height: 100%; width: auto; animation: dance 2.2s ease-in-out infinite; transform-origin: bottom; filter: drop-shadow(3px 3px 0 #fff) drop-shadow(-3px -3px 0 #fff); }
.final-monsters svg:nth-child(even) { animation-delay: -1.1s; height: 85%; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #d9cdf0; padding: 50px clamp(16px, 4vw, 40px) 40px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 600 15px Fredoka; }
.foot-links a { text-decoration: none; } .foot-links a:hover { color: var(--lime); }
.fine { font-size: 13px; color: #9c8fb8; margin: 0; }
.studio img { height: 44px; width: auto; }

/* ---------- sub pages ---------- */
.subhero { min-height: 70vh; display: flex; align-items: center; }
.h1-spicy { font-size: clamp(34px, 5vw, 56px); color: var(--yellow); }
.h1-spicy.dark { color: var(--night2); }
.lead.dark { color: var(--text); }
.sub-pip { width: 150px; margin: 0 auto 10px; animation: dance 2.4s ease-in-out infinite; transform-origin: bottom; }
.sub-pip.small { width: 110px; }
.gift-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 20px; }
.gift-row img { border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
.small { font-size: 14px; }
.legal { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.legal h1 { font-size: 40px; color: var(--night2); }
.legal h2 { font-size: 22px; margin-top: 1.4em; color: var(--night3); }
.legal ul { padding-left: 1.2em; }
.fb-form { display: grid; gap: 16px; margin: 26px 0; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.fb-form label { display: grid; gap: 6px; font: 600 15px Fredoka; color: var(--night2); }
.fb-form input[type=text], .fb-form input[type=email], .fb-form textarea { font: 16px Nunito; padding: 11px 13px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fbf7ff; }
.fb-form input[type=file] { font: 14px Nunito; }
.fb-form small { font: 400 13px Nunito; color: var(--mute); }
.fb-form .check { grid-template-columns: auto 1fr; align-items: start; font: 400 14px/1.45 Nunito; color: var(--text); }
.fb-form .check input { width: 22px; height: 22px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; }
.fb-msg { margin: 18px 0 0; padding: 12px 16px; border: 2.5px solid var(--ink); border-radius: 12px; background: #ffe3ec; color: var(--ink); font: 600 15px/1.4 Fredoka; }
.fb-form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- print (mixer: print your own monster) ---------- */
#printArea { display: none; }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing #printArea { display: block !important; }
  #printArea svg { width: 100%; height: 88vh; }
  #printArea p { text-align: center; font: 14px Nunito; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* text inside the book art (clock labels, signs) */
svg .tclock { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 1px; fill: #000; }
svg .tsign { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; fill: #000; }
svg .tburst { font-family: 'Spicy Rice', serif; font-size: 92px; fill: #000; letter-spacing: 2px; }
.hero-in > * { min-width: 0; }
@media (max-width: 600px) {
  .logo { font-size: 10.6vw; } .logo.three { font-size: 10.2vw; }
  .lead { font-size: 17px; }
  .banner span { padding: 7px 18px; }
  .sticker { width: 86px; height: 86px; font-size: 24px; }
  .peek-pip { width: 84px; }
  .film { border-radius: 16px; }
  .film-play { font-size: 16px; padding: 10px 18px 10px 14px; }
}
.subhero .wrap { width: 100%; }

/* v5 site: the logo always fits its column (no broken "MISCHMAS-CH") */
.lw-line { white-space: nowrap; }
@supports (width: 1cqw) {
  .hero-copy { container-type: inline-size; }
  .logo { font-size: min(clamp(44px, 8.4vw, 112px), 13.4cqw); }
  .logo.three { font-size: min(clamp(50px, 7.6vw, 100px), 18.5cqw); }
}

[hidden] { display: none !important; }
