/* Pumpkin Party — styles
   Palette from the client brief: orange, pink, lilac, cream, charcoal.
   Flat paper-craft look: solid fills, charcoal edges, a little wobble. */

:root {
  --orange: #F47A26;
  --orange-back: #E46A1C;
  --orange-dark: #D35F17;
  --orange-ink: #A6420A;       /* orange that passes contrast as text on cream */
  --orange-tint: #FFDCC2;
  --pink: #F2BBC5;
  --pink-dark: #E38FA2;
  --pink-tint: #FCE6EA;
  --lilac: #AA8ACA;
  --lilac-dark: #8B6AAE;
  --lilac-ink: #5E3F82;
  --lilac-tint: #EDE4F6;
  --cream: #FFF7E8;
  --paper: #FFFDF8;
  --peach: #FDE9D8;
  --charcoal: #252B30;
  --charcoal-2: #31383E;
  --ink-soft: #4A525A;
  --glow: #FFD25E;
  --green: #6B8F4E;
  --green-tint: #E2ECD8;

  --font-head: "Grandstander", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", "Chalkboard SE", cursive;

  --line: 3px solid var(--charcoal);
  --lift: 0 4px 0 var(--charcoal);
  --radius: 22px;
  --header-h: 68px;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .15  0 0 0 0 .12  0 0 0 0 .1  .16 0 0 0 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --edge-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='24' viewBox='0 0 240 24'><path d='M0 24V12C28 3 52 19 82 10S132 2 160 12S212 19 240 12V24Z'/></svg>");
  --squiggle: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='14' viewBox='0 0 150 14'><path d='M3 8C18 2 28 13 46 7S78 2 96 8S128 13 147 6' fill='none' stroke='%23F47A26' stroke-width='4.5' stroke-linecap='round'/></svg>");
  --squiggle-wide: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='14' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M3 8C30 2 50 13 80 7S130 2 160 8S215 13 240 7S280 3 297 7' fill='none' stroke='%23F47A26' stroke-width='4.5' stroke-linecap='round'/></svg>");
  --check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.5 12.5l4.6 4.8L19.5 6' fill='none' stroke='%23252B30' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-style: wavy; text-decoration-skip-ink: none; }
p { margin: 0 0 .7em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
small { font-size: .9rem; }
.small { font-size: 1rem; color: var(--ink-soft); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .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;
}
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--glow);
  border-radius: 8px;
}
.sec--night :focus-visible { outline-color: var(--cream); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--charcoal); color: var(--cream); padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 600px) { .wrap { padding-inline: 28px; } }

/* ---------- Sections and their hand-cut top edges ---------- */
.sec {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
  background-color: var(--bg, var(--cream));
  background-image: var(--grain);
}
.sec--cream { --bg: var(--cream); }
.sec--pink { --bg: var(--pink-tint); }
.sec--lilac { --bg: var(--lilac-tint); }
.sec--peach { --bg: var(--peach); }
.sec--night { --bg: var(--charcoal); color: var(--cream); }
.sec--orange { --bg: var(--orange); }
.edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: var(--bg);
  -webkit-mask: var(--edge-mask) repeat-x 0 0 / 240px 24px;
          mask: var(--edge-mask) repeat-x 0 0 / 240px 24px;
  pointer-events: none;
}

.h2 {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.1rem, 5.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.01em;
}
.h2::after {
  content: ""; display: block; width: 150px; height: 14px; margin-top: 8px;
  background: var(--squiggle) no-repeat;
}
.h3 { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.05; }

.sec-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head__pal { width: 64px; height: 64px; flex: none; transform: rotate(-8deg); margin-top: 4px; }
.sec-head__lead { font-size: 1.25rem; max-width: 48ch; margin-top: 14px; margin-bottom: 0; }
@media (min-width: 700px) { .sec-head__pal { width: 84px; height: 84px; } }

.sticker, .sec-head__pal, .stage__ghost, .stage__corn, .parade img, .rule img, .stepper__done img {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px;
  border: var(--line); border-radius: 999px;
  background: var(--orange); color: var(--charcoal);
  font-weight: 700; font-size: 1.1rem; line-height: 1.15; text-decoration: none;
  box-shadow: var(--lift);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--charcoal); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--charcoal); }
.btn--ghost { background: var(--paper); }
.btn--lilac { background: var(--lilac); }
.btn--cream { background: var(--cream); }
.btn--small { min-height: 46px; padding: 6px 16px; font-size: 1rem; }
.btn--big { min-height: 64px; padding: 12px 28px; font-size: 1.3rem; }

.chips, .qa__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px;
  border: 2.5px solid var(--charcoal); border-radius: 999px; background: var(--paper);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
}
.chip:hover { background: var(--glow); text-decoration: none; }
.chip img { width: 20px; height: 20px; }

.tag {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 2px 10px; border: 2px solid var(--charcoal); border-radius: 999px;
  font-size: .82rem; font-weight: 700; line-height: 1.4; letter-spacing: .01em;
}
.tag--ordered { background: var(--lilac-tint); }
.tag--onhand { background: var(--green-tint); }
.tag--check { background: var(--paper); border-style: dashed; }
.tag--arrange { background: var(--pink-tint); }
.tag--carve { background: var(--orange); }
.tag--paint { background: var(--lilac); }
.tag--mixed { background: var(--pink); }

.job {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 12px;
  padding: 4px 14px 4px 8px; border: 2.5px solid var(--charcoal); border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.25;
}
.job .icon { width: 26px; height: 26px; stroke-width: 2; }
.job--grownup { background: var(--orange-tint); }
.job--kid { background: var(--lilac-tint); }
.job--together { background: var(--pink-tint); }

.hand-note { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1.1; color: var(--orange-ink); }

/* ---------- Header and menu ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream); background-image: var(--grain);
  border-bottom: var(--line);
}
.topbar__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 16px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.brand img { width: 40px; height: 40px; transition: transform .3s; }
.brand:hover img { transform: rotate(-12deg); }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; line-height: 1; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 16px;
  border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 700;
  box-shadow: 0 3px 0 var(--charcoal);
}
.menu-btn[aria-expanded="true"] { background: var(--glow); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  min-height: 48px; padding: 6px 10px; border-radius: 12px;
}
.nav a img { width: 28px; height: 28px; transition: transform .2s; }
.nav a:hover { background: var(--glow); text-decoration: none; }
.nav a:hover img { transform: rotate(-10deg) scale(1.1); }
.nav a[aria-current="true"] { background: var(--orange-tint); box-shadow: inset 0 -3px 0 var(--orange); }

@media (max-width: 1099px) {
  .js-ready .nav {
    display: none; position: fixed; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--cream); background-image: var(--grain);
    border-bottom: var(--line); padding: 14px 16px 22px;
  }
  .js-ready .nav.is-open { display: block; animation: drop .2s ease-out; }
  .nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav a { min-height: 60px; border: 2.5px solid var(--charcoal); background: var(--paper); font-size: 1.1rem; }
  .nav a img { width: 34px; height: 34px; }
  html:not(.js-ready) .nav { width: 100%; }
  html:not(.js-ready) .topbar__inner { height: auto; flex-wrap: wrap; padding-block: 8px; }
  html:not(.js-ready) .menu-btn { display: none; }
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .nav ul { display: flex; gap: 2px; }
  .nav a { font-size: 1rem; padding: 6px 9px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 72px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.12fr .88fr; gap: 56px; } }
.kicker {
  display: inline-block; margin: 0 0 18px; padding: 6px 16px;
  background: var(--pink); border: 2.5px solid var(--charcoal); border-radius: 999px;
  font-weight: 700; font-size: 1rem; transform: rotate(-2deg);
}
.hero__title { font-family: var(--font-head); font-weight: 900; }
.hero__line1 { display: block; font-size: clamp(3.1rem, 11.5vw, 6.4rem); line-height: .92; letter-spacing: -.02em; }
.hero__line2 {
  display: inline-block; margin-top: 10px; padding-bottom: 12px;
  font-size: clamp(1.65rem, 5vw, 2.7rem); line-height: 1.05; color: var(--orange-ink);
  background: var(--squiggle-wide) no-repeat left bottom / 100% 14px;
}
.amp { font-family: var(--font-hand); font-weight: 400; color: var(--lilac-ink); font-size: 1.15em; }
.lead { font-size: clamp(1.3rem, 2.6vw, 1.55rem); line-height: 1.4; margin: 18px 0 26px; max-width: 30ch; }

.paths { display: grid; gap: 16px; max-width: 580px; }
.path {
  display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 12px 16px 12px 12px;
  border: var(--line); border-radius: 24px; box-shadow: 0 5px 0 var(--charcoal);
  text-decoration: none; color: var(--charcoal);
  transition: transform .15s ease, box-shadow .15s ease;
}
.path:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 7px 0 var(--charcoal); text-decoration: none; }
.path:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--charcoal); }
.path--carve { background: var(--orange); }
.path--paint { background: var(--lilac); transform: rotate(.4deg); }
.path img { width: 64px; height: 64px; flex: none; background: var(--cream); border: 2.5px solid var(--charcoal); border-radius: 50%; padding: 4px; }
.path__text { display: grid; gap: 2px; flex: 1; }
.path__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.35rem, 4.2vw, 1.65rem); line-height: 1.05; }
.path__sub { font-size: 1.02rem; line-height: 1.3; }
.path__arrow { width: 30px; height: 30px; stroke-width: 3; }
.supplies-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 14px;
  font-weight: 700; font-size: 1.2rem; text-decoration: none;
}
/* the same hand-drawn squiggle as the headings: one unbroken line under the words */
.supplies-link span { padding-bottom: 9px; background: var(--squiggle-wide) no-repeat left bottom / 100% 10px; }
.supplies-link:hover { text-decoration: none; }
.supplies-link:hover span { color: var(--orange-ink); }

/* The stage: a paper card that turns to night when the LED switch is on */
.stage {
  --lb: #E46A1C; --lm: #F47A26; --lf: #F68A3E; --hw: #7A3510; --hi: #2B1B12; --sky: var(--pink-tint);
  position: relative; max-width: 460px; width: 100%; margin: 0 auto 30px; aspect-ratio: 1 / 1.02;
  background: var(--sky); border: var(--line); border-radius: 36px;
  transform: rotate(1.5deg); transition: background-color .6s ease;
}
.stage[data-lit="true"] { --lb: #A9470F; --lm: #BA5213; --lf: #C65E19; --hw: #F2A93B; --hi: #FFD25E; --sky: var(--charcoal); }
.stage__sky { position: absolute; inset: 0; border-radius: 33px; overflow: hidden; pointer-events: none; }
.stage__moon {
  position: absolute; top: 9%; right: 12%; width: 54px; height: 54px; border-radius: 50%;
  background: var(--cream); box-shadow: -12px -6px 0 0 var(--charcoal) inset;
  opacity: 0; transform: scale(.6); transition: opacity .5s, transform .5s;
}
.stage__star { position: absolute; opacity: 0; transition: opacity .6s .2s; }
.stage__star.s1 { top: 14%; left: 14%; }
.stage__star.s2 { top: 30%; left: 22%; }
.stage__bat { position: absolute; top: 20%; left: -80px; width: 60px; opacity: 0; }
.stage[data-lit="true"] .stage__moon { opacity: 1; transform: none; }
.stage[data-lit="true"] .stage__star { opacity: 1; }
.stage[data-lit="true"] .stage__bat { animation: fly 3.6s ease-in-out .3s 1 both; }
@keyframes fly {
  0% { opacity: 1; transform: translate(0, 0) rotate(8deg); }
  35% { transform: translate(170px, -26px) rotate(-6deg); }
  70% { transform: translate(330px, 10px) rotate(6deg); }
  100% { opacity: 1; transform: translate(560px, -40px) rotate(-4deg); }
}
.stage__ghost { position: absolute; top: -34px; left: -26px; width: 84px; transform: rotate(-10deg); transition: transform .3s; }
.stage__corn { position: absolute; bottom: 22px; right: -22px; width: 58px; transform: rotate(14deg); transition: transform .3s; }
.stage:hover .stage__ghost { transform: rotate(-2deg) translateY(-4px); }
.stage:hover .stage__corn { transform: rotate(24deg); }
.jack { display: block; width: 88%; height: auto; margin: 2% auto 0; position: relative; }
.jack .lobe-back { fill: var(--lb); }
.jack .lobe-mid { fill: var(--lm); }
.jack .lobe-front { fill: var(--lf); }
.jack .hole-wall { fill: var(--hw); }
.jack .hole-inner { fill: var(--hi); }
.jack .lobe-back, .jack .lobe-mid, .jack .lobe-front, .jack .hole-wall, .jack .hole-inner { transition: fill .6s ease; }
.jack .hatch { fill: none; stroke: var(--orange-dark); stroke-width: 2.5; stroke-linecap: round; opacity: .7; }
.jack__stem { fill: var(--green); }
.jack__curl { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; }
.jack__shadow { fill: var(--charcoal); opacity: .12; }
.stage[data-lit="true"] .jack__shadow { fill: var(--glow); opacity: .18; }
.stage__note { position: absolute; left: 0; right: 0; bottom: -78px; text-align: center; transform: rotate(-2deg); margin: 0; }

.switch {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 10px;
  border: var(--line); border-radius: 999px; background: var(--paper); box-shadow: var(--lift);
  font-weight: 700; font-size: 1.05rem; line-height: 1.15;
  transition: transform .12s, box-shadow .12s;
}
.switch:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--charcoal); }
.stage > .switch { position: absolute; left: 50%; bottom: -27px; transform: translateX(-50%) rotate(-1.5deg); white-space: nowrap; }
.stage > .switch:active { transform: translateX(-50%) rotate(-1.5deg) translateY(3px); }
.switch__track {
  position: relative; width: 52px; height: 30px; flex: none;
  background: #DDD5C6; border: 2.5px solid var(--charcoal); border-radius: 999px; transition: background .25s;
}
.switch__knob {
  position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--charcoal); transition: transform .25s cubic-bezier(.5, 1.6, .5, 1);
}
.switch[aria-pressed="true"] .switch__track { background: var(--glow); }
.switch[aria-pressed="true"] .switch__knob { transform: translateX(22px); }
@media (max-width: 899px) { .stage { max-width: 380px; margin-top: 6px; } }

/* Party rules */
.rules { list-style: none; margin: 120px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(3, 1fr); margin-top: 110px; } }
.rule {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 12px;
  border: var(--line); border-radius: 22px;
}
.rule img { width: 76px; height: 76px; flex: none; }
.rule h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; line-height: 1.1; margin-bottom: 4px; }
.rule p { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.rule--orange { background: var(--orange-tint); transform: rotate(-.8deg); }
.rule--lilac { background: var(--lilac-tint); transform: rotate(.6deg); }
.rule--pink { background: var(--pink); transform: rotate(-.4deg); }

/* How the party goes */
.plan { margin-top: clamp(56px, 8vw, 88px); }
.trail { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.trail li { position: relative; padding: 0 0 26px 70px; }
.trail li::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 0;
  border-left: 3px dashed var(--charcoal);
}
.trail li:last-child::before { display: none; }
.trail__num {
  position: absolute; left: 0; top: 0; width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--orange); border: var(--line); border-radius: 50%;
  font-family: var(--font-head); font-weight: 900; font-size: 1.5rem;
}
.trail li:nth-child(2) .trail__num { background: var(--lilac); }
.trail li:nth-child(3) .trail__num { background: var(--pink); }
.trail li:nth-child(4) .trail__num { background: var(--glow); }
.trail li:nth-child(5) .trail__num { background: var(--paper); }
.trail h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; padding-top: 12px; margin-bottom: 4px; }
.trail p { margin: 0; font-size: 1.08rem; max-width: 34ch; }
@media (min-width: 900px) {
  .trail { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .trail li { padding: 70px 0 0; }
  .trail li::before { left: 54px; right: -20px; top: 26px; bottom: auto; border-left: 0; border-top: 3px dashed var(--charcoal); }
  .trail h3 { padding-top: 0; }
}

/* Who does what */
.jobs { margin-top: clamp(48px, 7vw, 80px); }
.jobs__grid { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 700px) { .jobs__grid { grid-template-columns: 1fr 1fr; } }
.jobs__col { border: var(--line); border-radius: 22px; padding: 20px 22px; }
.jobs__col--kid { background: var(--lilac-tint); transform: rotate(-.5deg); }
.jobs__col--grownup { background: var(--orange-tint); transform: rotate(.5deg); }
.jobs__col h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 900; font-size: 1.55rem; margin-bottom: 10px; }
.jobs__col h3 .icon { width: 36px; height: 36px; stroke-width: 2; }
.jobs__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.jobs__col li { position: relative; padding-left: 30px; font-size: 1.12rem; }
.jobs__col li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 18px; height: 18px;
  background: var(--check) center / 100% no-repeat;
}

/* ---------- Supply checklist ---------- */
.notepad {
  position: relative; background: var(--paper); border: var(--line); border-radius: 22px;
  padding: 50px clamp(16px, 3vw, 34px) clamp(20px, 3vw, 30px);
  box-shadow: 8px 8px 0 rgba(37, 43, 48, .12);
}
.notepad::before {
  content: ""; position: absolute; top: 14px; left: 24px; right: 24px; height: 16px;
  background: radial-gradient(circle at 8px 8px, var(--pink-tint) 6px, var(--charcoal) 6.5px, var(--charcoal) 8px, transparent 8.5px) 0 0 / 34px 16px repeat-x;
}
.notepad__top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.notepad__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.meter { flex: 1 1 260px; max-width: 460px; }
.meter__text { margin: 0 0 8px; font-size: 1.15rem; }
.meter__text strong { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; }
.meter__bar { position: relative; height: 22px; border: var(--line); border-radius: 999px; background: var(--cream); }
.meter__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: var(--orange); transition: width .35s ease;
}
.meter__fill::after {
  content: ""; position: absolute; right: -16px; top: 50%; width: 34px; height: 34px; margin-top: -19px;
  background: url("../img/cast/pumpkin.svg") center / contain no-repeat;
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .98rem; color: var(--ink-soft); margin: 4px 0 18px; }
.legend .tag { margin-left: 8px; }
.legend .tag:first-child { margin-left: 0; }

.checkgroups { display: grid; gap: 10px 36px; }
@media (min-width: 860px) { .checkgroups { grid-template-columns: 1fr 1fr; } }
.checkgroup { border: 0; margin: 0; padding: 0 0 8px; min-width: 0; }
.checkgroup legend { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; padding: 10px 0 6px; }
.check {
  position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; align-items: start;
  padding: 12px 10px; border-radius: 14px; cursor: pointer; min-height: 56px;
  border-bottom: 2px dashed rgba(37, 43, 48, .16);
}
.check:hover { background: var(--pink-tint); }
.check input { position: absolute; opacity: 0; width: 34px; height: 34px; margin: 0; left: 10px; top: 12px; }
.check__box {
  grid-row: span 2; width: 34px; height: 34px; border: var(--line); border-radius: 9px; background: #fff;
  transition: background .15s, transform .15s;
}
.check input:checked + .check__box { background: var(--orange) var(--check) center / 26px no-repeat; transform: rotate(-4deg); }
.check input:focus-visible + .check__box { outline: 3px solid var(--charcoal); outline-offset: 3px; box-shadow: 0 0 0 7px var(--glow); }
.check__text { font-size: 1.12rem; line-height: 1.4; padding-top: 3px; }
.check__text small { display: block; color: var(--ink-soft); margin-top: 2px; }
.check .tag { justify-self: start; grid-column: 2; }
.check input:checked ~ .check__text { text-decoration: line-through 2px rgba(37, 43, 48, .55); color: var(--ink-soft); }
.notepad__done {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 14px 18px;
  background: var(--glow); border: var(--line); border-radius: 16px;
  font-family: var(--font-head); font-weight: 900; font-size: 1.35rem;
}
.notepad__done:not([hidden]) img { animation: hop .6s ease-out 2; }
@keyframes hop { 50% { transform: translateY(-12px) rotate(-8deg); } }

.ordered { margin-top: 24px; border: var(--line); border-radius: 18px; background: var(--paper); }
.ordered summary, .qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none;
  cursor: pointer; min-height: 60px; padding: 14px 20px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.2;
}
.ordered summary::-webkit-details-marker, .qa summary::-webkit-details-marker,
.more summary::-webkit-details-marker { display: none; }
.ordered summary .icon, .qa summary .icon { width: 28px; height: 28px; stroke-width: 3; transition: transform .2s; }
.ordered[open] summary .icon, .qa[open] summary .icon { transform: rotate(180deg); }
.ordered__body { padding: 0 20px 18px; }
.ordered__list { margin: 0; display: grid; gap: 10px; }
.ordered__list div { display: grid; gap: 2px 18px; }
@media (min-width: 640px) { .ordered__list div { grid-template-columns: 9.5em 1fr; } }
.ordered__list dt { font-weight: 700; }
.ordered__list dd { margin: 0; }

/* ---------- Tools pegboard ---------- */
.pegboard {
  list-style: none; margin: 0; padding: clamp(16px, 3vw, 28px);
  display: grid; gap: 22px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  background-color: #DCCDEC;
  background-image: radial-gradient(circle, rgba(37, 43, 48, .28) 2.5px, transparent 3px);
  background-size: 26px 26px;
  border: var(--line); border-radius: 26px;
}
.tool {
  position: relative; background: var(--paper); border: var(--line); border-radius: 20px;
  padding: 18px 18px 14px; margin-top: 8px;
}
.tool::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  background: var(--charcoal); border-radius: 50%; box-shadow: 0 0 0 4px #DCCDEC;
}
.tool:nth-child(3n+1) { transform: rotate(-.9deg); }
.tool:nth-child(3n+2) { transform: rotate(.7deg); }
.tool:nth-child(3n) { transform: rotate(-.3deg); }
.tool__pic { display: block; width: 120px; height: 120px; margin: 0 auto 4px; transition: transform .25s; }
.tool:hover .tool__pic { transform: rotate(-6deg) scale(1.04); }
.tool h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; line-height: 1.1; }
.tool .job { margin: 8px 0 10px; }
.tool p { font-size: 1.05rem; line-height: 1.45; }
.tool p:last-child { margin-bottom: 0; }
.tool__warn { background: var(--cream); border-left: 5px solid var(--orange); border-radius: 0 10px 10px 0; padding: 8px 12px; }
.tool__warn--dog { display: flex; gap: 8px; align-items: flex-start; border-left-color: var(--pink-dark); background: var(--pink-tint); }
.tool__warn--dog .icon { width: 24px; height: 24px; margin-top: 1px; }
.tool__pics { display: flex; justify-content: center; gap: 4px; }
.tool__pics .tool__pic { width: 104px; height: 104px; margin: 0; }
@media (min-width: 820px) { .tool--wide { grid-column: span 2; } }

.offtable {
  margin-top: 30px; padding: 20px clamp(16px, 3vw, 28px);
  border: 3px dashed var(--charcoal); border-radius: 22px; background: var(--paper);
}
.offtable__title { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; margin-bottom: 12px; }
.offtable ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .offtable ul { grid-template-columns: 1fr 1fr; } }
.offtable li { display: flex; gap: 14px; align-items: center; }
.offtable img { width: 84px; height: 84px; flex: none; }
.offtable p { margin: 0; font-size: 1.08rem; }

/* ---------- Steppers ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step {
  display: grid; gap: 20px 36px; align-items: center;
  background: var(--paper); border: var(--line); border-radius: 26px;
  padding: clamp(14px, 3vw, 30px);
}
@media (min-width: 820px) { .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.step__pic { margin: 0; background: #fff; border: 2.5px solid var(--charcoal); border-radius: 20px; padding: 6px; }
.step__pic img { display: block; width: 100%; height: auto; }
.step__num { font-family: var(--font-hand); font-size: 1.5rem; color: var(--orange-ink); margin: 0 0 2px; }
.step__num span { color: var(--ink-soft); }
.step__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.9rem, 4.6vw, 2.7rem); line-height: 1.02; }
.step__text { font-size: clamp(1.22rem, 2.4vw, 1.38rem); line-height: 1.5; max-width: 34ch; }
.more, .why { margin-top: 10px; }
.more summary, .why summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px;
  border: 2.5px solid var(--charcoal); border-radius: 999px; background: var(--cream);
  font-weight: 700; cursor: pointer; list-style: none;
}
.why summary { background: var(--lilac-tint); }
.more summary::before, .why summary::before {
  content: "+"; font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; line-height: 1; width: 14px; text-align: center;
}
.more[open] summary::before, .why[open] summary::before { content: "–"; }
.why summary::-webkit-details-marker { display: none; }
.more > div, .why > div {
  margin-top: 10px; padding: 12px 16px; border-radius: 14px; font-size: 1.08rem;
  background: var(--cream); border: 2px dashed rgba(37, 43, 48, .3);
}
.why > div { background: var(--lilac-tint); }
.more > div p:last-child, .why > div p:last-child { margin-bottom: 0; }
.more--dark summary { background: var(--charcoal-2); border-color: var(--cream); color: var(--cream); }
.more--dark > div, .more--dark > ol { color: var(--cream); }

/* Enhanced stepper (JS on): one card at a time */
.stepper { position: relative; }
.stepper__top {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: flex-end; margin-bottom: 16px;
}
.stepper__progress { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.stepper__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.stepper.is-ready:not(.is-all) .step:not(.is-current) { display: none; }
.stepper.is-ready:not(.is-all) .step.is-current { animation: slide-in .28s ease-out; }
.stepper.go-back .step.is-current { animation-name: slide-in-back; }
@keyframes slide-in { from { opacity: 0; transform: translateX(22px) rotate(.6deg); } }
@keyframes slide-in-back { from { opacity: 0; transform: translateX(-22px) rotate(-.6deg); } }
.stepper__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px;
}
.stepper__nav .btn { min-width: 128px; min-height: 58px; font-size: 1.2rem; }
.stepper__nav .btn[disabled] { opacity: .4; cursor: default; transform: none; box-shadow: var(--lift); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; border-radius: 50%;
}
.dot span {
  display: block; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--charcoal); background: var(--paper);
  transition: transform .2s, background .2s;
}
.dot.is-seen span { background: var(--charcoal); }
.dot[aria-current="step"] span { background: var(--orange); transform: scale(1.35); }
@media (max-width: 600px) {
  .stepper.is-ready:not(.is-all) .stepper__nav { flex-wrap: wrap; }
  .stepper__nav .dots { order: -1; width: 100%; gap: 0; }
  .stepper__nav .btn { flex: 1; min-width: 0; padding-inline: 14px; }
}
.stepper.is-all .stepper__done, .stepper.is-all .stepper__nav, .stepper.is-done .stepper__nav { display: none; }
.stepper__done {
  text-align: center; background: var(--paper); border: var(--line); border-radius: 26px; padding: 32px 20px;
}
.stepper__done img { width: 110px; height: 110px; animation: hop .6s ease-out 2; }
.stepper__done-title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 10px 0; }
.stepper__done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 0; }

/* ---------- Face Lab ---------- */
.lab {
  position: relative; background: var(--lilac-tint); border: var(--line); border-radius: 28px;
  padding: clamp(16px, 3vw, 32px);
}
html:not(.js-ready) .lab { display: none; }
.lab__head p { margin: 10px 0 0; font-size: 1.15rem; max-width: 54ch; }
.lab__grid { display: grid; gap: 22px; margin-top: 22px; align-items: start; }
@media (min-width: 860px) { .lab__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; } }
.lab__stage {
  --night: var(--charcoal);
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 2;
  background: var(--cream); border: var(--line); border-radius: 24px; padding: 10px;
  transition: background-color .5s;
}
.lab__stage[data-lit="true"] { background: var(--charcoal); }
.lab__svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.lab__svg * { transition: fill .45s ease; }
.lab__stage-actions { display: flex; justify-content: center; margin-top: 6px; }
@media (max-width: 859px) {
  .lab__stage { display: grid; grid-template-columns: 1fr; padding: 6px; }
  .lab__svg { max-height: 34vh; }
  .lab__stage-actions { margin-top: 0; }
  .switch--lab { min-height: 46px; }
}
.lab__stage.is-paint .lab__stage-actions { display: none; }

.lab__controls { display: grid; gap: 18px; }
.lab__controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lab__controls legend { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg legend { grid-column: 1 / -1; }
.seg label, .pill { position: relative; cursor: pointer; }
.seg input, .pill input, .tile input, .swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 12px;
  border: var(--line); border-radius: 18px; background: var(--paper); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 3px 0 var(--charcoal);
}
.seg input:checked + span { background: var(--orange); transform: rotate(-1deg); }
.seg label:nth-of-type(2) input:checked + span { background: var(--lilac); transform: rotate(1deg); }
.seg input:focus-visible + span, .tile input:focus-visible + .tile__face, .swatch input:focus-visible + span,
.pill input:focus-visible + span { outline: 3px solid var(--charcoal); outline-offset: 3px; box-shadow: 0 0 0 7px var(--glow); }
.tiles__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { position: relative; cursor: pointer; }
.tile__face {
  display: grid; place-items: center; width: 62px; height: 62px;
  border: 2.5px solid var(--charcoal); border-radius: 16px; background: var(--paper);
  transition: transform .15s, background .15s;
}
.tile__face svg { width: 46px; height: 46px; }
.tile:hover .tile__face { transform: translateY(-2px); }
.tile input:checked + .tile__face { background: var(--glow); border-width: 3.5px; transform: rotate(-4deg) scale(1.05); }
.swatch { position: relative; cursor: pointer; }
.swatch span {
  display: block; width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--charcoal);
  background: var(--c); transition: transform .15s;
}
.swatch input:checked + span { transform: scale(1.12); box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--charcoal); }
.extras { display: flex; flex-wrap: wrap; gap: 8px; }
.extras legend { width: 100%; }
.pill span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 16px;
  border: 2.5px solid var(--charcoal); border-radius: 999px; background: var(--paper); font-weight: 700;
}
.pill span::before {
  content: ""; width: 20px; height: 20px; border: 2.5px solid var(--charcoal); border-radius: 6px; background: #fff;
}
.pill input:checked + span { background: var(--pink); }
.pill input:checked + span::before { background: var(--glow) var(--check) center / 16px no-repeat; }
.lab__controls:not(.is-paint) .paint-only { display: none; }
.namefield { display: grid; gap: 6px; }
.namefield span { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; }
.namefield input {
  min-height: 54px; padding: 8px 16px; border: var(--line); border-radius: 16px; background: #fff; font-size: 1.2rem;
}
.lab__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.lab__tip { margin: 0; }

/* ---------- Ideas ---------- */
.ideas { margin-top: clamp(48px, 7vw, 80px); }
.ideas__bar { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.ideas__bar .h3 { margin-right: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 46px; padding: 6px 18px; border: 2.5px solid var(--charcoal); border-radius: 999px;
  background: var(--paper); font-weight: 700;
}
.filter[aria-pressed="true"] { background: var(--charcoal); color: var(--cream); }
.ideas__note { margin: 14px 0 28px; }
.ideas__grid {
  list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 36px 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.idea {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: var(--line); border-radius: 18px; padding: 12px 12px 18px;
}
.idea::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px;
  background: rgba(242, 187, 197, .88); transform: rotate(-4deg); border-radius: 3px;
}
.idea:nth-child(3n+2)::before { background: rgba(170, 138, 202, .7); transform: rotate(3deg); }
.idea:nth-child(3n)::before { background: rgba(255, 210, 94, .8); transform: rotate(-2deg); }
.idea:nth-child(odd) { transform: rotate(-.7deg); }
.idea:nth-child(even) { transform: rotate(.6deg); }
.idea__pic { background: var(--cream); border-radius: 10px; border: 2px solid rgba(37, 43, 48, .15); }
.idea__pic img { display: block; width: 100%; height: auto; }
.idea__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 14px 4px 6px; }
.idea__meta .tag { font-size: .88rem; }
.diff { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; }
.diff__pips { display: inline-flex; gap: 2px; }
.diff__pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--charcoal); background: var(--paper); }
.diff__pips i.on { background: var(--orange); }
.idea h4 { font-family: var(--font-head); font-weight: 900; font-size: 1.45rem; line-height: 1.1; margin: 0 4px 6px; }
.idea__desc { margin: 0 4px 10px; font-size: 1.05rem; line-height: 1.45; }
.idea__facts { margin: 0 4px; display: grid; gap: 6px; font-size: .98rem; line-height: 1.4; }
.idea__facts div { display: grid; grid-template-columns: 7.2em 1fr; gap: 8px; }
.idea__facts dt { font-weight: 700; }
.idea__facts dd { margin: 0; }
.idea__simple {
  margin: 12px 4px 0; padding: 10px 12px; border-radius: 12px; background: var(--cream);
  font-size: .98rem; line-height: 1.4;
}
.idea__simple strong { font-family: var(--font-hand); font-weight: 400; font-size: 1.25rem; color: var(--orange-ink); margin-right: 4px; }
.idea__dog { display: flex; gap: 6px; align-items: center; margin: 10px 4px 0; font-weight: 700; font-size: .95rem; }
.idea__dog .icon { width: 22px; height: 22px; }
.est { font-size: .82rem; color: var(--ink-soft); font-style: italic; }

.ideas__table { overflow-x: auto; border: var(--line); border-radius: 18px; background: #fff; -webkit-overflow-scrolling: touch; }
.ideas__table table { border-collapse: collapse; width: 100%; min-width: 880px; font-size: 1rem; }
.ideas__table caption { text-align: left; padding: 14px 16px 4px; color: var(--ink-soft); font-size: .95rem; }
.ideas__table th, .ideas__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px dashed rgba(37, 43, 48, .16); }
.ideas__table thead th { font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; background: var(--cream); border-bottom: var(--line); }
.ideas__table tbody th { font-weight: 700; position: sticky; left: 0; background: #fff; min-width: 10em; }
.ideas__table tr:last-child td, .ideas__table tr:last-child th { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 980px; }
.qa { background: var(--paper); border: var(--line); border-radius: 20px; }
.qa:nth-child(odd) { transform: rotate(-.25deg); }
.qa:nth-child(even) { transform: rotate(.25deg); }
.qa[open] { background: #fff; }
.qa summary { font-size: clamp(1.15rem, 2.6vw, 1.35rem); }
.qa summary:hover { color: var(--orange-ink); }
.qa__body { display: grid; gap: 16px 26px; padding: 0 20px 20px; align-items: start; }
@media (min-width: 720px) { .qa__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.qa__text p { font-size: 1.15rem; }
.qa__pic { width: 100%; max-width: 360px; border: 2.5px solid var(--charcoal); border-radius: 16px; background: #fff; padding: 4px; }
.qa__pic--square { max-width: 200px; }

/* ---------- Videos ---------- */
.sec--night .sec-head__lead { color: #EDE5D6; }
.sec--night .h2::after { filter: none; }
.tv-row { display: grid; gap: 30px; }
@media (min-width: 900px) { .tv-row { grid-template-columns: 1fr 1fr; } }
.tv { background: var(--charcoal-2); border: 3px solid var(--cream); border-radius: 26px; padding: 14px 14px 20px; }
.tv__screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--cream); border: 3px solid var(--charcoal);
}
.tv__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv__play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: var(--cream);
  display: grid; place-items: center; color: var(--charcoal);
}
.tv__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .55; }
.tv__btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 10px 26px;
  background: var(--orange); border: var(--line); border-radius: 999px; box-shadow: var(--lift);
  font-weight: 700; font-size: 1.25rem; transition: transform .15s;
}
.tv__btn .icon { fill: currentColor; stroke-width: 1.5; }
.tv__play:hover .tv__btn { transform: scale(1.06) rotate(-2deg); }
.tv__hint {
  position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: .9rem; font-weight: 700;
}
.tv__text { padding: 16px 6px 0; }
.tv__tag { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; color: #EDE5D6; }
.tv__tag .tag { color: var(--charcoal); }
.tv__text h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.6rem; margin-bottom: 8px; }
.tv__text > p { font-size: 1.08rem; }
.mini-steps { margin: 12px 0 0; padding-left: 1.4em; font-size: 1.05rem; color: var(--cream); }
.mini-steps li { margin-bottom: 4px; }
.out {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 10px;
  font-weight: 700; color: var(--glow); text-decoration: underline; text-decoration-thickness: 2px;
}
.out .icon { width: 20px; height: 20px; }
.guides__title { margin: clamp(44px, 6vw, 64px) 0 20px; }
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .guides { grid-template-columns: 1fr 1fr; } }
.guide { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 2.5px dashed rgba(255, 247, 232, .5); border-radius: 20px; }
.guide img { width: 72px; height: 72px; flex: none; background: var(--cream); border-radius: 50%; padding: 8px; }
.guide h4 { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; margin-bottom: 6px; }
.guide p { font-size: 1.05rem; color: #EDE5D6; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding-bottom: 48px; }
.parade { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 18px); flex-wrap: wrap; }
.parade img { transition: transform .25s; }
.parade img:nth-child(odd) { transform: rotate(-8deg); }
.parade img:nth-child(even) { transform: rotate(7deg); }
.parade img:hover { transform: translateY(-8px) rotate(0); }
.footer__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 18px 0 20px; }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer__small { max-width: 60ch; margin: 28px auto 0; font-size: 1rem; }

/* ---------- Big view (table mode) ---------- */
.bigview {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--cream); background-image: var(--grain); color: var(--charcoal);
}
.bigview::backdrop { background: rgba(37, 43, 48, .7); }
.bigview__inner { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 18px; max-width: 1100px; margin: 0 auto; }
.bigview__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bigview__count { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.1rem, 3.6vw, 1.5rem); line-height: 1.15; margin: 0; }
.bigview__close {
  display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 6px 18px;
  border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 1.1rem;
}
.bigview__card {
  flex: 1; min-height: 0; display: grid; gap: 14px 32px; align-content: start; align-content: safe center; align-items: center;
  background: var(--paper); border: var(--line); border-radius: 28px; padding: clamp(14px, 3vw, 32px); overflow-y: auto;
}
@media (min-width: 820px) and (min-aspect-ratio: 1/1) { .bigview__card { grid-template-columns: 1fr 1fr; } }
.bigview__pic { width: 100%; max-height: 38vh; object-fit: contain; }
@media (min-aspect-ratio: 1/1) { .bigview__pic { max-height: 62vh; } }
.bigview__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; }
.bigview__job .job { font-size: 1.2rem; }
.bigview__text { font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.4; margin: 0; }
.bigview__nav { display: flex; gap: 12px; }
.bigview__nav .btn { flex: 1; }
.bigview__nav .btn[disabled] { opacity: .4; }
.bigview__hint { text-align: center; margin: 0; }

/* ---------- Print ---------- */
.print-pattern { display: none; }

@media print {
  @page { margin: 14mm; }
  :root { --grain: none; }
  html { scroll-behavior: auto; }
  body { background: #fff; font-size: 11.5pt; line-height: 1.4; }
  .topbar, .skip, .switch, .stage, .btn, .stepper__top, .stepper__nav, .stepper__done, .filters, .view-toggle,
  .lab, .tv__screen, .parade, .chips, .qa__links, .notepad__actions, .bigview, .meter, .sec-head__pal,
  .edge::before, .footer__actions, noscript { display: none !important; }
  .sec { background: #fff !important; color: var(--charcoal) !important; padding: 0 0 8mm; }
  .sec + .sec, .footer { border-top: 2px dashed #999; padding-top: 6mm; }
  .h2 { font-size: 22pt; }
  .h2::after { display: none; }
  .hero__grid { display: block; }
  .hero__line1 { font-size: 30pt; }
  .hero__line2 { font-size: 16pt; background: none; padding: 0; }
  .lead { font-size: 13pt; margin: 4mm 0; }
  .paths, .supplies-link { display: none; }
  .rules { margin-top: 4mm; grid-template-columns: repeat(3, 1fr); display: grid; gap: 3mm; }
  .rule, .jobs__col, .tool, .idea, .qa, .step, .notepad, .ordered, .offtable, .pegboard, .tv, .guide { transform: none !important; box-shadow: none !important; }
  .rule img { width: 40px; height: 40px; }
  .rule h3 { font-size: 12pt; }
  .rule p, .trail p, .jobs__col li { font-size: 10.5pt; }
  .trail { grid-template-columns: repeat(5, 1fr); display: grid; gap: 3mm; }
  .trail li { padding: 0; }
  .trail li::before, .trail__num { display: none; }
  .trail h3 { font-size: 12pt; padding: 0; }
  .jobs__grid { grid-template-columns: 1fr 1fr; display: grid; }
  .pegboard { background: none; border: 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
  .tool { padding: 3mm; break-inside: avoid; }
  .tool::before { display: none; }
  .tool__pic { width: 60px; height: 60px; }
  .tool__pics .tool__pic { width: 50px; height: 50px; }
  .tool p { font-size: 10pt; }
  .stepper .step { display: grid !important; animation: none !important; }
  .steps { gap: 4mm; }
  .step { grid-template-columns: 52mm 1fr !important; gap: 6mm; padding: 4mm; break-inside: avoid; border-width: 2px; }
  .step__title { font-size: 16pt; }
  .step__text { font-size: 12pt; max-width: none; }
  .more summary, .why summary { border: 0; padding: 0; min-height: 0; background: none; font-size: 10.5pt; }
  .more summary::before, .why summary::before { content: none; }
  .more > div, .why > div { border: 0; padding: 0 0 0 3mm; margin-top: 1mm; background: none; font-size: 10.5pt; }
  .notepad { padding: 4mm; border-width: 2px; }
  .notepad::before { display: none; }
  .check { min-height: 0; padding: 2mm 1mm; break-inside: avoid; }
  .check__box { width: 18px; height: 18px; border-width: 2px; }
  .check input:checked + .check__box { background-size: 14px; }
  .check__text { font-size: 11pt; padding: 0; }
  .ideas__grid { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .idea { break-inside: avoid; padding: 3mm; }
  .idea::before { display: none; }
  .idea__pic img { max-height: 40mm; object-fit: contain; }
  .idea__desc, .idea__facts, .idea__simple { font-size: 9.5pt; }
  .qa { break-inside: avoid; }
  .qa__body { display: grid !important; grid-template-columns: 1fr 45mm; padding: 0 4mm 4mm; }
  .qa__pic { max-width: 45mm; }
  .sec--night h3, .sec--night h4, .sec--night p, .sec--night .mini-steps { color: var(--charcoal) !important; }
  .tv, .guide { border: 2px solid #999; background: #fff; }
  .out { color: var(--charcoal); }
  a.out::after { content: " " attr(href); font-weight: 400; font-size: 9pt; word-break: break-all; }
  .footer { text-align: left; }

  /* Print just the checklist */
  body[data-print="checklist"] main > section:not(#supplies), body[data-print="checklist"] .footer { display: none !important; }
  body[data-print="checklist"] #supplies { border: 0; padding-top: 0; }

  /* Print just the Face Lab pattern */
  body[data-print="pattern"] main, body[data-print="pattern"] .footer { display: none !important; }
  body[data-print="pattern"] .print-pattern { display: block; }
}
.print-pattern h1 { font-family: var(--font-head); font-weight: 900; font-size: 24pt; margin: 0 0 3mm; }
.print-pattern ol { margin: 0 0 4mm; padding-left: 5mm; font-size: 11.5pt; }
.print-pattern .pp-face { display: block; width: 170mm; height: auto; margin: 0 auto; }
.print-pattern .pp-key { font-size: 10pt; color: #444; margin: 2mm 0 0; text-align: center; }
.print-pattern .pp-card {
  margin: 8mm auto 0; width: 120mm; border: 1.5px dashed #555; text-align: center;
}
.print-pattern .pp-card div { height: 28mm; display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 24pt; }
.print-pattern .pp-card div:first-child { transform: rotate(180deg); border-top: 1.5px dashed #999; }
.print-pattern .pp-fold { font-size: 9pt; color: #666; margin: 1mm 0 0; text-align: center; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .stage[data-lit="true"] .stage__bat { opacity: 1; transform: translate(220px, -10px); }
}
.lab__controls.is-paint .carve-only { display: none; }
.pill--radio span::before { border-radius: 50%; }
.pill--radio input:checked + span { background: var(--glow); }
.pill--radio input:checked + span::before { background: var(--charcoal); box-shadow: inset 0 0 0 3px #fff; }

/* Small phones: keep the logo and Menu button side by side */
.brand { min-width: 0; }
.brand__name { min-width: 0; }
@media (max-width: 480px) {
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: 1.02rem; line-height: 1.05; }
  .menu-btn { padding: 6px 14px; }
}

/* Print polish */
@media print {
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .check__box { border-radius: 4px; }
  .checkgroup { padding-top: 3mm; }
  .more[open] summary::before, .why[open] summary::before { content: none; }
  .sec-head, .ideas__bar, .plan > .h2, .jobs > .h2 { break-after: avoid; break-inside: avoid; }
  .step { padding: 3mm 4mm; }
  .step__text { font-size: 11.5pt; }
  .step__pic { padding: 2px; }
  .pp-cardwrap { break-inside: avoid; }
}

/* Keep the hero stickers inside narrow screens */
.hero { overflow-x: clip; }
@media (max-width: 520px) {
  .stage__ghost { left: -8px; top: -30px; width: 70px; }
  .stage__corn { right: -6px; width: 50px; }
}

/* Whole-guide print shows all nine idea cards, whatever the screen filter or view */
@media print {
  .ideas__grid[hidden] { display: grid !important; }
  .ideas__grid > .idea[hidden] { display: flex !important; }
  .ideas__table { display: none !important; }
  body[data-print="checklist"] .ideas__grid { display: none !important; }
}

/* Fable 5.1 review fixes */
.kicker { text-wrap: balance; }
/* Big view on a landscape phone: keep the instruction on screen */
@media (max-height: 520px) {
  .bigview__inner { gap: 8px; padding: 8px 12px; }
  .bigview__hint { display: none; }
  .bigview__count { font-size: 1.05rem; }
  .bigview__close { min-height: 44px; }
  .bigview__card { padding: 10px 14px; gap: 8px 20px; }
  .bigview__pic { max-height: calc(100vh - 150px); }
  .bigview__title { font-size: 1.6rem; }
  .bigview__job .job { margin: 4px 0; font-size: 1rem; }
  .bigview__text { font-size: 1.15rem; }
  .bigview__nav .btn { min-height: 48px; font-size: 1.1rem; }
}
/* Face Lab on phones: a smaller preview with the light switch beside it */
@media (max-width: 859px) {
  .lab__stage { grid-template-columns: 1fr auto; align-items: center; gap: 6px; }
  .lab__svg { max-height: 26vh; }
  .lab__stage-actions { margin: 0; }
  .switch--lab { padding: 6px 12px 6px 8px; }
}
/* Short screens (or the keyboard is up): the preview stops following you */
@media (max-height: 600px) { .lab__stage { position: static; } }

/* ---------- Tap the pumpkin to light it ---------- */
.stage .jack, .lab__stage:not(.is-paint) .lab__svg {
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.jack, .lab__svg { transform-origin: 50% 85%; }

/* ---------- Ta-da! card: the kid's own pumpkin on the done panel ---------- */
.tada-card {
  position: relative; width: min(250px, 78%); margin: 4px auto 0; padding: 14px 10px 6px;
  background: var(--charcoal); border: var(--line); border-radius: 26px; transform: rotate(-2deg);
}
.tada-card::before {
  content: ""; position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream); box-shadow: -7px -3px 0 0 var(--charcoal) inset;
}
.tada-card svg { position: relative; display: block; width: 100%; height: auto; }
.tada-card--paint { background: var(--cream); }
.tada-card--paint::before { display: none; }
.tada-card:not([hidden]) { animation: hop .6s ease-out 1; }

/* ---------- Pumpkin Parade ---------- */
.btn--pink { background: var(--pink); }
.lab__added { margin: 0; font-weight: 700; }
.lab__added a { color: var(--lilac-ink); white-space: nowrap; }
.parade-box {
  margin-top: clamp(28px, 4vw, 40px); background: var(--pink-tint); border: var(--line); border-radius: 28px;
  padding: clamp(16px, 3vw, 32px);
}
html:not(.js-ready) .parade-box { display: none; }
.parade-box__head p { margin: 10px 0 0; font-size: 1.15rem; max-width: 54ch; }
.parade-box__empty {
  display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 14px 18px;
  background: var(--paper); border: 3px dashed var(--charcoal); border-radius: 20px;
}
.parade-box__empty img { width: 76px; height: 76px; flex: none; transform: rotate(-6deg); }
.parade-box__empty p { margin: 0; font-size: 1.1rem; }
.parade-strip {
  list-style: none; margin: 22px 0 0; padding: 12px 0 0; display: grid; gap: 24px 16px;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}
.parade-item {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 170px; min-width: 0; justify-self: center;
}
.parade-item__pic { width: 100%; background: var(--charcoal); border: var(--line); border-radius: 20px; padding: 8px 4px 4px; }
.parade-item--paint .parade-item__pic { background: var(--paper); }
.parade-item__pic svg { display: block; width: 100%; height: auto; }
.parade-item__name {
  position: relative; max-width: 100%; margin: -12px 0 0; padding: 3px 12px;
  background: #fff; border: 2.5px solid var(--charcoal); border-radius: 6px;
  font-family: var(--font-head); font-weight: 900; font-size: 1.05rem; line-height: 1.15;
  overflow-wrap: break-word; transform: rotate(-2deg);
}
.parade-item:nth-child(even) .parade-item__name { transform: rotate(2deg); }
.parade-item__name.is-blank { font-family: var(--font-body); font-weight: 400; font-style: italic; color: var(--ink-soft); }
.parade-item__remove {
  position: absolute; top: -12px; right: -8px; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 2.5px solid var(--charcoal); border-radius: 50%;
  background: var(--paper); box-shadow: 0 3px 0 var(--charcoal);
}
.parade-item__remove .icon { width: 20px; height: 20px; stroke-width: 3; }
.parade-item__remove:hover { background: var(--pink); }
.parade-item__remove:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--charcoal); }
.parade-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.parade-box__count { margin: 0 auto 0 0; font-weight: 700; }
.parade-box__note { margin: 16px 0 0; }

/* Show the parade: full screen, night sky */
.showview {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--charcoal); color: var(--cream); overflow-y: auto;
}
.showview::backdrop { background: rgba(37, 43, 48, .7); }
.showview :focus-visible { outline-color: var(--cream); }
.showview__inner {
  min-height: 100%; display: flex; flex-direction: column; gap: 20px;
  padding: 14px 16px 28px; max-width: 1240px; margin: 0 auto;
}
.showview__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.showview__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.05; }
.showview__row {
  list-style: none; margin: auto 0; padding: 0; display: flex; flex-wrap: wrap;
  justify-content: center; align-items: flex-end; gap: 30px 18px;
}
.showview__item { width: clamp(140px, 19vw, 230px); text-align: center; }
.showview__item svg { display: block; width: 100%; height: auto; }
.showview__name {
  display: inline-block; max-width: 100%; margin: -6px 0 0; padding: 4px 14px;
  background: var(--cream); color: var(--charcoal); border-radius: 6px;
  font-family: var(--font-head); font-weight: 900; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.15;
  overflow-wrap: break-word; transform: rotate(-2deg);
}
.showview__item:nth-child(even) .showview__name { transform: rotate(2deg); }
.showview[open] .showview__item { animation: rise .5s ease-out both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Name cards: long names shrink, nothing spills off the card */
.print-pattern .pp-card div { padding: 0 4mm; line-height: 1.05; overflow-wrap: break-word; }
.print-pattern .pp-card--long div { font-size: 18pt; }
.print-pattern .pp-note { font-size: 10.5pt; color: #444; margin: 0 0 2mm; }

@media print {
  .parade-box { display: none !important; }
  /* Print just the parade's name cards */
  body[data-print="cards"] main, body[data-print="cards"] .footer { display: none !important; }
  body[data-print="cards"] .print-pattern { display: block; }
}
.parade-item__name.is-long { font-size: .9rem; }
.showview .bigview__close { color: var(--charcoal); }
.showview__name.is-blank { visibility: hidden; }
.showview__name.is-long { font-size: clamp(1rem, 2vw, 1.25rem); }

/* gpt-6.1-sol review fixes: long names with no spaces wrap instead of spilling */
.stepper__done-title, .lab__added, .parade-item__name, .showview__name { overflow-wrap: anywhere; }
.showview__item { min-width: 0; }
.print-pattern .pp-card div { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
@media print {
  .showview, .showview::backdrop { display: none !important; }
}
