/* The square's reading in the brand's light, as the past life and the matrix draw theirs: dark places with a fine pale
   edge, gold for what is read, a warm light that fades out inside its own box. Chapter heads, the contents, the key and
   the copy take the reading canon (past-life-v2-reading.css); this file holds the square, its stages and its parts. */

.psq-reading { --psq-warm: 241 185 109; --psq-pale: 224 230 238; --psq-deep: #121722; --psq-gold: #ffd9a0;
    --psq-top: calc(var(--home-control-height) * 2 + var(--home-space-6)); gap: var(--home-space-24); padding-block: var(--home-space-8) var(--home-space-4); }
.psq-reading :is(section, footer) { scroll-margin-top: calc(var(--psq-top) + var(--home-space-4)); }
.psq-reading :is(section, footer):focus { outline: none; }
.psq-reading .psq-part:focus-visible { outline: 1px solid var(--home-focus); outline-offset: var(--home-space-2); }

/* One greeting: the reading's own opening names the product and the date, so the page's general heading over the
   answer steps aside for readers who see; it stays for a screen reader, and its diary links stay where they were. */
.numerology-answer__body:has(.psq-reading) > .account-section-heading { justify-content: center; margin-block-end: 0; }
.numerology-answer__body:has(.psq-reading) > .account-section-heading > div:first-child { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── The opening: the date between two lines, the title with its golden line, the opening words, then the square ── */
.psq-opening { display: grid; justify-items: center; gap: var(--home-space-12); }
.psq-reading .psq-entry { margin-bottom: 0; max-inline-size: 50rem; text-align: center; }
.psq-reading .psq-entry .home-section-title { font-size: var(--home-type-numeral); line-height: 1; }
.psq-reading .psq-entry__lead { max-inline-size: 42rem; margin-top: var(--home-space-8); }
.psq-reading .psq-entry__lead p { color: var(--home-text-soft); font-size: calc(var(--home-type-lead) * 1.12); line-height: 1.7; text-align: center; text-wrap: pretty; }
.psq-stage--hero { inline-size: 100%; }
.psq-hero__side { display: grid; align-content: center; gap: var(--home-space-6); min-inline-size: 0; }
.psq-hero__hint { display: flex; align-items: flex-start; gap: var(--home-space-4); margin: 0; color: var(--home-text-muted); font-size: var(--home-type-label); line-height: 1.6; }
.psq-hero__tap { position: relative; flex: none; inline-size: 1.5rem; block-size: 1.5rem; margin-top: 0.1rem; border: 1px solid rgb(var(--psq-warm) / 0.7); border-radius: 50%; }
.psq-hero__tap::before { position: absolute; inset: 0.4rem; content: ''; border-radius: 50%; background: var(--home-amber); box-shadow: 0 0 0.6rem rgb(var(--psq-warm) / 0.9); }
.psq-hero__more { display: flex; align-items: flex-start; gap: var(--home-space-3); margin: 0; padding-inline: var(--home-space-2); color: #f1d9b5; font-size: var(--home-type-label); font-style: italic; line-height: 1.55; }
.psq-hero__more-mark { flex: none; inline-size: 0.8rem; block-size: 0.8rem; margin-top: 0.3em; fill: #ffe2b5; filter: drop-shadow(0 0 0.35rem rgb(var(--psq-warm) / 0.8)); }
/* Every card of the opening shares one cell: the side keeps the height of the longest, the shown one fades in. */
.psq-cards { display: grid; }
/* The card that leaves fades out first; the next comes up after it, so two texts never stand over each other. */
.psq-card { grid-area: 1 / 1; display: grid; align-content: start; gap: var(--home-space-4); padding: var(--home-space-8); border-radius: var(--home-radius-surface); background: linear-gradient(160deg, rgb(var(--psq-warm) / 0.07), rgb(255 255 255 / 0.025) 45%); opacity: 0; visibility: hidden; translate: 0 0.4rem; transition: opacity 280ms ease-in, translate 280ms ease-in, visibility 0s linear 280ms; }
.psq-card.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 560ms ease-out 300ms, translate 720ms cubic-bezier(0.22, 0.7, 0.2, 1) 300ms, visibility 0s linear 300ms; }
.psq-card__place { display: flex; align-items: center; gap: var(--home-space-3); margin: 0; color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; }
.psq-card__place .psq-mark { inline-size: 2rem; block-size: 2rem; }
.psq-card__headline { display: flex; align-items: baseline; gap: var(--home-space-3); margin: 0; }
.psq-card__value { color: var(--psq-gold); font-size: var(--home-type-numeral); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -0.02em; line-height: 1; text-shadow: 0 0 1.6rem rgb(var(--psq-warm) / 0.45); overflow-wrap: anywhere; }
.psq-card__value.is-long { font-size: var(--home-type-section); }
.psq-card__unit { color: var(--home-text-muted); font-size: var(--home-type-lead); }
.psq-reading .psq-card__title { margin: 0; color: var(--home-text); font-size: var(--home-type-title); font-weight: 400; line-height: 1.25; }
.psq-card__text p, .psq-reading .psq-card__note { margin: 0; color: var(--home-text-soft); font-size: 1rem; line-height: 1.6; }
.psq-card__text p + p { margin-top: var(--home-space-3); }
.psq-reading .psq-card__note { color: var(--home-text-muted); font-size: var(--home-type-label); }

/* The ways on: a quiet pill with its arrow, as the matrix offers them. */
.psq-reading .psq-link { display: inline-flex; align-items: center; gap: var(--home-space-3); min-block-size: 3rem; padding: 0 var(--home-space-3) 0 var(--home-space-6); border-radius: 999px; background: rgb(var(--psq-warm) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--psq-warm) / 0.4); color: #ffe2b5; font-size: var(--home-type-label); text-decoration: none; transition: background-color var(--home-duration-fast) ease-out; }
.psq-reading .psq-link:is(:hover, :focus-visible) { background: rgb(var(--psq-warm) / 0.2); }
.psq-reading .psq-link:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 0.25rem; }
.psq-link__sign { flex: none; inline-size: 2.25rem; block-size: 2.25rem; padding: 0.55rem; border-radius: 50%; background: rgb(var(--psq-warm) / 0.12); fill: none; stroke: var(--home-amber); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── The square ── */
.psq-plate { position: relative; inline-size: 100%; min-inline-size: 0; }
.psq-plate__window { position: relative; aspect-ratio: 1; }
.psq-plate--lens .psq-plate__window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.psq-plate__camera { inline-size: 100%; block-size: 100%; transform-origin: 50% 50%; transition: transform 1700ms cubic-bezier(0.45, 0, 0.2, 1); }
.psq-plate__svg { display: block; inline-size: 100%; block-size: 100%; overflow: visible; font-family: var(--home-font); font-variant-numeric: lining-nums; }
.psq-plate__sky circle { fill: #e8eef8; opacity: 0.38; }
.psq-plate__sky circle.is-bright { fill: #ffe2b5; opacity: 0.7; }
.psq-plate__glow circle { stroke: none; }
.psq-plate__ground { opacity: 0.7; }
.psq-plate__outline { fill: none; stroke: rgb(var(--psq-pale) / 0.13); stroke-width: 1.3; }
.psq-plate__orbit { fill: none; stroke: rgb(var(--psq-pale) / 0.14); stroke-width: 1.2; }
.psq-plate__leader { fill: none; stroke: rgb(var(--psq-pale) / 0.2); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.psq-plate__way { fill: none; stroke: rgb(var(--psq-warm) / 0.8); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 900ms ease-in-out; }
.psq-plate__way.is-lit { opacity: 1; }
.psq-plate__way.is-condition { stroke-dasharray: 12 12; }
.psq-plate__halo { opacity: 0; transition: opacity 1200ms ease-in-out; }
.psq-plate__halo.is-lit { opacity: 1; }
.psq-plate__halo--bead.is-lit { opacity: 0.85; }
.psq-plate__frame { fill: var(--psq-deep); stroke: rgb(var(--psq-pale) / 0.35); stroke-width: 1.5; transition: fill 1100ms ease-in-out, stroke 1100ms ease-in-out, stroke-width 1100ms ease-in-out, stroke-opacity 800ms ease-in-out; }
.psq-plate__index { fill: rgb(var(--psq-pale) / 0.55); font-size: 17px; letter-spacing: 0.06em; transition: fill 1100ms ease-in-out, opacity 800ms ease-in-out; }
.psq-plate__digits { fill: rgb(var(--psq-pale) / 0.78); font-size: var(--psq-size, 64px); letter-spacing: -0.02em; text-anchor: middle; dominant-baseline: central; transition: fill 1100ms ease-in-out, fill-opacity 800ms ease-in-out, opacity 800ms ease-in-out; }
.psq-plate__cell.is-empty .psq-plate__digits { fill: rgb(var(--psq-pale) / 0.45); }
.psq-plate__cell.is-lit .psq-plate__frame { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 2.4; }
.psq-plate__cell.is-lit.is-condition .psq-plate__frame { stroke-dasharray: 9 8; }
.psq-plate__cell.is-lit .psq-plate__digits { fill: var(--psq-gold); }
.psq-plate__cell.is-lit .psq-plate__index { fill: var(--home-amber); }
.psq-plate.is-reading .psq-plate__cell:not(.is-lit) .psq-plate__frame { stroke-opacity: 0.5; }
.psq-plate.is-reading .psq-plate__cell:not(.is-lit) .psq-plate__digits { fill-opacity: 0.6; }
.psq-plate__disc { fill: var(--psq-deep); stroke: rgb(var(--psq-pale) / 0.35); stroke-width: 1.5; transition: fill 1100ms ease-in-out, stroke 1100ms ease-in-out, stroke-width 1100ms ease-in-out; }
.psq-plate__total { fill: rgb(var(--psq-pale) / 0.62); font-size: 26px; text-anchor: middle; dominant-baseline: central; transition: fill 1100ms ease-in-out; }
.psq-plate__bead.is-lit .psq-plate__disc { fill: rgb(32 27 22); stroke: var(--home-amber); stroke-width: 2.4; }
.psq-plate__bead.is-lit .psq-plate__total { fill: var(--psq-gold); }
.psq-plate__hit { fill: transparent; stroke: none; }
.psq-plate__hollow { opacity: 0; transition: opacity 900ms ease-in-out; }
.psq-plate__hollow.is-shown { opacity: 1; }
.psq-plate__hollow-ring { fill: var(--psq-deep); stroke: #ffe2b5; stroke-width: 2.6; }
.psq-plate__spark { fill: none; stroke: #ffe2b5; stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--psq-dash); stroke-dashoffset: var(--psq-from); opacity: 0; }
/* The opening's places and beads answer the pointer and the keyboard. */
.psq-plate--interactive :is(.psq-plate__cell, .psq-plate__bead) { cursor: pointer; outline: none; }
.psq-plate--interactive .psq-plate__cell:hover:not(.is-lit) .psq-plate__frame, .psq-plate--interactive .psq-plate__bead:hover:not(.is-lit) .psq-plate__disc { stroke: rgb(var(--psq-warm) / 0.75); }
.psq-plate--interactive .psq-plate__cell:focus-visible .psq-plate__frame, .psq-plate--interactive .psq-plate__bead:focus-visible .psq-plate__disc { stroke: var(--home-focus); stroke-width: 3.5; }
/* On the square itself the words stand where the shape leaves room: the places nothing is said about keep only a
   faint outline, the beads and threads under the words step out. */
.psq-plate--shape .psq-plate__cell:not(.is-lit) .psq-plate__frame { fill: none; stroke-opacity: 0.32; stroke-dasharray: 3 9; }
.psq-plate--shape .psq-plate__cell:not(.is-lit) :is(.psq-plate__digits, .psq-plate__index) { opacity: 0; }
.psq-plate--shape :is(.psq-plate__bead:not(.is-lit), .psq-plate__leader, .psq-plate__orbit) { opacity: 0; }
.psq-plate--shape .psq-plate__outline { stroke-dasharray: 3 9; }

/* ── The small square: where a part's places stand ── */
.psq-mark { flex: none; inline-size: 2.5rem; block-size: 2.5rem; overflow: visible; }
.psq-mark__cell { fill: none; stroke: rgb(var(--psq-warm) / 0.7); stroke-opacity: 0.4; stroke-width: 1; }
.psq-mark__cell.is-lit { stroke-opacity: 1; }
.psq-mark__way { fill: none; stroke: rgb(var(--psq-warm) / 0.7); stroke-width: 1; stroke-linecap: round; }
.psq-mark--condition .psq-mark__way { stroke-dasharray: 2.5 2.5; }
.psq-mark--condition .psq-mark__cell.is-lit { stroke-dasharray: 2.5 2; }
.psq-mark__hollow { fill: var(--psq-deep); stroke: rgb(var(--psq-warm) / 0.9); stroke-width: 1; }
.psq-part.is-current .psq-mark__cell.is-lit { stroke: var(--home-amber); }

/* ── Words and the drawing that rides beside them ── */
.psq-stage { display: grid; gap: var(--home-space-10); }
.psq-stage__visual { position: relative; min-inline-size: 0; inline-size: min(100%, 26rem); justify-self: center; }
.psq-stage__words { min-inline-size: 0; }
.psq-stage + .psq-stage, .psq-shape + .psq-stage, .psq-stage + .psq-shape { margin-top: var(--home-space-16); }
.psq-part { position: relative; }
.psq-part + .psq-part { margin-top: var(--home-space-16); }
.psq-place { display: flex; flex-wrap: wrap; align-items: center; gap: var(--home-space-2) var(--home-space-3); margin: 0 0 var(--home-space-4); color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; }
.psq-place .psq-mark { margin-inline-end: var(--home-space-1); }
.psq-place__dash, .psq-place__dot { color: rgb(var(--psq-warm) / 0.55); letter-spacing: 0; }
.psq-place__value { color: var(--psq-gold); font-size: 1.35rem; font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: 0; line-height: 1; text-shadow: 0 0 1.2rem rgb(var(--psq-warm) / 0.45); }
.psq-reading .psq-part__title, .psq-reading .plv2-chapter--free .psq-part__title { margin-bottom: var(--home-space-6); font-size: var(--home-type-title); text-align: start; }
.psq-reading .psq-part__title.numerology-preview-heading { color: var(--home-amber); line-height: 1.35; }
.psq-part--quiet { max-inline-size: 46rem; margin-inline: auto; }
.psq-part--quiet .psq-part__title { text-align: center; }
.psq-reading .psq-head__announcement { max-inline-size: 46rem; margin: var(--home-space-8) 0 0; color: var(--home-amber); text-align: center; }
.psq-reading .psq-head__note { max-inline-size: 40rem; margin: var(--home-space-8) 0 0; color: var(--home-text-muted); font-size: var(--home-type-lead); line-height: 1.6; text-align: center; text-wrap: pretty; }
.psq-head__announcement + .psq-head__note { margin-block-start: var(--home-space-4); }
.psq-reference .psq-chapter { display: flex; flex-direction: column; }
.psq-reference .psq-chapter > .plv2-chapter__head { margin-bottom: var(--home-space-16); }

/* ── The composition on the square itself: the shape read in the corner, the words in the room it leaves. The whole
   composition stands in the middle of the reading; the words begin a breath past the shape's arms. ── */
.psq-shape { --psq-w: min(100%, 38rem); position: relative; inline-size: 100%; max-inline-size: calc(var(--psq-w) * 0.42 + 36rem); min-block-size: var(--psq-w); margin-inline: auto; }
.psq-shape__plate { position: absolute; inset: 0 auto auto 0; inline-size: var(--psq-w); pointer-events: none; }
.psq-shape__words { position: relative; z-index: 1; max-inline-size: 36rem; margin-inline-start: calc(var(--psq-w) * 0.42); padding-block: calc(var(--psq-w) * 0.42) var(--home-space-8); }

/* ── The routes of growth, numbered, each to its text ── */
.psq-routes { margin-block: var(--home-space-8) var(--home-space-16); }
.psq-routes__list { display: grid; gap: var(--home-space-3); margin: 0; padding: 0; list-style: none; }
.psq-route { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: var(--home-space-4); min-block-size: 4.5rem; padding: var(--home-space-4) var(--home-space-5); border-radius: var(--home-radius-surface); background: rgb(255 255 255 / 0.035); color: var(--home-text); text-decoration: none; transition: background-color var(--home-duration-fast) ease-out; }
.psq-route:is(:hover, :focus-visible) { background: rgb(var(--psq-warm) / 0.08); }
.psq-route:focus-visible { outline: 2px solid var(--home-focus); outline-offset: 0.25rem; }
.psq-route__index { display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border: 1px solid rgb(var(--psq-warm) / 0.6); border-radius: 50%; color: var(--psq-gold); font-size: var(--home-type-label); font-variant-numeric: lining-nums; }
.psq-route__words { display: grid; gap: var(--home-space-1); min-inline-size: 0; }
.psq-route__title { font-size: var(--home-type-lead); line-height: 1.35; }
.psq-route__place { color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── The close, as the matrix closes: the square as a seal, the first of the closing words set apart, the way back to
   every chapter, and how the numbers were reached folded after it ── */
/* The close and «Как получились эти числа» are the shared reading-finale (numerology.css); the square keeps its seal and its sums. */
.psq-ending__seal { inline-size: min(17rem, 66vw); }
.psq-sums { display: grid; gap: var(--home-space-8); }
.psq-reading .psq-sums__rule { margin: 0; color: var(--home-text-soft); font-size: 1rem; line-height: 1.65; }
.psq-sums__facts { display: grid; gap: var(--home-space-4); margin: 0; }
.psq-sums__fact { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); gap: var(--home-space-2) var(--home-space-6); align-items: baseline; }
.psq-sums__fact dt { color: var(--home-amber); font-size: var(--home-type-caption); letter-spacing: 0.14em; text-transform: uppercase; }
.psq-sums__fact dd { display: flex; flex-wrap: wrap; gap: var(--home-space-2) var(--home-space-5); margin: 0; }
.psq-sums__step { color: var(--home-text-muted); font-size: 1rem; font-variant-numeric: lining-nums; white-space: nowrap; }
.psq-sums__value { color: var(--psq-gold); font-weight: 400; font-variant-numeric: lining-nums; }
.psq-reading .psq-sums__title { margin: 0 0 var(--home-space-4); color: var(--home-text); font-size: var(--home-type-lead); font-weight: 400; }
.psq-sums__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 7.5rem)); gap: var(--home-space-2); margin: 0; }
.psq-sums__cell { display: grid; gap: 0.15rem; padding: var(--home-space-3); border-radius: 0.6rem; background: rgb(var(--psq-pale) / 0.04); box-shadow: inset 0 0 0 1px rgb(var(--psq-pale) / 0.1); }
.psq-sums__cell dt { color: var(--home-text-muted); font-size: var(--home-type-caption); }
.psq-sums__cell dd, .psq-sums__line dd { margin: 0; color: var(--psq-gold); font-size: 1.35rem; font-variant-numeric: lining-nums; line-height: 1.1; }
.psq-sums__lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: var(--home-space-2) var(--home-space-6); margin: 0; }
.psq-sums__line { display: flex; align-items: center; justify-content: space-between; gap: var(--home-space-3); padding-block: var(--home-space-2); border-bottom: 1px solid rgb(var(--psq-pale) / 0.08); }
.psq-sums__line dt { display: flex; align-items: center; gap: var(--home-space-3); color: var(--home-text-soft); font-size: 1rem; }
.psq-sums__line .psq-mark { inline-size: 1.75rem; block-size: 1.75rem; }
.psq-reading .psq-sums__threshold { margin: var(--home-space-4) 0 0; color: var(--home-text-muted); font-size: var(--home-type-label); }

/* The rest of the reading's furniture. */
.psq-guide-book { inline-size: 4.5rem; block-size: 4.5rem; fill: none; stroke: var(--home-amber); stroke-width: .6; stroke-linejoin: round; }
.psq-method { text-align: center; }
.psq-method > .plv2-copy { max-inline-size: 52rem; margin-inline: auto; text-align: center; }
.psq-chapter__role { margin-top: var(--home-space-8); text-align: center; }
.psq-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: var(--home-space-12); }
.psq-reading .psq-hint { max-inline-size: 34rem; font-size: var(--home-type-label); line-height: var(--home-line-lead); color: var(--home-text-muted); }
.psq-reading .psq-plate__caption { margin-top: var(--home-space-2); font-size: var(--home-type-label); line-height: var(--home-line-lead); color: var(--home-text-muted); text-align: center; }
.psq-reading .psq-checkpoint { max-inline-size: 39rem; color: var(--home-text-muted); font-size: var(--home-type-caption); line-height: var(--home-line-lead); }

/* ── Wide screens: the drawing rides beside its words, under the site's header, never past its chapter ── */
@media (min-width: 60rem) {
    .psq-stage { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: var(--home-space-16); align-items: start; }
    .psq-stage__visual { position: sticky; top: var(--psq-top); inline-size: 100%; }
    .psq-stage__visual > .psq-plate { max-inline-size: calc(var(--stable-screen-height, 100dvh) - var(--psq-top) - var(--home-space-10)); margin-inline: auto; }
    .psq-stage--flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
    .psq-stage--flip .psq-stage__visual { grid-column: 2; grid-row: 1; }
    .psq-stage--flip .psq-stage__words { grid-column: 1; grid-row: 1; }
    .psq-stage:not(.psq-stage--hero) .psq-stage__words { padding-block: var(--home-space-8) var(--home-space-16); }
    .psq-stage--hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: var(--home-space-12); align-items: center; }
    .psq-stage--hero .psq-stage__visual { position: relative; top: auto; }
    .psq-stage--hero .psq-stage__visual > .psq-plate { max-inline-size: 44rem; }
}
/* Narrow: the hint first, then the square, then what is chosen on it. */
@media (max-width: 59.999rem) {
    .psq-stage--hero { justify-items: center; }
    .psq-stage--hero .psq-stage__visual { inline-size: min(100%, 34rem); }
    .psq-hero__side { display: contents; }
    .psq-hero__side > * { inline-size: min(100%, 34rem); }
    .psq-hero__hint { order: -1; }
}
@container answer (max-width: 53rem) {
    .psq-shape { min-block-size: 0; }
    .psq-shape__plate { position: static; inline-size: min(100%, 28rem); margin-inline: auto; }
    .psq-shape__words { margin: var(--home-space-6) 0 0; padding: 0; }
    .psq-spread { grid-template-columns: minmax(0, 1fr); gap: var(--home-space-6); }
}
@media (max-width: 47.999rem) {
    .psq-reading { gap: var(--home-space-16); padding-top: var(--home-space-4); }
    .psq-card { padding: var(--home-space-6) var(--home-space-5); }
    .psq-reading .psq-entry__lead p { text-align: start; }
    .psq-plate__index { font-size: 22px; }
    .psq-plate__total { font-size: 32px; }
    .psq-route { padding: var(--home-space-3) var(--home-space-4); }
    .psq-sums__summary { padding-inline: var(--home-space-5); }
    .psq-sums__body { padding: 0 var(--home-space-5) var(--home-space-6); }
    .psq-sums__fact { grid-template-columns: minmax(0, 1fr); }
    .psq-sums__step { white-space: normal; }
}

/* ── Motion: the light breathes, stars twinkle, a spark runs out of the bead along the line read. Everything shows its
   meaning standing still; motion only leads the eye, rests out of sight, and a phone keeps only the light. ── */
@media (prefers-reduced-motion: no-preference) {
    .psq-plate__spark { animation: psq-spark 3.6s linear infinite; }
    .psq-plate__halo.is-lit, .psq-plate__hollow-light { transform-box: fill-box; transform-origin: center; animation: psq-swell 3.6s ease-in-out infinite alternate; }
    .psq-hero__tap::before { animation: psq-tap 2.4s ease-out 1.2s 4 both; }
    .psq-reading.is-waking :is(.psq-stage__visual, .psq-shape__plate, .reading-finale__seal) { transition: opacity 900ms ease-out, scale 1100ms cubic-bezier(0.22, 0.7, 0.2, 1); }
    .psq-reading.is-waking .psq-stage:not(.psq-stage--hero, .is-seen) > .psq-stage__visual,
    .psq-reading.is-waking .psq-shape:not(.is-seen) > .psq-shape__plate,
    .psq-reading.is-waking .reading-finale:not(.is-seen) .reading-finale__seal { opacity: 0; scale: 0.94; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .psq-plate__sky > g { animation: psq-twinkle 5.2s ease-in-out infinite alternate; }
    .psq-plate__sky > g:nth-child(2) { animation-delay: -1.8s; animation-duration: 4.4s; }
    .psq-plate__sky > g:nth-child(3) { animation-delay: -3.3s; animation-duration: 6s; }
}
@keyframes psq-spark {
    0% { opacity: 0; stroke-dashoffset: var(--psq-from); }
    6% { opacity: 1; }
    80% { opacity: 1; stroke-dashoffset: var(--psq-to); }
    84%, 100% { opacity: 0; stroke-dashoffset: var(--psq-to); }
}
@keyframes psq-swell { from { scale: 0.94; } to { scale: 1.06; } }
@keyframes psq-twinkle { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes psq-tap { 0% { scale: 1; box-shadow: 0 0 0 0 rgb(241 185 109 / 0.7); } 70% { scale: 0.85; box-shadow: 0 0 0 0.55rem rgb(241 185 109 / 0); } 100% { scale: 1; box-shadow: 0 0 0 0 rgb(241 185 109 / 0); } }
/* A phone repaints a whole drawing for every frame of any motion inside it: there the drawings stand still in their
   light, and the reading still changes softly as it goes. */
@media (hover: none), (pointer: coarse) {
    .psq-reading svg, .psq-reading svg * { animation: none !important; transition: none !important; }
    .psq-plate__camera { transition: none; }
    .psq-hero__tap::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    .psq-reading *, .psq-reading *::before, .psq-reading *::after { animation: none !important; transition: none !important; }
}
.psq-parent-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--home-space-3);
    margin: var(--home-space-6) auto;
    padding-inline: var(--home-space-4);
    min-height: 2.75rem;
    color: var(--home-text);
    cursor: pointer;
}
.psq-parent-toggle input { flex: none; accent-color: var(--home-amber); }
.psq-parent-note {
    margin-block: var(--home-space-6);
    padding-inline-start: var(--home-space-4);
    border-inline-start: 1px solid var(--color-line);
}
.psq-parent-note .eyebrow, .psq-part__numbers { color: var(--home-text-soft); }

/* The key's two places are drawn as the read places of the other drawings: the same thin amber frame, no fill and no
   glow. Only their corner numbers turn amber, so the eye finds the number of the place beside its digits. */
.psq-key-place .psq-key-place__corner { fill: var(--home-amber); }
