/* Torn, scalloped and dripping edges stop every world from starting the same way. */
.meet, .posters, .desk-world { --edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V14l11-5 9 6 14-11 12 8 8-3 13 7 15-12 10 6 17-8 9 11 14-6 8 4 16-10 12 9 13-4 10 7 14-12 11 8 12-5 12 9v10z'/%3E%3C/svg%3E"); }
.meet::before, .posters::before, .desk-world::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; margin-bottom: -1px; background: var(--bg); -webkit-mask: var(--edge) repeat-x bottom / 240px 24px; mask: var(--edge) repeat-x bottom / 240px 24px; pointer-events: none; }
.snacks::before, .mags::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; background: radial-gradient(circle at 50% 100%, var(--bg) 21px, transparent 22px) repeat-x bottom / 44px 22px; pointer-events: none; }
.creatures::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 46px; z-index: 3; background: var(--bg); pointer-events: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 46'%3E%3Cpath d='M0 0h300v4c-18 0-16 26-27 26s-8-22-24-22-9 36-22 36-8-34-24-34-12 18-24 18-9-22-27-22-13 30-25 30-7-28-24-28-14 14-26 14-10-18-26-18-12 24-23 24S18 4 0 4z'/%3E%3C/svg%3E") repeat-x top / 300px 46px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 46'%3E%3Cpath d='M0 0h300v4c-18 0-16 26-27 26s-8-22-24-22-9 36-22 36-8-34-24-34-12 18-24 18-9-22-27-22-13 30-25 30-7-28-24-28-14 14-26 14-10-18-26-18-12 24-23 24S18 4 0 4z'/%3E%3C/svg%3E") repeat-x top / 300px 46px; }

/* ================= 2 · MEET BLAN ================= */
.meet { --mood: var(--sky); --bg: var(--mood); position: relative; display: grid; grid-template-columns: 1fr minmax(0, 1.15fr) 1fr; align-items: center; gap: 1.5rem; min-height: 100svh; padding: 6rem var(--gut) 3rem var(--gut); background: repeating-linear-gradient(90deg, transparent 0 26px, rgb(255 255 255 / .38) 26px 28px) var(--mood); transition: background-color .5s; }
.meet::before { transition: background-color .5s; }
.meet-head { display: flex; flex-direction: column; gap: 1.2rem; align-self: start; padding-top: 2rem; }
.meet-head p { max-width: 30ch; font-weight: 500; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: .8rem 1rem; rotate: -1.5deg; }
.meet-stage { position: relative; display: grid; place-items: end center; height: min(84svh, 860px); min-height: 520px; }
.meet-shout { position: absolute; left: 84%; top: 16%; translate: -50% -50%; rotate: -8deg; font: 400 clamp(4rem, 7vw, 7rem)/1.3 var(--chunk); white-space: nowrap; color: var(--paper); pointer-events: none; user-select: none; }
.meet-figure { position: relative; height: 100%; aspect-ratio: 941 / 1672; max-width: 100%; }
.meet-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 18px 14px rgb(21 19 26 / .22)); }
.meet-figure .m-blink { filter: none; }
.meet-figure[data-mood="paint"] img, .meet-figure[data-mood="sit"] img, .meet-figure[data-mood="jump"] img { inset: 0 -18%; width: 136%; max-width: none; }
.meet-figure[data-mood="sit"] img { height: 82%; top: auto; }
.meet-figure[data-mood="jump"] img { height: 90%; }
.meet-figure.hop { animation: hop .55s var(--spring); transform-origin: bottom; }
@keyframes hop { 30% { scale: 1.06 .93; } 60% { scale: .97 1.04; translate: 0 -18px; } }
.pin { position: absolute; width: 34px; height: 34px; translate: -50% -50%; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); }
.pin::before { content: "+"; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.pin::after { content: ""; position: absolute; inset: -8px; border: 2px solid var(--ink); border-radius: 50%; animation: ping 2s ease-out infinite; }
@keyframes ping { from { scale: .7; opacity: 1; } to { scale: 1.5; opacity: 0; } }
.pin span { position: absolute; left: 40px; top: 50%; translate: 0 -50%; font: 1.2rem/1 var(--hand); white-space: nowrap; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: .2rem .5rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pin:hover span, .pin:focus-visible span { opacity: 1; }
.pin-cap { left: 62%; top: 5%; } .pin-eyes { left: 66%; top: 14.5%; } .pin-shirt { left: 70%; top: 44%; } .pin-feet { left: 25%; top: 94%; }
.pin-feet span { left: auto; right: 40px; }
.meet-figure:not([data-mood="cool"]) .pin { display: none; }
.bubble-meet { position: absolute; left: -16%; bottom: 17%; max-width: 230px; min-height: 3em; z-index: 3; }
.meet-controls { display: flex; flex-direction: column; gap: 2rem; justify-self: end; }
.moods { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 320px; }
.moods legend, .wardrobe legend { font-size: 1.6rem; margin-bottom: .5rem; padding: 0; }
.moods label, .wardrobe label { position: relative; cursor: pointer; }
.moods input, .wardrobe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.moods span { display: inline-flex; align-items: center; min-height: 48px; padding: .3rem 1.2rem; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 99px; font-weight: 700; box-shadow: 0 4px 0 var(--ink); transition: .2s var(--spring); }
.moods label:nth-of-type(odd) span { rotate: -2deg; }
.moods label:nth-of-type(even) span { rotate: 2deg; }
.moods label:hover span { scale: 1.07; }
.moods input:checked + span { background: var(--ink); color: var(--paper); translate: 0 4px; box-shadow: 0 0 0 var(--ink); }
.wardrobe { display: grid; gap: .7rem; max-width: 320px; }
.wardrobe span { display: flex; flex-direction: column; padding: .65rem 1rem; background: var(--paper); border: 2.5px dashed var(--ink); border-radius: 14px; line-height: 1.25; }
.wardrobe strong { font: 400 1.2rem/1.4 var(--chunk); }
.wardrobe input:checked + span { border-style: solid; background: var(--tan); box-shadow: 5px 5px 0 var(--ink); }
.moods input:focus-visible + span, .wardrobe input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ================= 3 · UNIVERSE ================= */
.universe { position: relative; min-height: 100svh; padding: 5rem var(--gut) 2rem; color: var(--paper); text-align: center; overflow: hidden; background:
  radial-gradient(circle at 20% 30%, #fff 0 1.5px, transparent 2px) 0 0 / 190px 170px,
  radial-gradient(circle at 70% 80%, var(--sun) 0 2px, transparent 3px) 0 0 / 260px 230px,
  radial-gradient(circle at 40% 60%, var(--sky) 0 1px, transparent 2px) 0 0 / 110px 130px, var(--ink); }
.universe .display { font-size: clamp(3rem, min(8vw, 11svh), 7rem); }
.universe-lede { max-width: 42ch; margin: .8rem auto 0; }
.orbit { position: relative; height: clamp(420px, calc(100svh - 360px), 720px); max-width: 1300px; margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.orbit:active { cursor: grabbing; }
.orbit::before { content: ""; position: absolute; left: 10%; right: 10%; top: 16%; bottom: 16%; border: 2px dashed rgb(255 254 251 / .35); border-radius: 50%; }
.sun { position: absolute; left: 50%; top: 50%; z-index: 2; width: min(380px, 52vw); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgb(255 196 20 / .55), rgb(255 119 183 / .22) 45%, transparent 70%); pointer-events: none; }
.sun img { max-height: 92%; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -14px; rotate: 2deg; } }
.planet { position: absolute; left: 50%; top: 50%; width: clamp(104px, 14vw, 190px); color: var(--paper); text-decoration: none; will-change: transform; -webkit-user-drag: none; }
.planet img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--c); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--ink), 0 20px 40px -10px #000; transition: rotate .4s var(--spring), scale .4s var(--spring); }
.planet:nth-child(2) img { border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; }
.planet:nth-child(4) img { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
.planet span { position: absolute; left: 50%; top: 86%; translate: -50% 0; display: flex; flex-direction: column; width: max-content; padding: .25rem .7rem .35rem; background: var(--c); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; line-height: 1.15; }
.planet b { font: 400 clamp(.85rem, 1.4vw, 1.15rem)/1.4 var(--chunk); }
.planet small { font-weight: 600; font-size: .75rem; }
.planet:nth-child(4) span { color: var(--paper); }
.planet:hover img, .planet:focus-visible img { rotate: 8deg; scale: 1.12; }
.orbit-hint { color: var(--sun); }

/* ---------- shared world frame ---------- */
.world { position: relative; min-height: 100svh; padding: 5.5rem var(--gut) 3.5rem var(--gut); background: var(--bg); }
.world-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.world-head p { max-width: 34ch; font-weight: 500; }

/* ================= 4 · POSTERS ================= */
.posters { --bg: var(--tomato); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .85fr); align-items: center; gap: 2rem clamp(1.5rem, 4vw, 5rem); overflow-x: clip; }
.posters .world-head { align-self: start; }
.posters .display { color: var(--paper); font-size: clamp(3.4rem, 8vw, 8rem); rotate: -4deg; }
.stack-wrap { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.stack { position: relative; width: min(420px, 70vw, 50svh); aspect-ratio: 2 / 3; }
.poster { position: absolute; inset: 0; padding: 10px; background: var(--paper); border-radius: 6px; box-shadow: 0 26px 40px -20px rgb(0 0 0 / .6); cursor: grab; touch-action: pan-y; transition: transform .5s var(--spring); user-select: none; -webkit-user-select: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.poster.held { transition: none; cursor: grabbing; }
.stack-nav { display: flex; gap: 1.2rem; }
.stack-info { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; min-height: 22rem; justify-content: center; }
.stack-info .count { font: 400 clamp(3rem, 6vw, 5.5rem)/1.2 var(--chunk); color: var(--sun); }
.stack-info h3 { font-weight: 800; font-stretch: 80%; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; }
.stack-info p { max-width: 36ch; }

/* ================= 5 · VENDING MACHINE ================= */
.snacks { --bg: var(--sun); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); align-items: start; gap: 2.5rem; }
.snacks .display { font-family: var(--chunk); font-weight: 400; font-stretch: normal; line-height: 1.05; font-size: clamp(3.2rem, 8vw, 7.4rem); }
.snacks-blan { position: absolute; left: max(10vw, 90px); bottom: 2rem; height: min(46svh, 430px); filter: drop-shadow(0 16px 14px rgb(0 0 0 / .22)); pointer-events: none; }
.machine { display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-template-areas: "glass panel" "tray tray"; gap: 1.1rem; width: 100%; max-width: clamp(520px, 80svh, 800px); justify-self: end; padding: clamp(.9rem, 2vw, 1.6rem); background: var(--tomato); border: 4px solid var(--ink); border-radius: 44px 44px 18px 18px; box-shadow: 14px 14px 0 var(--ink); }
.glass { grid-area: glass; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: .9rem; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .55) 41% 47%, transparent 48%), #d9ecff; border: 4px solid var(--ink); border-radius: 24px; }
.slot { display: flex; flex-direction: column; gap: .45rem; padding: 0 0 .5rem; border: 0; border-bottom: 7px solid var(--ink); background: none; }
.slot-art { display: block; overflow: hidden; border-radius: 14px; border: 2.5px solid var(--ink); }
.slot img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: scale .35s var(--spring), rotate .35s var(--spring); }
.slot:hover img { scale: 1.1; rotate: -3deg; }
.slot-code { display: flex; align-items: center; gap: .5rem; text-align: left; line-height: 1.1; }
.slot-code b { padding: .1rem .45rem; background: var(--ink); color: var(--paper); border-radius: 6px; }
.slot-code small { font-weight: 700; font-size: .85rem; }
.slot.vending .slot-art { animation: vend .8s ease-in forwards; }
@keyframes vend { 10%, 30%, 50% { translate: -5px 0; rotate: -3deg; } 20%, 40% { translate: 5px 0; rotate: 3deg; } 100% { translate: 0 130%; rotate: 20deg; opacity: 0; } }
.panel { grid-area: panel; display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
.screen { display: grid; place-items: center; min-height: 86px; padding: .5rem; text-align: center; font: 800 1.15rem/1.2 ui-monospace, Menlo, monospace; color: var(--lime); background: var(--ink); border-radius: 12px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.key { aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); font: 800 1.8rem/1 var(--sans); box-shadow: 0 6px 0 var(--ink); }
.key:active { translate: 0 6px; box-shadow: none; }
.coin { margin-top: auto; align-self: center; font: 1.3rem/1 var(--hand); padding: .5rem .9rem; background: var(--sun); border: 3px solid var(--ink); border-radius: 99px; rotate: -6deg; }
.tray { grid-area: tray; position: relative; display: grid; place-items: center; min-height: 138px; padding: .8rem; background: var(--ink); border-radius: 16px; }
.tray-flap { color: rgb(255 254 251 / .45); font-weight: 800; font-size: 1.6rem; letter-spacing: .5em; }
.tray:has(.drop) .tray-flap { display: none; }
.drop { display: flex; align-items: center; gap: 1rem; width: min(100%, 420px); padding: .6rem; text-align: left; background: var(--paper); border: 0; border-radius: 14px; animation: drop .7s cubic-bezier(.3, 1.7, .5, 1); }
.drop img { width: 100px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.drop span { display: flex; flex-direction: column; }
.drop b { font: 400 1.3rem/1.4 var(--chunk); }
.drop small { font: 1.15rem/1.2 var(--hand); }
@keyframes drop { from { translate: 0 -140px; rotate: -14deg; opacity: 0; } }

/* ================= 6 · DESK ================= */
.desk-world { --bg: var(--leaf); }
.desk-world .world-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1rem 2.5rem; margin-bottom: 2rem; }
.desk-world .display { color: var(--paper); }
.desk { position: relative; height: clamp(520px, min(46vw, calc(100svh - 270px)), 700px); border: 4px solid var(--ink); border-radius: 22px; background:
  linear-gradient(rgb(255 255 255 / .16) 1px, transparent 1px) 0 0 / 100% 40px,
  linear-gradient(90deg, rgb(255 255 255 / .16) 1px, transparent 1px) 0 0 / 40px 100%, #0d5c3c; }
.photo { position: absolute; width: 33%; z-index: 2; padding: 10px 10px 8px; background: var(--paper); border-radius: 4px; box-shadow: 0 20px 30px -14px rgb(0 0 0 / .65); rotate: var(--rot, 0deg); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: left .65s var(--spring), top .65s var(--spring), rotate .65s var(--spring), scale .2s; }
.desk.tidy .photo { width: 31%; }
.photo.held { transition: scale .2s; scale: 1.03; cursor: grabbing; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; }
.photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .55rem; }
.photo figcaption b { font: 400 clamp(.95rem, 1.6vw, 1.35rem)/1.4 var(--chunk); }
.tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: -4deg; background: rgb(255 214 120 / .82); clip-path: polygon(0 12%, 6% 0, 100% 4%, 95% 45%, 100% 96%, 4% 100%, 8% 55%); }
.trinket { position: absolute; width: clamp(70px, 9vw, 130px); z-index: 1; cursor: grab; touch-action: pan-y; filter: drop-shadow(0 8px 6px rgb(0 0 0 / .35)); }

/* ================= 7 · CREATURE CARDS ================= */
.creatures { --bg: var(--cobalt); color: var(--paper); display: flex; flex-direction: column; gap: 1.4rem; z-index: 2; }
.creatures .display { font-size: clamp(3.2rem, min(8vw, 12svh), 7.6rem); }
.creatures .world-head { align-items: center; text-align: center; gap: .8rem; }
.creatures .world-head p { max-width: 52ch; }
@media (min-width: 761px) { .creatures .display br { display: none; } }
.hand-of-cards { display: flex; justify-content: center; align-items: flex-start; gap: clamp(.4rem, 1.4vw, 1.4rem); padding: 1rem 0 2rem; }
.card { width: clamp(200px, min(20vw, 31svh), 290px); aspect-ratio: 5 / 8.2; perspective: 1100px; flex: none; rotate: calc(var(--fan) * 4deg); translate: 0 calc(var(--fan) * var(--fan) * 11px); transition: rotate .5s var(--spring), translate .5s var(--spring); }
.card:hover, .card:focus-within { rotate: 0deg; translate: 0 -18px; z-index: 2; }
.gather .card { rotate: calc(var(--fan) * -9deg); translate: calc(var(--fan) * -100%) 40px; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .6s cubic-bezier(.3, 1.35, .5, 1); }
.card.flipped .card-inner { --flip: 180deg; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 10px; border: 3px solid var(--ink); border-radius: 22px; background: var(--paper); color: var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 34px -18px rgb(0 0 0 / .7); overflow: hidden; }
.front { text-align: left; }
.front img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 14px; }
.name { display: flex; flex-direction: column; padding: .5rem .4rem .1rem; }
.name b { font: 400 1.35rem/1.35 var(--chunk); }
.name small { font: 1.1rem/1.1 var(--hand); }
.sheen { position: absolute; inset: 0; background: linear-gradient(105deg, transparent calc(var(--gx, -40%) - 22%), rgb(255 255 255 / .42) var(--gx, -40%), rgb(143 184 242 / .25) calc(var(--gx, -40%) + 8%), transparent calc(var(--gx, -40%) + 26%)); pointer-events: none; }
.back { transform: rotateY(180deg); background: var(--sun); gap: .45rem; padding: 14px; overflow-y: auto; }
.back h3 { font: 400 1.35rem/1.35 var(--chunk); }
.back p { font-size: .86rem; line-height: 1.35; }
.stats { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .6rem; font-size: .8rem; font-weight: 700; }
.stats dd { display: flex; align-items: center; gap: .4rem; }
.stats i { flex: 1; height: 10px; border: 2px solid var(--ink); border-radius: 9px; background: linear-gradient(var(--ink), var(--ink)) left / calc(var(--v) * 100%) 100% no-repeat var(--paper); }
.stats span { min-width: 2ch; text-align: right; }
.back-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.back .pill { min-height: 36px; padding-inline: .75rem; font-size: .8rem; }

/* ================= 8 · MAGAZINE ================= */
.mags { --bg: var(--pink); display: flex; flex-direction: column; align-items: center; gap: 1.4rem; padding-top: 6.5rem; padding-bottom: 2rem; overflow-x: clip; }
.mags .world-head { align-items: center; text-align: center; gap: .6rem; }
.mags .world-head p { max-width: 60ch; }
.mags .display { font: 400 clamp(3rem, min(9vw, 12svh), 8rem)/1.1 var(--chunk); color: var(--paper); }
.book-wrap { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, 2rem); width: 100%; }
.book { position: relative; width: min(860px, 74vw, max(540px, calc((100svh - 350px) * 1.5))); aspect-ratio: 3 / 2; perspective: 2200px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.base-left, .base-right { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--paper); container-type: inline-size; }
.base-left { left: 0; border-radius: 10px 0 0 10px; box-shadow: -14px 22px 30px -18px rgb(0 0 0 / .5); }
.base-right { right: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; border-radius: 0 10px 10px 0; box-shadow: 14px 22px 30px -18px rgb(0 0 0 / .5); }
.leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: left center; transition: transform .9s cubic-bezier(.45, .05, .25, 1), z-index 0s .35s; }
.leaf.turned { transform: rotateY(-180deg); }
.leaf-face { position: absolute; inset: 0; overflow: hidden; background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; container-type: inline-size; }
.leaf-front { border-radius: 0 10px 10px 0; box-shadow: inset 6px 0 14px -8px rgb(0 0 0 / .5); }
.leaf-front img { width: 100%; height: 100%; object-fit: cover; }
.leaf-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .25), rgb(255 255 255 / .18) 3%, transparent 9%); }
.leaf-back { transform: rotateY(180deg); border-radius: 10px 0 0 10px; }
.spread-text { display: flex; flex-direction: column; justify-content: center; gap: 4cqw; height: 100%; padding: 9cqw; font-size: max(.8rem, 4.4cqw); line-height: 1.45; background: linear-gradient(270deg, rgb(0 0 0 / .1), transparent 12%); }
.spread-text h3 { font-weight: 800; font-stretch: 76%; font-size: 21cqw; line-height: .9; color: var(--cobalt); }
.book-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.4rem; text-align: center; }
.book-note h3 { font: 400 1.5rem/1.4 var(--chunk); }
.note-spark { display: none; }

/* ================= SMALLER SCREENS ================= */
@media (max-width: 1100px) {
  .meet { grid-template-columns: 1fr 1.2fr; grid-template-areas: "head stage" "controls stage"; }
  .meet-head { grid-area: head; align-self: end; }
  .meet-stage { grid-area: stage; }
  .meet-controls { grid-area: controls; justify-self: start; align-self: start; }
  .posters { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "head head" "stack info"; }
  .posters .world-head { grid-area: head; }
  .stack-wrap { grid-area: stack; }
  .stack-info { grid-area: info; }
  .stack { width: min(380px, 48vw); }
  .snacks { grid-template-columns: 1fr; }
  .snacks-blan { left: auto; right: 5vw; bottom: auto; top: 4.5rem; height: 270px; }
  .machine { justify-self: center; }
  .hand-of-cards { flex-wrap: wrap; row-gap: 2rem; }
  .card { width: min(270px, 40vw); rotate: calc(var(--fan) * 2deg); translate: 0; }
}

@media (max-width: 900px) {
  .world { padding-right: var(--gut); }
  .meet { padding-right: var(--gut); }
}

@media (max-width: 760px) {
  .meet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "controls"; padding-top: 4rem; }
  .meet-head { padding-top: 0; }
  .meet-stage { height: 68svh; min-height: 460px; }
  .meet-shout { left: 50%; top: 9%; font-size: 24vw; }
  .bubble-meet { left: -2%; bottom: 3%; top: auto; max-width: 40vw; font-size: 1.05rem; padding: .5rem .7rem; }
  .meet-controls { justify-self: stretch; }
  .moods, .wardrobe { max-width: none; }
  .wardrobe { grid-template-columns: 1fr 1fr; }

  .orbit { height: 520px; }
  .orbit::before { left: 17%; right: 17%; }
  .planet small { display: none; }

  .world { padding-top: 5rem; }
  .posters { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stack" "info"; justify-items: center; }
  .posters .world-head { justify-self: start; }
  .stack { width: min(340px, 72vw); margin-top: 1rem; }
  .stack-info { align-items: center; text-align: center; }

  .snacks .world-head p { max-width: 20ch; }
  .snacks-blan { height: 170px; top: 11rem; right: 2vw; }
  .machine { grid-template-columns: minmax(0, 1fr); grid-template-areas: "glass" "panel" "tray"; box-shadow: 8px 8px 0 var(--ink); margin-top: 1rem; }
  .glass { gap: .6rem; padding: .6rem; }
  .slot-code small { font-size: .74rem; }
  .panel { display: grid; grid-template-columns: 1fr; }
  .screen { min-height: 58px; }
  .keys { grid-template-columns: repeat(4, 1fr); }
  .coin { display: none; }

  .desk-world .world-head { grid-template-columns: 1fr; justify-items: start; }
  .desk { height: 1120px; }
  .photo, .desk.tidy .photo { width: 90%; }
  .trinket { display: none; }

  .creatures { gap: 1.5rem; }
  .hand-of-cards { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 1.5rem 14vw 2rem; gap: 1.1rem; }
  .card { width: 72vw; max-width: 300px; scroll-snap-align: center; rotate: 0deg; }
  .card:hover, .card:focus-within { translate: 0; }
  .gather .card { rotate: calc(var(--fan) * -6deg); translate: 0 20px; }

  .mags { padding-top: 6rem; }
  .book-wrap { flex-wrap: wrap; }
  .book { order: -1; width: min(78vw, 380px); aspect-ratio: 3 / 4; }
  .base-left, .leaf-back { display: none; }
  .base-right, .leaf { left: 0; width: 100%; }
  .base-right { border-radius: 10px; }
  .leaf.turned { transform: rotateY(-105deg); opacity: 0; pointer-events: none; transition: transform .6s, opacity .6s, z-index 0s .6s; }
  .book-note { flex-direction: column; }
  .note-spark { display: block; max-width: 36ch; }

  .back p { font-size: 1rem; }
  .stats { font-size: .9rem; gap: .5rem .7rem; }
}
