/* Croco Story landing — a storybook told in chapters. Night-sky pages, paper pages, handwritten notes,
   washi tape and stickers. Mobile first. */
@import url(fonts/fonts.css);

:root {
  --night-1: #2a1a62;
  --night-2: #1a1147;
  --night-3: #0c0724;
  --violet: #3b2582;
  --yellow: #f5c84b;
  --yellow-deep: #d9a82a;
  --green: #3fb968;
  --green-deep: #2e8a4c;
  --coral: #ee6b4d;
  --cream: #fffaf0;
  --paper: #fbf3e2;
  --paper-line: #e6d8b8;
  --ink: #1e1549;
  --ink-soft: rgba(30, 21, 73, .72);
  --muted: rgba(255, 255, 255, .74);
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', 'Segoe Print', cursive;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-weight: 500; line-height: 1.5; color: #fff; background: var(--night-3); overflow-x: hidden; }
/* paper grain over everything, so flat fills feel printed */
body::after { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; margin: 0; }
p, figure, ol, ul { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── storybook type */
.chapter { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hand); font-weight: 700; font-size: clamp(26px, 3vw, 32px); line-height: 1; color: var(--yellow); margin-bottom: 12px; rotate: -2deg; }
.chapter b { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border: 2.5px solid currentColor; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; font-size: .9em; }
.chapter.g { color: var(--green); }
.on-paper .chapter { color: var(--coral); }
.h2 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1.02; }
.h2 .y { color: var(--yellow); }
.h2 .g { color: var(--green); }
.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 46ch; margin-top: 18px; }
.on-paper .lede { color: var(--ink-soft); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.section { position: relative; padding-block: clamp(84px, 11vw, 140px); }
.section > .wrap { position: relative; z-index: 1; }

/* a word with a hand-drawn scribble under it */
.scrib { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.scrib svg { position: absolute; left: -4%; width: 108%; bottom: -.14em; height: .42em; z-index: -1; overflow: visible; }
.scrib svg { fill: none; stroke: var(--sc, var(--green)); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.1s .3s cubic-bezier(.6,0,.2,1); }
.in .scrib svg, .no-js .scrib svg { stroke-dashoffset: 0; }
.hero .scrib svg { stroke-dashoffset: 0; animation: draw 1.1s .5s cubic-bezier(.6,0,.2,1) both; }
@keyframes draw { from { stroke-dashoffset: 600; } }

/* handwritten note with a curly arrow */
.note { position: absolute; z-index: 6; font-family: var(--hand); font-weight: 700; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.05; color: var(--yellow); max-width: 15ch; rotate: var(--r, -4deg); }
.note svg { position: absolute; width: 70px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* stickers: die-cut white edge, slight tilt */
.sticker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--bg, var(--yellow)); box-shadow: 0 0 0 4px #fff, 0 10px 18px -8px rgba(0,0,0,.55); rotate: var(--r, -2deg); }
.sticker .ic { font-size: 18px; }
.stickers { display: flex; flex-wrap: wrap; gap: 14px; padding: 4px; }

/* washi tape */
.tape { position: absolute; z-index: 3; width: 90px; height: 26px; background: var(--tc, rgba(245,200,75,.8)); rotate: var(--r, -6deg); box-shadow: 0 2px 4px rgba(0,0,0,.12);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 100% 0, 97% 12%, 100% 25%, 96% 40%, 100% 55%, 97% 70%, 100% 85%, 96% 100%, 0 100%, 3% 85%, 0 70%, 4% 55%, 0 40%, 3% 25%); }
.tape.g { --tc: rgba(63,185,104,.75); }
.tape.c { --tc: rgba(238,107,77,.75); }
.tape.b { --tc: rgba(90,169,230,.78); }

/* torn-paper edge between a night page and a paper page */
.edge { position: absolute; left: 0; width: 100%; height: 30px; z-index: 2; display: block; pointer-events: none; }
.edge.top { top: -29px; }
.edge.bot { bottom: -29px; transform: scaleY(-1); }
.edge { fill: var(--paper); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; height: 54px; transition: transform .2s; }
.badges a:hover { transform: translateY(-2px) rotate(-1deg); }
.badges img { height: 100%; width: auto; }

.doodle { position: absolute; z-index: 0; width: var(--s, 30px); height: var(--s, 30px); pointer-events: none; fill: none; stroke: var(--dc, var(--yellow)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: tw 4s ease-in-out infinite var(--dl, 0s); }
@keyframes tw { 50% { opacity: .45; transform: rotate(14deg) scale(.88); } }
@keyframes float { 50% { transform: translateY(-12px); } }

.phone { position: relative; width: var(--pw, 260px); aspect-ratio: 900 / 1956; border-radius: calc(var(--pw, 260px) * .15); padding: calc(var(--pw, 260px) * .032); background: #120c2e; box-shadow: 0 0 0 2px rgba(255,255,255,.1) inset, 0 40px 80px -24px rgba(0,0,0,.7); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--pw, 260px) * .12); }

.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .2; animation: tw2 var(--d) ease-in-out infinite var(--dl); }
@keyframes tw2 { 50% { opacity: .85; } }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ───────── nav */
.nav { position: fixed; z-index: 40; inset: 12px 12px auto; }
.nav .bar { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px; border-radius: 999px; background: rgba(26,17,71,.6); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.12); transition: background .3s; }
.nav.scrolled .bar { background: rgba(12,7,36,.86); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav ul { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 2px; }
.nav ul a { display: block; padding: 8px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav ul a:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 4px 0 var(--yellow-deep); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--yellow-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-deep); }
.nav .btn { margin-left: auto; }
@media (min-width: 1000px) { .nav ul { display: flex; } .nav .btn { margin-left: 6px; } }

/* ───────── hero */
.hero { position: relative; z-index: 3; isolation: isolate; padding: 128px 0 0; overflow-x: clip;
  background: radial-gradient(110% 60% at 70% 100%, var(--violet) 0%, transparent 62%), linear-gradient(180deg, var(--night-1), var(--night-2) 60%, #150d3c); }
.hero .grid { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1fr 1.05fr; min-height: calc(100svh - 230px); } }
.hero h1 { font-size: clamp(48px, 7.4vw, 94px); line-height: .96; margin: 26px 0 22px; }
.hero h1 .y { color: var(--yellow); }
.hero .lede { max-width: 38ch; margin: 0 0 30px; }
.hero .stickers .sticker:nth-child(1) { --bg: var(--green); color: #fff; --r: -3deg; }
.hero .stickers .sticker:nth-child(2) { --r: 2deg; }
.hero .stickers .sticker:nth-child(3) { --bg: #ffd9cf; --r: -1deg; }
.inline-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.inline-list li { display: inline-flex; align-items: center; gap: 7px; }
.inline-list .ic { font-size: 21px; color: var(--yellow); }
@media (max-width: 899px) { .hero .copy { text-align: center; } .hero .lede { margin-inline: auto; } .hero .badges, .inline-list, .hero .stickers { justify-content: center; } }

.stage { position: relative; height: 560px; }
@media (min-width: 900px) { .stage { height: min(660px, 76svh); } }
.stage .glow { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255,214,120,.3), rgba(106,63,181,.16) 55%, transparent); }
.stage .phone { position: absolute; left: 50%; top: 50%; }
.stage .p-main { --pw: clamp(220px, 21vw, 268px); translate: -50% -50%; z-index: 3; animation: float 7s ease-in-out infinite; }
.stage .p-left { --pw: clamp(170px, 16vw, 210px); translate: -122% -44%; rotate: -10deg; z-index: 2; filter: brightness(.8); }
.stage .p-right { --pw: clamp(170px, 16vw, 210px); translate: 22% -54%; rotate: 9deg; z-index: 2; filter: brightness(.8); }
.stage .book { position: absolute; z-index: 4; width: clamp(130px, 13vw, 180px); left: 50%; bottom: 0; translate: -150% 0; rotate: -8deg; filter: drop-shadow(0 24px 30px rgba(0,0,0,.5)); animation: float 5s ease-in-out infinite reverse; }
.stage .note { right: -1%; bottom: 9%; --r: 5deg; text-align: right; }
.stage .note svg { right: 18%; top: -66px; }
@media (max-width: 899px) { .stage .book { translate: -135% 0; bottom: 10px; } .stage .note { right: 0; bottom: 3%; } }
.badge-st { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 8px; border-radius: 16px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 0 0 4px #fff, 0 16px 26px -10px rgba(0,0,0,.55); rotate: var(--r); animation: float 6s ease-in-out infinite var(--dl, 0s); white-space: nowrap; }
.badge-st > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg, var(--yellow)); color: var(--ink); font-size: 20px; }
.badge-st.c1 { left: 0; top: 10%; --r: -5deg; }
.badge-st.c2 { right: 0; top: 5%; --r: 4deg; --dl: 1.2s; --bg: #c9f0d6; }
@media (max-width: 520px) { .badge-st { font-size: 13px; } .badge-st.c1 { left: 2px; top: 2%; } .badge-st.c2 { right: 2px; top: 30%; } }

/* two crossing tapes straddling the hero's bottom edge (they overlap the next page, nothing clips them) */
.tapes { position: relative; z-index: 5; height: 130px; margin: 24px 0 -65px; pointer-events: none; }
.band { position: absolute; left: -3%; width: 106%; top: 50%; padding: 15px 0; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); }
.band.y { background: var(--yellow); color: var(--ink); rotate: -2.4deg; translate: 0 -30%; z-index: 2; }
.band.g { background: var(--green); color: #fff; rotate: 2.6deg; translate: 0 -95%; }
.band .track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.band.g .track { animation-direction: reverse; animation-duration: 54s; }
.band span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 700; font-size: clamp(18px, 2vw, 23px); white-space: nowrap; }
.band span::after { content: ''; width: 15px; height: 15px; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ───────── pedagogy: a notebook page */
.peda { background-color: var(--paper); color: var(--ink); padding-top: clamp(130px, 14vw, 180px);
  background-image: linear-gradient(90deg, transparent calc(var(--gutter) * .5 + 10px), rgba(238,107,77,.4) 0 calc(var(--gutter) * .5 + 12px), transparent 0), repeating-linear-gradient(180deg, transparent 0 37px, var(--paper-line) 37px 38px); }
.peda .head { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .peda .head { grid-template-columns: 1.25fr 1fr; } }
.peda .h2 .gd { color: var(--green-deep); }
.peda .aside { font-family: var(--hand); font-weight: 700; font-size: clamp(25px, 2.6vw, 31px); line-height: 1.12; color: var(--coral); rotate: -2deg; max-width: 25ch; }
.cards { display: grid; gap: 30px 22px; margin-top: 60px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; padding: 30px 26px 26px; background: #fff; border-radius: 4px; box-shadow: 0 1px 0 rgba(30,21,73,.06), 0 18px 30px -18px rgba(30,21,73,.4); rotate: var(--r, 0deg); transition: rotate .3s, transform .3s; }
.card:hover { rotate: 0deg; transform: translateY(-4px); }
.card .tape { top: -13px; left: 50%; translate: -50% 0; }
.card .num { font-family: var(--hand); font-weight: 700; font-size: 50px; line-height: .8; color: var(--c); }
.card h3 { font-size: 23px; line-height: 1.15; margin-top: 12px; }
.card p { color: var(--ink-soft); margin-top: 8px; }
.card > .ic { position: absolute; top: 22px; right: 22px; font-size: 42px; color: var(--c); stroke-width: 1.8; }
.card:nth-child(1) { --r: -1.2deg; --c: var(--green-deep); }
.card:nth-child(2) { --r: .8deg; --c: var(--coral); }
.card:nth-child(3) { --r: -.6deg; --c: #2f6fd6; }
.card:nth-child(4) { --r: 1deg; --c: #c8901c; }
.card:nth-child(5) { --r: -.9deg; --c: #7a4fd1; }
.card:nth-child(6) { --r: .7deg; --c: var(--green-deep); }

/* ───────── chapter 1: listen & read */
.reading { background: linear-gradient(180deg, var(--night-2), var(--night-3)); }
.split { display: grid; gap: 52px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.rev > :first-child { order: 2; } }
.reader { position: relative; display: grid; place-items: center; padding: 40px 0; }
.reader .phone { --pw: clamp(240px, 26vw, 300px); rotate: -3deg; }
.reader .bubble { position: absolute; z-index: 2; left: 50%; bottom: 7%; translate: -50% 0; width: min(92%, 400px); padding: 18px 22px; border-radius: 22px; background: var(--cream); color: var(--ink); font-weight: 600; font-size: clamp(17px, 2vw, 20px); line-height: 1.45; text-align: center; box-shadow: 0 0 0 4px #fff, 0 20px 40px -14px rgba(0,0,0,.6); rotate: 1.5deg; }
.reader .bubble span { padding: 1px 4px; border-radius: 8px; opacity: .35; transition: opacity .2s, background .2s; }
.reader .bubble span.on { opacity: 1; }
.reader .bubble span.now { background: rgba(245,200,75,.85); }
.reading .reader .note { left: -3%; top: 2%; --r: -7deg; }
.reading .reader .note svg { left: 35%; top: 100%; }
@media (max-width: 899px) { .reading .reader .note { left: 0; top: -6px; } }
.hsteps { display: grid; gap: 22px; margin-top: 34px; padding: 0; list-style: none; }
.hsteps li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.hsteps .n { font-family: var(--hand); font-weight: 700; font-size: 56px; line-height: .72; color: var(--yellow); text-align: center; }
.hsteps b { display: block; font-size: 20px; }
.hsteps p { color: var(--muted); }

/* ───────── chapter 2: library */
.library { background: var(--night-2); }
.values { display: grid; gap: 40px; margin-top: 10px; align-items: center; }
@media (min-width: 900px) { .values { grid-template-columns: 1fr 1fr; gap: 64px; } }
.book-pair { position: relative; height: 500px; }
.bcover { position: absolute; width: min(50%, 260px); padding: 10px 10px 44px; background: var(--cream); border-radius: 3px; box-shadow: 0 30px 50px -18px rgba(0,0,0,.7); rotate: var(--r); }
.bcover img { aspect-ratio: 768/1000; object-fit: cover; object-position: top; }
.bcover figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 23px; color: var(--ink); }
.bcover .tape { top: -12px; left: 34%; }
.bcover.b1 { left: 2%; top: 20px; --r: -5deg; z-index: 2; }
.bcover.b2 { right: 2%; top: 90px; --r: 6deg; }
.bcover .new { position: absolute; top: 18px; right: -12px; padding: 4px 12px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 3px #fff; rotate: 8deg; }
.vtag { position: absolute; z-index: 4; font-family: var(--hand); font-weight: 700; font-size: clamp(22px, 2.4vw, 27px); color: var(--yellow); rotate: var(--r, -4deg); white-space: nowrap; }
.vlist { display: grid; margin-top: 22px; }
.vrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 0; border-bottom: 2px dashed rgba(255,255,255,.14); }
.vrow b { font-size: 18px; margin-right: 4px; }
.vrow span { font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1; color: var(--yellow); }
.vrow span + span::before { content: '· '; color: rgba(255,255,255,.35); }

.shelf { position: relative; margin-top: 110px; }
.shelf .hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 30px; margin-bottom: 20px; }
.shelf .hd .hand { font-family: var(--hand); font-weight: 700; font-size: 30px; color: var(--green); rotate: -2deg; }
.shelf .hd p { color: var(--muted); max-width: 44ch; }
.spines { display: flex; align-items: flex-end; justify-content: center; gap: 6px; overflow-x: auto; padding: 24px 4px 0; scrollbar-width: none; }
@media (max-width: 899px) { .spines { justify-content: flex-start; } }
.stack { flex: none; display: flex; flex-direction: column; align-items: center; margin: 0 14px 0 18px; }
.stack i { display: block; height: 30px; width: var(--w); border-radius: 3px 6px 6px 3px; background: var(--bg); box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), inset 0 4px 0 rgba(255,255,255,.2); translate: var(--x, 0) 0; }
.stack i b { display: block; padding-left: 12px; line-height: 30px; font-size: 13px; font-style: normal; color: var(--fg, var(--ink)); white-space: nowrap; }
.shelf-croco { flex: none; width: 220px; margin: 0 0 -48px 10px; rotate: 4deg; transform-origin: bottom; filter: drop-shadow(0 14px 14px rgba(0,0,0,.45)); }
.spine { --w: 70px; }
.spines::-webkit-scrollbar { display: none; }
.spine { position: relative; flex: none; display: grid; place-items: center; width: var(--w, 62px); height: var(--h, 230px); border-radius: 6px 6px 2px 2px; background: var(--bg); color: var(--fg, var(--ink)); box-shadow: inset -7px 0 0 rgba(0,0,0,.14), inset 5px 0 0 rgba(255,255,255,.2); rotate: var(--r, 0deg); transform-origin: bottom left; transition: translate .3s; }
.spine:hover { translate: 0 -10px; }
.spine b { writing-mode: vertical-rl; rotate: 180deg; font-size: 19px; white-space: nowrap; }
.spine::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 5px; background: rgba(255,255,255,.35); }
.spine::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 5px; background: rgba(0,0,0,.15); }
.shelf .board { height: 16px; border-radius: 4px; background: linear-gradient(#8a5a33, #6a4224); box-shadow: 0 14px 20px -10px rgba(0,0,0,.6); }
.snaps { display: grid; gap: 34px 26px; margin-top: 80px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .snaps { grid-template-columns: repeat(4, 1fr); } }
.snap { position: relative; padding: 10px 10px 16px; background: var(--cream); color: var(--ink); border-radius: 3px; rotate: var(--r); box-shadow: 0 24px 40px -18px rgba(0,0,0,.7); transition: rotate .3s; }
.snap:hover { rotate: 0deg; }
.snap .pic { aspect-ratio: 4/4.4; overflow: hidden; border-radius: 2px; background: var(--night-2); }
.snap .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.snap h3 { font-size: 19px; margin-top: 12px; line-height: 1.15; }
.snap p { font-family: var(--hand); font-weight: 700; font-size: 21px; line-height: 1.1; color: var(--ink-soft); margin-top: 2px; }
.snap .tape { top: -12px; left: 50%; translate: -50% 0; }
.snap:nth-child(1) { --r: -2.5deg; } .snap:nth-child(2) { --r: 2deg; } .snap:nth-child(3) { --r: -1.5deg; } .snap:nth-child(4) { --r: 2.5deg; }
@media (max-width: 520px) { .snap h3 { font-size: 16px; } .snap p { font-size: 18px; } }

/* ───────── chapter 3: games */
.games { background: linear-gradient(180deg, var(--night-2), var(--night-1)); }
.gamelist { display: grid; gap: 18px; margin-top: 36px; padding: 0; list-style: none; }
.game { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 22px; background: var(--bg); box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform .2s; }
.game:hover { transform: translateX(6px) rotate(-.6deg); }
.game img { width: 66px; height: 66px; border-radius: 18px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.game b { display: block; font-size: 21px; line-height: 1.1; }
.game span { font-size: 15px; opacity: .92; }
.game .skill { position: absolute; right: 14px; top: -15px; padding: 1px 12px 3px; border-radius: 999px; background: var(--cream); color: var(--ink); font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.2; opacity: 1; rotate: 3deg; box-shadow: 0 6px 10px -4px rgba(0,0,0,.4); }
.g1 { --bg: #f7931e; } .g2 { --bg: #3d5bd8; } .g3 { --bg: #35a853; } .g4 { --bg: #e6336f; } .g5 { --bg: #16b3c4; }
.games .phones { position: relative; height: 600px; }
.games .phones .phone { position: absolute; left: 50%; top: 50%; }
.games .phones .a { --pw: clamp(220px, 24vw, 280px); translate: -50% -50%; z-index: 2; rotate: 3deg; }
.games .phones .b { --pw: clamp(160px, 17vw, 200px); translate: -125% -38%; rotate: -9deg; filter: brightness(.85); }
.games .phones .c { --pw: clamp(160px, 17vw, 200px); translate: 25% -62%; rotate: 10deg; filter: brightness(.85); }
.minis { display: grid; gap: 34px 26px; margin-top: 80px; }
@media (min-width: 800px) { .minis { grid-template-columns: 1fr 1fr; } }
.mini { position: relative; display: grid; grid-template-columns: 1fr 110px; gap: 18px; align-items: center; padding: 28px; border-radius: 4px; background: var(--cream); color: var(--ink); rotate: var(--r); box-shadow: 0 24px 40px -18px rgba(0,0,0,.7); }
.mini:nth-child(1) { --r: -1deg; } .mini:nth-child(2) { --r: 1deg; }
.mini .tape { top: -12px; left: 24px; }
.mini .k { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--coral); line-height: 1; }
.mini h3 { font-size: 24px; line-height: 1.1; margin-top: 4px; }
.mini p { color: var(--ink-soft); margin-top: 8px; }
.mini img { width: 110px; border-radius: 16px; rotate: 6deg; box-shadow: 0 0 0 5px #120c2e, 0 20px 30px -12px rgba(0,0,0,.6); }

/* ───────── chapter 4: world (paper) */
.world { background-color: var(--paper); color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(30,21,73,.1) 1px, transparent 1.4px); background-size: 22px 22px; }
.world .h2 .b { color: #2f6fd6; }
.world .ticket { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px -12px rgba(30,21,73,.3); text-decoration: none; rotate: -1.5deg; border: 2px dashed rgba(30,21,73,.2); }
.world .ticket img { width: 64px; border-radius: 6px; }
.world .ticket small { display: block; font-family: var(--hand); font-weight: 700; font-size: 21px; color: var(--coral); line-height: 1; }
.world .ticket b { font-size: 17px; }
.stamps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); }
.stamp { padding: 9px; background: #fff; filter: drop-shadow(0 10px 14px rgba(30,21,73,.2)); rotate: var(--rot, 0deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 5px at 7px 7px, transparent 96%, #000) -7px -7px / 14px 14px; -webkit-mask-composite: source-over;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 5px at 7px 7px, transparent 96%, #000) -7px -7px / 14px 14px; mask-composite: add; transition: rotate .3s, scale .3s; }
.stamp:hover { rotate: 0deg; scale: 1.06; }
.stamp img { aspect-ratio: 1; object-fit: cover; }
.postmark { position: absolute; z-index: 2; right: -20px; bottom: -86px; width: 120px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--coral); color: var(--coral); display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.15; letter-spacing: .08em; rotate: -14deg; mix-blend-mode: multiply; background: rgba(251,243,226,.5); }
.postmark::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid var(--coral); }
@media (max-width: 520px) { .postmark { display: none; } }

/* ───────── chapter 5: grow */
.progress { background: linear-gradient(180deg, #150d3c, var(--night-2)); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; margin-top: 34px; }
.feat { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
.feat .ic { width: 46px; height: 46px; padding: 9px; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--yellow); }
.feat b { display: block; font-size: 18px; line-height: 1.15; }
.feat span { color: var(--muted); font-size: 15px; }
@media (max-width: 420px) { .feats { grid-template-columns: 1fr; } }
.progress .reader .phone { rotate: 3deg; }
.progress .reader .note { right: -8%; top: 40%; --r: 6deg; text-align: right; }
.progress .reader .note svg { right: 60%; top: 100%; transform: scaleX(-1); }

/* ───────── faq */
.faq { background: linear-gradient(180deg, var(--night-2), var(--night-3)); }
.faq .list { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 2px dashed rgba(255,255,255,.14); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; border: 2.5px solid var(--yellow); color: var(--yellow); font-size: 22px; font-weight: 700; transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 4px 24px; color: var(--muted); max-width: 64ch; }

/* ───────── final cta */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; background: radial-gradient(80% 70% at 50% 100%, var(--violet), transparent 70%), var(--night-3); }
.cta .book { width: clamp(180px, 22vw, 260px); margin: 0 auto 26px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: float 5s ease-in-out infinite; }
.cta .h2 { font-size: clamp(40px, 6.4vw, 78px); }
.cta .lede { margin-inline: auto; }
.cta .badges { margin-top: 32px; justify-content: center; }
.cta .stickers { justify-content: center; margin-top: 26px; }

/* ───────── footer */
.foot { padding: 36px 0 40px; background: var(--night-3); border-top: 1px solid rgba(255,255,255,.1); color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .sign { font-family: var(--hand); font-weight: 700; font-size: 22px; color: var(--yellow); }

@media (max-width: 520px) {
  .badges { gap: 10px; }
  .badges a { height: 46px; }
  .note { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .scrib svg { stroke-dashoffset: 0; }
}
@media (max-width: 899px) {
  .spines { zoom: .6; border-bottom: 26px solid #7a4d2b; border-radius: 0 0 6px 6px; padding-inline: 10px; }
  .shelf .board { display: none; }
  .shelf .hd .hand::after { content: '  (kaydır →)'; font-size: 22px; color: var(--muted); }
}
/* ───────── legal pages (gizlilik.html): a night title page, then the text on paper */
.legal-hero { background: radial-gradient(900px 420px at 80% 0%, rgba(120,80,220,.35), transparent 70%), var(--night-2); padding: clamp(140px, 16vw, 200px) 0 clamp(56px, 7vw, 88px); }
.legal-hero .lede { max-width: 58ch; }
.legal-date { margin-top: 22px; font-size: 15px; color: var(--muted); }
.legal { background: var(--paper); color: var(--ink); padding-block: clamp(56px, 7vw, 96px) clamp(84px, 10vw, 128px); }
.legal-wrap { display: grid; gap: 40px; }
.legal-summary { align-self: start; padding: 26px 26px 28px; border-radius: 24px; background: var(--cream); border: 2px solid var(--paper-line); box-shadow: 0 6px 0 var(--paper-line); }
.legal-summary h2 { font-size: 24px; color: var(--green-deep); }
.legal-summary ul { margin-top: 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.legal-summary li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.legal-summary li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.legal-summary strong { color: var(--ink); font-weight: 700; }
.legal-body { max-width: 68ch; }
.legal-body section + section { margin-top: 40px; padding-top: 32px; border-top: 2px dashed var(--paper-line); }
.legal-body h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }
.legal-body h2 span { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; background: var(--yellow); color: var(--ink); font-size: 16px; }
.legal-body h3 { margin-top: 22px; font-size: 19px; color: var(--violet); }
.legal-body p, .legal-body li { font-weight: 400; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.legal-body p { margin-top: 12px; }
.legal-body ul { margin-top: 12px; padding-left: 22px; display: grid; gap: 6px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--green-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 960px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(48px, 6vw, 88px); }
  .legal-summary { position: sticky; top: 110px; }
}
