/* Pip Worlds: pocket-compact toy brand site.
   Candy enamel, die-cut white sticker edges, glossy toy plastic.
   No inline styles anywhere: everything lives here (strict CSP). */

@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-600.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-500.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-800.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --linen: #F7F1E6;
  --linen-2: #EFE5D4;
  --paper: #FFFBF5;
  --ink: #2B1E3A;
  --ink-2: #5E4E70;
  --line: rgba(43, 30, 58, .1);
  --pink: #FF6FA5;
  --pink-hi: #FF9CC4;
  --pink-deep: #D6336F;
  --link: #B0245C;
  --mint: #58C27A;
  --mint-hi: #B8F0A8;
  --butter: #FFD45E;
  --sky: #8DD3FF;
  --lilac: #B79CFF;
  --night: #23304F;
  --sh: 107 74 58;
  --sticker: 0 1px 0 rgb(var(--sh) / .06), 0 12px 26px -10px rgb(var(--sh) / .38);
  --sticker-lg: 0 2px 0 rgb(var(--sh) / .06), 0 26px 50px -18px rgb(var(--sh) / .45);
  --display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito", ui-rounded, "Segoe UI", "Helvetica Neue", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--linen);
  background-image: radial-gradient(circle at 1px 1px, rgba(140, 98, 57, .13) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-deep); }
strong, b { font-weight: 800; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; box-shadow: 0 0 0 6px #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ───────── Header ───────── */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.brand img { width: 44px; height: 44px; border-radius: 13px; border: 3px solid #fff; box-shadow: var(--sticker); transform: rotate(-4deg); transition: transform .3s var(--ease-spring); }
.brand:hover img { transform: rotate(4deg) scale(1.06); }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { display: none; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: .95rem; }
.nav a:hover { background: #fff; box-shadow: var(--sticker); }
.nav a[aria-current="page"] { background: #fff; box-shadow: var(--sticker); }
.nav .nav-cta { display: inline-flex; background: var(--ink); color: #fff; padding: 9px 16px; }
.nav .nav-cta:hover { background: var(--pink-deep); color: #fff; }
@media (min-width: 900px) { .nav a { display: inline-flex; } }

/* ───────── Buttons & store badges ───────── */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 20px 9px 16px; border-radius: 16px; text-decoration: none; background: #111; color: #fff; border: 3px solid #fff; box-shadow: var(--sticker); transition: transform .25s var(--ease-spring), box-shadow .25s; }
.badge svg { width: 28px; height: 28px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.05; }
.badge small { font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge b { font-family: -apple-system, "SF Pro Display", "Helvetica Neue", var(--body); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
a.badge:hover { color: #fff; transform: translateY(-3px) rotate(-1deg); box-shadow: var(--sticker-lg); }
.badge--soon { background: #fff; color: var(--ink-2); border-color: #fff; box-shadow: inset 0 0 0 2px var(--line), var(--sticker); cursor: default; }
.badge--soon svg { opacity: .7; }
.badge--soon b { font-size: 1.12rem; color: var(--ink); }
.free-note { margin-top: 12px; font-weight: 800; color: var(--ink-2); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.free-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 3px solid #fff; font-family: var(--display); font-weight: 600; font-size: 1.2rem; text-decoration: none; cursor: pointer; color: #fff; background: linear-gradient(180deg, var(--pink-hi) 0%, var(--pink) 38%, var(--pink-deep) 100%); box-shadow: 0 5px 0 #A61F52, var(--sticker); text-shadow: 0 1px 1px rgba(120, 10, 50, .45); transition: transform .2s var(--ease-spring), box-shadow .2s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 #A61F52, var(--sticker-lg); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #A61F52, var(--sticker); }
.btn--ghost { color: var(--ink); background: #fff; text-shadow: none; box-shadow: 0 5px 0 #E2D6C4, var(--sticker); }
.btn--ghost:hover { color: var(--ink); box-shadow: 0 7px 0 #E2D6C4, var(--sticker-lg); }

/* Sticker label (the app's tilted name tag) */
.tag { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.2; padding: 6px 14px; border-radius: 12px; background: var(--pink); color: var(--ink); border: 3px solid #fff; box-shadow: var(--sticker); transform: rotate(-2.5deg); }
.tag--mint { background: var(--mint-hi); }
.tag--butter { background: var(--butter); }
.tag--sky { background: #BFE4FF; }
.tag--lilac { background: #DCCEFF; }
.tag--pink { background: #FFC2DA; }

/* ───────── Hero ───────── */
.hero { position: relative; padding-block: 8px 40px; overflow: clip; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero-copy { text-align: center; position: relative; z-index: 2; }
.hero-copy .tag { margin-bottom: 18px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 19vw, 8.6rem); line-height: .88; letter-spacing: -.025em; margin: 0 0 18px; }
.wordmark span { display: block; }
.wordmark .w1 { color: var(--pink); }
.wordmark .w2 { color: var(--mint); }
.wordmark .w1, .wordmark .w2 {
  text-shadow:
    0 6px 0 #fff, 6px 0 0 #fff, -6px 0 0 #fff, 0 -6px 0 #fff,
    4px 4px 0 #fff, -4px 4px 0 #fff, 4px -4px 0 #fff, -4px -4px 0 #fff,
    5px 2px 0 #fff, -5px 2px 0 #fff, 5px -2px 0 #fff, -5px -2px 0 #fff,
    2px 5px 0 #fff, -2px 5px 0 #fff, 2px -5px 0 #fff, -2px -5px 0 #fff,
    0 14px 22px rgb(var(--sh) / .28);
}
.tagline { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 5.4vw, 2.2rem); line-height: 1.15; margin-bottom: 12px; }
.lede { font-size: clamp(1.05rem, 2.6vw, 1.22rem); color: var(--ink-2); max-width: 34ch; margin: 0 auto 24px; }
.hero .badges { justify-content: center; }
.hero .free-note { justify-content: center; }

@media (min-width: 960px) {
  .hero { padding-block: 24px 64px; }
  .hero .wrap { grid-template-columns: 1.02fr 1fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .lede { margin-left: 0; }
  .hero .badges, .hero .free-note { justify-content: flex-start; }
}

/* The compact: an enamel clamshell whose lid swings open onto a tiny world. */
.compact-stage { position: relative; width: min(100%, 470px); margin-inline: auto; padding: 0 6%; }
.compact { position: relative; width: 100%; aspect-ratio: 1 / 1.64; perspective: 1500px; perspective-origin: 50% 55%; animation: compact-drop .8s var(--ease-spring) both; }
.compact__base, .compact__lid { position: absolute; left: 0; right: 0; height: 50%; }
.compact__base {
  bottom: 0;
  border-radius: 30px 30px 50% 50% / 30px 30px 42% 42%;
  background:
    radial-gradient(110% 70% at 28% 8%, rgba(255, 255, 255, .7) 0 14%, transparent 34%),
    linear-gradient(180deg, #A9EDA0 0%, #6ACB80 48%, #3FA866 100%);
  box-shadow: 0 0 0 6px #fff, inset 0 -14px 0 rgba(20, 90, 40, .16), inset 0 6px 0 rgba(255, 255, 255, .55), 0 34px 50px -18px rgb(var(--sh) / .55);
}
.compact__base::after { /* enamel dots along the rim */
  content: ""; position: absolute; inset: auto 26% 3.5% 26%; height: 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, .9) 2.5px, transparent 3.5px) 0 0 / 24px 10px repeat-x;
}
.compact__tray { position: absolute; inset: 8% 7% 12% 7%; border-radius: 22px 22px 50% 50% / 22px 22px 40% 40%; background: radial-gradient(120% 90% at 50% 0%, #FFF8EA, #F2E4C9); box-shadow: inset 0 10px 18px rgba(80, 60, 30, .22), inset 0 -3px 0 rgba(255, 255, 255, .7), 0 0 0 4px rgba(255, 255, 255, .65); }
.compact__room { position: absolute; left: 7%; right: 7%; bottom: 7%; z-index: 3; transform-origin: 50% 90%; animation: room-pop .9s var(--ease-spring) 1.25s both; }
.compact__room img { width: 100%; filter: drop-shadow(0 14px 14px rgb(var(--sh) / .3)); }

.compact__lid { top: 0; transform-origin: 50% 100%; transform-style: preserve-3d; z-index: 4; animation: lid-open 1.15s cubic-bezier(.45, 0, .2, 1.18) .55s both; }
.lid-face--outside { transform: rotateX(180deg); }
.lid-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 50% 50% 30px 30px / 42% 42% 30px 30px; }
.lid-face--outside { border-radius: 30px 30px 50% 50% / 30px 30px 42% 42%; }
.lid-face--outside { /* seen while closed (the face is flipped with the lid) */
  background:
    radial-gradient(90% 60% at 28% 12%, rgba(255, 255, 255, .7) 0 12%, transparent 32%),
    linear-gradient(180deg, #FFB4D2 0%, #FF7FB0 48%, #E9558E 100%);
  box-shadow: 0 0 0 6px #fff, inset 0 -12px 0 rgba(160, 20, 70, .16), inset 0 6px 0 rgba(255, 255, 255, .5);
  display: grid; place-items: center;
}
.lid-face--outside img { width: 44%; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--sticker-lg); }
.lid-face--inside { /* seen when open: the mirror, which shows the world's sky */
  background: linear-gradient(180deg, #FFB4D2, #FF8DBE);
  box-shadow: 0 0 0 6px #fff, inset 0 -10px 0 rgba(160, 20, 70, .16), inset 0 8px 0 rgba(255, 255, 255, .5);
}
.mirror { position: absolute; inset: 7% 7% 7% 7%; border-radius: 50% 50% 22px 22px / 44% 44% 22px 22px; overflow: hidden; background: linear-gradient(180deg, #BFE8FF 0%, #DDF2FF 55%, #FFF1D9 100%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .8), inset 0 -16px 30px rgba(255, 210, 150, .35); }
.mirror::before { /* glass shine */
  content: ""; position: absolute; inset: -20% -40%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, .55) 46%, transparent 48%, transparent 52%, rgba(255, 255, 255, .4) 53%, rgba(255, 255, 255, .4) 55%, transparent 57%); animation: shine 1.4s var(--ease-out) 1.5s both;
}
.sun { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; right: 22%; top: 18%; background: #FFF4C9; box-shadow: 0 0 0 10px rgba(255, 244, 201, .45), 0 0 0 22px rgba(255, 244, 201, .2); }
.cloud { position: absolute; height: 12%; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 rgba(160, 200, 230, .35); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 46%; aspect-ratio: 1; left: 16%; bottom: 30%; }
.cloud::after { width: 34%; aspect-ratio: 1; left: 50%; bottom: 25%; }
.cloud--a { width: 34%; left: 12%; top: 56%; animation: drift 9s ease-in-out 2s infinite alternate; }
.cloud--b { width: 24%; left: 60%; top: 70%; animation: drift 11s ease-in-out 2s infinite alternate-reverse; }
.bunting { position: absolute; left: 0; right: 0; top: 40%; height: 11%; border-top: 2px solid rgba(120, 90, 60, .35); background: conic-gradient(from 150deg at 50% 0, #FF8FB7 0 60deg, transparent 0) 0 0 / 12.5% 100% repeat-x; }
.bunting::after { content: ""; position: absolute; inset: 0; background: conic-gradient(from 150deg at 50% 0, #FFD45E 0 60deg, transparent 0) 6.25% 0 / 12.5% 100% repeat-x; }

.compact__hinge { position: absolute; left: 30%; right: 30%; top: calc(50% - 9px); height: 18px; border-radius: 999px; background: linear-gradient(180deg, #fff, #E8DCCB); box-shadow: 0 3px 0 rgba(0, 0, 0, .08); z-index: 5; }

/* Pips that hop out and keep bouncing */
.hop { position: absolute; z-index: 6; animation: hop-in .7s var(--ease-spring) both; }
.hop img { animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.hop--1 { width: 25%; left: -4%; bottom: 3%; animation-delay: 1.75s; }
.hop--1 img { animation-delay: 2.5s; }
.hop--2 { width: 22%; right: -5%; bottom: 7%; animation-delay: 1.9s; }
.hop--2 img { animation-delay: 2.9s; }
.hop--3 { width: 19%; right: 2%; top: 6%; animation-delay: 2.05s; }
.hop--3 img { animation-delay: 3.3s; }
.hop--4 { width: 17%; left: -3%; top: 38%; animation-delay: 2.2s; }
.hop--4 img { animation-delay: 3.7s; }

.sparkle { position: absolute; z-index: 7; width: 22px; aspect-ratio: 1; background: #FFD45E; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.4s ease-in-out infinite both; }
.sparkle--1 { left: 2%; top: 40%; animation-delay: 1.6s; }
.sparkle--2 { right: 1%; top: 30%; width: 16px; animation-delay: 2.2s; background: #fff; }
.sparkle--3 { left: 45%; top: -1%; width: 18px; animation-delay: 2.8s; }

.compact-toggle { position: absolute; z-index: 8; left: 50%; bottom: -10px; transform: translateX(-50%); }
.compact-toggle { min-height: 40px; padding: 6px 16px; font-size: 1rem; }

/* Closed by the visitor (JS toggles) */
.compact.was-toggled .compact__lid, .compact.was-toggled .compact__room, .compact.was-toggled .hop { animation: none; }
.compact.was-toggled .compact__lid { transform: rotateX(0deg); transition: transform 1s cubic-bezier(.45, 0, .2, 1.15); }
.compact.was-toggled .compact__room { transition: transform .6s var(--ease-spring) .55s, opacity .3s .55s; }
.compact.was-toggled .hop { transition: transform .5s var(--ease-spring) .7s, opacity .3s .7s; }
.compact.is-closed .compact__lid { transform: rotateX(-180deg); transition-delay: .25s; }
.compact.is-closed .compact__room { transform: scale(.55) translateY(18%); opacity: 0; transition-delay: 0s; }
.compact.is-closed .hop { transform: translateY(40%) scale(.3); opacity: 0; transition-delay: 0s; }

@keyframes compact-drop { from { transform: translateY(-40px) scale(.9); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes lid-open { from { transform: rotateX(-180deg); } to { transform: rotateX(0deg); } }
@keyframes room-pop { from { transform: scale(.55) translateY(18%); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes hop-in { from { transform: translateY(60%) scale(.3); opacity: 0; } 50% { opacity: 1; transform: translateY(-18%) scale(1.05); } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: none; } 12% { transform: scale(1.06, .92); } 30% { transform: translateY(-14%) scale(.96, 1.05); } 48% { transform: none; } 56% { transform: scale(1.04, .95); } 64% { transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: 0; } 30% { transform: scale(1) rotate(45deg); opacity: 1; } 60% { transform: scale(.6) rotate(90deg); opacity: .5; } }
@keyframes shine { from { transform: translateX(-60%); } to { transform: translateX(0); } }
@keyframes drift { from { transform: translateX(-6%); } to { transform: translateX(8%); } }

/* ───────── Section shells ───────── */
.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head .tag { margin-bottom: 16px; }
.section-head h2, .h2 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: clamp(1.05rem, 2.3vw, 1.2rem); }
.tray { /* a big enamel panel with a white rim */
  margin-inline: clamp(8px, 2vw, 24px);
  border-radius: clamp(32px, 6vw, 64px);
  box-shadow: 0 0 0 6px #fff, var(--sticker-lg);
}

/* ───────── Worlds ───────── */
.worlds { --t1: #E9F8DF; --t2: #BEE8B0; --tink: var(--ink); --tink2: #3F5A3F; --rim: #58C27A; color: var(--tink); background: radial-gradient(120% 70% at 50% 0%, var(--t1), var(--t2)); transition: background-color .6s; }
.worlds .section-head p { color: var(--tink2); }
.worlds[data-world="clover"] { --t1: #EDFAE4; --t2: #BEE8B0; --tink2: #35513A; --rim: #58C27A; }
.worlds[data-world="sugar"] { --t1: #FFF0F7; --t2: #FFC9E0; --tink2: #6E3A55; --rim: #F08BB6; }
.worlds[data-world="lagoon"] { --t1: #E9FBFA; --t2: #A8E6EE; --tink2: #22535E; --rim: #3EB8C8; }
.worlds[data-world="moon"] { --t1: #4B3F99; --t2: #1E1A4F; --tink: #fff; --tink2: #DCD6FF; --rim: #8C7BFF; }
.worlds[data-world="frost"] { --t1: #F4F8FF; --t2: #C8DEF7; --tink2: #34506E; --rim: #8DB8E8; }
.worlds[data-world="ember"] { --t1: #FFF1DD; --t2: #FFC08F; --tink2: #6A3416; --rim: #E5603D; }
.worlds[data-world="greenhouse"] { --t1: #F3FAEC; --t2: #CFE6C2; --tink2: #3B5532; --rim: #7DA26A; }
.worlds[data-world="geode"] { --t1: #5A3F8C; --t2: #2B2346; --tink: #fff; --tink2: #E4D6FF; --rim: #B57BFF; }

.world-tabs { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 16px; margin: 0 auto 8px; max-width: 100%; scrollbar-width: none; justify-content: flex-start; }
.world-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .world-tabs { justify-content: center; } }
.world-tab { flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 86px; padding: 4px 2px 6px; border: 0; background: none; cursor: pointer; color: var(--tink); font-family: var(--display); font-weight: 600; font-size: .82rem; line-height: 1.1; text-align: center; border-radius: 18px; }
.locket { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(90% 90% at 30% 22%, rgba(255, 255, 255, .8) 0 16%, transparent 40%), linear-gradient(160deg, var(--l1), var(--l2)); box-shadow: 0 0 0 4px #fff, 0 8px 16px -6px rgb(var(--sh) / .5); transition: transform .35s var(--ease-spring), box-shadow .3s; }
.locket img { width: 46px; height: auto; transform: translateY(2px); }
.world-tab:hover .locket { transform: translateY(-4px) rotate(-6deg); }
.world-tab[aria-selected="true"] .locket { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--rim), 0 12px 22px -8px rgb(var(--sh) / .6); }
.world-tab[aria-selected="true"] .world-tab__name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.l-clover { --l1: #B8F0A8; --l2: #58C27A; }
.l-sugar { --l1: #FFD1E6; --l2: #FF8DBE; }
.l-lagoon { --l1: #A6F0F0; --l2: #3FB4D6; }
.l-moon { --l1: #8C7BFF; --l2: #3B2F8F; }
.l-frost { --l1: #E2F0FF; --l2: #8DB8E8; }
.l-ember { --l1: #FFC07A; --l2: #E5603D; }
.l-greenhouse { --l1: #DDEFD2; --l2: #7DA26A; }
.l-geode { --l1: #D7B8FF; --l2: #6A3FB5; }

.world-panels { display: grid; gap: 40px; }
.world-panel { display: grid; gap: 18px; align-items: center; justify-items: center; text-align: center; }
.world-panel[hidden] { display: none; }
.world-panel.is-shown { animation: panel-in .6s var(--ease-spring) both; }
.world-panel figure { margin: 0; width: min(100%, 560px); }
.world-panel figure img { width: 100%; filter: drop-shadow(0 22px 26px rgb(var(--sh) / .32)); }
.world-panel h3 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.world-panel .world-line { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--tink2); max-width: 30ch; margin: 0 auto 18px; }
.world-facts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; }
.world-facts li { background: #fff; color: var(--ink); border-radius: 16px; padding: 8px 14px; font-size: .95rem; box-shadow: var(--sticker); }
.world-facts b { font-family: var(--display); font-weight: 600; }
@media (min-width: 900px) {
  .world-panel { grid-template-columns: 1.15fr .85fr; text-align: left; justify-items: start; gap: 48px; }
  .world-panel .world-line { margin-left: 0; }
  .world-facts { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.96) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* ───────── Pips & rarity ladder ───────── */
.ladder { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 12px; max-width: 980px; margin: 0 auto; }
.ladder li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ladder img { width: 100%; max-width: 170px; border-radius: 14px; box-shadow: var(--sticker); transition: transform .35s var(--ease-spring); }
.ladder li:nth-child(odd) img { transform: rotate(-3deg); }
.ladder li:nth-child(even) img { transform: rotate(2.5deg); }
.ladder li:hover img { transform: translateY(-10px) rotate(0) scale(1.04); }
.rarity { font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 4px 12px; border-radius: 999px; border: 3px solid #fff; box-shadow: var(--sticker); color: #fff; background: var(--r); }
.r-common { --r: #5E8A6B; }
.r-uncommon { --r: #1E8A64; }
.r-rare { --r: #1F6FC4; }
.r-epic { --r: #8143D9; }
.r-legendary { --r: #A86100; }
.r-mythic { --r: linear-gradient(90deg, #E2458F, #8C5BFF, #1F8FD6); }
@media (min-width: 760px) {
  .ladder { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .ladder li { margin-inline: -6px; }
  .ladder li:nth-child(1) img { transform: rotate(-8deg) translateY(22px); }
  .ladder li:nth-child(2) img { transform: rotate(-5deg) translateY(8px); }
  .ladder li:nth-child(3) img { transform: rotate(-2deg); }
  .ladder li:nth-child(4) img { transform: rotate(2deg); }
  .ladder li:nth-child(5) img { transform: rotate(5deg) translateY(8px); }
  .ladder li:nth-child(6) img { transform: rotate(8deg) translateY(22px); }
  .ladder li:hover img { transform: translateY(-14px) rotate(0) scale(1.06); }
  .ladder .rarity { margin-top: 26px; }
}
.ladder-arrow { text-align: center; font-family: var(--display); font-weight: 600; color: var(--ink-2); margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ladder-arrow::before, .ladder-arrow::after { content: ""; height: 3px; width: min(18vw, 160px); border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 8px, transparent 8px 14px); opacity: .5; }

.pip-facts { display: grid; gap: 16px; margin-top: clamp(36px, 6vw, 64px); }
@media (min-width: 960px) { .pip-facts { grid-template-columns: repeat(3, 1fr); } }
.note-card { position: relative; background: #fff; border-radius: 26px; padding: 22px 22px 20px; box-shadow: var(--sticker); }
.note-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.note-card p { color: var(--ink-2); }
.note-card .num { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--pink-deep); display: block; margin-bottom: 6px; }
.note-card--sparkle { background: linear-gradient(135deg, #FFF8D6, #FFE3F1 50%, #E2F1FF); overflow: hidden; }
.note-card--sparkle::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .8) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1s var(--ease-out); pointer-events: none; }
.note-card--sparkle:hover::after { transform: translateX(100%); }
.sparkle-pair { display: flex; gap: 10px; margin-bottom: 12px; }
.sparkle-pair img { width: 104px; border-radius: 8px; box-shadow: var(--sticker); }
.sparkle-pair img + img { transform: rotate(4deg); }

/* ───────── Packs ───────── */
.packs .wrap { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .packs .wrap { grid-template-columns: 1fr 1fr; } }
.packs-copy .tag { margin-bottom: 16px; }
.packs-copy h2 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); margin-bottom: 14px; }
.packs-copy > p { color: var(--ink-2); font-size: clamp(1.05rem, 2.3vw, 1.2rem); margin-bottom: 24px; }
.points { list-style: none; display: grid; gap: 12px; }
@media (min-width: 560px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: var(--sticker); }
.points h3 { font-size: 1.18rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.points p { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--c, var(--pink)); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.c-mint { --c: var(--mint); }
.c-butter { --c: var(--butter); }
.c-sky { --c: #5DB6FF; }
.c-lilac { --c: var(--lilac); }

.pack-col { display: grid; justify-items: center; gap: 8px; }
.pack-stage { position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1 / 1.16; }
.pack-stage::before { content: ""; position: absolute; inset: 8% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 212, 94, .55), rgba(255, 212, 94, 0)); }
.pack { position: absolute; width: 40%; left: 30%; bottom: 10%; aspect-ratio: 400 / 606; z-index: 3; }
.pack img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pack__top { clip-path: inset(0 0 84% 0); z-index: 2; transition: transform .7s var(--ease-out), opacity .5s .2s; }
.pack__body { clip-path: inset(16% 0 0 0); transition: transform .8s var(--ease-out) .5s, opacity .6s .5s; }
.pack::after { /* the glowing tear line */ content: ""; position: absolute; left: 6%; right: 6%; top: 15.5%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, #fff 20%, #FFF3B0 50%, #fff 80%, transparent); box-shadow: 0 0 14px 4px rgba(255, 240, 160, .9); opacity: 0; z-index: 3; }
.pack-cards { list-style: none; position: absolute; inset: 0; z-index: 2; }
.flip { position: absolute; width: 34%; left: 33%; top: 15%; aspect-ratio: 340 / 475; perspective: 900px; transition: transform .9s var(--ease-spring); transition-delay: calc(.75s + var(--i) * .08s); transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease-out); transition-delay: calc(1.5s + var(--i) * .16s); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 9%; }
.flip__face img { width: 100%; height: 100%; border-radius: 7%; filter: drop-shadow(0 10px 12px rgb(var(--sh) / .3)); }
.flip__back { transform: rotateY(180deg); }
.f1 { --i: 0; --x: -92%; --y: 14%; --r: -16deg; }
.f2 { --i: 1; --x: -48%; --y: 2%; --r: -8deg; }
.f3 { --i: 2; --x: 0%; --y: -3%; --r: 0deg; }
.f4 { --i: 3; --x: 48%; --y: 2%; --r: 8deg; }
.f5 { --i: 4; --x: 92%; --y: 14%; --r: 16deg; }
/* closed state, before the pack scrolls into view (nojs.css shows it open) */
.pack-stage:not(.is-open) .flip { transform: translate(0, 62%) rotate(0); transition-delay: 0s; transition-duration: .35s; }
.pack-stage:not(.is-open) .flip__inner { transform: rotateY(180deg); transition-delay: 0s; transition-duration: .2s; }
.pack-stage:not(.is-open) .pack__body { transition-delay: 0s; }
.pack-stage:not(.is-open) .pack__top { transition: none; }
.pack-stage:not(.is-open) .pack::after { animation: none; }
.pack-stage.is-open .pack::after { animation: tear .7s ease-out both; }
.pack-stage.is-open .pack__top { transform: translate(30%, -120%) rotate(22deg); opacity: 0; }
.pack-stage.is-open .pack__body { transform: translateY(16%) scale(.9); }
.pack-replay { opacity: 0; transition: opacity .4s 2.6s; white-space: nowrap; }
.pack-stage.is-open + .pack-replay { opacity: 1; }
.pack-replay { min-height: 44px; padding: 8px 18px; font-size: 1.02rem; }
@keyframes tear { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 40% { opacity: 1; clip-path: inset(0 0 0 0); } 100% { opacity: 0; } }

/* ───────── Care & decorate ───────── */
.care { overflow: clip; }
.care .wrap { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .care .wrap { grid-template-columns: .8fr 1.2fr; } }
.phone { position: relative; width: min(74vw, 320px); margin-inline: auto; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #FFFFFF, #F1E6D6); box-shadow: 0 0 0 2px rgba(0, 0, 0, .05), var(--sticker-lg); transform: rotate(-3deg); }
.phone img { border-radius: 37px; width: 100%; }
.phone-wrap { position: relative; }
.phone-wrap .pip-peek { position: absolute; width: 30%; max-width: 110px; right: 2%; bottom: -4%; transform: rotate(8deg); z-index: 2; }
.care-copy h2 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); margin-bottom: 14px; }
.care-copy .tag { margin-bottom: 16px; }
.care-copy > p { color: var(--ink-2); font-size: clamp(1.05rem, 2.3vw, 1.2rem); margin-bottom: 22px; }
.care-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
@media (min-width: 640px) { .care-grid { grid-template-columns: repeat(4, 1fr); } }
.care-grid li { background: #fff; border-radius: 22px; padding: 14px 12px 12px; text-align: center; box-shadow: var(--sticker); }
.care-grid svg { width: 44px; height: 44px; margin: 0 auto 6px; display: block; }
.care-grid b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; display: block; }
.care-grid span { font-size: .9rem; color: var(--ink-2); line-height: 1.35; display: block; }
.care-copy h3 { font-size: 1.5rem; margin-bottom: 8px; }
.care-copy h3 + p { color: var(--ink-2); margin-bottom: 14px; }
.stations { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.stations li { font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 6px 12px; border-radius: 12px; background: linear-gradient(160deg, var(--l1), var(--l2)); color: var(--ink); border: 3px solid #fff; box-shadow: var(--sticker); }
.stations li.l-moon, .stations li.l-geode, .stations li.l-ember { color: #fff; }
.stations li:nth-child(odd) { transform: rotate(-2deg); }
.stations li:nth-child(even) { transform: rotate(1.5deg); }

/* ───────── Adventures (night tray) ───────── */
.adventures { color: #fff; background:
  radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .9) 1px, transparent 2px) 0 0 / 120px 120px,
  radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .7) 1px, transparent 2px) 0 0 / 90px 90px,
  radial-gradient(120% 80% at 50% 0%, #34477A 0%, #23304F 55%, #1A2440 100%); }
.adventures .section-head p { color: #D8DEF5; }
.adventures .tag { color: var(--ink); }
.battle { position: relative; display: grid; grid-template-columns: 1.7fr auto 1fr; align-items: end; gap: 6px; max-width: 820px; margin: 0 auto clamp(32px, 5vw, 56px); }
.team { display: flex; align-items: flex-end; justify-content: center; }
.team img { width: 36%; max-width: 170px; margin-inline: -4%; animation: bob 2.8s ease-in-out infinite; }
.team img:nth-child(2) { animation-delay: .4s; transform-origin: 50% 100%; }
.team img:nth-child(3) { animation-delay: .8s; }
.vs { align-self: center; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 3vw, 1.4rem); background: var(--butter); color: var(--ink); border: 3px solid #fff; border-radius: 999px; padding: 6px 12px; transform: rotate(-6deg); box-shadow: var(--sticker); }
.grumbly { position: relative; width: min(100%, 190px); justify-self: center; }
.grumbly img { width: 100%; }
.grumbly .happy { position: absolute; inset: 0; opacity: 0; animation: cheer-up 6s ease-in-out infinite; }
.grumbly .sulky { animation: cheer-down 6s ease-in-out infinite; }
.hearts { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.hearts i { position: absolute; width: 18px; height: 16px; background: #FF8DBE; clip-path: path("M9 16 C9 16 0 10 0 4.5 C0 1.8 2 0 4.5 0 C6.5 0 8 1.2 9 3 C10 1.2 11.5 0 13.5 0 C16 0 18 1.8 18 4.5 C18 10 9 16 9 16 Z"); opacity: 0; animation: heart 6s ease-out infinite; }
.hearts i:nth-child(2) { left: -30px; animation-delay: .25s; background: #FFD45E; }
.hearts i:nth-child(3) { left: 24px; animation-delay: .5s; }
@media (max-width: 640px) {
  .battle { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .team { grid-column: 1 / -1; }
  .team img { width: 34%; }
  .vs { justify-self: end; margin-right: 10px; }
  .grumbly { justify-self: start; width: 140px; }
}
.battle-caption { grid-column: 1 / -1; text-align: center; font-weight: 800; color: #FFE7A3; margin-top: 10px; }
@keyframes cheer-up { 0%, 45% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cheer-down { 0%, 45% { opacity: 1; } 55%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes heart { 0%, 50% { opacity: 0; transform: translate(-50%, 0) scale(.4); } 58% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, -70px) scale(1); } 100% { opacity: 0; } }

.adv-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } .adv-card--wide { grid-column: span 2; } }
.adv-card { background: #fff; color: var(--ink); border-radius: 26px; padding: 22px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 18px 34px -16px rgba(0, 0, 0, .6); }
.adv-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.adv-card p { color: var(--ink-2); }
.adv-card .big { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--night); margin-bottom: 8px; display: block; }
.diffs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.diffs li { font-family: var(--display); font-weight: 600; color: #fff; padding: 4px 12px; border-radius: 999px; border: 3px solid #fff; box-shadow: var(--sticker); background: var(--d); }
.d-cozy { --d: #1E8A64; }
.d-brave { --d: #1F6FC4; }
.d-fierce { --d: #8143D9; }
.d-legend { --d: #A86100; }
.branches { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.procs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.procs li { font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 5px 12px; border-radius: 999px; color: var(--ink); background: linear-gradient(135deg, #FFF3C9, #FFE0EF); box-shadow: inset 0 0 0 2px rgba(255, 168, 31, .35); }
.branches li { font-family: var(--display); font-weight: 600; padding: 4px 12px; border-radius: 12px; background: var(--linen); }

.clock { margin-top: 14px; }
.clock-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 30px; padding: 3px; background: var(--linen); border-radius: 12px; }
.clock-strip span { border-radius: 4px; background: var(--d); position: relative; }
.clock-strip span.is-now { box-shadow: 0 0 0 2px var(--ink); z-index: 1; transform: scaleY(1.25); border-radius: 3px; }
.h-dew { --d: #5DB6FF; }
.h-vault { --d: #FFB13B; }
.h-sanctum { --d: #2FC08F; }
.h-rift { --d: #A35BFF; }
.clock-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-2); font-weight: 800; padding: 4px 2px 0; }
.dungeons { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
@media (min-width: 560px) { .dungeons { grid-template-columns: 1fr 1fr; } }
.dungeons li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: start; font-size: .95rem; line-height: 1.35; }
.dungeons li > i { width: 16px; height: 16px; border-radius: 5px; background: var(--d); margin-top: 3px; grid-row: span 3; }
.dungeons b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.dungeons small { color: var(--ink-2); font-size: .88rem; }
.dungeons li.is-open b::after { content: "Open now"; margin-left: 8px; font-family: var(--body); font-weight: 800; font-size: .72rem; vertical-align: 2px; background: var(--mint); color: var(--ink); border-radius: 999px; padding: 2px 8px; }

.more-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.more-strip li { list-style: none; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .35); color: #fff; padding: 10px 16px; border-radius: 18px; font-weight: 800; }
.more-strip b { font-family: var(--display); font-weight: 600; color: #FFE7A3; margin-right: 6px; }

/* ───────── Devices ───────── */
.devices .wrap { display: grid; gap: clamp(32px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .devices .wrap { grid-template-columns: 1.1fr .9fr; } }
.device-art { position: relative; padding-bottom: 8%; }
.tablet { width: 86%; border-radius: 30px; padding: 10px; background: linear-gradient(160deg, #fff, #EFE4D3); box-shadow: var(--sticker-lg); transform: rotate(-2deg); }
.tablet img { border-radius: 22px; width: 100%; }
.device-art .phone { position: absolute; right: 0; bottom: 0; width: 34%; border-radius: 26px; padding: 6px; transform: rotate(5deg); }
.device-art .phone img { border-radius: 21px; }
.postures { list-style: none; display: grid; gap: 12px; margin: 22px 0; counter-reset: p; }
.postures li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; background: #fff; padding: 12px 16px 12px 12px; border-radius: 22px; box-shadow: var(--sticker); }
.postures svg { width: 56px; height: 56px; }
.postures b { font-family: var(--display); font-weight: 600; font-size: 1.12rem; display: block; }
.postures span { color: var(--ink-2); font-size: .97rem; line-height: 1.45; display: block; }
.devices-copy h2 { font-size: clamp(2.1rem, 6.4vw, 3.4rem); margin-bottom: 14px; }
.devices-copy .tag { margin-bottom: 16px; }
.devices-copy > p { color: var(--ink-2); font-size: clamp(1.05rem, 2.3vw, 1.2rem); }

/* ───────── FAQ ───────── */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { background: #fff; border-radius: 22px; box-shadow: var(--sticker); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 58px 18px 22px; font-family: var(--display); font-weight: 600; font-size: 1.18rem; position: relative; border-radius: 22px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--linen) no-repeat center / 14px 14px; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 12px 3px, 3px 12px; transition: transform .3s var(--ease-spring), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: #FFD6E6; }
.faq-list details > div { padding: 0 22px 20px; color: var(--ink-2); }
.faq-list details > div p + p { margin-top: 10px; }
.faq-more { text-align: center; margin-top: 24px; font-weight: 800; }
.more-link { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
.adventures .more-link .btn--ghost { box-shadow: 0 5px 0 #B9C3E0, 0 18px 34px -16px rgba(0, 0, 0, .6); }

/* ───────── CTA ───────── */
.cta { text-align: center; color: var(--ink); background:
  radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, .6), transparent 50%),
  linear-gradient(160deg, #FFD1E6, #FF9CC4 60%, #FF8DBE); overflow: hidden; position: relative; }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.3rem, 7vw, 4.2rem); margin-bottom: 12px; }
.cta p { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 36ch; margin: 0 auto 26px; color: #4A2440; }
.cta .badges { justify-content: center; }
.cta-medallion { width: 120px; margin: 0 auto 18px; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--sticker-lg); animation: bob 3s ease-in-out infinite; }
.cta-pips img { position: absolute; width: clamp(64px, 12vw, 130px); z-index: 1; }
.cta-pips .cp1 { left: 3%; bottom: 8%; transform: rotate(-8deg); }
.cta-pips .cp2 { right: 4%; top: 10%; transform: rotate(10deg); }
.cta-pips .cp3 { right: 8%; bottom: 6%; transform: rotate(-4deg); }
.cta-pips .cp4 { left: 6%; top: 12%; transform: rotate(6deg); }
@media (max-width: 700px) { .cta-pips .cp2, .cta-pips .cp4 { display: none; } .cta-pips img { width: 64px; } .cta { padding-bottom: 110px; } }

/* ───────── Footer ───────── */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 40px; color: var(--ink-2); }
.foot { display: grid; gap: 28px; }
@media (min-width: 860px) { .foot { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
@media (min-width: 560px) and (max-width: 859px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }
.foot .brand { margin-bottom: 10px; }
.foot p { max-width: 34ch; }
.foot h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { color: var(--ink); font-weight: 800; text-decoration: none; }
.foot a:hover { color: var(--link); text-decoration: underline; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 2px dashed rgba(43, 30, 58, .15); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; font-size: .92rem; }

/* ───────── Document pages (support, privacy, terms, delete) ───────── */
.doc-hero { text-align: center; padding: clamp(20px, 5vw, 48px) 0 clamp(24px, 4vw, 36px); position: relative; }
.doc-hero .tag { margin-bottom: 16px; }
.doc-hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); margin-bottom: 12px; }
.doc-hero p { color: var(--ink-2); font-size: clamp(1.05rem, 2.4vw, 1.22rem); max-width: 46ch; margin: 0 auto; }
.doc-hero .meta { margin-top: 12px; font-weight: 800; font-size: .95rem; }
.doc-hero .doc-pip { width: 92px; margin: 0 auto 10px; animation: bob 3s ease-in-out infinite; }
.doc { padding-bottom: 24px; }
.doc-card { background: var(--paper); border-radius: clamp(26px, 4vw, 40px); padding: clamp(22px, 5vw, 56px); box-shadow: 0 0 0 6px #fff, var(--sticker-lg); max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 38px 0 12px; scroll-margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--pink-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px dashed rgba(43, 30, 58, .12); }
.prose th { font-family: var(--display); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.glance { list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 0 0 30px !important; }
@media (min-width: 640px) { .glance { grid-template-columns: 1fr 1fr; } }
.glance li { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: var(--sticker); margin: 0; }
.glance b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.glance span { color: var(--ink-2); font-size: .97rem; }
.callout { background: #FFF3C9; border-radius: 20px; padding: 16px 18px; margin: 18px 0; border: 3px solid #fff; box-shadow: var(--sticker); }
.callout p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: #fff; border-radius: 20px; padding: 14px 16px 14px 64px; box-shadow: var(--sticker); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: var(--pink-deep); border: 3px solid #fff; box-shadow: var(--sticker); }
.path { font-family: var(--display); font-weight: 600; background: #fff; border-radius: 8px; padding: 1px 8px; box-shadow: inset 0 0 0 2px var(--line); white-space: nowrap; }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-cards a { display: block; background: #fff; border-radius: 20px; padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--sticker); transition: transform .25s var(--ease-spring); }
.contact-cards a:hover { transform: translateY(-3px) rotate(-1deg); color: var(--ink); }
.contact-cards b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.contact-cards span { color: var(--link); font-weight: 800; word-break: break-word; }
.toc { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px !important; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--sticker); text-decoration: none; color: var(--ink); font-weight: 800; font-size: .92rem; }
.toc a:hover { color: var(--link); }
.support-faq h2 { margin-top: 36px; }
.support-faq .faq-list { max-width: none; }

/* 404 */
.lost { text-align: center; padding: clamp(24px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.lost .grumbly { margin: 0 auto 18px; width: 170px; }
.lost h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); margin-bottom: 12px; }
.lost p { color: var(--ink-2); font-size: 1.15rem; max-width: 38ch; margin: 0 auto 26px; }
.lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ───────── Meet Tip ───────── */
.tip { background: radial-gradient(110% 80% at 30% 20%, #FFF1E4, #FFD9C2); }
.tip .wrap { display: grid; gap: clamp(20px, 5vw, 56px); align-items: center; }
.tip-art { text-align: center; }
.tip-art img { width: min(64vw, 360px); height: auto; margin-inline: auto; filter: drop-shadow(0 18px 22px rgb(var(--sh) / .3)); animation: tip-bob 3.2s ease-in-out infinite; }
@keyframes tip-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.tip-copy .tag { margin-bottom: 16px; }
.tip-copy h2 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 14px; color: #C2410C; }
.tip-copy > p { color: var(--ink-2); font-size: clamp(1.05rem, 2.3vw, 1.25rem); margin-bottom: 18px; }
.tip-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tip-facts li { background: #fff; border-radius: 16px; padding: 8px 14px; box-shadow: var(--sticker); font-weight: 700; }
.tip-facts b { display: block; font-family: var(--display); color: #C2410C; font-size: .85rem; }
@media (min-width: 860px) { .tip .wrap { grid-template-columns: .9fr 1.1fr; } }

/* ───────── Screenshot gallery ───────── */
.gallery { background: linear-gradient(180deg, var(--paper), var(--linen)); }
.shots { list-style: none; margin: 0; padding: 12px var(--gutter) 28px; display: flex; gap: clamp(16px, 3vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.shots .shot { flex: none; width: min(62vw, 240px); scroll-snap-align: start; text-align: center; }
.shots .shot b { display: block; font-family: var(--display); font-size: 1.25rem; margin-top: 14px; }
.shots .shot span { color: var(--ink-2); font-size: .95rem; }
.phone--flat { width: 100%; transform: none; border-radius: 34px; padding: 8px; }
.phone--flat img { border-radius: 27px; }
@media (min-width: 1280px) { .shots { justify-content: center; } }

.nap-note { background: #fff; border-radius: 18px; padding: 12px 16px; margin: 4px 0 18px; box-shadow: var(--sticker); color: var(--ink-2); }
.nap-note b { color: var(--ink); }

/* ───────── Pip page (hub) ───────── */
.pip-page { background: radial-gradient(120% 80% at 50% 0%, #FFF0F6, #FFD9E8); }
.pip-page-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.pip-page-phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 24px); }
.pip-page-phones .phone { width: min(44vw, 260px); margin: 0; border-radius: clamp(28px, 6vw, 40px); padding: clamp(6px, 1.4vw, 9px); }
.pip-page-phones .phone img { border-radius: clamp(22px, 4.8vw, 32px); }
.pip-page-phones .phone:nth-child(2) { margin-top: 48px; transform: rotate(3deg); }
@media (min-width: 760px) { .pip-page .craft-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pip-page-grid { grid-template-columns: 1fr 1.1fr; } }

/* ───────── Crafting ───────── */
.craft { background: radial-gradient(120% 80% at 50% 0%, #F3EDFF, #DCCEFF); }
.craft-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.craft-cards { display: grid; gap: 14px; }
.feature-card { background: #fff; border-radius: 24px; padding: 20px 22px; box-shadow: var(--sticker); }
.feature-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature-card p { color: var(--ink-2); }
.feature-card .small { font-size: .92rem; margin-top: 10px; }
.plus-track { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plus-track li { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; background: #7B5CE0; border: 3px solid #fff; border-radius: 16px; padding: 6px 12px; box-shadow: var(--sticker); }
.plus-track li span { font-family: var(--body); font-weight: 800; font-size: .85rem; opacity: .9; margin-left: 4px; }
.plus-track li.plus-sun { background: linear-gradient(135deg, #FFB13B, #FF7A1F); }
@media (min-width: 760px) { .craft-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .craft-grid { grid-template-columns: .7fr 1.3fr; } }

/* ───────── Auction House ───────── */
.market { color: var(--ink); background: radial-gradient(120% 80% at 50% 0%, #FFF6DA, #FFE19A); }
.market-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.checks li { background: #fff; border-radius: 18px; padding: 14px 16px 14px 50px; position: relative; box-shadow: var(--sticker); color: var(--ink-2); }
.checks li::before { content: "\2713"; position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-weight: 900; }
.checks b { color: var(--ink); }
.soon-card { background: linear-gradient(135deg, #FFE3EF, #FFF); border: 3px dashed var(--pink); border-radius: 24px; padding: 20px 22px; }
.soon-card .tag { margin-bottom: 10px; }
.soon-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.soon-card p { color: var(--ink-2); }
@media (min-width: 960px) { .market-grid { grid-template-columns: .7fr 1.3fr; } }

/* ───────── Leaderboards ───────── */
.boards { background: radial-gradient(120% 80% at 50% 0%, #EAFBF0, #BFEFD0); }
.boards .wrap { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.boards-copy .tag { margin-bottom: 16px; }
.boards-copy h2 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); margin-bottom: 14px; }
.boards-copy > p { color: var(--ink-2); font-size: clamp(1.05rem, 2.3vw, 1.2rem); margin-bottom: 18px; }
.board-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.board-list li { background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; box-shadow: var(--sticker); }
@media (min-width: 960px) { .boards .wrap { grid-template-columns: 1.2fr .8fr; } }

/* ───────── Motion preferences ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grumbly .happy { opacity: 1; animation: none !important; }
  .grumbly .sulky { opacity: 0; animation: none !important; }
  .hearts { display: none; }
  .sparkle { display: none; }
  .tip-art img { animation: none; }
}

/* 404: sulky until you hover (or focus the way home) */
.lost .grumbly .sulky, .lost .grumbly .happy { animation: none; transition: opacity .4s; }
.lost .grumbly .happy { opacity: 0; }
.lost:hover .grumbly .happy, .lost:focus-within .grumbly .happy { opacity: 1; }
.lost:hover .grumbly .sulky, .lost:focus-within .grumbly .sulky { opacity: 0; }

/* Trailer: a poster that swaps to YouTube's privacy-enhanced player on click
   (nothing loads from YouTube until then). */
.trailer { padding-top: clamp(24px, 4vw, 48px); }
.trailer-frame { position: relative; max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #FFE3EE; border: 6px solid #fff; box-shadow: var(--sticker), 0 24px 60px rgba(80, 50, 90, .18); transform: rotate(-.6deg); }
.trailer-play { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.trailer-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-spring), filter .3s; }
.trailer-play:hover img { transform: scale(1.03); filter: saturate(1.08); }
.trailer-btn { position: absolute; left: 50%; top: 50%; width: clamp(72px, 12vw, 112px); aspect-ratio: 1; margin: calc(clamp(72px, 12vw, 112px) / -2) 0 0 calc(clamp(72px, 12vw, 112px) / -2); border-radius: 50%; border: 5px solid #fff; background: linear-gradient(180deg, var(--pink-hi) 0%, var(--pink) 40%, var(--pink-deep) 100%); box-shadow: 0 6px 0 #A61F52, 0 16px 40px rgba(120, 10, 50, .35); transition: transform .25s var(--ease-spring); }
.trailer-btn::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent #fff; }
.trailer-play:hover .trailer-btn, .trailer-play:focus-visible .trailer-btn { transform: scale(1.1); }
.trailer-note { position: absolute; right: 14px; bottom: 12px; font-weight: 800; font-size: .85rem; background: rgba(43, 30, 58, .72); padding: 4px 12px; border-radius: 999px; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .trailer-frame { transform: none; } .trailer-play img, .trailer-btn { transition: none; } }

/* Guides, press kit and the /get/ link page */
.doc .more-cards { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 760px) { .doc .more-cards { grid-template-columns: repeat(3, 1fr); } }
.doc .more-card, .guide-card { display: block; background: #fff; border-radius: 24px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: var(--sticker); transition: transform .25s var(--ease-spring); }
.doc .more-card:hover, .guide-card:hover { color: var(--ink); transform: translateY(-3px) rotate(-1deg); }
.doc .more-card b, .guide-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.doc .more-card span, .guide-card span { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.guide-cards { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 640px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
.guide-card { text-align: center; padding: 22px 20px; }
.guide-card img { width: 84px; height: auto; margin: 0 auto 8px; }
.press-shots { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 20px; }
@media (min-width: 760px) { .press-shots { grid-template-columns: repeat(4, 1fr); } }
.press-shots img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 4px #fff, var(--sticker); }
.get-card { text-align: center; max-width: 560px; }
.get-card .badges { justify-content: center; }
.get-note { margin-top: 16px; font-weight: 800; }
