/* Pear Presser — website styles (home, guide, parents, legal, about, 404).
   Same visual language as the game: cream labels, leaf-ink outlines, solid offset shadows,
   glossy candy tiles and chunky buttons that press down. The game itself uses css/style.css. */

@font-face { font-family: "Fredoka"; src: url("../assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../assets/fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #23341a;
  --ink-soft: #4d5f3c;
  --cream: #fff8e0;
  --paper: #f7ecc4;
  --paper-deep: #e6d69c;
  --pear: #9fdc34;
  --pear-deep: #4f9d1e;
  --leaf: #1f7a3a;
  --juice: #ffc928;
  --juice-deep: #e08a00;
  --berry: #ff4d86;
  --berry-deep: #c41f5a;
  --sky: #3fb2ff;
  --violet: #8d5cff;
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --wrap: 1140px;
  --gut: clamp(16px, 4vw, 40px);
  --bar-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 1.55;
  background: var(--cream); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, canvas { max-width: 100%; }
img { height: auto; display: block; }
a { color: #14602c; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--berry-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; font-family: var(--display); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.wrap-narrow { max-width: calc(760px + var(--gut) * 2); }

/* ---------- buttons ---------- */
.btn {
  --b1: #c5f24f; --b2: #7cc91f; --lip: #3f7d14;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 9px 20px;
  font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.1; color: var(--ink); text-align: center; text-decoration: none;
  background: linear-gradient(180deg, var(--b1), var(--b2)); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 var(--lip);
  transition: transform .07s, box-shadow .07s, filter .15s;
}
.btn:hover { color: var(--ink); filter: brightness(1.06) saturate(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.4), inset 0 -2px 0 var(--lip); }
.btn-gold { --b1: #ffe873; --b2: #ffb81f; --lip: #c57600; }
.btn-pink { --b1: #ffa6c4; --b2: #ff4d86; --lip: #b3154e; }
.btn-sky { --b1: #c9efff; --b2: #6cc6ff; --lip: #1f7fc8; }
.btn-ghost { --b1: #fffdf2; --b2: #f2e7bd; --lip: #cdbd82; }
.btn-big { min-height: 64px; padding: 12px 30px; font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; border-radius: 22px; box-shadow: 0 7px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,.6), inset 0 -5px 0 var(--lip); }
.btn-big:active { transform: translateY(6px); }
.btn-big small { display: block; font-size: 13px; font-weight: 600; opacity: .85; margin-top: 3px; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 15px; border-radius: 13px; box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 var(--lip); }
.play-tri { width: 0; height: 0; border-left: .78em solid var(--ink); border-top: .5em solid transparent; border-bottom: .5em solid transparent; flex: none; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; padding: 8px var(--gut) 0; pointer-events: none; }
.bar-in {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px;
  background: linear-gradient(180deg, #fffef4, #ffefb4); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.9);
}
.mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto; }
.mark img { width: 38px; height: 38px; border-radius: 11px; border: 2.5px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.mark:hover { color: var(--ink); }
.links { display: flex; align-items: center; gap: 2px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 13px; border-radius: 13px; font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink); text-decoration: none; }
.links a:hover { background: rgba(35,52,26,.09); color: var(--ink); }
.links a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.menu-btn { display: none; width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #e8fbff, #9fdcff); box-shadow: 0 3px 0 var(--ink); padding: 0; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 3.5px; border-radius: 2px; background: var(--ink); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -7px; } .menu-btn span::after { position: absolute; top: 7px; }
@media (max-width: 859px) {
  .mark { font-size: 19px; } .mark img { width: 34px; height: 34px; }
  .js .menu-btn { display: grid; }
  .links { position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: var(--cream); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); pointer-events: auto; }
  .links a { font-size: 18px; min-height: 48px; }
  .js .links:not(.is-open) { display: none; }
  html:not(.js) .bar { position: static; } html:not(.js) .links { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 8px; }
  html:not(.js) .bar-in { flex-wrap: wrap; }
}
@media (max-width: 400px) { .mark span { font-size: 17px; } .bar-in { padding-left: 9px; gap: 7px; } .bar .btn-sm { padding: 6px 11px; } }
@media (max-width: 345px) { .mark span { display: none; } }

/* ---------- section scaffolding ---------- */
.band { padding: clamp(52px, 8vw, 104px) 0; position: relative; }
.band-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.band-head h2 { font-size: clamp(32px, 5.2vw, 56px); letter-spacing: -.01em; }
.band-head p { margin-top: 12px; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-soft); max-width: 60ch; }
.stroke { color: #fff; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; text-shadow: 0 .09em 0 var(--ink); }
.on-dark .band-head p, .on-colour .band-head p { color: inherit; opacity: .92; }

.sticker { background: #fffdf2; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }

/* ---------- hero ---------- */
.hero { margin-top: calc(-1 * var(--bar-h) - 8px); padding: calc(var(--bar-h) + clamp(28px, 5vw, 64px)) 0 0; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #5cc4ff 0%, #9fe0ff 46%, #d9f7c4 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 150px 46px at 12% 22%, rgba(255,255,255,.9) 0 99%, transparent 100%), radial-gradient(ellipse 90px 34px at 18% 19%, rgba(255,255,255,.9) 0 99%, transparent 100%),
    radial-gradient(ellipse 120px 38px at 58% 12%, rgba(255,255,255,.75) 0 99%, transparent 100%), radial-gradient(ellipse 170px 50px at 92% 34%, rgba(255,255,255,.8) 0 99%, transparent 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding-bottom: clamp(84px, 11vw, 150px); }
.hero h1 { font-size: clamp(54px, 9.4vw, 124px); line-height: .92; letter-spacing: -.02em; color: #fff; -webkit-text-stroke: .11em var(--ink); paint-order: stroke fill; text-shadow: 0 .075em 0 var(--ink); }
.hero h1 span { display: block; }
.hero h1 .l2 { color: #e9ff7a; }
.hero-pitch { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(18px, 2vw, 23px); font-weight: 700; line-height: 1.42; max-width: 31em; color: #173a22; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; margin-top: clamp(22px, 3vw, 34px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 14px; font-family: var(--display); font-weight: 600; font-size: 15px; background: linear-gradient(180deg, #fffef4, #ffeaa0); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--pear)); border: 2px solid var(--ink); flex: none; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 10vw, 140px); pointer-events: none; }
.hills svg { width: 102%; height: 100%; display: block; margin-left: -1%; }

.stage-wrap { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.stage { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 4px solid var(--ink); border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #7fd4ff, #d9f7c4);
  box-shadow: 0 10px 0 var(--ink), 0 26px 40px -10px rgba(20,60,30,.45); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transform: rotate(1.6deg); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px 4px 5px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink);
  background: linear-gradient(180deg, #e8fbff, #9fdcff); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); pointer-events: none; }
.stage-chip i { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c, #6cc832); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.stage-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; pointer-events: none; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-fallback img { width: 56%; }
.js .stage-fallback { display: none; }
.stage-count { margin: 20px auto 0; text-align: center; font-family: var(--display); font-weight: 600; font-size: 17px; min-height: 30px; }
.stage-count a { font-weight: 700; }
.stage-count b { display: inline-block; min-width: 1.2em; padding: 0 8px; border-radius: 999px; background: var(--juice); border: 2.5px solid var(--ink); }
@media (max-width: 859px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-pitch { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-facts { justify-content: center; }
  .stage-wrap { max-width: 340px; }
  .stage { aspect-ratio: 1 / 1.12; }
}

/* ---------- worlds ---------- */
.worlds { background: var(--cream) radial-gradient(rgba(35,52,26,.07) 1.5px, transparent 2px) 0 0 / 22px 22px; }
.world-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: world; }
.world { position: relative; overflow: hidden; display: flex; flex-direction: column; counter-increment: world; }
.world-art { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--s1), var(--s2)); border-bottom: 3px solid var(--ink); }
.world-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world-art::after { content: counter(world); position: absolute; left: 8px; top: 8px; min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px;
  color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; background: linear-gradient(180deg, #ffe066, #ffab1f); border: 2.5px solid var(--ink); border-radius: 11px; box-shadow: 0 2px 0 var(--ink); }
.world-txt { padding: 11px 13px 14px; }
.world h3 { font-size: 18.5px; }
.world p { margin-top: 4px; font-size: 14.5px; line-height: 1.38; color: var(--ink-soft); }
.world small { display: block; margin-top: 7px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--a-deep, var(--leaf)); }
@media (max-width: 1100px) { .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .world h3 { font-size: 16.5px; } .world p { font-size: 13.5px; } .world-txt { padding: 9px 10px 12px; } }

/* ---------- skins ---------- */
.skins { color: #fff; background: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 2.2px) 0 0 / 18px 18px, linear-gradient(180deg, #6fd14a 0%, #3fae3a 55%, #23893a 100%); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.skins .band-head p { color: #f3ffd9; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.skin-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.skin { color: var(--ink); text-align: center; padding: 6px 8px 13px; }
.skin:nth-child(3n+1) { transform: rotate(-1.4deg); } .skin:nth-child(3n) { transform: rotate(1.2deg); }
.skin canvas, .cast canvas { display: block; width: 100%; aspect-ratio: 1; }
.skin h3 { font-size: 16px; }
.skin p { margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.skin-note { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px 18px; color: var(--ink); }
.skin-note p { flex: 1 1 280px; font-size: 16px; }
.skin-mini { display: flex; }
.skin-mini canvas { width: 62px; height: 62px; margin-left: -10px; } .skin-mini canvas:first-child { margin-left: 0; }
@media (max-width: 1000px) { .skin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .skin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .skin { padding: 3px 4px 10px; border-radius: 17px; } .skin h3 { font-size: 13.5px; } .skin p { font-size: 11.5px; } }
@media (max-width: 420px) { .skin-mini canvas { width: 46px; height: 46px; margin-left: -6px; } }
@media (max-width: 350px) { .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- arcade ---------- */
.arcade { color: #fff; background-color: #1c0a3e; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px), linear-gradient(180deg, #2a0f5a, #12062e); background-size: 18px 18px, auto; }
.arcade .band-head p { color: #d9c8ff; }
.neon { display: inline-flex; gap: .4em; padding: .12em .5em .16em; border: 4px solid #ff7ad0; border-radius: .42em; box-shadow: 0 0 18px #ff3df2, inset 0 0 12px rgba(255,61,242,.5); letter-spacing: .03em; }
.neon span:first-child { color: #c8ff4a; text-shadow: 0 0 12px #c8ff4a; } .neon span:last-child { color: #5ee7ff; text-shadow: 0 0 12px #5ee7ff; }
.machines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.machine { border-radius: 22px; border: 3px solid #0b0420; background: #2d1466; box-shadow: 0 6px 0 #0b0420, 0 0 0 2px var(--c1), 0 0 20px -2px var(--c1); overflow: hidden; display: flex; flex-direction: column; }
.machine-screen { position: relative; display: grid; place-items: center; height: 118px; background: radial-gradient(circle at 50% 40%, var(--c1), var(--c2) 78%); border-bottom: 3px solid #0b0420; font-size: 54px; }
.machine-screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 5px); }
.machine-screen span { position: relative; filter: drop-shadow(0 3px 0 rgba(0,0,0,.3)); }
.machine-txt { padding: 12px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.machine h3 { font-size: 20px; color: #fff; }
.machine p { font-size: 14.5px; line-height: 1.4; color: #d9c8ff; }
.machine small { margin-top: auto; padding-top: 6px; font-family: var(--display); font-weight: 600; font-size: 13px; color: #ffe873; }
.arcade-note { margin-top: 26px; color: #d9c8ff; font-size: 16px; max-width: 64ch; }
@media (max-width: 1100px) { .machines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .machines { grid-template-columns: 1fr; gap: 14px; } .machine { flex-direction: row; } .machine-screen { width: 96px; height: auto; min-height: 112px; flex: none; border-bottom: 0; border-right: 3px solid #0b0420; font-size: 44px; } }

/* ---------- story ---------- */
.story { background: linear-gradient(180deg, #fff2c2, var(--cream)); }
.story-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.story-txt h2 { font-size: clamp(32px, 5.2vw, 56px); }
.story-txt p { margin-top: 16px; font-size: 18px; max-width: 46ch; }
.story-txt .btn { margin-top: 24px; }
.story-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; max-width: 420px; }
.story-stats li { padding: 10px 14px; background: #fffdf2; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); font-size: 14.5px; line-height: 1.25; }
.story-stats b { display: block; font-family: var(--display); font-size: 27px; line-height: 1.05; color: #1f7fe6; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cast { text-align: center; padding: 4px 6px 11px; border-radius: 20px; }
.cast canvas { background: radial-gradient(circle at 50% 62%, var(--bg, #dff5ff) 0 46%, transparent 47%); }
.cast h3 { font-size: 15px; }
.cast p { font-size: 12.5px; line-height: 1.25; color: var(--ink-soft); margin-top: 2px; }
.cast.is-mystery canvas { background: none; filter: brightness(0) opacity(.72); }
@media (max-width: 859px) { .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; } .cast h3 { font-size: 13px; } .cast p { font-size: 11.5px; } }
@media (max-width: 350px) { .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- screenshots ---------- */
.shots { background: linear-gradient(180deg, #bfeaff, #e9f9ff); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); overflow: hidden; }
.shot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); align-items: start; }
.phone { border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 8px 0 var(--ink); }
.phone img { width: 100%; }
.shot figcaption { margin-top: 16px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 16px; }
.shot:nth-child(odd) { transform: rotate(-1.5deg); } .shot:nth-child(even) { transform: rotate(1.5deg) translateY(18px); }
@media (max-width: 760px) {
  .shot-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(-1 * var(--gut)); padding: 6px var(--gut) 22px; scrollbar-width: thin; }
  .shot { flex: 0 0 62%; max-width: 250px; scroll-snap-align: center; } .shot:nth-child(n) { transform: none; }
}

/* ---------- anywhere ---------- */
.any-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.any { padding: 18px 18px 20px; }
.tile { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; border: 2.5px solid var(--ink); font-size: 27px; margin-bottom: 12px;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.85) 0 9%, rgba(255,255,255,0) 10%), linear-gradient(180deg, var(--c1, #d4ff6a), var(--c2, #4fae1e));
  box-shadow: 0 3px 0 var(--ink), inset 0 -5px 0 rgba(0,0,0,.16), inset 0 2px 0 rgba(255,255,255,.55); }
.any h3 { font-size: 20px; }
.any p { margin-top: 6px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 960px) { .any-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .any-grid { grid-template-columns: 1fr; } .any { display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; } .any .tile { grid-row: span 2; margin: 0; } }

/* ---------- grown-ups strip ---------- */
.grown { background: linear-gradient(180deg, #e8fbff, #a9e0ff); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.grown-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.grown h2 { font-size: clamp(30px, 4.6vw, 48px); }
.grown-card > div > p { margin-top: 14px; font-size: 18px; max-width: 44ch; }
.grown .btn { margin-top: 22px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checks li { position: relative; padding: 11px 13px 11px 46px; background: #fffdf2; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); font-size: 15px; line-height: 1.35; }
.checks li::before { content: ""; position: absolute; left: 11px; top: 11px; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--ink);
  background: #7fe04a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2323341a' d='M9.5 15.800L5 11.300l-2.300 2.300 6.800 6.800L21.300 8.600 19 6.300z'/%3E%3C/svg%3E") center / 13px no-repeat; }
@media (max-width: 859px) { .grown-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-aside { padding: 8px 20px 22px; text-align: center; transform: rotate(1.5deg); position: sticky; top: calc(var(--bar-h) + 28px); }
.faq-aside canvas { display: block; width: 170px; height: 170px; margin: 0 auto; }
.faq-aside h3 { font-size: 21px; }
.faq-aside p { margin-top: 6px; font-size: 15.5px; color: var(--ink-soft); }
@media (max-width: 859px) { .faq-grid { grid-template-columns: 1fr; } .faq-aside { position: static; transform: none; max-width: 420px; } }
.faq-list details { background: #fffdf2; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-family: var(--display); font-weight: 600; font-size: clamp(17px, 2vw, 20px); border-radius: 15px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-left: auto; flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-size: 24px; line-height: 1; border-radius: 11px; border: 2.5px solid var(--ink); background: linear-gradient(180deg, #ffe873, #ffb81f); box-shadow: 0 2px 0 var(--ink); }
.faq-list details[open] summary::after { content: "–"; background: linear-gradient(180deg, #ffa6c4, #ff4d86); }
.faq-list details > div { padding: 0 18px 16px; font-size: 16.5px; max-width: 66ch; }
.faq-list details > div p + p { margin-top: 9px; }

/* ---------- share ---------- */
.share { background: linear-gradient(180deg, #ffe3f1, #ffb9d9); border-top: 4px solid var(--ink); text-align: center; padding: clamp(44px, 6vw, 76px) 0; }
.share h2 { font-size: clamp(28px, 4.4vw, 44px); }
.share p { margin: 10px auto 0; max-width: 46ch; font-size: 18px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.share-status { min-height: 26px; margin-top: 14px; font-family: var(--display); font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--leaf); color: #eaffd0; padding: 44px 0 34px; border-top: 4px solid var(--ink); font-size: 15.5px; }
.foot a { color: #fff; } .foot a:hover { color: #e9ff7a; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.foot .mark { color: #fff; font-size: 24px; }
.foot h2 { font-size: 17px; color: #e9ff7a; margin-bottom: 8px; }
.foot li + li { margin-top: 4px; }
.foot li a { display: inline-block; padding: 3px 0; }
.foot-blurb { margin-top: 12px; max-width: 36ch; }
.foot-legal { margin-top: 30px; padding-top: 18px; border-top: 2px solid rgba(255,255,255,.22); display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; font-size: 14.5px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.page-head { margin-top: calc(-1 * var(--bar-h) - 8px); padding: calc(var(--bar-h) + clamp(40px, 6vw, 76px)) 0 clamp(36px, 5vw, 60px); border-bottom: 4px solid var(--ink);
  background: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 2.2px) 0 0 / 18px 18px, linear-gradient(180deg, var(--h1, #8de85a), var(--h2, #3fae3a)); }
.page-head h1 { font-size: clamp(40px, 7vw, 76px); color: #fff; -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); letter-spacing: -.01em; }
.page-head p { margin-top: 16px; max-width: 54ch; font-size: clamp(18px, 2vw, 21px); font-weight: 700; color: var(--ink); }
.head-sky { --h1: #7fd4ff; --h2: #49aef0; } .head-pink { --h1: #ffb9d9; --h2: #ff7ab4; } .head-gold { --h1: #ffe873; --h2: #ffb81f; } .head-violet { --h1: #c9b0ff; --h2: #9a72ff; }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.page-head canvas { width: clamp(120px, 18vw, 200px); aspect-ratio: 1; display: block; transform: rotate(6deg); }
@media (max-width: 620px) { .page-head .wrap { grid-template-columns: 1fr; } .page-head canvas { display: none; } }

.prose { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 1.7em; scroll-margin-top: calc(var(--bar-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol, .prose dl, .prose pre, .prose table { margin-top: .85em; max-width: 68ch; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: .52em; width: 11px; height: 11px; border-radius: 50%; background: var(--pear); border: 2.5px solid var(--ink); }
.prose ol { list-style: decimal; padding-left: 26px; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 900; }
.prose table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15.5px; background: #fffdf2; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 9px 13px; border-bottom: 2px solid var(--paper-deep); vertical-align: top; }
.prose th { font-family: var(--display); background: var(--paper); } .prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; max-width: 68ch; }
.prose pre { padding: 14px 16px; background: #23341a; color: #eaffd0; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.5; font-weight: 500; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
.prose :not(pre) > code { background: var(--paper); padding: 1px 6px; border-radius: 6px; border: 1.5px solid var(--paper-deep); }
.notice { display: flex; gap: 12px; align-items: flex-start; max-width: 68ch; padding: 14px 16px; background: #fff3a8; border: 3px dashed var(--ink); border-radius: 16px; font-weight: 700; }
.notice b { font-family: var(--display); }
.callout { max-width: 68ch; margin-top: 1.2em; padding: 16px 18px; }
.callout h3 { margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; max-width: none; }
.prose .toc li { padding: 0; margin: 0; } .prose .toc li::before { display: none; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; background: linear-gradient(180deg, #fffef4, #ffeaa0); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); }
.toc a:hover { filter: brightness(1.04); color: var(--ink); }
.next-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2em; }

/* how to play: illustrated steps */
.steps { display: grid; gap: 22px; margin-top: 8px; }
.step { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 0; overflow: hidden; scroll-margin-top: calc(var(--bar-h) + 20px); }
.step-art { display: grid; place-items: center; padding: 14px; border-right: 3px solid var(--ink); font-size: 60px; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.7) 0 8%, transparent 9%), linear-gradient(180deg, var(--c1, #d4ff6a), var(--c2, #4fae1e)); }
.step-art canvas { width: 116px; height: 116px; display: block; }
.step-art span { filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.step-txt { padding: 16px 20px 20px; }
.step-txt h2 { margin-top: 0; font-size: clamp(23px, 3vw, 29px); }
.step-txt p, .step-txt ul { max-width: 62ch; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; } .step-art { border-right: 0; border-bottom: 3px solid var(--ink); font-size: 46px; padding: 10px; } .step-art canvas { width: 92px; height: 92px; } }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; max-width: none !important; }
.prose .facts li { padding: 12px 14px; background: #fffdf2; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink); font-size: 14.5px; line-height: 1.3; margin: 0; }
.prose .facts li::before { display: none; }
.facts b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.05; color: #1f7fe6; }
.about-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: none !important; margin-top: 1.2em; }
.about-shots .phone { border-width: 3px; border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
@media (max-width: 640px) { .about-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 404 */
.lost { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: clamp(40px, 8vw, 90px) 0; margin-top: calc(-1 * var(--bar-h) - 8px); padding-top: calc(var(--bar-h) + 50px); background: linear-gradient(180deg, #5cc4ff, #d9f7c4); }
.lost canvas { width: min(240px, 60vw); aspect-ratio: 1; display: block; margin: 0 auto; }
.lost h1 { font-size: clamp(44px, 9vw, 92px); color: #fff; -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); }
.lost p { margin: 14px auto 0; max-width: 34ch; font-size: 20px; font-weight: 700; }
.lost .hero-cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}
@media print { .bar, .share, .stage-wrap, .hills { display: none; } .hero, .page-head, .lost { margin-top: 0; } }

/* iPhone / iPad "Add to Home Screen" steps */
.ios-install { margin: 18px auto 0; max-width: 460px; padding: 14px 18px 12px; text-align: left; background: linear-gradient(180deg, #fffef4, #e9f7ff); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 3px 0 var(--ink); }
.ios-install h3 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; }
.ios-install p { margin: 0 0 6px; }
.ios-install ol { margin: 0; padding-left: 24px; list-style: decimal; }
.ios-install li { display: list-item; }
.ios-install li { margin: 4px 0; }
.ios-share { display: inline-block; width: 15px; height: 17px; margin: 0 2px; vertical-align: -3px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 4px 4px; position: relative; }
.ios-share::before { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 14px; margin-left: -1px; background: currentColor; }
.ios-share::after { content: ""; position: absolute; left: 50%; top: -9px; width: 7px; height: 7px; margin-left: -4.5px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.ios-cue { margin: 10px 0 0; font-weight: 800; font-size: 15px; }
.ios-cue a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ios-install { scroll-margin-top: 90px; }
