/* Truth or Dare · by Partybus — website styles.
   Style B: deep purple, flat pastel tiles with a darker bottom "lip",
   cream stickers with ink outlines. Flat: no glow, no neon, no gradients. */

:root {
  --ink: #1a0b2e;
  --bg: #1d0b38;
  --bg-deep: #140726;
  --surface: #2a1450;
  --surface-hi: #351b63;
  --surface-lip: #1a0b33;
  --line: rgba(255, 255, 255, 0.12);
  --cream: #fff4e3;
  --text: #ffffff;
  --text-dim: #d4c6f0;

  --lilac: #c9a8ff; --lilac-lip: #a483e6;
  --pink: #ff5fa2;  --pink-lip: #d93f82;
  --mint: #8ff0c4;  --mint-lip: #5fcf9f;
  --peach: #ffbe7a; --peach-lip: #e8975a;
  --yellow: #ffe27a; --yellow-lip: #e3bd45;
  --sky: #9fd3ff;   --sky-lip: #6fb0e6;
  --coral: #ff8a7a; --coral-lip: #e3624f;

  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --f-body: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 26px;
  --lip: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.45;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 800;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-deep); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-family: var(--f-body); font-size: .8rem; letter-spacing: .04em; color: var(--text-dim); text-transform: none; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }

/* ---------- Tiles & buttons ---------- */
.tile {
  --fill: var(--surface); --lip-c: var(--surface-lip);
  background: var(--fill); color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 var(--lip) 0 var(--lip-c);
  padding: 22px;
}
.tile.surface { color: var(--text); }
.t-lilac { --fill: var(--lilac); --lip-c: var(--lilac-lip); }
.t-pink { --fill: var(--pink); --lip-c: var(--pink-lip); }
.t-mint { --fill: var(--mint); --lip-c: var(--mint-lip); }
.t-peach { --fill: var(--peach); --lip-c: var(--peach-lip); }
.t-yellow { --fill: var(--yellow); --lip-c: var(--yellow-lip); }
.t-sky { --fill: var(--sky); --lip-c: var(--sky-lip); }
.t-coral { --fill: var(--coral); --lip-c: var(--coral-lip); }
.t-cream { --fill: var(--cream); --lip-c: #d9c7ab; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fill, var(--cream)); color: var(--ink);
  border-radius: var(--r-md); box-shadow: 0 5px 0 var(--lip-c, #d9c7ab);
  padding: 12px 20px 11px; text-decoration: none; line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease;
  border: 0; font: inherit; cursor: pointer;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 0 var(--lip-c, #d9c7ab); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip-c, #d9c7ab); }
.btn small { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.btn strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; }
.btn svg { width: 26px; height: 26px; flex: none; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.tag {
  display: inline-block; font-family: var(--f-display); font-weight: 400; letter-spacing: .05em;
  font-size: .85rem; line-height: 1; padding: 5px 8px 4px; border-radius: 8px;
  background: var(--ink); color: var(--cream);
}
.tag.free { background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--f-display); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); font-size: 1rem; margin-bottom: 8px; }
.lede { color: var(--text-dim); font-size: 1.3rem; max-width: 40em; }
.section-head { max-width: 46rem; margin-bottom: 32px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero-logo { width: min(300px, 58vw); margin: 0 0 18px -8px; }
.hero h1 { max-width: 14em; }
.hero .lede { margin-bottom: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--text-dim); font-size: 1.05rem; list-style: none; padding: 0; }
.hero-meta li::before { content: "★"; color: var(--yellow); margin-right: 6px; }

/* ---------- Card demo: deal + flip like the app ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; }
.deck { position: relative; width: min(290px, 74vw); aspect-ratio: 5 / 7; perspective: 1200px; }
.deck-pile, .deck::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-xl); }
.deck::before { background: var(--surface-hi); box-shadow: 0 var(--lip) 0 var(--surface-lip); transform: rotate(-7deg) translate(-10px, 8px); }
.deck-pile { background: var(--surface); box-shadow: 0 var(--lip) 0 var(--surface-lip); transform: rotate(5deg) translate(10px, 6px); }
.slot { position: absolute; inset: 0; z-index: 1; transition: transform .38s cubic-bezier(.2, .9, .3, 1.15), opacity .38s ease; }
.slot.toss { transform: translate(-115%, -6%) rotate(-24deg); opacity: 0; transition-timing-function: cubic-bezier(.5, 0, .9, .5); }
.slot.from-deck { transform: translate(4%, 6%) rotate(5deg) scale(.96); }
.slot.no-anim, .slot.no-anim .flip { transition: none !important; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.3, 1.35, .5, 1); }
.flip.is-down { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--r-xl); box-shadow: 0 var(--lip) 0 var(--lip-c);
  background: var(--fill); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; padding: 26px 22px 24px;
}
.face.back { transform: rotateY(180deg); --fill: var(--cream); --lip-c: #d9c7ab; justify-content: center; gap: 12px; }
.face.back img { width: 46%; }
.face.back span { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: .04em; }
.face .kind { font-family: var(--f-display); font-size: clamp(2.6rem, 9vw, 3.4rem); line-height: 1; letter-spacing: .02em; }
.face .text { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.2rem, 4.4vw, 1.5rem); line-height: 1.18; margin: 0; }
.face .meta { display: flex; gap: 8px; align-items: center; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.face .meta img { width: 30px; height: 30px; }
.demo-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.demo-controls .btn { padding: 10px 16px 9px; font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; }
.demo-note { color: var(--text-dim); font-size: .95rem; margin: 0; text-align: center; max-width: 22em; }

/* Gentle idle wobble for stickers (decorative only). */
@keyframes wobble { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.04); } }
.wobble { animation: wobble 2.2s ease-in-out infinite; display: inline-block; }
.wobble.d1 { animation-delay: .3s; } .wobble.d2 { animation-delay: .6s; } .wobble.d3 { animation-delay: .9s; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.modes { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mode img { width: 76px; height: 76px; margin-bottom: 12px; }
.mode h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 6px; }
.mode p { margin: 0; font-size: 1.1rem; }

.audience { margin-top: 36px; }
.audience h3 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin-bottom: 18px; }
.themes { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
@media (min-width: 560px) { .themes { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.theme { position: relative; padding: 16px 14px 14px; display: flex; flex-direction: column; min-height: 196px; }
.theme img { width: 64px; height: 64px; margin-bottom: auto; }
.theme .name { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.05; letter-spacing: .03em; text-transform: uppercase; margin: 12px 0 4px; }
.theme .tagline { font-size: 1rem; line-height: 1.25; margin: 0; }
.theme .tags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }

/* ---------- Feature rows ---------- */
.feature .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .feature .wrap { grid-template-columns: 1fr 1fr; } .feature.flip-side .wrap > :first-child { order: 2; } }
.bubble-stack { display: grid; gap: 16px; }
.bubble { display: flex; gap: 14px; align-items: center; }
.bubble img { width: 58px; height: 58px; flex: none; }
.bubble p { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; color: var(--text-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%231a0b2e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks strong { color: var(--text); }

.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.lang-tile { display: flex; align-items: center; gap: 14px; padding: 12px 16px 11px; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.lang-tile img { width: 50px; height: auto; flex: none; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.lang-tile:hover img { transform: rotate(-8deg) scale(1.12); }

.safety { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.safety .tile img { width: 64px; height: 64px; margin-bottom: 10px; }
.safety h3 { margin-bottom: 6px; }
.safety p { margin: 0; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.chips li { background: var(--ink); color: var(--cream); border-radius: 999px; padding: 3px 10px; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 52rem; }
.faq details { background: var(--surface); border-radius: var(--r-md); box-shadow: 0 5px 0 var(--surface-lip); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; position: relative;
  font-family: var(--f-head); font-weight: 800; font-size: 1.2rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 8px; background: var(--lilac); color: var(--ink);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; background: var(--yellow); }
.faq .answer { padding: 0 20px 18px; color: var(--text-dim); }
.faq .answer p:last-child, .faq .answer ol:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .tile { padding: 40px 22px; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 18em; }
.cta .store-row { justify-content: center; }
.cta .btn { --fill: var(--ink); --lip-c: #0b0414; color: var(--cream); }
.cta .btn:hover { color: var(--cream); }

/* ---------- Prose (support + legal) ---------- */
.page-head { padding: 48px 0 8px; }
.page-head .lede { margin-bottom: 0; }
.prose { max-width: 46rem; padding-bottom: 72px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-dim); font-weight: 600; }
.prose strong { color: var(--text); }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose .updated { display: inline-block; background: var(--surface); padding: 6px 12px; border-radius: 10px; font-size: 1rem; color: var(--text); }
.legal p, .legal li { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400; font-size: 1.02rem; line-height: 1.6; }
.cards2 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 24px 0; }
.cards2 .tile h3 { margin-top: 0; }
.cards2 .tile ol { color: var(--ink); padding-left: 1.2em; margin: 0; }
.cards2 .tile li { color: var(--ink); font-weight: 700; }
.contact-tile { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin: 24px 0; }
.contact-tile p { margin: 0; color: var(--ink); }
.contact-tile a.btn { --fill: var(--ink); --lip-c: #0b0414; color: var(--cream); font-family: var(--f-head); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 1.05rem; }
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--f-display); font-weight: 400; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: .95rem; }

/* ---------- Living background (port of src/components/LivingBackground.tsx) ----------
   Fixed layer behind every section: the app's soft vertical shade, two big very faint pastel
   blobs that drift, and faint outline doodles that float and rotate. Transform/opacity only. */
.living-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--bg) 40%, var(--bg-deep) 100%); }
.lb-blob { position: absolute; border-radius: 50%; opacity: .06; will-change: transform; }
.lb-pink { background: var(--pink); width: 110vmax; height: 110vmax; left: -55vmax; top: 8vh; animation: blob 16s ease-in-out infinite alternate; }
.lb-lilac { background: var(--lilac); width: 120vmax; height: 120vmax; left: 45vw; top: 55vh; animation: blob 19s ease-in-out infinite alternate-reverse; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -30px) scale(1.08); } }
.lb-doodles { position: absolute; left: 0; top: 0; width: 100%; height: 200%; will-change: transform; }
.lb-tile { position: relative; height: 50%; }
.ld { position: absolute; opacity: .16; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transform: rotate(var(--rot)); animation: ld-float var(--dur) ease-in-out var(--delay) infinite alternate; }
.ld-fill { fill: currentColor; fill-opacity: .35; }
@keyframes ld-float {
  from { transform: translateY(calc(var(--drift) * -1)) rotate(calc(var(--rot) - 12deg)) scale(.95); }
  to { transform: translateY(var(--drift)) rotate(calc(var(--rot) + 12deg)) scale(1.05); }
}
@media (max-width: 699px) { .ld-desk { display: none; } }
/* Sections sit on the living background; the header/footer/ticker keep a solid deep band. */
body { background: var(--bg-deep); }

/* ---------- Header CTA ---------- */
.nav .nav-cta { padding: 8px 14px 7px; font-family: var(--f-head); font-weight: 800; font-size: 1rem; margin-left: 4px; color: var(--ink); }
.nav .nav-cta:hover { background: var(--fill); color: var(--ink); }
@media (max-width: 439px) { .nav .nav-cta { display: none; } }

/* ---------- Hero extras ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle { position: absolute; width: var(--s); height: var(--s); opacity: .2; animation: float 9s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  33% { transform: translate(10px, -16px) rotate(6deg); }
  66% { transform: translate(-8px, -6px) rotate(-2deg); }
}
@media (max-width: 899px) { .doodle { opacity: .12; } }
.hero-logo { animation: logo-pop .8s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: 40% 60%; }
@keyframes logo-pop { from { transform: scale(.82) rotate(-6deg); } to { transform: none; } }
.weekly { margin: 20px 0 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: var(--mint); }
.weekly .tag { animation: wobble 2.2s ease-in-out infinite; }
.rating { margin: 10px 0 0; color: var(--text-dim); font-size: 1.05rem; }
.rating .stars { color: var(--yellow); letter-spacing: .08em; margin-right: 4px; }
.hero-meta { margin-top: 10px; }

/* ---------- Scroll reveals (only when JS runs; content is visible without JS) ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .9, .3, 1), scale .6s cubic-bezier(.3, 1.6, .5, 1); transition-delay: var(--d, 0ms); }
.js .reveal.pop { scale: .82; }
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; }
.reveal.in .pop-in { animation: sticker-pop .7s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d, 0ms) + 150ms); }
@keyframes sticker-pop { from { transform: scale(.3) rotate(-20deg); } to { transform: none; } }

/* ---------- Ticker of real cards ---------- */
.ticker-band { padding: 26px 0; display: grid; gap: 14px; overflow: hidden; background: var(--bg-deep); }
.ticker { display: flex; overflow: hidden; }
.ticker-track { display: flex; flex: none; gap: 14px; padding: 0 14px 8px 0; margin: 0; list-style: none; animation: marquee 70s linear infinite; }
.ticker.rev .ticker-track { animation-direction: reverse; animation-duration: 80s; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.tick-card {
  background: var(--fill); color: var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--lip-c);
  padding: 9px 16px 8px; white-space: nowrap; font-family: var(--f-head); font-weight: 800; font-size: 1.02rem; line-height: 1.2;
}
.tick-card b { font-family: var(--f-display); font-weight: 400; letter-spacing: .05em; margin-right: 10px; font-size: .95rem; }

/* ---------- Game modes: small looping animations ---------- */
.mode { transition: transform .25s ease, box-shadow .25s ease; }
.mode:hover { transform: translateY(-4px); box-shadow: 0 calc(var(--lip) + 4px) 0 var(--lip-c); }
.mode-art { width: 84px; height: 84px; margin-bottom: 12px; }
.mode .mode-art img { width: 84px; height: 84px; margin: 0; }
.anim-cards { animation: shuffle 2.4s ease-in-out infinite; }
@keyframes shuffle { 0%, 100% { transform: rotate(-8deg) translateY(0); } 25% { transform: rotate(6deg) translateY(-6px); } 50% { transform: rotate(-3deg) translateY(0); } 75% { transform: rotate(9deg) translateY(-3px); } }
.anim-wheel { animation: spin 4s infinite; }
@keyframes spin {
  0% { transform: rotate(0); animation-timing-function: cubic-bezier(.15, .6, .25, 1); }
  60%, 100% { transform: rotate(1080deg); }
}
.anim-bluff { animation: fib 2.6s ease-in-out infinite; }
@keyframes fib { 0%, 100% { transform: rotate(0) translateX(0); } 15% { transform: rotate(-9deg) translateX(-4px); } 30% { transform: rotate(8deg) translateX(4px); } 45% { transform: rotate(-5deg) translateX(-2px); } 60% { transform: rotate(0) translateX(0) scale(1.06); } }
.anim-bomb { animation: tick 2.8s infinite; }
@keyframes tick {
  0%, 30%, 50%, 66%, 78%, 86%, 92% { transform: scale(1); }
  15%, 40%, 58%, 72%, 82%, 89% { transform: scale(1.1); }
  95% { transform: scale(1.22) rotate(-7deg); } 97% { transform: scale(1.22) rotate(7deg); } 100% { transform: scale(1); }
}

/* ---------- Theme tiles: lift + tilt on hover ---------- */
@media (min-width: 980px) {
  .audiences { display: grid; grid-template-columns: 3fr 2fr; gap: 0 32px; }
  .audience.friends .themes { grid-template-columns: repeat(3, 1fr); }
  .audience.couples .themes { grid-template-columns: repeat(2, 1fr); }
}
.theme { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s ease; will-change: auto; }
.theme:hover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: 0 calc(var(--lip) + 5px) 0 var(--lip-c); }
.theme img { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.theme:hover img { transform: rotate(-10deg) scale(1.12); }

/* ---------- Video in a phone frame ---------- */
.phone {
  margin: 0 auto; width: min(300px, 76vw); padding: 12px; border-radius: 46px;
  background: var(--ink); box-shadow: 0 0 0 3px var(--surface-hi), 0 12px 0 #0b0414; position: relative;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 30%; height: 18px; translate: -50% 0; border-radius: 99px; background: var(--ink); z-index: 2; }
.phone-screen { border-radius: 34px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--bg); }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-feature .wrap > :first-child { order: 0; }
.sound-toggle {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--yellow); color: var(--ink); border: 0; border-radius: 999px; box-shadow: 0 4px 0 var(--yellow-lip);
  padding: 9px 16px 8px 12px; font: 800 1rem/1 var(--f-head); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.sound-toggle:hover { transform: translateY(-1px); }
.sound-toggle:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-lip); }
.sound-toggle svg { width: 22px; height: 22px; }
.sound-toggle .on { display: none; }
.sound-toggle[aria-pressed="true"] { background: var(--cream); box-shadow: 0 4px 0 #d9c7ab; }
.sound-toggle[aria-pressed="true"] .on { display: inline; }
.sound-toggle[aria-pressed="true"] .off { display: none; }
.js .sound-toggle:not(.ready) { visibility: hidden; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
.sound-toggle[aria-pressed="false"] { animation: nudge 1.8s ease-in-out 3; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; scale: none; }
  .ticker { overflow-x: auto; }
  .doodle { display: none; }
  .living-bg .ld, .lb-doodles { transform: none !important; }
}

/* Small phones */
.brand span { white-space: nowrap; }
@media (max-width: 400px) {
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 1rem; }
  .nav a { padding: 8px 6px; }
  .hero { padding-top: 32px; }
}
.prose .tile p, .prose .tile li, .prose .tile strong, .prose .tile h3 { color: var(--ink); }
