:root {
  color-scheme: light;
  --royal-purple: #6714bf;
  --deep-purple: #350867;
  --electric-purple: #8d29ea;
  --candy-pink: #ff49c7;
  --berry-pink: #e72799;
  --sunny-yellow: #ffd832;
  --warm-gold: #ffaf20;
  --sugar-blue: #35c9ff;
  --cream: #fff5f4;
  --ink: #38134e;
  --muted-ink: #655170;
  --white: #fff;
  --plum: #270737;
  --soft-pink: #ffb3e6;
  --surface: #fffaf7;
  --border: #e9cfe6;
  --focus: #a41478;
  --gutter: clamp(1.125rem, 5vw, 4.75rem);
  --shell: 80rem;
  --header-size: 4.75rem;
  --heading: "Avenir Next", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Avenir Next", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-size) + 1rem); }
body { margin: 0; font: 500 1rem/1.65 var(--body); color: var(--ink); background: var(--cream); }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
p + p { margin-top: .85rem; }
a { color: inherit; }
button { color: inherit; font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(.site-header, .hero, .demo, .gallery, .finale, .site-footer) { --focus: #ffe464; }
h1, h2, h3 { font-family: var(--heading); font-weight: 900; }
h1, h2 { letter-spacing: -.07em; line-height: 1.02; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: #aa187e; }
h2 { font-size: clamp(2.55rem, 5.5vw, 5.3rem); }
h3 { font-size: clamp(1.22rem, 2.2vw, 1.55rem); letter-spacing: -.035em; line-height: 1.2; }
.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.section-space { padding-block: clamp(4rem, 8vw, 8.5rem); }
.eyebrow {
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #861263;
  margin-bottom: .85rem;
}
.small { font-size: .875rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .64rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.button:active { transform: translateY(2px); }
.button-gold {
  background: linear-gradient(170deg, #fff18b 0%, var(--sunny-yellow) 53%, var(--warm-gold) 100%);
  color: #351138;
  border-color: #fff3a6;
  box-shadow: inset 0 1px 0 #fff8cf, inset 0 -3px 0 #b46c232e, 0 5px 15px #3e075337;
}
.button-glass {
  color: var(--white);
  background: #3f0f587a;
  border-color: #ffe8f3a1;
}
@media (hover: hover) {
  .button:hover { transform: translateY(-2px); }
  .button-gold:hover { box-shadow: inset 0 1px 0 #fff, 0 8px 19px #35086745; }
  .button-glass:hover { background: #7c228da0; }
}
.skip {
  position: fixed; z-index: 40; inset: 1rem auto auto 1rem;
  transform: translateY(calc(-100% - 2rem)); background: var(--cream);
  padding: .75rem 1rem; font-weight: 800; border-radius: .65rem;
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  background: #30094e;
  transition: background-color .25s, box-shadow .25s;
}
.home .site-header { margin-bottom: calc(-1 * var(--header-size) - env(safe-area-inset-top)); }
.home .site-header:not(.is-scrolled) { background: linear-gradient(#290546da, #29054653 85%, transparent); }
.site-header.is-scrolled { background: #290840f4; box-shadow: 0 4px 20px #22052936; }
.header-inner { min-height: var(--header-size); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-logo { display: inline-flex; align-items: center; width: 5.6rem; min-width: 4.2rem; min-height: 44px; }
.site-logo img { width: 100%; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.65rem, 2.65vw, 2.55rem); }
.site-nav a, .site-footer nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 750; font-size: .9rem;
}
.site-nav a:hover, .site-nav a[aria-current], .site-footer nav a:hover, .site-footer nav a[aria-current] { color: #ffdf78; }
.header-play { flex: none; min-height: 44px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .6rem; justify-content: center;
  min-height: 44px; padding: .45rem .78rem;
  border: 1px solid #ffe4ff76; border-radius: 100px;
  background: #461162a3; font-size: .9rem; font-weight: 800; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  width: 1rem; border-top: 2px solid; display: block; border-radius: 1px;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -.43rem; }
.menu-icon::after { top: .19rem; }

.hero {
  position: relative; isolation: isolate; display: grid; align-items: center;
  min-height: min(58rem, 100vh);
  min-height: min(58rem, 100svh);
  padding-block: calc(var(--header-size) + clamp(1.8rem, 5vh, 4rem) + env(safe-area-inset-top)) clamp(2rem, 7vh, 5rem);
  background: #47067e;
  color: #fff; overflow: hidden;
}
.hero-landscape, .finale-landscape { position: absolute; z-index: -3; inset: 0; }
.hero-landscape img, .finale-landscape img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  position: absolute; z-index: -2; content: ""; inset: 0;
  background:
    linear-gradient(90deg, #240443ee 0%, #330659d1 28%, #3508676b 59%, #6714bf14 100%),
    linear-gradient(0deg, #4408639e, transparent 50%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; column-gap: clamp(.5rem, 3vw, 3rem); }
.hero-copy { position: relative; z-index: 1; animation: hero-arrive .55s ease-out both; }
.hero-wordmark { width: clamp(10.25rem, 17vw, 15.75rem); margin: 0 0 .75rem -.35rem; filter: drop-shadow(0 4px 12px #26043866); }
.hero .eyebrow, .demo .eyebrow, .finale .eyebrow { color: #ffd984; }
.hero h1 { font-size: clamp(2.75rem, 5.15vw, 5.5rem); margin-inline-start: -.055em; }
.hero h1 em, .demo h2 em, .finale h2 em { color: #ffd88c; }
.hero-description { max-width: 31rem; font-size: clamp(1rem, 1.55vw, 1.16rem); margin-block: 1.22rem 1.5rem; color: #fff5fc; }
.hero-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.truth-line { margin-top: .9rem; color: #ffecfb; font-size: .86rem; }
.truth-line span { color: #ffd88c; margin-inline: .22rem; }
.hero-art {
  align-self: center; width: 100%; max-width: 37rem; margin: auto;
  position: relative; isolation: isolate; animation: hero-arrive .65s .06s ease-out both;
}
.hero-art::before {
  position: absolute; z-index: -1; content: ""; top: 2%; right: -13%; bottom: 0; left: -13%;
  background: radial-gradient(ellipse, #ff9ddd92, #ff5cd443 45%, transparent 71%);
}
.hero-art::after {
  position: absolute; z-index: -1; content: ""; bottom: -1%; right: 5%; left: 4%; height: 17%;
  background: radial-gradient(ellipse, #410446bd, #4d073d55 50%, transparent 72%);
  transform: scaleY(.65);
}
.machine-wrap { position: relative; }
.machine { width: 100%; transform: rotate(3deg); filter: drop-shadow(0 10px 7px #4005286b); }
.machine-trigger {
  position: absolute; top: 49%; left: 41.5%; width: 19%; min-width: 44px; min-height: 44px;
  aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.machine-trigger.is-lit {
  animation: machine-light .55s ease-out both;
}
@media (hover: hover) { .machine-trigger:hover { box-shadow: 0 0 20px #ffe2f2a3, inset 0 0 15px #fff8; } }
.machine-sparkles { pointer-events: none; position: absolute; inset: 55% 0 0 50%; }
.particle { position: absolute; width: 1.75rem; height: 1.75rem; animation: particle .73s ease-out both; }
.hero-orb { position: absolute; z-index: 2; pointer-events: none; width: 16%; }
.orb-blue { top: 15%; right: 3%; transform: rotate(12deg); }
.orb-pink { bottom: 15%; left: 2%; width: 13%; transform: rotate(-15deg); }
.orb-gold { bottom: 4%; right: 6%; width: 12%; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(11px); } }
@keyframes machine-light { 35% { box-shadow: 0 0 27px 4px #ffe497c4, inset 0 0 21px 5px #fff3fc8f; } }
@keyframes particle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--spin)) scale(1.1); }
}
.hero::after {
  position: absolute; content: ""; pointer-events: none; z-index: 3;
  left: -1px; right: -1px; bottom: -2px; height: clamp(.7rem, 2vw, 1.65rem);
  background: #f9beeb; border-radius: 38% 67% 0 0 / 100% 88% 0 0;
}
.candy-strip { position: relative; overflow: hidden; background: #f9beeb; color: #551069; border-block: 1px solid #ffd4f3; }
.candy-strip::before {
  content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #f9beeb, transparent 12%, transparent 88%, #f9beeb);
}
.strip-track {
  display: flex; justify-content: center; gap: 3.25rem; width: max-content; min-width: 100%;
  white-space: nowrap; padding-block: .8rem; font-weight: 900; font-size: .875rem;
  letter-spacing: .21em; text-transform: uppercase; animation: strip 4.8s ease-out both;
}
@keyframes strip { from { transform: translateX(1.8rem); } }

.intro { position: relative; isolation: isolate; background: radial-gradient(ellipse at 80% 45%, #ffc9ed 0%, transparent 58%), var(--cream); }
.intro-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 0; }
.intro-copy {
  position: relative; z-index: 1; padding: clamp(1.4rem, 4.15vw, 4.4rem);
  background: #fffaf5; border: 1px solid #fff; border-radius: 4rem 2.3rem 4rem 2.3rem;
  box-shadow: 0 16px 44px #95216d12;
}
.intro-copy > p:not(.eyebrow) { color: var(--muted-ink); margin-top: 1.3rem; }
.intro-art { margin-left: clamp(-3rem, -3vw, 0rem); transform: rotate(-6deg); }
.facts { padding: 0; margin: 1.4rem 0; display: flex; gap: .48rem; flex-wrap: wrap; list-style: none; }
.facts li {
  background: #ffe7f4; border: 1px solid #f0c7e2; border-radius: 100px; padding: .38rem .7rem;
  color: #6a215d; font-size: .875rem; font-weight: 800; line-height: 1.25;
}
.guide-note {
  display: flex; align-items: center; gap: .72rem; margin-top: 1.45rem;
  padding-top: .8rem; border-top: 1px solid var(--border); color: var(--muted-ink);
}
.guide-note img { width: 3.55rem; flex: none; }
.guide-note p { font-size: .9rem; }

.how { position: relative; background: #f9e6fb; }
.how::before, .highlights::before {
  position: absolute; content: ""; pointer-events: none; left: 0; right: 0; top: -2.5rem; height: 2.6rem;
  background: inherit; border-radius: 56% 64% 0 0 / 100% 100% 0 0;
}
.how-inner {
  display: grid; align-items: center; grid-template-columns: .9fr 1.1fr;
  grid-template-areas: "title art" "path path"; gap: clamp(1.8rem, 3.5vw, 3rem) clamp(1.8rem, 6vw, 6rem);
}
.how-copy { display: contents; }
.how h2 { grid-area: title; }
.how-image { grid-area: art; }
.steps { grid-area: path; }
.how h2 { text-wrap: initial; font-size: clamp(2.55rem, 5.15vw, 4.85rem); }
.steps { list-style: none; position: relative; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.steps::before { content: ""; position: absolute; top: 1.75rem; left: 1.75rem; right: calc(33.333% - 1rem); border-top: 2px dashed #b986bf; }
.steps li { display: grid; align-content: start; gap: .9rem; position: relative; }
.step-icon {
  display: grid; place-items: center; width: 3.6rem; aspect-ratio: 1;
  background: #fff8f6; border: 1px solid #edd1e9; border-radius: 50%;
  box-shadow: inset 0 -2px 0 #d4a3dd47;
}
.step-icon img { width: 80%; }
.steps p { color: var(--muted-ink); margin-top: .22rem; }
.illustration { min-width: 0; }
.illustration img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.illustration figcaption { margin-top: .5rem; color: var(--muted-ink); font-size: .875rem; }
.how-image { align-self: center; transform: rotate(2deg); }
.how-image img { object-fit: contain; filter: drop-shadow(0 11px 13px #62236444); }
.how-image figcaption { text-align: center; }

.demo {
  position: relative; color: #fff;
  background: radial-gradient(ellipse at 76% 37%, #790e80 0, transparent 60%), linear-gradient(150deg, #460e61, #24052e);
}
.demo-inner {
  display: grid; grid-template-columns: .85fr 1.15fr; grid-template-areas: "summary stage" "details stage";
  align-items: center; column-gap: clamp(1.75rem, 7vw, 7rem); max-width: 71rem;
}
.demo-copy { grid-area: summary; align-self: end; }
.demo-details { grid-area: details; align-self: start; }
.demo-stage { grid-area: stage; }
.demo h2 { text-wrap: initial; }
.demo-copy > p:not(.eyebrow) { margin-top: 1rem; max-width: 30rem; color: #f6e3fb; }
.demo-details .button { margin-top: 1rem; }
.demo-instructions { margin-top: 1.4rem; padding: .9rem 0 .9rem 1rem; border-left: 2px solid #fa8cd6; color: #f6e3fb; }
.demo-instructions strong { color: #fff; }
.demo-app-note { margin-top: .95rem; color: #f6e3fb; }
.demo-stage { width: 100%; min-width: 0; max-width: 33rem; margin-inline: auto; }
.demo-label {
  color: #fff2f9; font-size: .875rem; font-weight: 750; text-align: center; margin-bottom: .65rem;
}
.demo-label span { color: #ffc979; }
.demo-fallback { padding: 1.25rem; border: 1px solid #dd9bda; border-radius: 1.15rem; background: #380549; }
.game-panel {
  border-radius: clamp(1rem, 4vw, 1.9rem); padding: clamp(.45rem, 2vw, 1rem);
  border: 1px solid #ffda7b; color: #fff; background: #350d47;
  box-shadow: inset 0 3px 0 #ffebaa84, inset 0 0 0 4px #d18d38, 0 12px 45px #13021880;
}
.game-hud { display: flex; justify-content: space-between; align-items: center; gap: .42rem; padding: .45rem .5rem .65rem; }
.game-hud > div { display: grid; justify-items: start; }
.game-hud span { color: #f7d7ee; font-size: .825rem; line-height: 1.1; font-weight: 700; }
.game-hud output { font-weight: 900; color: #ffe282; font-size: 1.45rem; line-height: 1.17; }
.reset {
  background: #68186d; border: 1px solid #d885bd; border-radius: 100px;
  padding: .4rem .8rem; min-height: 44px; min-width: 54px; cursor: pointer; font-weight: 800; font-size: .875rem;
}
.reset:hover { background: #882284; }
.board {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(2px, .48vw, 6px);
  position: relative; isolation: isolate; border-radius: .9rem; overflow: hidden;
  background: #250934; padding: 3px; touch-action: none; user-select: none;
}
.tile {
  position: relative; display: grid; place-items: center;
  min-width: 0; width: 100%; aspect-ratio: 1; padding: 0;
  background: linear-gradient(145deg, #5b226c, #421353); border: 1px solid #80498583;
  border-radius: clamp(.36rem, 1vw, .75rem); cursor: pointer;
}
.tile:nth-child(odd) { background: linear-gradient(145deg, #54216b, #371148); }
.tile img { position: relative; z-index: 1; width: 96%; height: 96%; object-fit: contain; pointer-events: none; }
.tile[aria-pressed="true"] { border-color: #ffe881; background: #761d7b; box-shadow: inset 0 0 0 2px #ffda64; }
.tile:focus-visible { z-index: 2; outline-offset: -3px; }
.tile.is-clearing { background: #bc567c; box-shadow: inset 0 0 10px #ffd77a; }
.tile.is-invalid { border-color: #ff92b4; }
.board[aria-busy="true"] .tile { cursor: progress; }
.board .tile[aria-disabled="true"] { cursor: default; }
.game-status { color: #ffe9f6; font-size: .85rem; margin: .65rem .45rem .2rem; min-height: 2.7em; }
.game-finish { border-radius: .85rem; margin: .5rem .3rem .35rem; background: #591465; padding: 1rem; }
.game-finish p { margin: .45rem 0 .85rem; }

.highlights { position: relative; background: #ffedf8; }
.highlights h2 { max-width: 13ch; }
.highlight-layout {
  display: grid; grid-template-columns: 1.3fr .75fr .8fr; gap: 1rem;
  align-items: stretch; margin-top: 1.6rem;
}
.highlight-layout article { padding: clamp(1rem, 2.4vw, 2.25rem); position: relative; }
.highlight-layout article p { margin-top: .5rem; }
.feature-art { grid-column: 1 / 3; grid-row: span 2; align-self: stretch; display: grid; align-items: center; min-width: 0; }
.feature-art img { width: 100%; filter: drop-shadow(0 16px 17px #aa226c29); }
.feature-goals { background: #ffe3a3; border-radius: 2rem 2rem .85rem 2rem; }
.feature-easy { background: #eccbfc; border-radius: 2rem .85rem 2rem 2rem; }
.feature-goals img, .feature-easy img { width: 3.45rem; margin: -.25rem 0 .35rem -.35rem; }
.feature-combos { grid-column: 1; background: #ffbfe4; border-radius: .85rem 2rem 2rem 2rem; }
.progress-note {
  grid-column: 2 / 4; align-self: stretch; display: grid; align-items: center;
  padding: 1rem clamp(1rem, 2.4vw, 2.25rem);
  border-top: 1px solid #dfafd3; color: var(--muted-ink);
}
.progress-note strong { color: var(--ink); }
.garnish { position: absolute; pointer-events: none; }
.intro-art { position: relative; }
.intro-art .garnish { width: 17%; top: 8%; right: 2%; transform: rotate(21deg); }
.feature-art { position: relative; }
.feature-art .garnish { bottom: 3%; width: 17%; right: 5%; transform: rotate(-23deg); }
.gallery-heading { position: relative; }
.gallery-heading .garnish { width: 4.6rem; top: -3.45rem; left: .2rem; transform: rotate(-18deg); }

.gallery {
  color: #fff; background: linear-gradient(140deg, #48115e, #250735);
}
.gallery h2 em { color: #ffb2e2; }
.gallery-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; column-gap: 1.5rem; margin-bottom: 2rem; }
.gallery-heading .small { color: #f3c7ef; }
.gallery-heading > div { max-width: 29rem; }
.gallery-grid { display: grid; grid-template-columns: 1.6fr .9fr; grid-template-rows: auto auto; gap: 1rem 1.4rem; align-items: start; }
.gallery-main { grid-row: span 2; display: flex; flex-direction: column; height: 100%; }
.gallery-main img { flex-grow: 1; aspect-ratio: auto; max-height: 40rem; object-position: 52% 50%; }
.gallery-grid img { border: 1px solid #e7a8e680; border-radius: 1.45rem; background: #501266; }
.gallery-grid figcaption { color: #fbd8f0; }

.review {
  position: relative; isolation: isolate; background: #f8d7f2;
}
.review-landscape { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review-paper {
  max-width: 61rem; margin-inline: auto; background: #fffcf4f7; border: 1px solid #fff;
  padding: clamp(1.25rem, 5.4vw, 5.6rem); border-radius: 3rem 1.6rem 3rem 1.6rem;
  box-shadow: 0 18px 50px #66145129;
}
.review h2 { text-wrap: initial; }
.review-lead { margin-top: 1.2rem; max-width: 43rem; font-size: clamp(1.03rem, 1.6vw, 1.22rem); }
.review-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.65rem; margin: 1.6rem 0; padding: 1.4rem 0; border-block: 1px solid var(--border); }
.review-columns ul { margin: .7rem 0 0; padding-left: 1.15rem; color: var(--muted-ink); }
.review-columns li + li { margin-top: .35rem; }
.review-columns li::marker { color: #a5197c; }
.review-source { color: var(--muted-ink); font-size: .9rem; }
.review-source a, .reading-paper a:not(.button) { color: #721075; text-underline-offset: .17em; }
.review-paper .button { margin-top: 1.25rem; }

.faq { background: #fff7f2; }
.faq-inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(1.65rem, 7vw, 6.75rem); }
.faq-title h2 { text-wrap: initial; }
.faq-title img { width: min(100%, 17rem); margin: 1.7rem 0 0; transform: rotate(-6deg); }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  position: relative; padding: .95rem 2.15rem .95rem 0;
  min-height: 3.65rem; list-style: none; cursor: pointer; font-weight: 800; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute; right: 0; top: .85rem; content: "";
  display: block; width: 1.65rem; height: 1.65rem; border-radius: 50%;
  background: linear-gradient(#7e1367 0 0) center / 10px 2px no-repeat,
              linear-gradient(#7e1367 0 0) center / 2px 10px no-repeat #ffdcef;
}
.faq-list details[open] summary::after { background-size: 10px 2px, 0 0; }
.faq-list details[open] p { color: var(--muted-ink); padding: 0 2rem 1rem 0; }

.finale {
  color: #fff; position: relative; isolation: isolate; min-height: 34rem; display: grid; place-items: center;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(7rem, 14vw, 12.5rem); overflow: hidden; background: #791585;
}
.finale::before {
  position: absolute; z-index: -2; inset: 0; content: "";
  background: radial-gradient(ellipse at 50% 44%, #350847ed 0%, #420955c9 33%, #60076f38 75%), linear-gradient(0deg, #a3148760, transparent 40%);
}
.finale-landscape img { object-position: 50% 45%; }
.finale-copy { text-align: center; z-index: 1; width: min(100%, 39rem); }
.finale-copy > p:not(.eyebrow) { margin-top: .9rem; color: #ffeffa; }
.finale .button { margin-top: 1.2rem; }
.finale-machine { position: absolute; width: clamp(6rem, 16vw, 15rem); bottom: 8%; right: 2.5%; transform: rotate(11deg); }
.finale-swag { position: absolute; width: min(73%, 55rem); bottom: -3%; left: 50%; transform: translateX(-50%); }

.site-footer { background: #29083d; color: #fff; padding: 1.4rem 0 max(1.4rem, env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.footer-logo { width: 5.5rem; }
.footer-info span { font-weight: 850; }
.footer-info p { font-size: .875rem; color: #f1cce9; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.site-footer nav a { font-size: .875rem; }

.inner-main { min-height: 63vh; background: #f5d5f3 url("media/candy_arcade_14-small.webp") center top / cover no-repeat; padding: clamp(2.5rem, 7vw, 6.5rem) var(--gutter); }
.reading-shell { margin-inline: auto; width: min(100%, 53rem); }
.reading-paper {
  background: #fffaf6f8; padding: clamp(1.25rem, 6vw, 4.6rem);
  border-radius: 2.5rem 1.25rem 2.5rem 1.25rem; border: 1px solid #fff; box-shadow: 0 18px 44px #78135f30;
}
.reading-paper h1 { font-size: clamp(2.35rem, 5.8vw, 4.55rem); margin-bottom: 1.25rem; text-wrap: initial; }
.reading-paper h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); letter-spacing: -.035em; margin: 1.45rem 0 .45rem; }
.reading-paper p { color: var(--muted-ink); }
.reading-paper .button { margin-top: 1.4rem; }
.contact-info { padding: 1rem 1.2rem; margin: 1.1rem 0; background: #ffe8f3; border-radius: 1rem; overflow-wrap: anywhere; }
.contact-info dt { font-weight: 800; }
.contact-info dd + dt { margin-top: .55rem; }
.lost-paper { text-align: center; }
.lost-star { width: 5.25rem; margin: 0 auto .8rem; }

@media (min-width: 900px) {
  .inner-main { background-image: linear-gradient(#ffe7f255, #f6c3df66), url("media/candy_arcade_14.webp"); }
}
@media (max-width: 940px) {
  .header-inner { gap: .8rem; }
  .site-nav { gap: .8rem; }
  .site-nav a { font-size: .86rem; }
  .header-play { padding-inline: .85rem; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .site-footer nav { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  :root { --header-size: 4rem; }
  .header-inner { position: relative; gap: .5rem; }
  .site-logo { width: 4.35rem; min-width: 3.85rem; }
  .menu-toggle, .header-play { font-size: .78rem; padding-inline: .62rem; }
  .menu-toggle { gap: .42rem; }
  .site-header.is-enhanced .menu-toggle { margin-left: auto; }
  .site-header.is-enhanced .site-nav {
    position: absolute; top: calc(100% + .32rem); right: 0; width: min(18rem, 100%);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #390950; border: 1px solid #d893d79c; padding: .4rem .75rem;
    border-radius: .9rem; box-shadow: 0 12px 28px #1e042c68;
  }
  .site-header.is-enhanced.is-menu-open .site-nav { display: flex; }
  .site-nav a + a { border-top: 1px solid #f7cfff2d; }
  .site-header:not(.is-enhanced) { position: relative; margin-bottom: 0; }
  .site-header:not(.is-enhanced) .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  .site-header:not(.is-enhanced) .site-nav { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .site-header:not(.is-enhanced) .site-nav a + a { border-top: 0; }
  .home .site-header:not(.is-enhanced):not(.is-scrolled) { background: #350867; }
  .home .site-header:not(.is-enhanced) + main .hero { padding-top: 1rem; }
  .hero-inner { column-gap: 0; }
  .intro-inner, .how-inner { grid-template-columns: 1fr 1fr; }
  .intro-art { margin-left: -1.5rem; }
  .demo-inner { gap: 1.7rem; }
  .faq-inner { gap: 1.65rem; }
}
@media (max-width: 699px) {
  .hero {
    min-height: 100vh; min-height: 100svh;
    padding-block: calc(var(--header-size) + .75rem + env(safe-area-inset-top)) .85rem;
  }
  .hero::before {
    background: linear-gradient(180deg, #35085fb0 0%, #3a065be0 27%, #3e0b57b8 53%, #670a6c32 78%, #62106266 100%);
  }
  .hero-inner { display: flex; flex-direction: column; justify-content: center; }
  .hero-copy { max-width: 32rem; margin-inline: auto; text-align: center; }
  .hero-wordmark { width: clamp(7.7rem, 27vw, 10rem); margin: 0 auto .38rem; }
  .hero .eyebrow { margin-bottom: .5rem; letter-spacing: .09em; }
  .hero h1 { font-size: clamp(2.08rem, 9.25vw, 4rem); margin-inline: 0; }
  .wide-break { display: none; }
  .hero-description { margin: .8rem auto .95rem; line-height: 1.45; }
  .hero-actions { justify-content: center; gap: .42rem; }
  .hero-actions .button { min-height: 44px; font-size: .86rem; padding-inline: .68rem; }
  .truth-line { margin-top: .6rem; }
  .hero-art { width: min(85%, clamp(13rem, 36svh, 22rem)); margin-top: 1rem; }
  .hero-art::before { inset: -3% -8% 0; }
  .strip-track { gap: 2rem; min-width: 0; padding-block: .7rem; }
  .intro-inner, .how-inner, .demo-inner, .faq-inner { grid-template-columns: 1fr; }
  .intro-copy { border-radius: 2rem 1rem 2rem 1rem; }
  .intro-art { margin: .9rem auto 0; width: min(85%, 22rem); }
  .how { padding-top: 2rem; }
  .how-inner { grid-template-areas: "title" "path" "art"; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .steps li { grid-template-columns: 3.6rem 1fr; align-items: center; }
  .steps::before { bottom: 1.75rem; right: auto; border-top: 0; border-left: 2px dashed #b986bf; }
  .how-image { max-width: 32rem; margin-inline: auto; }
  .how h2, .demo h2, .faq-title h2 { text-wrap: balance; }
  .how h2, .faq h2 { text-wrap: initial; }
  .demo-details .demo-app-note, .demo-details .button { margin-top: .95rem; }
  .demo-label { max-width: 25rem; margin-inline: auto; }
  .demo-inner { grid-template-areas: "summary" "stage" "details"; }
  .demo-stage { width: min(100%, 30rem); }
  .demo-instructions { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; font-size: .92rem; }
  .demo-instructions p + p { margin-top: 0; }
  .highlight-layout { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .feature-art { grid-column: 1 / -1; grid-row: auto; }
  .feature-combos, .progress-note { grid-column: 1 / -1; }
  .feature-combos { grid-row: 2; }
  .feature-easy, .feature-goals, .feature-combos { border-radius: 1.3rem .7rem 1.3rem 1.3rem; }
  .gallery-heading { grid-template-columns: 1fr; row-gap: .9rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1.15rem .65rem; }
  .gallery-main { display: block; grid-column: 1 / -1; grid-row: auto; }
  .gallery-main img { aspect-ratio: 3 / 2; }
  .gallery-grid img { border-radius: .85rem; }
  .review-paper { border-radius: 1.9rem 1rem 1.9rem 1rem; }
  .review-columns { grid-template-columns: 1fr; gap: 1.2rem; }
  .faq-title { position: relative; }
  .faq-title img { display: none; }
  .finale { min-height: 30rem; }
  .finale-machine { display: none; }
  .finale-swag { width: min(100%, 36rem); bottom: 0; }
}
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .header-inner { gap: .35rem; }
  .site-logo { min-width: 3.5rem; width: 3.85rem; }
  .header-play, .menu-toggle { font-size: .81rem; padding-inline: .6rem; }
  .hero .eyebrow { font-size: .79rem; }
  .hero h1 { font-size: 2rem; }
  .hero-actions .button { font-size: .78rem; padding-inline: .52rem; }
  .hero-wordmark { width: 7rem; }
  .hero-description { font-size: .96rem; }
  .hero-art { margin-top: .55rem; }
  .hero-art { width: min(80%, clamp(10.5rem, 32svh, 14rem)); }
  .demo-inner { width: calc(100% - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .machine-trigger.is-lit { box-shadow: 0 0 18px #fff0ac, inset 0 0 17px #fbe6ff; }
}
