/* =========================================================
 *  Tiny Hands Tales (/tales/): the pages of a book, the shop's
 *  pages and the maker.
 *  A book page is drawn in container units: --u is a hundredth
 *  of a PAGE's width, so the same page is a card, the flipbook
 *  and, later, the printed page (js/tales/engine.js).
 * ========================================================= */

/* ---------- a book's pages ---------- */
.bk-surface { position: relative; overflow: hidden; container-type: inline-size; background: #FFF8F1; width: 100%; }
.bk-single { aspect-ratio: 1; --u: 1cqw; }
.bk-spread { aspect-ratio: 2 / 1; --u: .5cqw; }
.bk-page { position: relative; overflow: hidden; aspect-ratio: 1; background: #FFF8F1; }
.bk-half { width: 200%; }
.bk-blank { background: #FFF3D6; }
.bk-bg, .bk-fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.bk-bg { object-fit: cover; }
.bk-fig { position: absolute; width: auto; max-width: none; transform: translate(-50%, -100%); filter: drop-shadow(0 calc(1.2 * var(--u)) calc(1.4 * var(--u)) rgba(30, 20, 60, .22)); }
.bk-fig.bk-flip { transform: translate(-50%, -100%) scaleX(-1); }
.bk-kid:not([src]) { visibility: hidden; }
.bk-text { position: absolute; box-sizing: border-box; font: 700 calc(var(--fs) * var(--u)) / 1.38 'Nunito', system-ui, sans-serif; color: #2D2D2D; }
/* the site's page styles size every <p>: a book's words keep their own size */
.bk-surface .bk-text p { margin: 0; font: inherit; color: inherit; text-align: inherit; max-width: none; }
.bk-text .bk-gap { height: .55em; line-height: 0; }
.bk-text-card { background: rgba(255, 255, 255, .92); border-radius: calc(4 * var(--u)); padding: calc(3.2 * var(--u)) calc(3.8 * var(--u)); box-shadow: 0 calc(.8 * var(--u)) calc(2.4 * var(--u)) rgba(30, 20, 60, .16); }
.bk-text-title { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; line-height: 1.04; color: #fff; -webkit-text-stroke: calc(.9 * var(--u)) #3D3389; paint-order: stroke fill; text-shadow: 0 calc(.9 * var(--u)) 0 #3D3389; }
.bk-text.bk-h { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 700; color: var(--ink, #3D3389); line-height: 1.1; }
/* a preset book (Around the World): Fraunces (SIL OFL, assets/fonts/fraunces), a soft storybook serif for every word
   of the book; the words sit straight on the picture in deep ink with a soft glow, and a blurred veil of the
   scene's light colour behind them (--veil 0–1, set per page: faint on sky, stronger where the picture is busy) */
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces/Fraunces.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/fraunces/Fraunces-Italic.ttf') format('truetype'); font-weight: 100 900; font-style: italic; font-display: swap; }
.bk-fr { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; }
.bk-text-story, .bk-text-fact, .bk-text-end, .bk-text-final, .bk-text.bk-ded, .bk-text.bk-h { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'SOFT' 50; }
.bk-text-story { z-index: 1; isolation: isolate; color: #2B211C; font-weight: 520; line-height: 1.42; letter-spacing: .005em;
  text-shadow: 0 0 .1em rgba(255, 250, 242, .95), 0 0 .32em rgba(255, 250, 242, .8), 0 0 .75em rgba(255, 250, 242, .55); }
.bk-text-story::before, .bk-text-fact::before { content: ''; position: absolute; inset: -16% -9% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 249, 238, var(--veil, .35)) 55%, rgba(255, 249, 238, 0)); filter: blur(calc(2.2 * var(--u))); }
.bk-surface .bk-text-story .bk-em { color: inherit; font-style: italic; font-weight: 600; }   /* the chorus: the story's own colour (Mauro, 30 Nov), set apart by italics */
.bk-text-story.bk-night { color: #FFF6E8; text-shadow: 0 0 .12em rgba(20, 28, 70, .95), 0 0 .4em rgba(20, 28, 70, .75), 0 0 .9em rgba(20, 28, 70, .5); }
.bk-text-story.bk-night::before { background: radial-gradient(closest-side, rgba(18, 26, 66, var(--veil, .4)) 55%, rgba(18, 26, 66, 0)); }
.bk-text-fact { z-index: 1; isolation: isolate; color: #3A2E27; font-weight: 500; line-height: 1.32; text-shadow: 0 0 .12em rgba(255, 250, 242, .95), 0 0 .4em rgba(255, 250, 242, .75); }
.bk-surface .bk-text-fact .bk-k { color: #A8321F; font-style: italic; font-weight: 700; letter-spacing: .01em; }
.bk-text.bk-h { color: var(--ink, #3D3389); font-weight: 800; line-height: 1.05; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.bk-surface .bk-text .bk-hd { font-style: normal; font-weight: 800; font-size: calc(var(--hfs, 5.6) * var(--u)); line-height: 1.08; color: var(--ink, #3D3389); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.bk-text.bk-ded { font-weight: 450; font-style: italic; color: #4B3F36; line-height: 1.5; }
.bk-text-end { color: #A8321F; font-weight: 700; font-style: italic; line-height: 1; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.bk-text-final { color: #FFF3E2; font-weight: 500; line-height: 1.45; }
.bk-surface .bk-text-final .bk-em { font-style: italic; font-weight: 400; opacity: .9; }
.bk-text.bk-vc { display: flex; flex-direction: column; justify-content: center; }
.bk-photo { position: absolute; box-sizing: border-box; border: calc(1.1 * var(--u)) solid #fff; border-radius: calc(.8 * var(--u)); background: #EFE7DA; overflow: hidden; box-shadow: 0 calc(.8 * var(--u)) calc(2.6 * var(--u)) rgba(60, 40, 20, .22); }
.bk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.bk-surface .bk-text-final.bk-site .bk-em { font-style: italic; opacity: .85; letter-spacing: .03em; }
.bk-text-final.bk-thanks { font-weight: 450; font-style: italic; line-height: 1.4; color: rgba(255, 240, 225, .82); }
.bk-text-site { font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; letter-spacing: .02em; color: #2B2A6B; text-shadow: 0 0 .35em rgba(255, 248, 240, .85); } /* the site's rounded font, dark blue on the back cover's light sky */
/* the cover title: SVG words on curves, each its own size, white with a deep outline in the chosen colour */
.bk-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bk-arc text { font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; fill: #fff; stroke: var(--ink, #3D3389); stroke-linejoin: round; paint-order: stroke fill; }
.bk-arc .bk-arc-shadow { fill: var(--ink, #3D3389); stroke: var(--ink, #3D3389); opacity: .55; }
.bk-arc .bk-it { font-style: italic; font-weight: 700; }

/* two pages side by side, like an open book */
.bk-two { display: flex; aspect-ratio: 2 / 1; position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 40, 90, .22); }
.bk-two > .bk-page { flex: 1; }
.bk-two-one { aspect-ratio: 1; width: 50%; margin: 0 auto; }
.bk-two:not(.bk-two-one)::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - 14px); width: 28px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(40, 20, 60, .16) 48%, rgba(40, 20, 60, .2) 52%, transparent); }

/* ---------- the shop's pages ---------- */
.bs-body { background: #FFF8F1 linear-gradient(180deg, #FFF4E6 0%, #F5F0FF 120vh) no-repeat; }
.bs { max-width: 1120px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px) 64px; overflow-x: clip; }
.bs-body h1, .bs-body h2, .bs-body h3 { color: #3D3389; font-family: var(--font-display); }
.bs h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 0 0 .5em; }
.bs-crumbs { font-size: .9rem; color: var(--color-text-muted); margin: 0 0 6px; }
.bs-crumbs a { color: inherit; }

.bs-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 52px); align-items: center; padding: 14px 0 26px; }
.bs-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 99px; background: #FFE3D3; color: #A4401F; font-weight: 800; font-size: .95rem; }
.bs-eyebrow img { width: 1.4em; height: 1.4em; }
.bs-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.3rem); line-height: 1.06; margin: .3em 0 .3em; }
.bs-line { font-size: 1.12rem; color: #4F4A5E; margin: 0 0 14px; max-width: 34em; }
.bs-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 20px; padding: 0; }
.bs-trust li { font-weight: 800; font-size: .95rem; color: #2C7A4B; display: flex; align-items: center; gap: 6px; }
.bs-trust li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #2FA866 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; flex: none; }
.bs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap-min); padding: 12px 26px; border: 0; border-radius: 99px; background: var(--color-cta); color: #fff; font: 800 1.1rem var(--font-text); text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 #8E3A1E; transition: transform .12s, box-shadow .12s, background .12s; }
.bs-body .bs-btn, .bs-body .bs-btn:visited { color: #fff; text-decoration: none; }
.bs-btn:hover { background: var(--color-cta-hover); transform: translateY(1px); box-shadow: 0 3px 0 #8E3A1E; }
.bs-btn:active { transform: translateY(4px); box-shadow: none; }
.bs-btn:focus-visible, .bs-card a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.bs-price { font-weight: 800; color: #3D3389; margin: 0 0 14px; font-size: 1.1rem; }
.bs-price small { font-weight: 700; color: var(--color-text-muted); }

/* the book standing on the page */
.bs-book { position: relative; width: min(100%, 440px); margin: 0 auto; aspect-ratio: 1; border-radius: 4px 10px 10px 4px; overflow: hidden; background: #EDE6FA; box-shadow: inset 10px 0 12px -8px rgba(40, 20, 60, .35), 0 22px 40px rgba(60, 40, 90, .28); transform: rotate(-2deg); }
.bs-book::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4.5%; background: linear-gradient(90deg, rgba(40, 20, 60, .28), rgba(255, 255, 255, .25) 60%, transparent); pointer-events: none; }
.bs-book .bk-page { width: 100%; }
.bs-open { width: 100%; border-radius: 6px; overflow: hidden; aspect-ratio: 2 / 1; background: #EDE6FA; box-shadow: 0 14px 30px rgba(60, 40, 90, .2); }

/* Mauro's note: a signed letter on warm paper, in the books' font */
.bs-pitch { margin: 10px 0 40px; padding: 22px 26px; border-radius: 22px; background: #FFFBF4; border: 1px solid #F1E2CF; display: flex; gap: 20px; align-items: center; }
.bs-pitch img { width: 88px; height: 88px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(80, 50, 20, .16); }
.bs-pitch p { margin: 0; }
.bs-pitch-kicker { font: 800 .78rem var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #A8321F; margin-bottom: 4px !important; }
.bs-pitch-text { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; font-variation-settings: 'SOFT' 50; font-style: italic; font-weight: 450; font-size: 1.14rem; line-height: 1.5; color: #3A2E27; }
.bs-pitch-text a { color: #3D3389; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(61, 51, 137, .35); text-underline-offset: 3px; }
.bs-pitch-text a:hover { text-decoration-color: currentColor; }
.bs-pitch-sign { margin-top: 8px !important; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: .98rem; color: #3D3389; }
.bs-pitch-sign::before { content: '— '; }
.bs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin: 0 0 40px; padding: 0; list-style: none; }
.bs-card { background: #fff; border-radius: 24px; padding: 16px; box-shadow: 0 6px 20px rgba(60, 40, 90, .08); display: flex; flex-direction: column; gap: 6px; position: relative; }
.bs-card .bs-book { transform: none; width: 100%; }
.bs-card h3 { margin: 10px 0 0; font-size: 1.2rem; }
.bs-card h3 a { color: inherit; text-decoration: none; }
.bs-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.bs-card p { margin: 0; color: #4F4A5E; font-size: .97rem; }
.bs-card .bs-age { font-weight: 800; color: #2C7A4B; font-size: .9rem; }
.bs-card .bs-from { font-weight: 800; color: #3D3389; margin-top: auto; padding-top: 6px; }
.bs-soon .bs-book { display: grid; place-items: center; background: linear-gradient(160deg, var(--a, #FFE3D3), var(--b, #F0EBFF)); box-shadow: none; }
.bs-soon .bs-book::after { display: none; }
.bs-soon .bs-book img { width: 46%; height: auto; }
.bs-tag { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 12px; border-radius: 99px; background: #FFD76B; color: #5A3D00; font-weight: 800; font-size: .82rem; }

.bs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: s; }
.bs-steps li { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: 0 6px 20px rgba(60, 40, 90, .08); counter-increment: s; }
.bs-steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #F0EBFF; color: #3D3389; font: 700 1.15rem var(--font-display); margin-bottom: 8px; }
.bs-steps b { display: block; color: #3D3389; font-size: 1.08rem; }
.bs-steps span { color: #4F4A5E; }
.bs-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 28px; margin: 0 0 40px; padding: 0; list-style: none; }
.bs-why li { padding-left: 30px; position: relative; color: #4F4A5E; }
.bs-why li::before { content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: #2FA866 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.bs-why b { color: #3D3389; }
.bs-faq details { background: #fff; border-radius: 18px; padding: 4px 18px; margin: 0 0 10px; box-shadow: 0 4px 14px rgba(60, 40, 90, .06); }
.bs-faq summary { cursor: pointer; font-weight: 800; color: #3D3389; padding: 12px 0; min-height: 24px; }
.bs-faq p { margin: 0 0 14px; color: #4F4A5E; }
.bs-inside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0 0 40px; }
.bs-facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-weight: 700; color: #4F4A5E; }
.bs-draft { margin: 0 0 18px; padding: 10px 16px; border-radius: 14px; background: #FFF1B8; color: #5A3D00; font-weight: 700; font-size: .95rem; }

/* ---------- the maker ---------- */
.bm { max-width: 1040px; margin: 0 auto; padding: 8px clamp(14px, 4vw, 28px) 56px; min-height: 70vh; }
.bm-top { text-align: center; padding: 10px 0 12px; }
.bm-step { margin: 0; font-weight: 800; color: var(--color-text-muted); font-size: .95rem; }
.bm-top h1 { margin: .15em 0 0; font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
.bm-stage { position: relative; height: clamp(190px, 32vw, 280px); border-radius: 28px; overflow: hidden; background: #BFE6FF url('/assets/make-a-world/city/backdrops/park.webp') 50% 78% / cover; }
.bm-kid { position: absolute; left: 50%; bottom: -14%; height: 112%; transform: translateX(-50%); transition: filter .25s; filter: drop-shadow(0 8px 10px rgba(30, 20, 60, .25)); }
.bm-stage.is-waiting .bm-kid { filter: grayscale(1) opacity(.75); }
.bm-dog { position: absolute; left: calc(50% + clamp(90px, 16vw, 150px)); bottom: 2%; height: 52%; transform: translateX(-50%); }
.bm-form { max-width: 520px; margin: 18px auto 0; display: grid; gap: 12px; }
.bm-form-wide { max-width: 640px; gap: 16px; }
.bm-label, .bm-set legend { font-weight: 800; color: #3D3389; padding: 0; }
.bm input[type=text], .bm-dlg input[type=text], .bm-dlg textarea { width: 100%; box-sizing: border-box; font: 700 1.15rem var(--font-text); padding: 12px 16px; border-radius: 16px; border: 2px solid #DCD3F5; background: #fff; color: var(--color-text); }
.bm input[type=text]:focus, .bm-dlg input:focus, .bm-dlg textarea:focus { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: transparent; }
.bm-note { margin: 0; color: var(--color-text-muted); font-size: .92rem; }
.bm-center { text-align: center; }
.bm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-choice { min-height: var(--tap-min); border-radius: 16px; border: 2px solid #DCD3F5; background: #fff; color: #3D3389; font: 800 1.08rem var(--font-text); cursor: pointer; }
.bm-choice.is-on { background: #3D3389; border-color: #3D3389; color: #fff; }
.bm-go { min-height: 52px; padding: 12px 26px; border: 0; border-radius: 99px; background: var(--color-cta); color: #fff; font: 800 1.12rem var(--font-text); cursor: pointer; box-shadow: 0 4px 0 #8E3A1E; }
.bm-go:hover:not(:disabled) { background: var(--color-cta-hover); }
.bm-go:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.bm-go:disabled { background: #D9D3E6; color: #7B7590; box-shadow: none; cursor: default; }
.bm-back { justify-self: center; min-height: 44px; padding: 8px 14px; border: 0; background: none; color: var(--color-link); font: 800 1rem var(--font-text); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.bm button:focus-visible, .bm a:focus-visible, .bm-dlg button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.bm-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.bm-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.bm-sw { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #DCD3F5; cursor: pointer; padding: 0; }
.bm-sw.is-on { box-shadow: 0 0 0 4px #3D3389; }
.bm-hairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 8px; }
.bm-hair { border-radius: 16px; border: 2px solid #DCD3F5; background: #fff; padding: 6px 4px 4px; cursor: pointer; display: grid; gap: 2px; justify-items: center; font: 800 .8rem var(--font-text); color: #3D3389; }
.bm-hair img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 4%; border-radius: 12px; background: #F5F0FF; }
.bm-hair.is-on { border-color: #3D3389; box-shadow: 0 0 0 2px #3D3389; }
.bm-tick { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #3D3389; min-height: 44px; }
.bm-tick input { width: 24px; height: 24px; accent-color: #3D3389; }

.bm-views { display: inline-flex; padding: 4px; border-radius: 99px; background: #EDE6FA; margin-bottom: 8px; }
.bm-view { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 99px; background: none; color: #3D3389; font: 800 .95rem var(--font-text); cursor: pointer; }
.bm-view.is-on { background: #fff; box-shadow: 0 2px 6px rgba(60, 40, 90, .18); }
.bm-top-book h1 { font-size: clamp(1.25rem, 3.4vw, 1.7rem); }
.bm-read { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(6px, 2vw, 18px); align-items: center; }
.bm-paper { position: relative; margin: 0 auto; width: 100%; }
.bm-paper-1 { max-width: min(560px, 62vh); }
.bm-paper-1 > .bk-page { border-radius: 6px; box-shadow: 0 18px 40px rgba(60, 40, 90, .22); }
.bm-paper-2 { max-width: min(980px, 124vh); }
.bm-pre { position: absolute !important; width: 10px !important; height: 5px; opacity: 0; pointer-events: none; overflow: hidden; left: 0; top: 0; box-shadow: none !important; }
.bm-arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #3D3389; font: 700 2rem/1 var(--font-display); cursor: pointer; box-shadow: 0 4px 12px rgba(60, 40, 90, .18); display: grid; place-items: center; padding: 0 0 4px; }
.bm-arrow:disabled { opacity: .3; cursor: default; }
.bm-where { text-align: center; margin: 12px 0 2px; font-weight: 800; color: var(--color-text-muted); }
.bm-range { display: block; width: min(420px, 80%); margin: 0 auto 16px; accent-color: #3D3389; }
.bm-bar { position: sticky; bottom: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; padding: 12px; border-radius: 24px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 26px rgba(60, 40, 90, .16); }
.bm-task { flex: 1 1 170px; text-align: left; border-radius: 16px; border: 2px solid #DCD3F5; background: #fff; padding: 8px 14px; cursor: pointer; display: grid; font: 700 .95rem var(--font-text); color: #4F4A5E; }
.bm-task b { color: #3D3389; }
.bm-bar .bm-go { flex: 1 1 170px; }
.bm-formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 14px; align-items: end; }
.bm-format { position: relative; text-align: center; border-radius: 22px; border: 3px solid #DCD3F5; background: #fff; padding: 26px 16px 18px; cursor: pointer; display: grid; gap: 4px; font: 700 .97rem var(--font-text); color: #4F4A5E; }
.bm-format b { font: 700 1.3rem var(--font-display); color: #3D3389; }
.bm-format strong { font-size: 1.25rem; color: #2C7A4B; }
.bm-format em { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: 99px; background: #FFD76B; color: #5A3D00; font: 800 .85rem var(--font-text); }
.bm-format.is-on { border-color: #3D3389; box-shadow: 0 0 0 2px #3D3389; }
.bm-dlg { border: 0; border-radius: 26px; padding: 22px; width: min(520px, calc(100vw - 28px)); box-sizing: border-box; box-shadow: 0 24px 60px rgba(30, 20, 60, .35); font-family: var(--font-text); }
.bm-dlg::backdrop { background: rgba(45, 35, 80, .45); }
.bm-dlg h2 { margin: 0 0 6px; color: #3D3389; font-family: var(--font-display); }
.bm-dlg .bm-label { display: block; margin: 12px 0 6px; }
.bm-dlg textarea { font-size: 1.02rem; resize: vertical; }
.bm-left { display: block; color: var(--color-text-muted); margin-top: 4px; }
.bm-dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* the maker's dedication step: page 1 live beside the form, an optional photo */
.bm-page1 { position: relative; width: min(100%, 420px); justify-self: center; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 40, 90, .22); }
.bm textarea { width: 100%; box-sizing: border-box; font: 600 1.02rem/1.5 var(--font-text); padding: 12px 16px; border-radius: 16px; border: 2px solid #DCD3F5; background: #fff; color: var(--color-text); resize: vertical; }
.bm textarea:focus { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: transparent; }
.bm-photo { border: 2px dashed #DCD3F5; border-radius: 18px; padding: 12px 14px; display: grid; gap: 8px; background: #fff; }
.bm-photo-top { display: flex; align-items: center; gap: 12px; }
.bm-photo-top img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.bm-photo-top b { color: #3D3389; display: block; }
.bm-photo-top small { color: var(--color-text-muted); }
.bm-photo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bm-file { min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 2px solid #3D3389; background: #fff; color: #3D3389; font: 800 .98rem var(--font-text); cursor: pointer; justify-self: start; display: inline-flex; align-items: center; }
.bm-file:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.bm-seg { display: inline-flex; padding: 4px; border-radius: 99px; background: #EDE6FA; gap: 2px; justify-self: start; }
.bm-seg button { min-height: 38px; padding: 4px 14px; border: 0; border-radius: 99px; background: none; color: #3D3389; font: 800 .9rem var(--font-text); cursor: pointer; }
.bm-seg button.is-on { background: #fff; box-shadow: 0 2px 6px rgba(60, 40, 90, .18); }
.bm-link { border: 0; background: none; color: var(--color-link); font: 800 .92rem var(--font-text); cursor: pointer; padding: 6px 0; justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.bm-sub { margin: 4px 0 0; font: 700 1.05rem var(--font-display); color: #3D3389; }
.bm-total { text-align: center; font-weight: 800; color: #3D3389; margin: 0 0 6px; font-size: 1.1rem; }

/* a preset book: the real cover beside the form, then a grid of the ready-made characters */
.bm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 44px); align-items: start; max-width: 940px; margin: 6px auto 0; }
.bm-two .bm-form { margin: 0; max-width: none; }
@media (min-width: 761px) { .bm-two > .bm-cover, .bm-two > .bm-page1, .bm-two > .bm-page1-wrap { position: sticky; top: 96px; } } /* the book stays in view while the form scrolls */
.bm-cover { position: relative; width: min(100%, 420px); justify-self: center; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: inset 10px 0 12px -8px rgba(40, 20, 60, .35), 0 20px 40px rgba(60, 40, 90, .26); }
.bm-cover::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 4.5%; background: linear-gradient(90deg, rgba(40, 20, 60, .28), rgba(255, 255, 255, .22) 60%, transparent); pointer-events: none; }
.bm-cover .bk-text { transition: opacity .2s; }
.bm-cover.is-waiting .bk-arc-name { opacity: .45; }
.bm-cover .bk-arc-name { transition: opacity .2s; }
.bm-cover-small { width: min(100%, 230px); margin: 10px auto 14px; display: block; }
.bm-kidgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bm-kidcard { padding: 0; border: 3px solid #E6DEF7; border-radius: 20px; background: #FFF6EA; overflow: hidden; cursor: pointer; aspect-ratio: 1; transition: transform .12s, border-color .12s; }
.bm-kidcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-kidcard:hover { transform: translateY(-2px); }
.bm-kidcard.is-on { border-color: #3D3389; box-shadow: 0 0 0 3px #3D3389; }
.bm-more { justify-self: center; min-height: 44px; padding: 6px 14px; border: 0; background: none; color: var(--color-link); font: 800 .98rem var(--font-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bm-task-kid { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.bm-task-kid img, .bm-dot { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #FFF6EA; }
.bm-dot { display: block; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7); }
.bm-bar-4 .bm-task { flex-basis: 140px; }
.bm-ini { display: grid !important; place-items: center; background: #F0EBFF !important; color: #3D3389; font: 700 1.05rem var(--font-display); font-style: normal; }

@media (max-width: 760px) {
  .bm-two { grid-template-columns: 1fr; gap: 16px; }
  .bm-cover { width: min(74vw, 320px); }
  .bm-kidgrid { gap: 8px; }
  /* the bar on a phone: one row of four small buttons, Continue under them */
  .bm-bar-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: 20px; }
  .bm-bar-4 .bm-task { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 6px 2px; font-size: .76rem; row-gap: 2px; border-radius: 14px; }
  .bm-bar-4 .bm-task span { display: none; }
  .bm-bar-4 .bm-task b { line-height: 1.15; }
  .bm-bar-4 .bm-task img, .bm-bar-4 .bm-dot { grid-row: auto; width: 30px; height: 30px; }
  .bm-bar-4 .bm-go { grid-column: 1 / -1; min-height: 46px; padding: 8px 20px; }
  .bs-hero { grid-template-columns: 1fr; }
  .bs-hero .bs-book { width: min(78%, 340px); }
  .bs-steps, .bs-inside, .bm-formats { grid-template-columns: 1fr; }
  .bs-pitch { flex-direction: column; text-align: center; gap: 12px; padding: 20px 18px; }
  .bm-read { grid-template-columns: 1fr 1fr; }
  .bm-paper { grid-column: 1 / -1; grid-row: 1; }
  .bm-arrow-prev { justify-self: end; } .bm-arrow-next { justify-self: start; }
  .bm-format { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .bs-btn, .bm-kid { transition: none; } }
/* the endpapers: the homepage's gradient with its 3D emoji scattered faintly over it (engine.js scatterEl) */
.bk-scatter { position: absolute; inset: 0; pointer-events: none; }
.bk-scatter-i { position: absolute; aspect-ratio: 1; height: auto; }
.bk-text-site.bk-subtle { opacity: .62; text-shadow: none; }

/* ===== the child drawn from a photo (maker step 1; Mauro, 30 Nov) ===== */
.bm-owncard { position: relative; display: grid; place-items: center; border-color: #CDB8FF; background: radial-gradient(circle at 30% 25%, #FFFFFF 0, rgba(255, 255, 255, 0) 45%), linear-gradient(150deg, #FFE3CF 0%, #FBD9EA 48%, #DCCBFF 100%); container-type: inline-size; }
.bm-owncard:not(.is-on) { box-shadow: 0 6px 18px rgba(124, 92, 214, .22); }
.bm-owncard small { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 4px 6px; background: rgba(61, 51, 137, .92); color: #fff; font: 800 .74rem/1.15 var(--font-text); text-align: center; }
.bm-own-label { display: grid; gap: 1px; background: linear-gradient(90deg, #5B3FD6, #B9479C) !important; }
.bm-own-label b { font-size: max(.68rem, 8cqw); line-height: 1.1; }
.bm-own-label span { font-size: max(.62rem, 6.6cqw); font-weight: 700; opacity: .92; }
/* a photo turning into a crayon character: the photo on the left, the wand, the drawing on the right */
.bm-own-art { position: absolute; inset: 0 0 26% 0; }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) .bm-own-art img { display: block; width: auto; height: auto; object-fit: contain; }
.bm-own-ai { position: absolute; top: 7%; left: 7%; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 4px; border-radius: 99px; background: linear-gradient(90deg, #6A4CE0, #C8509F); color: #fff; font: 800 max(.68rem, 7cqw)/1.3 var(--font-text); letter-spacing: .04em; box-shadow: 0 2px 6px rgba(90, 60, 200, .35); z-index: 3; }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) .bm-own-ai img { width: 1.25em; height: 1.25em; }
.bm-own-photo { position: absolute; left: 9%; top: 30%; width: 38%; aspect-ratio: .86; padding: 4% 4% 12%; background: #fff; border-radius: 6px; box-shadow: 0 4px 10px rgba(40, 30, 80, .22); transform: rotate(-9deg); }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) .bm-own-photo img { width: 100%; height: 100%; object-fit: contain; background: #EEF0F6; border-radius: 3px; padding: 10%; box-sizing: border-box; }
.bm-own-drawn { position: absolute; right: 8%; top: 22%; width: 46%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 5px 14px rgba(40, 30, 80, .25); transform: rotate(7deg); z-index: 2; }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) .bm-own-drawn img { width: 100%; height: 100%; object-fit: cover; }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) img.bm-own-wand { position: absolute; left: 39%; top: 47%; width: 22%; transform: rotate(-12deg); z-index: 3; filter: drop-shadow(0 2px 3px rgba(40, 30, 80, .25)); }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) img.bm-own-spark { position: absolute; width: 14%; z-index: 3; animation: bm-twinkle 2.4s ease-in-out infinite; }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) img.bm-own-spark-1 { right: 4%; top: 14%; }
:is(.bm-owncard, .bm-own-hero, .bm-ownopt) img.bm-own-spark-2 { left: 40%; top: 26%; width: 11%; animation-delay: 1.2s; }
@keyframes bm-twinkle { 0%, 100% { transform: scale(.75) rotate(0deg); opacity: .65; } 50% { transform: scale(1.1) rotate(18deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bm-own-spark { animation: none; } }
.bm-own-wrap { display: grid; gap: 10px; align-content: start; }
.bm-own-note { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 16px; background: #F3EEFF; color: #3D3389; font: 700 .9rem/1.35 var(--font-text); }
.bm-own-note img { width: 46px; height: 46px; border-radius: 12px; flex: none; object-fit: cover; }
.bm-read + .bm-own-note, .bm-top-book + .bm-own-note { max-width: 760px; margin: 0 auto 12px; }
.bm-own-dlg { width: min(560px, calc(100vw - 28px)); }
.bm-own-price { margin: 0 0 10px; color: #A8321F; font: 800 .95rem var(--font-text); }
.bm-own-pic { display: block; width: min(300px, 100%, 44vh); margin: 4px auto 8px; border-radius: 22px; border: 3px solid #E6DEF7; }
.bm-own-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.bm-own-thumbs span { position: relative; }
.bm-own-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; display: block; }
.bm-own-thumbs button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #3D3389; color: #fff; font-weight: 800; cursor: pointer; }
.bm-consent { align-items: flex-start; font-weight: 600; font-size: .9rem; line-height: 1.4; margin-top: 12px; }
.bm-consent input { flex: none; margin-top: 2px; }
.bm-own-wait { display: grid; justify-items: center; gap: 8px; padding: 30px 0; color: #3D3389; text-align: center; }
.bm-spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #E6DEF7; border-top-color: #3D3389; animation: bm-spin 1s linear infinite; }
@keyframes bm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bm-spin { animation-duration: 3s; } }
.bm-err { color: #A8321F; font-weight: 700; margin: 8px 0 0; min-height: 1em; }
.bm-test { display: grid; gap: 8px; justify-items: center; }
.bm-test .bm-input { width: min(320px, 100%); font: 700 1rem var(--font-text); padding: 10px 14px; border-radius: 14px; border: 2px solid #DCD3F5; }
/* a modal dialog sits in the middle of the screen (the site's reset takes the browser's own centring away) */
.bm-dlg { margin: auto; max-height: calc(100dvh - 28px); overflow: auto; }
/* the file picker is the label's own button: the browser's "Choose files / No file chosen" box is hidden */
.bm-file { position: relative; }
.bm-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* the photo dialog: the same picture as the card, bigger, on the same gradient */
.bm-own-dlg { padding-top: 0; }
.bm-own-hero { margin: 0 -22px 14px; height: 168px; display: grid; place-items: center; background: radial-gradient(circle at 25% 20%, #fff 0, rgba(255, 255, 255, 0) 40%), linear-gradient(150deg, #FFE3CF 0%, #FBD9EA 48%, #DCCBFF 100%); border-radius: 26px 26px 0 0; }
.bm-own-heroart { position: relative; width: 210px; height: 170px; container-type: inline-size; }
.bm-own-heroart .bm-own-art { inset: 6px 0 0 0; }
.bm-own-heroart .bm-own-ai { font-size: 12px; top: 10%; left: -6%; }
.bm-own-dlg .bm-own-price { margin: 0 0 12px; color: #A8321F; font: 800 1.5rem/1 var(--font-display); }
.bm-own-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 4px 0 12px; }
.bm-own-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 16px; background: #F6F2FF; color: #3D3389; font: 800 .82rem/1.25 var(--font-text); }
.bm-own-steps img { width: 34px; height: 34px; }
.bm-drop { position: relative; display: grid; justify-items: center; gap: 2px; padding: 16px 12px; border: 2.5px dashed #B9A6F2; border-radius: 20px; background: #FCFAFF; color: #3D3389; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.bm-drop:hover { background: #F4EEFF; border-color: #7C5CD6; }
.bm-drop:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.bm-drop img { width: 42px; height: 42px; }
.bm-drop b { font: 800 1.05rem var(--font-text); }
.bm-drop small { color: #6E6A86; font-weight: 600; }
.bm-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bm-own-dlg .bm-consent { padding: 10px 12px; border-radius: 16px; background: #F6F2FF; font-size: .84rem; }
.bm-go-magic { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #5B3FD6, #B9479C); box-shadow: 0 4px 0 #3E2A9A; }
.bm-go-magic img { width: 22px; height: 22px; }
.bm-go-magic:disabled { background: #DCD3F0; box-shadow: none; color: #fff; }

/* the three photo places: front, side, hair */
.bm-own-tip { margin: 0 0 8px; color: #3D3389; font-weight: 700; font-size: .92rem; line-height: 1.4; }
.bm-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bm-slot { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; aspect-ratio: 1; padding: 8px 6px; border: 2.5px dashed #B9A6F2; border-radius: 18px; background: #FCFAFF; color: #3D3389; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.bm-slot:hover { background: #F4EEFF; border-color: #7C5CD6; }
.bm-slot:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.bm-slot input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bm-slot img.bm-slot-art { width: 34px; height: 34px; }
.bm-slot b { font: 800 .86rem/1.15 var(--font-text); }
.bm-slot small { color: #6E6A86; font: 600 .72rem/1.25 var(--font-text); }
.bm-slot.is-full { border-style: solid; border-color: #3D3389; padding: 0; overflow: hidden; align-content: end; cursor: default; }
.bm-slot-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-slot.is-full b { position: relative; width: 100%; padding: 4px 2px; background: rgba(61, 51, 137, .85); color: #fff; font-size: .78rem; }
.bm-slot-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #3D3389; color: #fff; font-weight: 800; cursor: pointer; }
.bm-own-dos { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 3px; color: #6E6A86; font: 600 .84rem/1.35 var(--font-text); }
.bm-own-dos li::before { content: '✓'; color: #2F7D5B; font-weight: 800; margin-right: 6px; }

/* drawing in progress: what is happening, a bar over the usual time, the time left */
.bm-own-wait b { font: 800 1.1rem var(--font-text); }
.bm-own-wait small { color: #6E6A86; font: 600 .9rem var(--font-text); }
.bm-own-bar { width: min(360px, 100%); height: 14px; border-radius: 99px; background: #EEE8FB; overflow: hidden; box-shadow: inset 0 1px 2px rgba(60, 40, 140, .12); }
.bm-own-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #FFB98A, #F08AB8, #7C5CD6); background-size: 200% 100%; transition: width .25s linear; animation: bm-shine 2.2s linear infinite; }
@keyframes bm-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .bm-own-bar i { animation: none; } }
.bm-own-dlg .bm-own-hero .bm-own-spark { animation-duration: 1.4s; }

/* the dialog's buttons stay in view at the bottom while the rest scrolls; the result drops the big top picture */
.bm-own-dlg.is-result { padding-top: 22px; }
.bm-own-dlg.is-result .bm-own-hero { display: none; }
.bm-own-foot { position: sticky; bottom: -22px; z-index: 2; margin: 14px -22px -22px; padding: 12px 22px 16px; background: #fff; box-shadow: 0 -10px 18px -12px rgba(45, 35, 80, .35); flex-wrap: wrap; align-items: center; }
.bm-own-foot .bm-link { margin-right: auto; }
@media (max-width: 480px) { .bm-own-foot .bm-go { flex: 1 1 100%; justify-content: center; } }
.bm-own-hint { flex: 1 1 100%; color: #7C5CD6; font: 700 .82rem var(--font-text); text-align: right; }
.bm-own-hint:empty { display: none; }

.bm-own-sex { margin: 0 0 10px; }
.bm-own-warn { display: grid; gap: 8px; justify-items: start; margin: 0 0 8px; padding: 10px 12px; border-radius: 16px; background: #FFF1E4; color: #8A3B12; font: 700 .9rem/1.4 var(--font-text); }
.bm-own-warn p { margin: 0; }
.bm-own-foot .bm-err { flex: 1 1 100%; margin: 0 0 4px; padding: 8px 12px; border-radius: 12px; background: #FDEBE6; font-size: .9rem; }
.bm-own-foot .bm-err:empty { display: none; }

/* errors you can't miss: a red box with an icon, right where the photo was chosen */
.bm-err:not(:empty) { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: #FDEBE6; border: 2px solid #F3B9AA; color: #8E2A17; font: 700 .9rem/1.4 var(--font-text); }
.bm-err:not(:empty)::before { content: '!'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #C2412A; color: #fff; font-weight: 900; font-size: .85rem; }
.bm-err:empty { display: none; }
/* dropping photos from the computer */
.bm-file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-drop-or { color: #6E6A86; font: 600 .86rem var(--font-text); margin: 6px 0 0; }
.bm-center { text-align: center; }
.bm-photo.is-drag, .bm-slot.is-drag { background: #EFE7FF; border-color: #7C5CD6; border-style: solid; box-shadow: 0 0 0 4px rgba(124, 92, 214, .18); }
.bm-photo.is-drag::after { content: 'Drop the photo here'; display: block; margin-top: 8px; text-align: center; color: #3D3389; font: 800 1rem var(--font-text); }

/* the format cards: the child's own cover as a hardcover, a softcover and on a tablet */
.bm-fmt-pic { height: 170px; display: grid; place-items: center; margin: 2px 0 8px; perspective: 700px; }
.bm-mock-cover { position: relative; width: 100%; height: 100%; overflow: hidden; container-type: inline-size; }
.bm-mock-cover > * { width: 100%; height: 100%; }
.bm-mock-book { position: relative; width: 132px; aspect-ratio: 1; transform: rotateY(-22deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .3s; }
.bm-format:hover .bm-mock-book, .bm-format.is-on .bm-mock-book { transform: rotateY(-12deg) rotateX(2deg); }
.bm-mock-book .bm-mock-cover { border-radius: 2px 5px 5px 2px; box-shadow: 10px 12px 22px rgba(40, 30, 80, .28), 0 0 0 1px rgba(0, 0, 0, .06); }
.bm-mock-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05) 70%, rgba(255, 255, 255, .25)); border-radius: 2px 0 0 2px; pointer-events: none; }
/* the page block peeking out at the side: thick for a hardcover, a thin line for a softcover */
.bm-mock-pages { position: absolute; top: 3%; bottom: 3%; right: -9px; width: 10px; background: repeating-linear-gradient(90deg, #FFFDF8 0 1px, #E9E2D4 1px 2px); border-radius: 0 3px 3px 0; transform: translateZ(-6px); box-shadow: 4px 4px 10px rgba(40, 30, 80, .18); }
.bm-mock-hardcover .bm-mock-cover { outline: 3px solid rgba(0, 0, 0, .08); outline-offset: -3px; }
.bm-mock-softcover { width: 126px; transform: rotateY(-22deg) rotateX(4deg) rotateZ(-1deg); }
.bm-mock-softcover .bm-mock-pages { right: -3px; width: 3px; top: 1%; bottom: 1%; }
.bm-mock-softcover .bm-mock-cover { border-radius: 1px 3px 3px 1px; box-shadow: 6px 8px 14px rgba(40, 30, 80, .22); }
.bm-mock-softcover .bm-mock-spine { width: 4%; opacity: .6; }
.bm-mock-tablet { position: relative; width: 132px; aspect-ratio: .78; padding: 10px 9px 16px; border-radius: 16px; background: #23232B; box-shadow: 8px 10px 20px rgba(40, 30, 80, .3), inset 0 0 0 2px #3A3A46; display: grid; align-content: center; transform: rotate(-3deg); }
.bm-mock-tablet .bm-mock-cover { aspect-ratio: 1; height: auto; border-radius: 4px; }
.bm-mock-cam { position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #4A4A58; }
@media (max-width: 760px) { .bm-fmt-pic { height: 140px; } .bm-mock-book, .bm-mock-tablet { width: 108px; } }
/* a hardcover reads thick: a deeper page block and the board's edge under the cover */
.bm-mock-hardcover .bm-mock-pages { right: -14px; width: 15px; top: 4%; bottom: 4%; }
.bm-mock-hardcover::after { content: ''; position: absolute; left: 2px; right: -2px; bottom: -6px; height: 7px; border-radius: 0 0 4px 4px; background: linear-gradient(#5A4F7A, #3D3560); transform: translateZ(-3px); }

/* the steps above the maker: done ✓, the current one, the rest; each a link back (or on, once there is a name) */
.bm-steps { margin: 0 auto 14px; max-width: 760px; }
.bm-steps ol { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; counter-reset: none; }
.bm-steps li { flex: 1 1 0; position: relative; display: flex; justify-content: center; }
.bm-steps li + li::before { content: ''; position: absolute; top: 19px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 3px; border-radius: 3px; background: #E2DAF5; }
.bm-steps li.is-done + li::before, .bm-steps li.is-done + li.is-now::before { background: #3D3389; }
.bm-steps-b { display: grid; justify-items: center; gap: 4px; padding: 0 4px; border: 0; background: none; font: 800 .85rem var(--font-text); color: #6E6A86; cursor: pointer; }
button.bm-steps-b:disabled { cursor: default; opacity: .55; }
button.bm-steps-b:hover:not(:disabled) .bm-steps-l { color: #3D3389; text-decoration: underline; }
.bm-steps-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid #E2DAF5; color: #6E6A86; font: 800 1rem var(--font-text); position: relative; z-index: 1; }
.is-done .bm-steps-n { background: #3D3389; border-color: #3D3389; color: #fff; }
.is-now .bm-steps-n { border-color: #3D3389; color: #3D3389; box-shadow: 0 0 0 5px rgba(61, 51, 137, .14); }
.is-now .bm-steps-l { color: #3D3389; }
.bm-steps button.bm-steps-b:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 12px; }
@media (max-width: 520px) { .bm-steps-l { font-size: .72rem; } .bm-steps-n { width: 32px; height: 32px; } .bm-steps li + li::before { top: 15px; right: calc(50% + 16px); left: calc(-50% + 16px); } }

/* paying */
.bm-cur { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; white-space: nowrap; }
.bm-cur select { font: 700 .9rem var(--font-text); padding: 4px 8px; border-radius: 10px; border: 2px solid #DCD3F5; background: #fff; color: #3D3389; }
.bm-paybox { display: grid; gap: 8px; justify-items: center; }
.bm-pay { width: min(440px, 100%); }
.bm-secure { color: #6E6A86; font: 600 .84rem/1.4 var(--font-text); text-align: center; max-width: 440px; }
/* the thank-you page */
.bt { max-width: 720px; margin: 0 auto; }
.bt-next { list-style: none; counter-reset: bt; display: grid; gap: 12px; padding: 0; margin: 18px 0 26px; }
.bt-next li { counter-increment: bt; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px 18px; border-radius: 22px; background: #fff; border: 3px solid #E6DEF7; }
.bt-next li::before { content: counter(bt); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #3D3389; color: #fff; font: 800 1.05rem var(--font-text); }
.bt-next b { font: 700 1.15rem var(--font-display); color: #3D3389; }
.bt-next span { color: #4F4A5E; font-weight: 600; line-height: 1.45; }
/* the currency picker: a rounded pill like the site's buttons, with our own arrow (the browser's sat tight in the corner) */
.bm-cur select { -webkit-appearance: none; appearance: none; min-height: 40px; padding: 6px 38px 6px 16px; border-radius: 99px; border: 2px solid #DCD3F5;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%233D3389' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
  color: #3D3389; font: 800 .95rem var(--font-text); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bm-cur select:hover { border-color: #B9A6F2; }
.bm-cur select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* the order summary under the formats: one card, lines with prices, the total, Pay */
.bm-sum { max-width: 520px; margin: 22px auto 0; padding: 20px 22px 18px; border-radius: 26px; background: #fff; border: 3px solid #E6DEF7; box-shadow: 0 10px 30px rgba(61, 51, 137, .08); display: grid; gap: 0; }
.bm-sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.bm-sum-head h2 { margin: 0; font: 700 1.35rem var(--font-display); color: #3D3389; }
.bm-sum .bm-cur { margin: 0; gap: 8px; color: #6E6A86; font: 700 .9rem var(--font-text); }
.bm-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px dashed #E6DEF7; font: 700 1rem var(--font-text); color: #4F4A5E; }
.bm-sum-row b { color: #3D3389; white-space: nowrap; }
.bm-sum-row.is-soft b { color: #2C7A4B; }
.bm-sum-row.is-total { border-bottom: 0; padding: 12px 0 14px; font-size: 1.2rem; color: #3D3389; }
.bm-sum-row.is-total b { font-size: 1.35rem; }
.bm-sum .bm-paybox { gap: 8px; }
.bm-sum .bm-pay { width: 100%; }
.bm-sum .bm-err { margin: 4px 0 0; }
.bm-sum .bm-test { margin-top: 6px; }
.bm-sum .bm-test .bm-link { font-size: .85rem; }
.bm-sum-back { justify-self: center; margin-top: 10px; }
/* the page's soft colour fades back to cream (it stopped in a hard line across the pay button) */
.bs-body { background: #FFF8F1 linear-gradient(180deg, #FFF4E6 0%, #F5F0FF 70vh, #FFF8F1 160vh) no-repeat; }
/* the page's colour, sized in pixels: the body's background is painted on the page canvas, whose box is one screen
   high, so a gradient "to 160vh" stopped at the bottom of the first screen; this one fades back to cream by itself */
.bs-body { background: #FFF8F1 linear-gradient(180deg, #FFF4E6 0, #F5F0FF 620px, #FFF8F1 1500px) no-repeat 0 0 / 100% 1500px; }
.bm-sum .bm-test { justify-items: center; text-align: center; }

/* ===== the thank-you page ===== */
.bt { max-width: 900px; margin: 0 auto; padding: 18px 18px 50px; display: grid; gap: 22px; }
.bt-hero { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; padding: 26px 30px; border-radius: 32px; background: #fff; border: 3px solid #E6DEF7; box-shadow: 0 16px 40px rgba(61, 51, 137, .1); }
.bt-book { display: grid; place-items: center; min-height: 240px; perspective: 800px; }
.bt-mock.bm-mock-book { width: 210px; animation: bt-float 4s ease-in-out infinite; }
@keyframes bt-float { 0%, 100% { transform: rotateY(-20deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-12deg) rotateX(2deg) translateY(-8px); } }
.bt-kicker { margin: 0; color: #C2412A; font: 800 1.1rem var(--font-text); }
.bt-words h1 { margin: 4px 0 10px; font: 700 clamp(1.7rem, 4vw, 2.5rem)/1.1 var(--font-display); color: #3D3389; }
.bt-sub { margin: 0; color: #4F4A5E; font: 600 1.02rem/1.5 var(--font-text); }
.bt-mission { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 24px 28px; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 92% 10%, rgba(255, 255, 255, .18) 0 70px, transparent 71px), linear-gradient(135deg, #5B3FD6 0%, #9D4FC0 55%, #F08AB8 100%); box-shadow: 0 14px 34px rgba(91, 63, 214, .28); }
.bt-mission-icon { font-size: 2.6rem; line-height: 1; }
.bt-mission h2 { margin: 0 0 6px; color: #fff; font: 700 1.4rem var(--font-display); }
.bt-mission p { margin: 0; font: 600 1.02rem/1.5 var(--font-text); }
.bt-mission .bt-sign { margin-top: 10px; opacity: .85; font-style: italic; }
.bt-next-wrap h2 { margin: 0 0 10px; font: 700 1.35rem var(--font-display); color: #3D3389; }
.bt-next-wrap .bt-next { margin: 0; grid-template-columns: repeat(3, 1fr); }
.bt-next-wrap .bt-next li { grid-template-columns: 1fr; text-align: left; }
.bt-next-wrap .bt-next li::before { grid-row: auto; margin-bottom: 6px; }
.bt-ctas { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; }
.bt-ctas .bs-btn { font-size: 1.05rem; }
.bt-link { color: #3D3389; font: 800 1rem var(--font-text); }
.bt-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
@media (max-width: 720px) {
  .bt-hero { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; gap: 14px; }
  .bt-book { min-height: 190px; } .bt-mock.bm-mock-book { width: 160px; }
  .bt-mission { grid-template-columns: 1fr; text-align: center; } .bt-mission-icon { justify-self: center; }
  .bt-next-wrap .bt-next { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bt-mock.bm-mock-book { animation: none; } }

/* free shipping, said clearly wherever a price is (Mauro) */
.bm-format .bm-ship { justify-self: center; margin: 2px 0 4px; padding: 3px 12px; border-radius: 99px; background: #E3F5EA; color: #1E6B42; font: 800 .85rem var(--font-text); font-style: normal; }
.bm-format .bm-ship.is-digital { background: #EEE8FB; color: #3D3389; }
.bm-sum-row.is-free b { padding: 1px 10px; border-radius: 99px; background: #E3F5EA; color: #1E6B42; letter-spacing: .04em; }
.bs-free { margin: 4px 0 14px; color: #1E6B42; font: 800 1rem var(--font-text); }

/* ===== the book page's top, calmer (Mauro: messy) ===== */
.bs-info { max-width: 520px; }
.bs-kicker { margin: 0 0 10px; color: #A8321F; font: 800 .82rem var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.bs-kicker span { margin: 0 4px; opacity: .6; }
.bs-info h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.04; letter-spacing: -.01em; }
.bs-info .bs-line { font-size: 1.08rem; line-height: 1.55; color: #4F4A5E; margin: 0 0 22px; }
.bs-tiles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; padding: 0; }
.bs-tiles li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px solid #ECE6F7; }
.bs-tiles span { color: #6E6A86; font: 700 .85rem var(--font-text); }
.bs-tiles b { color: #3D3389; font: 800 1.25rem var(--font-text); }
.bs-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 0 0 18px; }
.bs-cta .bs-btn { padding-inline: 30px; }
.bs-cta .bs-btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.bs-more { color: #3D3389; font: 800 1rem var(--font-text); text-decoration: none; border-bottom: 2px solid #CFC5EE; padding-bottom: 2px; }
.bs-more:hover { border-color: #3D3389; }
.bs-checks { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; color: #4F4A5E; font: 600 .95rem var(--font-text); }
.bs-checks li { display: flex; align-items: center; gap: 9px; }
.bs-checks li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #E3F5EA url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2 3.7 7 9 1' fill='none' stroke='%231E6B42' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 10px 8px; }
.bs-draft { padding: 8px 14px; font-size: .88rem; font-weight: 700; border-radius: 12px; }
@media (max-width: 720px) { .bs-info { max-width: none; } .bs-tiles li { padding: 10px; } .bs-tiles b { font-size: 1.1rem; } }
@media (max-width: 520px) { .bs-kicker { font-size: .72rem; letter-spacing: .06em; } }

/* "A look inside": each page opens bigger */
.bs-inside-hint { margin: -6px 0 14px; color: #6E6A86; font: 600 .95rem var(--font-text); }
.bs-open[role=button] { position: relative; cursor: zoom-in; transition: transform .2s, box-shadow .2s; border-radius: 6px; }
.bs-open[role=button]:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(61, 51, 137, .18); }
.bs-open[role=button]:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.bs-open[role=button]::after { content: ''; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; opacity: .92;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233D3389' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") no-repeat center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.bs-zoom { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(24, 20, 48, .92); color: #fff; }
.bs-zoom[open] { display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; }
.bs-zoom::backdrop { background: rgba(24, 20, 48, .6); }
.bs-zoom-stage { grid-column: 2; display: grid; place-items: center; min-width: 0; height: 100%; padding: 56px 0 8px; }
.bs-zoom-page { width: min(100%, 1500px, calc((100dvh - 120px) * 2)); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); border-radius: 4px; overflow: hidden; }
.bs-zoom-prev, .bs-zoom-next, .bs-zoom-close { border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; font: 400 2rem/1 var(--font-text); width: 52px; height: 52px; justify-self: center; }
.bs-zoom-prev:hover:not(:disabled), .bs-zoom-next:hover:not(:disabled), .bs-zoom-close:hover { background: rgba(255, 255, 255, .26); }
.bs-zoom-prev:disabled, .bs-zoom-next:disabled { opacity: .25; cursor: default; }
.bs-zoom-prev { grid-column: 1; grid-row: 1; } .bs-zoom-next { grid-column: 3; grid-row: 1; }
.bs-zoom-close { position: absolute; top: 12px; right: 14px; font-size: 1.3rem; width: 44px; height: 44px; z-index: 2; }
.bs-zoom-count { grid-column: 1 / -1; margin: 0 0 16px; text-align: center; font: 700 .95rem var(--font-text); opacity: .8; }
.bs-zoom button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 720px) { .bs-zoom[open] { grid-template-columns: 44px 1fr 44px; } .bs-zoom-prev, .bs-zoom-next { width: 40px; height: 40px; font-size: 1.6rem; } }

/* the photo character: its own option under the ready-made grid (Mauro, 30 Nov), not a seventh card in it */
.bm-or { display: flex; align-items: center; gap: 12px; margin: 2px 0 -2px; color: #8A84A6; font: 800 .9rem var(--font-text); text-transform: uppercase; letter-spacing: .08em; }
.bm-or::before, .bm-or::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: #E6DEF7; }
.bm-ownopt { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 12px; border: 3px solid #CDB8FF; border-radius: 22px; text-align: left; color: #3D3389; cursor: pointer;
  background: radial-gradient(circle at 12% 18%, #fff 0, rgba(255, 255, 255, 0) 38%), linear-gradient(120deg, #FFE9DA 0%, #FBE1EE 50%, #E6DBFF 100%); box-shadow: 0 6px 18px rgba(124, 92, 214, .18); transition: transform .12s, box-shadow .12s; }
.bm-ownopt:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(124, 92, 214, .26); }
.bm-ownopt.is-on { border-color: #3D3389; box-shadow: 0 0 0 3px #3D3389; }
.bm-ownopt-pic { position: relative; display: block; width: 104px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .55); container-type: inline-size; }
.bm-ownopt-pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-ownopt-pic .bm-own-art { inset: 0; }
.bm-ownopt .bm-own-ai { font-size: 10px; top: 5%; left: 5%; padding: 1px 6px 1px 3px; }
.bm-ownopt-words { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.bm-ownopt-words b { font: 700 1.12rem/1.2 var(--font-display); }
.bm-ownopt-words small { color: #5A5478; font: 600 .86rem/1.35 var(--font-text); }
.bm-ownopt-price { margin-top: 2px; padding: 3px 10px; border-radius: 99px; background: linear-gradient(90deg, #5B3FD6, #B9479C); color: #fff; font: 800 .84rem/1.3 var(--font-text); }
@media (max-width: 420px) { .bm-ownopt { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; } .bm-ownopt-pic { width: 84px; } }

/* the reminder on the first step: a book supports the free side of Tiny Hands */
.bm-mission { display: flex; gap: 10px; align-items: center; margin: 0; padding: 11px 14px; border-radius: 16px; background: #FFF4D9; color: #5B4510; font: 600 .9rem/1.4 var(--font-text); }
.bm-mission img { width: 28px; height: 28px; flex: none; }
.bm-mission b { color: #3D3389; }

/* the formats: one column of wide cards (picture left, words right); on a wide screen the order sits beside them and
   stays in view (Mauro, 30 Nov) */
.bm-fmtwrap { max-width: 1000px; margin: 10px auto 0; }
.bm-fmtwrap .bm-formats { grid-template-columns: 1fr; gap: 14px; margin: 0; align-items: stretch; }
.bm-fmtwrap .bm-format { grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px 20px; text-align: left; }
.bm-fmtwrap .bm-format em { left: 20px; transform: none; }
.bm-fmtwrap .bm-fmt-pic { height: 132px; margin: 0; }
.bm-fmtwrap .bm-mock-book, .bm-fmtwrap .bm-mock-tablet { width: 108px; }
.bm-fmtwrap .bm-mock-softcover { width: 104px; }
.bm-fmtwrap .bm-mock-tablet { width: 96px; }
.bm-format-txt { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.bm-format-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
.bm-fmtwrap .bm-format .bm-ship { justify-self: start; margin: 0; }
.bm-fmtwrap .bm-sum { margin: 22px auto 0; }
@media (min-width: 900px) {
  .bm-fmtwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 28px; align-items: start; }
  .bm-fmtwrap .bm-sum { position: sticky; top: 96px; margin: 0; max-width: none; }
}
@media (max-width: 520px) {
  .bm-fmtwrap .bm-format { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 18px 14px 14px; }
  .bm-fmtwrap .bm-fmt-pic { height: 100px; }
  .bm-fmtwrap .bm-mock-book, .bm-fmtwrap .bm-mock-softcover { width: 78px; } .bm-fmtwrap .bm-mock-tablet { width: 70px; padding: 6px 6px 12px; border-radius: 12px; }
  .bm-fmtwrap .bm-format b { font-size: 1.15rem; } .bm-fmtwrap .bm-format strong { font-size: 1.1rem; }
  .bm-fmtwrap .bm-format > .bm-format-txt > span:last-child { font-size: .88rem; }
}

/* the photo dialog on a wide screen: two columns so nothing needs scrolling (Mauro, 30 Nov) */
.bm-own-dlg.is-result .bm-own-steps { display: none; }
.bm-own-side:empty { display: none; }
@media (min-width: 900px) {
  .bm-own-dlg:not(.is-result) { width: min(940px, calc(100vw - 40px)); display: grid; grid-template-columns: 310px minmax(0, 1fr); padding: 0; overflow: hidden; }
  .bm-own-dlg:not(.is-result) .bm-own-intro { padding: 0 22px 22px; overflow: auto; background: radial-gradient(circle at 25% 12%, #fff 0, rgba(255, 255, 255, 0) 32%), linear-gradient(165deg, #FFE3CF 0%, #FBD9EA 45%, #DCCBFF 100%); }
  .bm-own-dlg:not(.is-result) .bm-own-hero { margin: 0 -22px 4px; height: 160px; background: none; border-radius: 0; }
  .bm-own-dlg:not(.is-result) .bm-own-steps { grid-template-columns: 1fr; gap: 6px; margin: 4px 0 0; }
  .bm-own-dlg:not(.is-result) .bm-own-steps li { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; background: rgba(255, 255, 255, .62); }
  .bm-own-dlg:not(.is-result) .bm-own-steps img { width: 28px; height: 28px; flex: none; }
  .bm-own-side { margin-top: 16px; }
  .bm-own-side-h { margin: 0 0 4px; color: #3D3389; font: 800 .9rem var(--font-text); }
  .bm-own-side .bm-own-dos { margin: 0; color: #4F4A5E; }
  .bm-own-dlg:not(.is-result) .bm-own-body { padding: 22px 24px; overflow: auto; max-height: calc(100dvh - 28px); }
  .bm-own-dlg:not(.is-result) .bm-own-foot { margin: 14px -24px -22px; padding: 12px 24px 16px; bottom: -22px; }
  .bm-own-dlg:not(.is-result) .bm-slot { aspect-ratio: 5 / 4; }
  .bm-own-dlg:not(.is-result) .bm-own-wait { min-height: 100%; align-content: center; }
}

/* the message step: where the page is in the book, above its preview */
.bm-page1-wrap { display: grid; gap: 12px; justify-items: center; margin: 0; }
.bm-where-pg { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 99px; background: #F0EBFF; color: #3D3389; }
.bm-where-pg img { width: 30px; height: 30px; flex: none; }
.bm-where-pg span { display: grid; line-height: 1.25; }
.bm-where-pg b { font: 800 .95rem var(--font-text); }
.bm-where-pg small { color: #6E6A86; font: 600 .8rem var(--font-text); }

/* the step bar on a phone: 'Preview' alone, so every step stays one line */
@media (max-width: 520px) { .bm-steps-x { display: none; } }

/* the size on each format card (Mauro: repeat it here, subtle) */
.bm-format small.bm-format-size { color: #8A84A6; font: 600 .82rem var(--font-text); }

/* the digital book's own page (/tales/book/) */
.bl-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bl-way { display: grid; gap: 6px; align-content: start; padding: 22px 24px; border-radius: 26px; background: #fff; border: 3px solid #E6DEF7; box-shadow: 0 10px 26px rgba(61, 51, 137, .07); }
.bl-way h2 { margin: 0; font: 700 1.3rem var(--font-display); color: #3D3389; }
.bl-way p { margin: 0 0 8px; color: #4F4A5E; font: 600 .98rem/1.45 var(--font-text); }
.bl-ico { font-size: 2.2rem; line-height: 1; }
.bl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 4px; }
.bl-dl { color: #3D3389; font: 800 1rem var(--font-text); text-underline-offset: 3px; }
.bl-keep { padding: 22px 26px; border-radius: 26px; background: #F3EEFF; color: #3D3389; }
.bl-keep h2 { margin: 0 0 8px; font: 700 1.25rem var(--font-display); }
.bl-keep ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; font: 600 .98rem/1.45 var(--font-text); color: #4F4A5E; }
.bl-keep b { color: #3D3389; }
.bl-keep p { margin: 0; font: 600 .92rem/1.45 var(--font-text); color: #6E6A86; }
@media (max-width: 760px) { .bl-ways { grid-template-columns: 1fr; } }

/* the shop's terms of sale and privacy notice */
.tl { max-width: 760px; margin: 0 auto; padding: 18px 20px 30px; color: #2E2A47; font: 500 1.02rem/1.6 var(--font-text); }
.tl h1 { margin: 6px 0 8px; font: 700 clamp(1.8rem, 4.5vw, 2.5rem)/1.1 var(--font-display); color: #3D3389; }
.tl h2 { margin: 30px 0 8px; font: 700 1.3rem var(--font-display); color: #3D3389; scroll-margin-top: 90px; }
.tl p, .tl li { margin: 0 0 8px; }
.tl ul { padding-left: 22px; margin: 0 0 8px; }
.tl b { color: #23213D; }
.tl a { color: #3D3389; text-underline-offset: 3px; }
.tl-lead { font-size: 1.1rem; color: #4F4A5E; }
.tl-date { color: #8A84A6; font-size: .92rem; }
.tl-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.tl-toc a { padding: 6px 12px; border-radius: 99px; background: #F0EBFF; font: 700 .88rem var(--font-text); text-decoration: none; }
.tl-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 900px; margin: 10px auto 26px; padding: 0 16px; font: 700 .9rem var(--font-text); }
.tl-foot a { color: #6E6A86; text-underline-offset: 3px; }
.bm-agree { color: #8A84A6; font: 600 .82rem var(--font-text); text-align: center; }
.bm-agree a { color: inherit; }
