/* ==================================================================
   dabbitapp.com: the app's "bingo-hall scrapbook" look on the web.
   Colours, fonts, label tape, washi tape, stickers and balls come
   straight from the app (src/styles/base.css + paper.css).
   Rule kept from the app: only things you can tap get the chunky
   pushed shadow.
   ================================================================== */

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

:root {
  --outline: #3A2E4D;
  --text: #3A2E4D;
  --text-soft: #6E6283;
  --text-faint: #A69CB5;
  --bg: #FFF6EC;
  --bg-dot: #F6E4D2;
  --surface: #FFFFFF;
  --surface-2: #FFF1E4;
  --paper: #FFFDF6;
  --line: #EEDCCB;
  --pink: #FF8FB1;
  --pink-strong: #FF6F9C;
  --pink-ink: #D8366A;
  --pink-soft: #FFE1EA;
  --butter: #FFD66B;
  --butter-soft: #FFF3C9;
  --mint: #7FDDB9;
  --mint-soft: #DCF7EC;
  --sky: #86C8FF;
  --sky-soft: #DFF0FF;
  --lilac: #C3A8FF;
  --lilac-soft: #EEE6FF;
  --peach: #FFAD7A;
  --peach-soft: #FFE6D6;
  --label-bg: #3A2E4D;
  --label-text: #FFF6EC;
  --sticker-edge: #FFFFFF;
  --ruled: rgba(134, 200, 255, .45);
  --soft-shadow: 0 1px 0 rgba(58, 46, 77, .08), 0 14px 26px -14px rgba(58, 46, 77, .4);
  --font-display: 'Fredoka', 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --cut: 22px 26px 23px 27px / 26px 22px 27px 23px;
  --cut-sm: 15px 18px 16px 19px / 18px 15px 19px 16px;
  --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='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3  0 0 0 0 .2  0 0 0 0 .3  0 0 0 -1 .56'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #F7EEFF;
    --text-soft: #C9BCDD;
    --text-faint: #8D80A6;
    --bg: #1D1830;
    --bg-dot: #29223F;
    --surface: #2A2342;
    --surface-2: #332A50;
    --paper: #2F2748;
    --line: #43395E;
    --pink-ink: #FF8FB1;
    --label-bg: #F7EEFF;
    --label-text: #3A2E4D;
    --sticker-edge: #F3EAFB;
    --ruled: rgba(134, 200, 255, .2);
    --soft-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7);
    --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='3' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .36  0 0 0 0 .58  0 0 0 -1 .5'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--grain), radial-gradient(var(--bg-dot) 2.2px, transparent 2.6px);
  background-size: 220px 220px, 26px 26px;
  background-position: 0 0, 7px 9px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: .1px; }
p { margin: 0 0 .9em; }
a { color: inherit; }
::selection { background: var(--pink-soft); color: #3A2E4D; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); border: 2.5px solid var(--outline); border-radius: 12px; padding: 6px 12px; font-family: var(--font-display); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap--text { max-width: 820px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------------------------ the dabbit wordmark (same drawing as the app's Logo) */
.logo { display: inline-flex; align-items: flex-end; font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.5px; color: var(--text); line-height: 1; position: relative; text-decoration: none; padding-top: 18px; }
.logo__ears { position: absolute; left: 1px; top: 0; width: .9em; height: .62em; }
.logo__i { position: relative; }
.logo__dot { position: absolute; left: 50%; top: -.02em; width: .36em; height: .36em; transform: translateX(-50%); }
.logo--big { font-size: 64px; padding-top: 34px; }

/* ------------------------------------------------------------------ header + footer */
.site-head { padding: 22px 0 8px; }
.site-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 16px; text-decoration: none;
  color: #3A2E4D; background: #fff; border: 2.5px solid var(--outline); border-radius: var(--cut-sm);
  padding: 6px 14px; box-shadow: 0 3px 0 var(--outline);
  transition: transform .08s ease, box-shadow .08s ease;
}
.nav a:hover { background: var(--butter-soft); }
.nav a:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--outline); }
.nav a[aria-current='page'] { background: var(--pink); }
@media (max-width: 560px) {
  .site-head .wrap { justify-content: center; }
  .nav { justify-content: center; gap: 8px; }
  .nav a { font-size: 15px; padding: 5px 12px; }
}

.site-foot { margin-top: 72px; padding: 34px 0 40px; border-top: 2.5px dashed var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.site-foot nav a { text-decoration: none; }
.site-foot nav a:hover { color: var(--pink-ink); }
.site-foot small { display: block; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.foot-pals { display: flex; gap: 2px; align-items: flex-end; }
.foot-pals svg { width: 54px; height: 54px; }
@media (max-width: 560px) { .site-foot .wrap { flex-direction: column; text-align: center; } .site-foot nav { justify-content: center; } }

/* ------------------------------------------------------------------ scrapbook pieces */
.label {
  display: inline-block; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  color: var(--label-text); background-color: var(--label-bg); background-image: var(--grain);
  padding: 6px 14px 5px 13px;
  clip-path: polygon(0 8%, 4px 0, calc(100% - 3px) 4%, 100% 50%, calc(100% - 4px) 100%, 3px 94%, 0 60%);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  transform: rotate(-1.5deg);
  margin: 0;
}
.label--pink { background-color: #E0466E; color: #FFF6EC; }
.label--mint { background-color: #2E8C6E; color: #FFF6EC; }

.tape {
  position: absolute; z-index: 5; width: 70px; height: 22px; pointer-events: none;
  background-color: rgba(255, 143, 177, .62);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .38) 0 5px, transparent 5px 10px), var(--grain);
  clip-path: polygon(0 10%, 6% 0, 12% 12%, 18% 0, 24% 10%, 76% 6%, 82% 0, 88% 10%, 94% 0, 100% 8%, 100% 92%, 94% 100%, 88% 90%, 82% 100%, 76% 92%, 24% 96%, 18% 100%, 12% 90%, 6% 100%, 0 92%);
  mix-blend-mode: multiply;
}
.tape--mint { background-color: rgba(127, 221, 185, .6); background-image: radial-gradient(rgba(255, 255, 255, .5) 1.6px, transparent 2px), var(--grain); background-size: 8px 8px, auto; }
.tape--butter { background-color: rgba(255, 214, 107, .7); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .4) 0 4px, transparent 4px 8px), var(--grain); }
.tape--sky { background-color: rgba(134, 200, 255, .55); }
@media (prefers-color-scheme: dark) { .tape { mix-blend-mode: normal; opacity: .85; } }

/* a paper panel: hand-cut corners, a little grain, a soft (not chunky) shadow */
.panel {
  position: relative;
  background-color: var(--surface); background-image: var(--grain); background-size: 220px;
  border: 2.5px solid var(--outline); border-radius: var(--cut);
  box-shadow: var(--soft-shadow);
}

/* bingo balls, like the B-I-N-G-O row on a card */
.ball {
  --c: var(--pink);
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c); border: 2.5px solid var(--outline);
  box-shadow: inset 0 -4px 0 rgba(58, 46, 77, .16);
  font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1; color: #3A2E4D;
}
.ball::after { content: ''; position: absolute; left: 9px; top: 7px; width: 9px; height: 5px; border-radius: 6px; background: rgba(255, 255, 255, .75); transform: rotate(-30deg); }
.ball--b { --c: var(--pink); } .ball--i { --c: var(--butter); } .ball--n { --c: var(--mint); } .ball--g { --c: var(--sky); } .ball--o { --c: var(--lilac); }
.ball--sm { width: 34px; height: 34px; font-size: 16px; }
.ball--sm::after { left: 6px; top: 5px; width: 7px; height: 4px; }

/* die-cut sticker pals: the drawing gets a white sticker edge */
.sticker { filter: drop-shadow(0 0 0 var(--sticker-edge)) drop-shadow(2.5px 0 0 var(--sticker-edge)) drop-shadow(-2.5px 0 0 var(--sticker-edge)) drop-shadow(0 2.5px 0 var(--sticker-edge)) drop-shadow(0 -2.5px 0 var(--sticker-edge)) drop-shadow(0 6px 7px rgba(58, 46, 77, .22)); }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #3A2E4D;
  background: var(--butter); border: 2px solid var(--outline); border-radius: 999px; padding: 2px 9px 1px;
  box-shadow: 0 0 0 3px var(--sticker-edge);
}

/* pressable buttons (they can be tapped, so they keep the chunky shadow) */
.btn {
  --b: var(--pink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: .2px; text-decoration: none;
  color: #3A2E4D; background: var(--b);
  border: 2.5px solid var(--outline); border-radius: var(--cut-sm);
  padding: 11px 20px; box-shadow: 0 4px 0 var(--outline);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn::after { content: ''; position: absolute; left: 10px; top: 5px; width: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); transform: rotate(-8deg); pointer-events: none; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.btn--butter { --b: var(--butter); } .btn--mint { --b: var(--mint); } .btn--sky { --b: var(--sky); } .btn--white { --b: #fff; }
.btn--white::after { background: #F3E3D3; }
.btn svg { width: 22px; height: 22px; }

/* the Caller's ticket */
.ticket-wrap { filter: drop-shadow(0 12px 14px rgba(58, 46, 77, .22)); }
.ticket {
  position: relative; display: flex; align-items: center; gap: 18px;
  background-color: var(--butter-soft); background-image: var(--grain); background-size: 220px;
  border: 2.5px solid var(--outline); border-radius: 20px 22px 19px 23px;
  padding: 14px 20px 14px 16px; color: #3A2E4D;
  clip-path: inset(0 round 20px 22px 19px 23px);
}
.ticket__stub { flex: none; position: relative; padding-right: 18px; }
.ticket__stub::after { content: ''; position: absolute; right: 0; top: -14px; bottom: -14px; border-right: 2.5px dotted rgba(58, 46, 77, .5); }
.ticket__notch { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--outline); transform: translateX(-50%); }
.ticket__notch--t { top: -13px; } .ticket__notch--b { bottom: -13px; }
.ticket small { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #B7791F; }
.ticket b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; }
.ticket span { display: block; font-size: 15px; color: #6E6283; line-height: 1.35; }

/* ================================================================== HOME */
.hero { padding: 28px 0 10px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 70px); font-weight: 700; letter-spacing: -.6px; line-height: 1.02; margin: 16px 0 18px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before { content: ''; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .06em; height: .42em; background: var(--butter); border-radius: 6px 10px 5px 12px; transform: rotate(-1.5deg); opacity: .85; }
@media (prefers-color-scheme: dark) { .hl::before { opacity: .45; } }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-soft); max-width: 31em; margin-bottom: 26px; }
.lead b { color: var(--text); font-weight: 800; }
.hero .ticket-wrap { max-width: 440px; }
.hero__fine { margin-top: 18px; font-size: 15px; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero__fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero__fine span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); border: 2px solid var(--outline); }

/* three phones, fanned out and taped down */
.fan { position: relative; height: 600px; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 250px;
  border: 3px solid var(--outline); border-radius: 40px; padding: 7px;
  background: #fff; box-shadow: var(--soft-shadow);
}
@media (prefers-color-scheme: dark) { .phone { background: #3A3157; } }
.phone img, .phone picture { display: block; width: 100%; height: auto; border-radius: 32px; }
.phone--mid { z-index: 3; transform: translate(-50%, -50%) rotate(1.5deg); }
.phone--l { z-index: 2; width: 216px; transform: translate(-112%, -47%) rotate(-7deg); }
.phone--r { z-index: 1; width: 216px; transform: translate(12%, -45%) rotate(7deg); }
.phone .tape { top: -12px; left: 50%; margin-left: -35px; transform: rotate(-4deg); }
.fan__pal { position: absolute; z-index: 4; width: 116px; height: 116px; left: 50%; bottom: 14px; margin-left: -232px; }
.ticket__icon { width: 52px; height: 52px; border-radius: 14px; border: 2.5px solid var(--outline); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero .ticket-wrap, .lead { margin-left: auto; margin-right: auto; }
  .hero__fine { justify-content: center; }
  .fan { height: 540px; margin-top: 8px; }
}
@media (max-width: 520px) {
  .lead { font-size: 18px; }
  .fan { height: 430px; }
  .phone { width: 196px; border-radius: 32px; padding: 5px; }
  .phone img, .phone picture { border-radius: 26px; }
  .phone--l, .phone--r { width: 160px; }
  .phone--l { transform: translate(-100%, -46%) rotate(-7deg); }
  .phone--r { transform: translate(0%, -44%) rotate(7deg); }
  .fan__pal { width: 92px; height: 92px; bottom: 4px; margin-left: -178px; }
}

.section { padding-top: 64px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; margin-top: 12px; flex-basis: 100%; }
.section__head p { color: var(--text-soft); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { padding: 26px 22px 20px; }
.step:nth-child(1) { transform: rotate(-.8deg); } .step:nth-child(2) { transform: rotate(.6deg); } .step:nth-child(3) { transform: rotate(-.4deg); }
.step .tape { top: -11px; left: 50%; margin-left: -35px; transform: rotate(-3deg); }
.step h3 { font-size: 23px; margin: 14px 0 8px; }
.step p { color: var(--text-soft); font-size: 16px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 22px; max-width: 520px; margin: 0 auto; } }

/* the pals */
.pals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pal-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px 18px 14px; }
.pal-card:nth-child(1) { transform: rotate(-.6deg); background-color: var(--pink-soft); }
.pal-card:nth-child(2) { transform: rotate(.6deg); background-color: var(--peach-soft); }
.pal-card svg { flex: none; width: 118px; height: 118px; }
.pal-card h3 { font-size: 25px; color: #3A2E4D; }
.pal-card p { margin: 4px 0 0; font-size: 16px; color: #6E6283; }
.pal-card .tag { margin-top: 2px; background: #fff; }
.pal-shelf { margin-top: 26px; padding: 22px 22px 20px; background-color: var(--lilac-soft); }
.pal-shelf__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.pal-shelf figure { margin: 0; width: 112px; text-align: center; }
.pal-shelf figure svg { width: 94px; height: 94px; margin: 0 auto; }
.pal-shelf figcaption { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #3A2E4D; }
.mystery svg { filter: brightness(0) opacity(.17); }
.mystery figcaption { color: #8D80A6; }
.pal-shelf p { text-align: center; color: #6E6283; font-size: 16px; margin: 12px auto 0; max-width: 36em; }
.pal-shelf .tag { margin-bottom: 4px; }
.shelf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.shelf-split > div + div { border-left: 2.5px dashed rgba(58, 46, 77, .25); }
@media (max-width: 860px) {
  .pals { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .shelf-split { grid-template-columns: 1fr; gap: 18px; }
  .shelf-split > div + div { border-left: 0; border-top: 2.5px dashed rgba(58, 46, 77, .25); padding-top: 16px; }
  .pal-shelf { max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) { .pal-card svg { width: 92px; height: 92px; } .pal-shelf figure { width: 88px; } .pal-shelf figure svg { width: 76px; height: 76px; } }

/* a slip of notebook paper */
.slip {
  padding: 26px 26px 18px;
  background-color: var(--paper);
  background-image: var(--grain), repeating-linear-gradient(transparent 0 33px, var(--ruled) 33px 34.5px);
  background-size: 220px, auto;
  background-position: 0 0, 0 14px;
  transform: rotate(.5deg);
}
.slip .tape { left: 50%; top: -12px; margin-left: -35px; transform: rotate(-3deg); }
.slip h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin-bottom: 14px; }
.promise { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promise li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.slip p { color: var(--text-soft); margin-bottom: 8px; }
.slip a, .text-link { color: var(--pink-ink); font-family: var(--font-display); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } .slip { padding: 24px 18px 14px; } }

/* ================================================================== PAGE HEADS (legal, support) */
.page-head { padding: 26px 0 8px; }
.page-head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 54px); font-weight: 700; letter-spacing: -.4px; margin: 14px 0 10px; }
.page-head p { color: var(--text-soft); font-size: 19px; max-width: 32em; margin: 0; }
.page-head__pal { flex: none; width: 150px; height: 150px; margin-bottom: -26px; position: relative; z-index: 6; }
.stk {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #3A2E4D;
  padding: 5px 13px 4px; border-radius: 999px; background: var(--mint-soft);
  border: 2px solid var(--outline);
  box-shadow: 0 0 0 3.5px var(--sticker-edge), 0 4px 7px 1px rgba(58, 46, 77, .22);
  transform: rotate(-2deg);
}
@media (max-width: 600px) {
  .page-head .wrap { flex-direction: column-reverse; align-items: center; text-align: center; }
  .page-head p { margin: 0 auto; }
  .page-head__pal { width: 120px; height: 120px; margin-bottom: -18px; }
}

/* ================================================================== THE LEGAL SHEET */
.sheet { margin-top: 28px; padding: 44px 46px 30px; background-color: var(--paper); }
.sheet > .tape--l { left: -14px; top: -6px; transform: rotate(-28deg); }
.sheet > .tape--r { right: -14px; top: -4px; transform: rotate(26deg); }
.sheet section { padding-top: 6px; }
.sheet section + section { margin-top: 30px; }
.sheet h2 { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 600; margin: 0 0 14px; scroll-margin-top: 20px; }
.sheet h2 .ball { width: 36px; height: 36px; font-size: 16px; }
.sheet h2 .ball::after { left: 6px; top: 5px; width: 7px; height: 4px; }
.sheet h2 .ball:empty::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .85); border: 2px solid var(--outline); }
.sheet p, .sheet li { font-size: 17px; line-height: 1.65; }
.sheet strong { font-weight: 800; }
.sheet ul { list-style: none; padding: 0 0 0 4px; margin: 0 0 1em; }
.sheet li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.sheet li::before { content: ''; position: absolute; left: 3px; top: .52em; width: 11px; height: 11px; border-radius: 50%; background: var(--pink); border: 2px solid var(--outline); transform: rotate(-12deg); }
.sheet li li::before { background: var(--butter); width: 9px; height: 9px; top: .6em; }
.sheet ul ul { margin: .45em 0 .2em; }
.sheet a { color: var(--pink-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; font-weight: 700; }
.sheet .short { margin: 0 -14px 10px; padding: 22px 24px 8px; background-color: var(--butter-soft); background-image: var(--grain); border: 2.5px solid var(--outline); border-radius: 16px 20px 15px 21px; transform: rotate(-.4deg); color: #3A2E4D; }
.sheet .short h2 { color: #3A2E4D; }
.sheet .short a { color: #C2285A; }
.sheet .contact { margin-top: 34px; }
.sheet .contact p { font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.5; }
.sheet-foot { margin-top: 26px; text-align: center; color: var(--text-soft); font-size: 15px; }
@media (max-width: 600px) {
  .sheet { padding: 34px 18px 18px; margin-top: 22px; }
  .sheet h2 { font-size: 22px; align-items: flex-start; }
  .sheet h2 .ball { margin-top: -3px; }
  .sheet .short { margin: 0 -6px 10px; padding: 20px 16px 6px; }
  .sheet p, .sheet li { font-size: 16.5px; }
}

/* ================================================================== SUPPORT */
.contact-card { margin-top: 30px; padding: 26px 26px 24px; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; background-color: var(--sky-soft); }
.contact-card .tape { left: 34px; top: -11px; transform: rotate(-4deg); }
.contact-card h2 { font-size: 27px; color: #3A2E4D; }
.contact-card p { color: #6E6283; margin: 6px 0 0; }
.contact-card .mail { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #3A2E4D; overflow-wrap: anywhere; }
@media (max-width: 680px) { .contact-card { grid-template-columns: 1fr; text-align: center; padding: 26px 18px 22px; } .contact-card .btn { justify-self: center; } }

.faq-group { margin-top: 44px; }
.faq-group > .label { margin-bottom: 16px; }
.faq { display: grid; gap: 14px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ball { width: 34px; height: 34px; font-size: 20px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.faq summary .ball::after { left: 6px; top: 5px; width: 7px; height: 4px; }
.faq details[open] summary .ball { transform: rotate(45deg); }
.faq summary:hover { color: var(--pink-ink); }
.faq .answer { padding: 0 20px 6px 66px; color: var(--text-soft); }
.faq .answer b { color: var(--text); font-weight: 800; }
.faq .answer ol { padding-left: 1.2em; margin: 0 0 .9em; }
.faq .answer li { margin-bottom: .35em; }
.faq .answer a { color: var(--pink-ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .faq summary { font-size: 17.5px; padding: 14px 14px; gap: 12px; } .faq .answer { padding: 0 16px 4px 16px; } }

/* ================================================================== 404 */
.lost { text-align: center; padding: 40px 0 10px; }
.lost svg { width: 180px; height: 180px; margin: 0 auto 6px; }
.lost h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; margin-bottom: 10px; }
.lost p { color: var(--text-soft); font-size: 19px; margin-bottom: 26px; }

/* a challenge link that lands here before the web app is online */
.join-note { display: none; margin: 10px auto 0; max-width: 640px; padding: 16px 20px; text-align: center; background-color: var(--mint-soft); color: #3A2E4D; }
.join-note.is-on { display: block; }
.join-note b { font-family: var(--font-display); font-weight: 600; font-size: 20px; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* dark mode: big pastel panels soften into the night paper (small stickers and tickets stay pastel, like the app) */
@media (prefers-color-scheme: dark) {
  .pal-card:nth-child(1) { background-color: color-mix(in srgb, var(--pink) 20%, var(--surface)); }
  .pal-card:nth-child(2) { background-color: color-mix(in srgb, var(--peach) 18%, var(--surface)); }
  .pal-shelf { background-color: color-mix(in srgb, var(--lilac) 16%, var(--surface)); }
  .contact-card { background-color: color-mix(in srgb, var(--sky) 16%, var(--surface)); }
  .pal-card h3, .pal-shelf figcaption, .contact-card h2, .contact-card .mail { color: var(--text); }
  .pal-card p, .pal-shelf p, .contact-card p { color: var(--text-soft); }
  .mystery svg { filter: brightness(0) invert(1) opacity(.16); }
  .mystery figcaption { color: var(--text-faint); }
  .shelf-split > div + div { border-color: rgba(247, 238, 255, .18); }
}
