/* The Drawing Room — round 5: the table, from "Take your seat" to the reading.
   Loaded after room.css and threshold.css; it restages the ritual and the join into the
   reading only. The merge (docs/design/tarot-table-concepts-20260925/COMPARISON.md):
   - D: three acts. The table takes the screen: the shared header and footer recede while
     you sit and return with the reading. Each act is one composition: the act marker at the
     head, one focal object, one line, one quiet way at the foot. Places are a lit name.
   - A: one whispered line under the act marker; the "for me" line after a pause; key hints
     only for keyboard users; a restrained follow-spot and fill light; the reading rising
     beneath the cards with no button.
   - C: the deck is the button and breathes; the cut is a stack with a top and a side, parted
     by a finger; the lifted card; "Put it back"; a card with weight; the ghost hand.
   - B: the spread pinned small at the top while reading, the card being read lit.
   Only transform and opacity animate, the light's pools and the dusk's depth included; the
   one named exception is the dusk's holes, a quarter-size canvas redrawn while a light
   travels (the light block below; docs/adr/2026-09-25-tarot-light-composited.md). */

/* ---------- the chrome recedes while you sit, and returns with the reading ---------- */
body.at-table[data-view="room"] :is(.br-room-header, .foot, .tr-skip) { display: none; }
html.staged, html.staged body { overscroll-behavior: none; }
/* the refinement pass (audit 1 #2): nothing slides in on the climax. The header is back in
   the page at the close, but the page opens scrolled to the cards (ritual.js finish), so the
   header waits just above, where a scroll finds it; it never moves on its own. */
html:has(> body.on-table) { overflow-anchor: none; }   /* the reading rising below must not nudge the page */
/* anything scrolled or tabbed to lands below the pinned band, never under it */
@media (max-width: 1099px) { html:has(> body.on-table) { scroll-padding-top: 84px; } }

/* ---------- the stage ---------- */
.room:is([data-phase="shuffle"], [data-phase="cut"], [data-phase="choose"], [data-phase="reveal"]) {
  position: relative;
  width: 100%;   /* audit 1 #5: the table is full bleed while you sit; the gutter is for text only */
  display: flex; flex-direction: column;
  height: 100vh; height: 100svh; min-height: 580px;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.room:not([data-phase="intake"]) > :is(.band, .sample, .kept) { display: none !important; }
.room:not([data-phase="intake"]) :is(.bar, .guide, .controls) { animation: stage-in var(--t-slow) var(--ease) both; }
@keyframes stage-in { from { opacity: 0; } }
.room:not([data-phase="intake"]) .table { flex: 1 1 auto; height: auto; min-height: 0; }
.room:not([data-phase="intake"]) .table-deco { opacity: .3; }
.room[data-phase="shuffle"] .table-deco { opacity: .42; }
.room:is([data-phase="reveal"], [data-phase="done"]) .table-deco { opacity: 0; }
.room:not([data-phase="intake"]) .lamp { opacity: .4; }
.room:is([data-phase="done"]) .lamp { opacity: 0; }
/* the cloth (the visual finish, 2026-09-27, critique-final/1-design.md #6): the first screen's
   felt (intake.css .g-cloth: the same four stops) and the card back's hatch as its weave, seen
   closer, so its gilt rim lies just outside the frame, under every act. It is an ellipse 1.44
   times the table each way, so the table's corners stay on the cloth; the wrapper fades it
   into the room at the table's top and foot, where the act marker and the foot sit on the
   room's own ground. Taking the seat pushes in on it from the first screen's table (ritual.js
   start, a transform only). At the close the reading replaces the table, and it fades. */
.cloth-wrap { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; transition: opacity var(--t-slow) ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.table-cloth {
  position: absolute; left: -22%; right: -22%; top: -22%; bottom: -22%; border-radius: 50%; transform-origin: 0 0;
  background:
    repeating-linear-gradient(135deg, rgba(196, 175, 133, .05) 0 1px, rgba(196, 175, 133, 0) 1px 15px),
    radial-gradient(ellipse 52% 52% at 50% 44%, #1f3444 0, #162837 50%, #0f1c29 84%, #0b1621 100%);
  box-shadow: inset 0 0 0 2px rgba(4, 7, 12, .5), 0 0 0 1px rgba(214, 186, 128, .34);
}
.room[data-phase="done"] .cloth-wrap { opacity: 0; }
@media (forced-colors: active) { .cloth-wrap { display: none; } }

/* ---------- the act marker (concept D) and the × ---------- */
.room:not([data-phase="intake"]) .bar {
  position: relative; flex: none; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 16px; border: 0;
}
.act { margin: 0; font: inherit; }
.act-in { display: inline-flex; align-items: baseline; color: var(--ivory); font-family: var(--display); white-space: nowrap; transform-origin: 50% 70%; }
.act-n { min-width: 1ch; color: var(--gold); font-size: 20px; font-weight: 500; letter-spacing: .06em; text-align: right; }
.act-n::after { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 12px 0 13px; background: linear-gradient(90deg, var(--gold-dim), rgba(196, 171, 120, .25)); vertical-align: .32em; }
.act-t { font-size: 19px; font-style: italic; font-weight: 500; letter-spacing: .005em; }
.act:focus { outline: none; }
.act:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 6px; }
.leave {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); opacity: .8;
  transition: color var(--t-fast) ease, opacity var(--t-fast) ease, background var(--t-fast) ease;
}
.leave svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.leave:hover, .leave:focus-visible { color: var(--ivory); opacity: 1; background: rgba(238, 233, 218, .05); }

/* ---------- the whisper (concept A) and, in Act I, the question (concept D) ---------- */
.room:not([data-phase="intake"]) .guide {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 50px);
  transform: translateY(var(--guide-dy, 0px));   /* placed by the object it speaks of (ritual.js placeGuide); a transform, so nothing shifts */
  padding: 0 16px; text-align: center; pointer-events: none;
}
.whisper {
  min-height: 1.3em; margin: 0 auto; max-width: 30ch; color: rgba(238, 233, 218, .74);
  font-family: var(--display); font-size: 17px; font-style: italic; font-weight: 500; line-height: 1.3; letter-spacing: .005em;
  transition: opacity var(--t-slow) ease, transform var(--t-slow) var(--ease);
}
.whisper.out { opacity: 0; transform: translateY(-3px); transition-duration: var(--t-fast); }
.whisper.hush { opacity: 0; transition-duration: var(--t-slow); }
.whisper.wait { opacity: 0; transition-duration: 0s; }
.room:not([data-phase="intake"]) .guide-matter {
  max-width: 20ch; margin: 22px auto 0; overflow: visible; white-space: normal; text-overflow: clip;
  color: #f3ead6; font-family: var(--display); font-size: clamp(31px, 8.8vw, 54px); font-style: italic; font-weight: 500;
  line-height: 1.08; letter-spacing: -.012em;
}
.room:not([data-phase="intake"]) .guide-matter.is-mid { max-width: 21ch; font-size: clamp(27px, 7.4vw, 46px); }
.room:not([data-phase="intake"]) .guide-matter.is-long { max-width: 24ch; font-size: clamp(22px, 6vw, 36px); line-height: 1.14; }
.room:not([data-phase="intake"]) .guide-matter.unspoken { color: var(--muted); font-size: clamp(26px, 7vw, 40px); }
.room:not([data-phase="shuffle"]) .guide-matter { display: none; }
.room:is([data-phase="done"]) .guide { display: none; }
/* perf7: dropped the permanent will-change — the flight (acts.js sink()) is driven by the
   Web Animations API, which already promotes an element for the life of its own animation,
   so this was paying for a standing composited layer per word (layer explosion on a long
   question) for no benefit beyond it. */
.guide-matter .w { display: inline-block; }
.gm-q, .ln { display: block; }
.gm-thread { display: block !important; margin: 0 auto 10px; color: var(--gold); font-family: var(--display); font-size: 16px; font-style: italic; letter-spacing: .02em; }
/* quotation marks hang outside the measure, so the words themselves are centred */
.hq-o { margin-left: -.42em; color: var(--gold-dim); }
.hq-c { margin-right: -.42em; color: var(--gold-dim); }

/* ---------- the foot: the quiet line after a pause (concept A) ---------- */
.room:not([data-phase="intake"]) .controls {
  position: relative; flex: none; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: 104px; padding: 8px 16px 22px;
}
.room:not([data-phase="intake"]) .ctl { flex-direction: row; gap: 4px 26px; opacity: 0; visibility: hidden; transition: opacity var(--t-slow) ease, visibility 0s linear var(--t-slow); }
.room:not([data-phase="intake"]) .controls:is(.shown, :focus-within) .ctl, html.kbd .room:not([data-phase="intake"]) .ctl { opacity: 1; visibility: visible; transition: opacity var(--t-slow) ease, visibility 0s; }
.room.laying .controls .ctl { display: none !important; }
.room:not([data-phase="intake"]) .controls .quiet {
  min-height: 44px; padding: 10px 6px; color: var(--muted); font-family: var(--display); font-size: 16px; font-style: italic; letter-spacing: .005em;
  text-decoration-color: rgba(188, 174, 143, .3); text-underline-offset: 6px;
}
/* audit 1 #13 and audit 5 (layout shift): "Put it back" takes its own cell left of "Choose
   for me", so neither moves when the other comes or goes; once every card is drawn the
   room no longer offers to choose */
.room[data-phase="choose"] .ctl[data-for="choose"] { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 18px; width: 100%; max-width: 560px; }
.ctl[data-for="choose"] .undo { grid-column: 1; justify-self: end; white-space: nowrap; }
.ctl[data-for="choose"] #auto-pick { grid-column: 2; transition: opacity var(--t-mid) ease, visibility 0s; }
.room.fan-rest .ctl[data-for="choose"] #auto-pick { opacity: 0; visibility: hidden; transition: opacity var(--t-fast) ease, visibility 0s linear var(--t-fast); }
.room:not([data-phase="intake"]) .controls .quiet:hover { color: var(--ivory); }
.room[data-phase="done"] .controls { display: none; }
/* keyboard hints: shown only to someone using the keyboard, never to a finger */
.keys { min-height: 18px; margin: 0 0 4px; color: var(--muted); font-family: var(--sans); font-size: 12px; text-align: center; visibility: hidden; }
.keys kbd { padding: 1px 6px; border: 1px solid var(--hair); border-radius: 4px; color: var(--gold); font-family: var(--sans); font-size: 11px; }
html.kbd .room:not([data-phase="intake"]):not(.laying) .keys { visibility: visible; }
/* "Cut here" is for the keyboard and the screen reader; it shows itself when focused */
.sr-reveal { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; background: transparent; }
.sr-reveal:focus-visible { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin: 0; min-height: 44px; padding: 0 18px; border: 1px solid var(--gold); border-radius: 100px; color: var(--ivory); font-family: var(--display); font-size: 17px; font-style: italic; }
/* "Put it back" (concept C): one pill in the thumb's reach while a card can still go back */
.undo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 13px; border: 1px solid rgba(196, 171, 120, .42); border-radius: 100px; background: rgba(12, 20, 30, .6); color: var(--ivory); font-family: var(--display); font-size: 16px; font-style: italic; animation: rise var(--t-mid) var(--ease) both; }
.undo svg { width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.undo:hover { border-color: var(--gold); }

/* ---------- the light (concept A, restrained: a dusk, never a black stage) ----------
   Composited (perf 2026-09-25, docs/adr/2026-09-25-tarot-light-composited.md); the same
   picture as the old full-stage gradients, which repainted the whole table every frame.
   - .glow: the warm pools over the cards. Each light is a gradient painted once (.lt,
     200px) that ritual.js light() moves and sizes by transform and dims by opacity (its
     alpha x (1 - k), as before). Laid over, not screen-blended: at an alpha of .11 or
     less the two differ by under 10/255 even on a bright face, and the full-stage blend
     was a fifth of the compositor's draw time at CPU 4x.
   - .shade: the dusk; its depth is this layer's opacity. Its holes are drawn by light()
     into a small canvas (a quarter of the table's size or less; the dusk colour, faded
     toward the table's edges, times each hole) that the compositor scales up; it is
     redrawn only while a light travels. */
.glow, .shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; overflow: hidden; contain: strict; will-change: opacity; }
.glow { z-index: 5; }
.shade { z-index: 6; }
.shade canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a light: centred on the table's origin; light() translates it to its place and scales
   its 100px radius to the light's two radii */
.lt { position: absolute; left: -100px; top: -100px; width: 200px; height: 200px; opacity: 0; will-change: transform, opacity; }
.glow .lt1 { background: radial-gradient(closest-side, rgba(255, 229, 180, .11) 0%, rgba(255, 229, 180, .04) 42%, rgba(255, 229, 180, 0) 72%); }
.glow .lt2 { background: radial-gradient(closest-side, rgba(255, 229, 180, .08) 0%, rgba(255, 229, 180, 0) 70%); }
.room:is([data-phase="intake"], [data-phase="done"]) :is(.glow, .shade) { visibility: hidden; }

/* ---------- Act I: the deck is the button, and it breathes (concept C) ---------- */
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-2px) scale(1.012); } }
@keyframes breathe-glow { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: .8; transform: scale(1.04); } }
.obj.deck::before { content: ""; position: absolute; inset: -22% -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 214, 157, .16), rgba(240, 214, 157, 0)); opacity: 0; pointer-events: none; }
.room[data-phase="shuffle"]:not(.holding):not(.laying) .obj.deck .cb { animation: breathe 3.6s ease-in-out infinite; }
.room[data-phase="shuffle"]:not(.laying):not(.holding) .obj.deck::before { animation: breathe-glow 3.6s ease-in-out infinite; }
/* one motion at a time: while the ghost hand shows the gesture, the deck holds its breath */
.room:has(#ghost.on) .obj.deck .cb, .room:has(#ghost.on) .obj.deck::before { animation-play-state: paused; }
.room.holding .obj.deck .cb { transform: scale(.972); transition: transform .12s ease-out; }
.deck-press { position: absolute; z-index: 7; display: none; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.room[data-phase="shuffle"] .deck-press { display: block; }
.room.holding .deck-press { cursor: grabbing; }
.room.laying .deck-press { pointer-events: none; }
.deck-press:focus-visible { outline: 1.5px solid var(--gold-lit); outline-offset: 12px; }
.table:has(.deck-press:hover) .obj.deck .cb { animation-duration: 2.2s; }
.sink-glow {
  position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 2.1); height: calc(var(--w) * 2.1);
  margin: calc(var(--w) * -1.05) 0 0 calc(var(--w) * -1.05); border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 214, 157, .32), rgba(240, 214, 157, .08) 45%, transparent 70%);
  opacity: 0; pointer-events: none; mix-blend-mode: screen; z-index: 5;
}

/* ---------- Act I, the cut: a stack with a top and a side (concept C) ---------- */
.edge { --tf: 32px; width: var(--ew, 300px); height: calc(var(--eh, 234px) + var(--tf)); margin-left: calc(var(--ew, 300px) / -2); margin-top: calc((var(--eh, 234px) + var(--tf)) / -2 + var(--dy, 0px)); cursor: grab; }
.edge.touching { cursor: grabbing; }
.edge:focus-visible { outline: 1.5px solid var(--gold-lit); outline-offset: 14px; }
.edge-body { position: absolute; left: 0; right: 0; bottom: 0; height: var(--eh, 234px); }
.edge-a, .edge-b { position: absolute; left: 0; right: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transition: transform .18s var(--ease); }
.edge-a { top: 0; height: var(--ah, 50%); z-index: 2; }
.edge-b { top: var(--ah, 50%); bottom: 0; height: auto; z-index: 1; }
.edge.settling .edge-a, .edge.settling .edge-b { transition: transform .28s cubic-bezier(.3, .8, .3, 1.15); }
.edge.touching .edge-a, .edge.touching .edge-b { transition: transform .06s linear; }
/* audit 1 #15: the side of a deck, not a gold brick. Seventy-eight gilt card edges, finer
   and quieter, rounded at the corners the cards have, shaded as a thing with depth, with
   the dark back of the bottom card under them and a shadow where the deck meets the table */
/* perf7: the cut's finger-drag repeatedly resizes edge-a/edge-b (ritual.js setCut), which
   recomputes this triple-gradient (a 78-stripe repeating-linear-gradient) on every move.
   `contain: paint` keeps that repaint's damage rect — and any layout it triggers — scoped to
   this box, instead of forcing the browser to consider it against the rest of the table. */
.edge-lines { position: absolute; inset: 0; overflow: hidden; contain: paint;
  background:
    linear-gradient(90deg, rgba(8, 13, 21, .72), rgba(8, 13, 21, .14) 9%, rgba(255, 246, 222, .1) 44%, rgba(8, 13, 21, .08) 78%, rgba(8, 13, 21, .7)),
    linear-gradient(to bottom, rgba(255, 244, 218, .12), rgba(8, 13, 21, .22)),
    repeating-linear-gradient(to bottom, #d6c296 0, #c4ad7c calc(var(--eh) / 78 * .5), #7d6a49 calc(var(--eh) / 78 * .5), #7d6a49 calc(var(--eh) / 78 * .72), #b39c6c calc(var(--eh) / 78 * .72), #b39c6c calc(var(--eh) / 78));
  border-radius: 3px; }
.edge-a .edge-lines { border-radius: 0; }
.edge-b .edge-lines { border-radius: 0 0 7px 7px; border-bottom: 3px solid #1a2e3d; box-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 26px 38px rgba(0, 0, 0, .55); }
/* the top card's back, seen from a low angle */
.edge-top { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--tf); background: var(--back) center / 100% 100%; clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); border-radius: 8px 8px 0 0; filter: brightness(.86); }
.edge-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 13, 21, .55), rgba(8, 13, 21, 0) 70%, rgba(255, 240, 205, .18)); }
.edge-b .edge-top { opacity: 0; transition: opacity .2s; }
.edge.parted .edge-b .edge-top { opacity: 1; }
/* touched: the stack parts where the finger is, and a hair of light comes through */
.edge-b::before { content: ""; position: absolute; left: 3%; right: 3%; top: -1px; height: 2px; z-index: 3; border-radius: 2px; background: rgba(255, 238, 200, .95); box-shadow: 0 0 14px 3px rgba(255, 228, 170, .45); opacity: 0; transition: opacity .15s; }
.edge.split .edge-b::before { opacity: 1; }
.edge.parted .edge-b::before { opacity: .35; }
.edge.split:not(.parted) .edge-a { transform: translateY(-6px); }

/* ---------- Act II: the fan leans toward the finger (concept C) ---------- */
.fan { touch-action: none; }
.fcard .lift { transform: translateY(calc(var(--rise, 0px) * -1)) rotate(var(--lean, 0deg)); transform-origin: 50% 100%; transition: transform var(--t-fast) var(--ease); }
.fcard.raised .lift { transform: translateY(-24%); }
.fcard.lifted { visibility: hidden; }
.fcard.raised .art::after { box-shadow: 0 0 0 1px rgba(240, 214, 157, .8), 0 0 22px rgba(240, 214, 157, .3); }
.room.fan-rest .fan { opacity: .5; transform: translateY(10px); transition: opacity var(--t-slow) ease, transform var(--t-slow) var(--ease); }   /* the breath after the last card: the fan already sinks back */
.room.fan-rest .fcard.raised .lift { transform: none; }
.flyer.held { transition: none; }
.flyer.held .fs { opacity: .7; transform: translate(0, 34px) scale(1.08); filter: blur(16px); }
.flyer .art { box-shadow: 0 0 0 1px rgba(240, 214, 157, .25); }

/* ---------- Act II: the places are a lit name, where the card will land (concept D) ---------- */
.room:not([data-phase="intake"]) .place::before { border: 0; background: none; box-shadow: none; transition: opacity var(--t-mid), transform var(--t-mid) var(--ease); }
.room[data-phase="choose"] .slot.next .place::before {
  inset: -34% -46%; border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(240, 214, 157, .1), rgba(240, 214, 157, .03) 55%, transparent 72%);
}
/* the one moment the place shows its shape: a carried card is about to land on it */
.room[data-phase="choose"] .slot.next.near .place::before { inset: -1px; border: 1px solid rgba(240, 214, 157, .7); border-radius: calc(var(--sw) * var(--radius)); background: rgba(240, 214, 157, .05); box-shadow: 0 0 30px rgba(240, 214, 157, .3); transform: none; }
.place-roman { display: none; }
.place-call {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: max-content; max-width: calc(var(--sw) + var(--gap) * 2 + 24px);
  transform: translate(-50%, -50%); text-align: center; opacity: 0; pointer-events: none;
  color: var(--gold-lit); font-family: var(--display); font-size: clamp(16px, calc(var(--sw) * .2), 23px); font-style: italic; font-weight: 500; line-height: 1.05; text-wrap: balance;
  transition: opacity var(--t-mid) var(--ease);
}
.room[data-phase="choose"] .slot.next:not(.filled) .place-call { opacity: 1; transition-delay: var(--t-slow); }   /* the next name waits until the card in the air has landed: one name at a time */
.room[data-phase="choose"] .slot.next.near:not(.filled) .place-call, body:has(.flyer.held) .room[data-phase="choose"] .slot.next:not(.filled) .place-call { opacity: 0; transition-duration: var(--t-fast); transition-delay: 0s; }   /* audit 1 #17: a carried card never lands on its own label */
.room:not([data-phase="choose"]) .place-call { display: none; }
.room[data-phase="choose"] .slot-label { display: none; }
/* the table pass (3-journey §9): a slot's only transform is the engine's FLIP (the spread
   laid, the spread settling at the close), which is computed from the box's top-left
   corner. Scaled about the centre (as this rule had it), the first frame of each move was
   off by a part of the box, and boxes of different heights went off by different amounts,
   so the cards jumped and crossed as the move began. */
.slot { transform-origin: 0 0; }
.room.spread-tri .spread { grid-template-columns: repeat(2, var(--sw)); row-gap: var(--row-gap); }
.room.spread-tri .slot[data-pos="turn"] { grid-column: 1 / -1; }

/* ---------- Act III: a card with weight (concept C), and its names ---------- */
.room[data-phase="reveal"] .place { touch-action: none; }
.sc { transition: transform var(--t-mid) cubic-bezier(.3, .9, .3, 1.25); }   /* a card with weight: the gesture's own spring */
/* the cards waiting to be turned rest together, one breath, not five out of step */
@keyframes rest { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
.room[data-phase="reveal"] .slot.filled:not(.turned):not(.pressing) .sc { animation: rest 4.2s ease-in-out infinite; }
.slot.pressing .sc { transform: perspective(900px) scale(.95) rotateY(var(--tip, 0deg)); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.slot.pressing .sc-shadow { transform: translateY(2px) scale(.95); transition: transform .7s; }
.slot.filled .place:not(:disabled):hover .sc-rot { transform: none; }
.slot.rev.filled .place:not(:disabled):hover .sc-rot { transform: rotate(180deg); }
.slot-label { margin-top: 9px; color: var(--gold); font-family: var(--display); font-size: 14px; font-style: italic; letter-spacing: .01em; text-transform: none; opacity: .8; }
.slot-name { font-size: 16px; font-weight: 500; }
/* "Reversed" changes the card's meaning, so it is read at the name's own voice (the visual
   finish, 1-design.md #9): the display italic at .84 of the name, in gold, not a faint 12.5px */
.slot-name i { font-family: var(--display); font-size: .84em; font-style: italic; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--gold); }
.slot.turned .slot-name { transition: opacity var(--t-mid) ease var(--t-slow); }   /* after the turn */

/* ---------- Act III: the card art, a painting on paper turned under the lamp (2026-09-27) ----------
   The faces were navy SVGs; they are now watercolours on warm ivory paper (art.js, ritual.js
   dress()). What was tuned for navy is re-tuned for paper, and the turn itself is unchanged:
   - the paper: its own tone under the painting (never a navy flash while it decodes), a fine
     warm rim with a paler bevel inside it, as a printed card's edge;
   - the lamp on the paper: warm light toward the lamp (upper left, where the follow-spot
     falls from), falling off to a warm shade at the far edges, laid over the painting (the
     navy face's faint highlight could not be seen on paper);
   - the glint: a broad, soft sheen across matte paper rather than a bright streak;
   - the card on the cloth: a tight contact shadow at its edge with the soft shadow under it
     (.sc-shadow); the contact shadow lifts with the card while it turns and settles back
     after (a card in the air has no contact with the cloth);
   - reversed: the painting turns with the card (.sc-rot), the lamp's light does not. */
.sc.paper .face { background: #efe7d6; box-shadow: 0 0 0 .5px rgba(40, 28, 14, .45); isolation: isolate; }
/* the visual finish (2026-09-27, critique-final/1-design.md #3): the face wears the back's
   gilt frame (room.css --mount) and the paper a shade warmer and lower, by multiply, so a
   turned card and a face-down card read as one deck; the lamp's warm light toward the upper
   left stays a light (laid over, below) */
.sc.paper .face::after {
  z-index: 2; mix-blend-mode: multiply;
  background:
    var(--mount) 0 0 / 100% 100% no-repeat,
    radial-gradient(ellipse 150% 120% at 44% 34%, rgba(62, 42, 20, 0) 58%, rgba(62, 42, 20, .22)),
    var(--paper-tint);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 238, .14);
  border-radius: inherit;
}
/* the lamp on the paper while the cards are turned (1-design.md #2): the room's lamp tints the
   paper amber, and the tint lifts as the light opens at the close (ritual.js openLight sets
   .light-open), so the reveal is the light opening, not a brightness switch */
.sc.paper .face::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 95% 70% at 28% 16%, rgba(255, 238, 206, .95), rgba(255, 238, 206, 0) 64%), rgb(232, 208, 168); mix-blend-mode: multiply; opacity: 0; transition: opacity 520ms cubic-bezier(.3, 0, .25, 1); }
.room[data-phase="reveal"]:not(.light-open) .sc.paper .face::before { opacity: .46; }
.slot.rev .sc.paper .face::after, .slot.rev .sc.paper .face::before { transform: rotate(180deg); }   /* the lamp stays where it is: the face is turned, its light is not */
.sc.paper .glint { background: linear-gradient(105deg, rgba(255, 250, 236, 0) 34%, rgba(255, 250, 236, .3) 50%, rgba(255, 250, 236, 0) 66%); }
.sc::before { content: ""; position: absolute; inset: 0; border-radius: calc(var(--sw) * var(--radius)); box-shadow: 0 1px 1px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .32); pointer-events: none; transition: opacity var(--t-fast) ease; }
.slot.turned .sc:not(.turned)::before { opacity: 0; transition-duration: 80ms; }
/* half light at the close, for a painting (the visual finish, 1-design.md #2): the card that
   waits has the lamp lowered on it, a multiply of lamp-amber, so the paper stays warm paper;
   the navy film it had (rgba(6,10,16,.52)) turned ivory into a neutral grey */
.sc::after { content: ""; position: absolute; inset: 0; border-radius: calc(var(--sw) * var(--radius)); background: var(--lamp-low); mix-blend-mode: multiply; opacity: 0; pointer-events: none; transition: opacity var(--t-slow) ease; }
.room[data-spread="deep"] .slot-label { margin-top: 5px; font-size: 12.5px; }
.room[data-spread="deep"] .slot-name { font-size: 13px; }
.room[data-spread="deep"] .slot-name i { font-size: .86em; }

/* ---------- Act III: each turned card speaks (the table pass, 3-journey §8) ----------
   Under its name, a breath after the card lands, the reading's own line for that card in
   that place (ritual.js turnCard, from the composed reading's section gist), in the
   whisper's voice. The lines stay while the rest are turned, are read together for a
   breath after the last, and fade as the light opens, before the cards move. The words
   under a card keep the height measure() gave them (--cap-h), so nothing below moves when
   a line arrives. A card alone in its row has its words beside it (--aside-w wide). */
.slot { position: relative; }
.slot-cap { display: flex; flex-direction: column; align-items: center; width: 100%; min-height: var(--cap-h, 0px); pointer-events: none; }
/* a line that runs long never moves a row; and as the spread is laid, the places' names wait
   until the cards have grown to their size, so no name passes over a moving card */
.room[data-phase="reveal"] .slot-cap { height: var(--cap-h, auto); animation: fade var(--t-mid) ease var(--t-slow) both; }
.room:is([data-phase="reveal"], [data-phase="done"]) .spread { column-gap: var(--col-gap, var(--gap)); }
.slot-gist {
  max-width: calc(var(--sw) + var(--col-gap, var(--gap)) - 6px); margin-top: 7px;
  color: rgba(238, 233, 218, .74); font-family: var(--display); font-size: 15px; font-style: italic; font-weight: 500; line-height: 1.28; letter-spacing: .005em; text-align: center; text-wrap: balance;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.slot-gist:empty, .room:not([data-phase="reveal"]) .slot-gist { display: none; }
.slot.said .slot-gist { opacity: 1; transform: none; }
.room.gather .slot-gist { opacity: 0; transform: none; }
.room[data-spread="deep"] .slot-gist { margin-top: 5px; font-size: 13.5px; line-height: 1.25; }
.room[data-spread="deep"]:is([data-phase="reveal"], [data-phase="done"]) .slot:is([data-pos="crown"], [data-pos="root"]) .slot-cap,
.room.spread-tri:is([data-phase="reveal"], [data-phase="done"]) .slot[data-pos="turn"] .slot-cap {
  position: absolute; left: calc(100% + 14px); top: 2px; width: var(--aside-w, 160px); height: auto; min-height: 0; align-items: flex-start; text-align: left;
}
/* the cross's middle row: a name keeps to its own column's measure while turning */
.room[data-spread="deep"][data-phase="reveal"] .slot-name { max-width: calc(var(--sw) + var(--col-gap, var(--gap)) - 6px); }
.room[data-spread="deep"]:is([data-phase="reveal"], [data-phase="done"]) .slot:is([data-pos="crown"], [data-pos="root"]) :is(.slot-label, .slot-name, .slot-gist),
.room.spread-tri:is([data-phase="reveal"], [data-phase="done"]) .slot[data-pos="turn"] :is(.slot-label, .slot-name, .slot-gist) { max-width: 100%; text-align: left; white-space: normal; }
.room[data-spread="deep"]:is([data-phase="reveal"], [data-phase="done"]) .slot:is([data-pos="crown"], [data-pos="root"]) .slot-label,
.room.spread-tri:is([data-phase="reveal"], [data-phase="done"]) .slot[data-pos="turn"] .slot-label { margin-top: 0; }
/* turning the cross on a wide table (the card art, 2026-09-27; ritual.js measure()): every
   card's words beside it, to its right, in the gap the columns part to hold (--aside-w), so
   the five cards are sized by their own height and the paintings can be seen. At the close
   the words go back under the cards; so that they never hop across a moving card, they fade
   out with the lines (.gather) and fade in again once the cards have settled (.cross-was). */
.room.cross-beside[data-phase="reveal"] .slot .slot-cap { position: absolute; left: calc(100% + 14px); top: 2px; width: var(--aside-w, 150px); height: auto; min-height: 0; align-items: flex-start; text-align: left; }
.room.cross-beside[data-phase="reveal"] .slot :is(.slot-label, .slot-name, .slot-gist) { max-width: 100%; margin-top: 0; text-align: left; white-space: normal; }
.room.cross-beside[data-phase="reveal"] .slot .slot-name { margin-top: 2px; }
.room.cross-beside[data-phase="reveal"] .slot .slot-gist { margin-top: 6px; }
.room.cross-beside.gather .slot-cap { animation: none; opacity: 0; transition: opacity var(--t-mid) ease; }
.room.cross-was[data-phase="done"] .slot-cap { animation: fade var(--t-slow) ease 760ms both; }
/* the close on a phone or a narrow window (the visual finish, 1-design.md #8; ritual.js
   finish): the names wait as one layer while the cards settle, then fade in at their size */
.room.words-settle[data-phase="done"] .slot-cap { animation: words-in var(--t-slow) ease 820ms both; }   /* its own name: the turning's "fade" on the same element has already run, and a CSS animation of the same name is not restarted */
@keyframes words-in { from { opacity: 0; } }
/* and on the way there the names fade with the lines, as one layer, before the cards move */
@media (max-width: 1099px) { .room.gather[data-phase="reveal"] .slot-cap :is(.slot-label, .slot-name) { opacity: 0; transition: opacity var(--t-mid) ease; } }

/* ---------- the ghost hand (concept C) ---------- */
.ghost { position: absolute; left: 0; top: 0; z-index: 8; width: 0; height: 0; pointer-events: none; opacity: 0; }
.ghost.on { opacity: 1; }
.ghost-tip { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border: 1px solid rgba(240, 214, 157, .7); border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 214, 157, .32), rgba(240, 214, 157, 0)); }
.ghost-hand { position: absolute; left: -42px; top: -4px; width: 80px; height: 130px; fill: rgba(238, 233, 218, .09); stroke: rgba(240, 214, 157, .7); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); transform-origin: 42px 4px; }

/* ---------- the close: the cards at the head of the page, the reading beneath ---------- */
.room[data-phase="done"] { position: relative; display: block; height: auto; padding-top: 0; }
.room[data-phase="done"] .bar { display: flex; justify-content: flex-end; height: 44px; }
.room[data-phase="done"] .act { display: none; }
/* audit 1 #18: at the close the × is no longer a stray from the table: it says it closes the
   reading (acts.js), and it arrives with the reading, not before it */
.room[data-phase="done"] .leave { position: relative; right: -12px; top: auto; transform: none; animation: fade var(--t-slow) ease var(--leave-at, 1.6s) both; }
.room[data-phase="done"] .table { flex: none; overflow: visible; }
.room[data-phase="done"] .spread { transition: none; }
.room[data-phase="done"] .spread { row-gap: var(--row-gap, 14px); }
.room[data-phase="done"] .place:not(:disabled) { cursor: pointer; }
.room[data-phase="done"] .slot.turned .place:hover .sc-rot { transform: translateY(-3px); }
.room[data-phase="done"] .slot.rev.turned .place:hover .sc-rot { transform: rotate(180deg) translateY(3px); }
.room[data-phase="done"] .slot-name { font-size: 14px; }
/* the card being read is lit (concept B), here and in the band */
.slot .place { transition: opacity var(--t-mid) ease; }
.room[data-phase="done"] .spread:has(.slot.lit) .slot:not(.lit) .sc::after { opacity: .5; }
.room[data-phase="done"] .spread:has(.slot.lit) .slot:not(.lit) :is(.slot-label, .slot-name) { opacity: .62; }
.room[data-phase="done"] .slot :is(.slot-label, .slot-name) { transition: opacity var(--t-slow) ease, color var(--t-slow) ease; }
.room[data-phase="done"] .slot.lit .sc-rot { box-shadow: 0 0 0 1px rgba(240, 214, 157, .7), 0 0 34px rgba(240, 214, 157, .22); border-radius: calc(var(--sw) * var(--radius)); }
.room[data-phase="done"] .slot.lit .sc { transform: translateY(-5px); transition: transform var(--t-slow) var(--ease); }
.room[data-phase="done"] .slot.lit .slot-label { color: var(--gold-lit); opacity: 1; }

body.on-table #reading-view { position: relative; padding-top: 0; }
/* the reading rises beneath (concept A): after the headline is set (acts.js --rise-at) */
#reading-view.rising .rd-rise, #reading-view.rising .rd > :not(.rd-shape) { animation: rd-rise var(--t-slow) var(--ease) var(--rise-at, 1.6s) both; }
#reading-view.rising .rd-shape .eyebrow.is-thread { animation: rd-rise var(--t-slow) var(--ease) var(--t-mid) both; }
@keyframes rd-rise { from { opacity: 0; transform: translateY(12px); } }

/* the first block on the table: the question returned, the headline as Act III's title */
.rd--table .rd-shape { display: block; max-width: 44rem; margin: 0 auto; padding: 18px 0 34px; text-align: center; }
.rd--table .rd-shape .eyebrow.is-thread { margin: 0 0 10px; color: var(--gold); font-family: var(--display); font-size: 16px; font-style: italic; letter-spacing: .02em; text-transform: none; }
.rd--table .fin-q, .rd--table .rd-shape h1.fin-q, .rd--table .rd-shape h1.fin-q.is-long { max-width: 30ch; margin: 0 auto; color: var(--gold); font-family: var(--display); font-size: 18px; font-style: italic; font-weight: 500; letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
.rd--table .fin-q::after { content: ""; display: block; width: 26px; height: 1px; margin: 14px auto 12px; background: var(--gold-dim); opacity: .7; }
.rd--table .rd-shape h1.is-q::before { content: none; }
.rd--table .rd-shape h1.fin-h.is-q::after { content: none; }
.rd--table .rd-shape h1.fin-q::after { content: ""; }
.rd--table .fin-q .w, .rd--table .fin-h .w { display: inline-block; }
.rd--table .fin-q, .rd--table .fin-h { width: 100%; }   /* an explicit width: the line breaker measures these before they have words */
.rd--table .fin-h, .rd--table .rd-shape h1.fin-h {
  max-width: 100%; margin: 0 auto; padding: 0; border: 0; color: #f6efe0; font-family: var(--display); font-size: 36px; font-style: normal; font-weight: 500;
  line-height: 1.05; letter-spacing: -.022em; text-wrap: balance;
}
.rd--table .fin-h.is-long, .rd--table .rd-shape h1.fin-h.is-long { font-size: 30px; line-height: 1.08; }
.rd--table h1.fin-h.is-q { font-style: italic; }
.rd--table .rd-thread { margin: 20px 0 0; }
.rd--table .rd-under { max-width: 36ch; margin: 22px auto 0; }
.rd--table .rd-summary { max-width: 54ch; margin: 18px auto 0; text-align: left; }
/* one voice under the headline (audit 1 #14): the Deep Read's lead speaks in the same serif
   as the Sitting's line */
.rd--table .rd-rise .rd-summary { max-width: 40ch; text-align: inherit; }
.rd--table .rd-rise .rd-summary p { color: var(--body); font-family: var(--display); font-size: 19px; font-style: italic; line-height: 1.42; text-wrap: pretty; }
.rd--table .rd-summary--later { margin: 0 0 20px; }
.rd--table .rd-card.is-read .rd-name { color: var(--gold-lit); }
body.on-table .rd-card { scroll-margin-top: 20px; }   /* with the page's 84px for the pinned band */

/* ---------- leaning in: the spread, small, pinned at the top (concept B) ---------- */
/* perf7: this bar sits fixed over scrolling reading content while pinned, so a live
   backdrop-filter had to resample everything behind it on every scroll frame. The
   background is already 96% opaque, so the blur bought almost no visible difference —
   dropped it and kept the same near-solid fill + shadow for the same read.
   2026-09-27: the fill is now solid. At 96% the reading's ivory words still showed through
   the band's top as a ghost line above the paintings (3-journey §11). */
.pin { position: fixed; top: 0; left: 0; right: 0; z-index: 12; display: flex; justify-content: center; padding: 8px 16px 10px; pointer-events: none; opacity: 0; transform: translateY(-100%); transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) ease;
  background: rgb(8, 13, 21); border-bottom: 1px solid var(--hair); box-shadow: 0 14px 28px rgba(0, 0, 0, .4); }
body.pinned.on-table .pin { opacity: 1; transform: none; pointer-events: auto; }
.pin-row { display: flex; gap: 10px; align-items: flex-end; }
/* 2026-09-27: these rules were written for the band's buttons as bare `.mini`, and so also
   reached every other small face in the room (cards.js mini(): the shelf's rows, its
   patterns, Today's card): they were dimmed to 55%, and the return screen's face-down Today's
   card lost its back (background: transparent), an empty frame. They now belong to the band
   only. In the band a reversed card was also turned twice (room.css turns a .mini's children,
   here its painting's wrapper, and this file turned the painting again): it showed upright,
   with its numeral upside down. */
.pin .mini { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 34px; padding: 0; border: 0; background: transparent; color: var(--gold-dim); font-family: var(--display); font-size: 12px; font-style: italic; opacity: .55; transition: opacity var(--t-mid) ease, transform var(--t-mid) var(--ease); }
.mini-in { position: relative; display: block; width: 34px; aspect-ratio: 240 / 390; overflow: hidden; border-radius: 5% / 3.077%; background: #efe7d6; }
.mini-in svg, .mini-in img { display: block; width: 100%; height: 100%; }
.pin .mini.is-rev > * { transform: none; }
.pin .mini.is-rev .mini-in > * { transform: rotate(180deg); }
.pin .mini b { font-weight: 500; }
.pin .mini.is-lit { opacity: 1; transform: translateY(1px) scale(1.12); color: var(--gold-lit); }
.pin .mini.is-lit .mini-in { box-shadow: 0 0 0 1px rgba(240, 214, 157, .8), 0 0 14px rgba(240, 214, 157, .35); }
.pin .mini:hover { opacity: .9; }
/* the pin's mini thumbnails are buttons (jump to a slot): a 44px hit area around the
   34px artwork, not a larger picture (audit 3 #6) */
.pin-row .mini { width: 44px; padding: 0 5px; }

/* ---------- a wide screen ---------- */
@media (min-width: 900px) {
  .room:not([data-phase="intake"]) .bar { height: 80px; }
  .act-n { font-size: 23px; }
  .act-t { font-size: 22px; }
  .leave { right: 20px; }
  .room:not([data-phase="intake"]) .guide { top: 72px; }
  .whisper { font-size: 21px; }
  .room:not([data-phase="intake"]) .guide-matter { margin-top: 26px; font-size: 54px; }
  .room:not([data-phase="intake"]) .guide-matter.is-mid { max-width: 22ch; font-size: 46px; }
  .room:not([data-phase="intake"]) .guide-matter.is-long { max-width: 28ch; font-size: 36px; }
  .room:not([data-phase="intake"]) .controls { min-height: 120px; padding-bottom: 30px; }
  .place-call { font-size: 24px; }
  .slot-label { font-size: 16px; }
  .slot-name { font-size: 19px; }
  .room[data-spread="deep"] .slot-label { font-size: 14px; }
  .room[data-spread="deep"] .slot-name { font-size: 16px; }
  .rd--table .fin-q, .rd--table .rd-shape h1.fin-q, .rd--table .rd-shape h1.fin-q.is-long { font-size: 22px; }
  .rd--table .fin-h, .rd--table .rd-shape h1.fin-h { font-size: 54px; }
  .rd--table .fin-h.is-long, .rd--table .rd-shape h1.fin-h.is-long { font-size: 44px; }
  .room[data-phase="done"] .slot-name { font-size: 16px; }
  .slot-gist { font-size: 16px; }
  .room[data-spread="deep"] .slot-gist { font-size: 14px; }
}
/* turning, the foot holds only "Turn them all" (and the keys, for a keyboard): it gives the
   cards the height it held for "Put it back" and "Choose for me" (the table pass, 3-journey
   §7: the cross sized to the screen) */
.room[data-phase="reveal"] .controls { min-height: 84px; padding-bottom: 14px; }
@media (min-width: 900px) { .room[data-phase="reveal"] .controls { min-height: 92px; padding-bottom: 22px; } }
/* the close on a wide screen (concepts D and B): the spread stays beside the reading, the
   words set on the right like a page; the card being read lights on the table itself */
@media (min-width: 1100px) {
  /* the words keep the measure they had (the headline's 11em, the summary's 36rem, both
     under 38rem); the rest of the width goes to the cards, so the paintings grow on a wider
     screen instead of the empty margin beside the words (2026-09-27) */
  body.on-table #main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(29rem, 48vw, 38rem)); column-gap: clamp(40px, 5vw, 96px); align-items: start; width: var(--page); margin: 0 auto; }
  body.on-table #room { position: sticky; top: 0; width: auto; margin: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  /* the x closes the table, so it sits at the table's own top-right corner, just above the
     spread, as it sat at the stage's top-right while turning (2026-09-27: it was at the
     column's top-left, far from the cards, a stray at the page's corner); ritual.js sets
     --spread-w, the spread's width, so the corner is the cards' corner */
  body.on-table #room .bar { position: relative; top: auto; left: auto; right: auto; align-self: center; width: var(--spread-w, 100%); max-width: 100%; height: 44px; padding: 0; justify-content: flex-end; }
  body.on-table #room .leave { right: -12px; left: auto; }
  body.on-table #reading-view { width: auto; margin: 0; }
  body.on-table .rd--table .rd-shape { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 68px); max-width: 38rem; margin: 0; padding: 40px 0 48px; text-align: left; }
  body.on-table .rd--table .rd-shape h1.fin-q, body.on-table .rd--table .rd-shape h1.fin-q.is-long { max-width: 22em; margin: 0; }
  body.on-table .rd--table .fin-q::after { margin: 18px 0 16px; }
  body.on-table .rd--table .fin-h { max-width: 11em; margin: 0; }
  body.on-table .rd--table .fin-h.is-long { max-width: 13em; }
  body.on-table .rd--table :is(.rd-under, .rd-summary) { margin-left: 0; margin-right: 0; }
  body.on-table .rd--table .hq-o { margin-left: -.42em; }
  body.on-table .pin { display: none; }
  body.on-table .rd-card { scroll-margin-top: 24px; }
  /* the column is still the table (2026-09-27): a low pool of the lamp's light lies under the
     cards, so they rest on the lit cloth rather than float in a navy half-page */
  body.on-table .room[data-phase="done"] .table::before { content: ""; position: absolute; inset: -22% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(240, 214, 157, .075), rgba(240, 214, 157, .026) 55%, rgba(240, 214, 157, 0)); pointer-events: none; }
}

/* ---------- a phone ---------- */
@media (max-width: 560px) {
  /* the close: the cards, the question, the headline and one line, with the next part of
     the reading just in view below */
  /* audit 1 #6: the first screen is filled, not left with a dead band at its foot: the
     question, headline and line sit in the middle of the space under the cards, and the rule
     of what follows just shows at the fold (the words stay on the next screen: the owner's
     first-screen word limit) */
  .rd--table .rd-shape { display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-height: calc(100svh - var(--done-h, 280px) - 44px - 6px); padding: 10px 0 18px; }
  .rd--table .fin-q, .rd--table .rd-shape h1.fin-q, .rd--table .rd-shape h1.fin-q.is-long { font-size: 17px; }
  .rd--table .fin-q::after { margin: 12px auto 10px; }
  .rd--table .rd-under { margin-top: 16px; font-size: 16px; }
  .rd--table .rd-rise .rd-summary { margin-top: 16px; }
  .rd--table .rd-rise .rd-summary p { font-size: 16px; line-height: 1.4; }
  .room[data-phase="done"] .slot-label { margin-top: 6px; font-size: 13px; }
  .room[data-phase="done"] .slot-name { font-size: 13.5px; }
  /* the settled cross on a phone names only the places; the passages name the cards */
  .room[data-spread="deep"][data-phase="done"] .slot-name { display: none; }
  .room[data-spread="deep"][data-phase="done"] .slot-label { margin-top: 4px; font-size: 12.5px; }
  /* in the deep cross while turning, one line under each card: the name, or the place */
  .room[data-spread="deep"][data-phase="reveal"] .slot.turned .slot-label { display: none; }
  .room[data-spread="deep"][data-phase="reveal"] .slot-name { max-width: calc(var(--sw) + var(--gap)); margin-top: 5px; font-size: 12.5px; line-height: 1.08; }
  /* the close's FLIP starts each card at its turning size, so for its first frames a card's
     words beside it (the Turn under the two) reach past the screen's edge; a moving card
     never widens the page (overflow clip: no scroll container, so nothing sticky breaks) */
  body.on-table #main { overflow-x: clip; }
  .slot-gist { margin-top: 5px; font-size: 13.5px; line-height: 1.25; }
  .room[data-spread="deep"] .slot-gist { margin-top: 4px; font-size: 12.5px; line-height: 1.2; }
  .pin { padding: 6px 12px 10px; }
}
@media (max-width: 360px) {
  .rd--table .fin-h, .rd--table .rd-shape h1.fin-h { font-size: 31px; }
  .rd--table .fin-h.is-long { font-size: 26px; }
  .room:not([data-phase="intake"]) .guide-matter { font-size: 28px; }
}

/* ---------- reduced motion: crossfades; nothing drifts, breathes or travels ---------- */
.rm .room .obj.deck .cb, .rm .room .obj.deck::before, .rm .room[data-phase="reveal"] .slot .sc { animation: none !important; }
.rm .fcard .lift, .rm .sc, .rm .edge-a, .rm .edge-b, .rm .place::before, .rm .whisper, .rm .pin { transition: none !important; }
.rm .whisper.out, .rm .slot-gist { transform: none; }
.rm .slot.pressing .sc { transform: scale(.97); }
.rm body.on-table .br-room-header { animation: fade var(--t-mid) ease both; }
.rm #reading-view.rising .rd-rise, .rm #reading-view.rising .rd > :not(.rd-shape) { animation: fade var(--t-slow) ease var(--rise-at, .3s) both; }
.rm .room:not([data-phase="intake"]) :is(.bar, .guide, .controls) { animation: fade var(--t-mid) ease both; }
.rm .room:not([data-phase="intake"]) .ctl { transition: none; }
@media (forced-colors: active) {
  .shade, .glow { display: none; }
  .edge-lines, .edge-top { forced-color-adjust: none; }
  .deck-press:focus-visible, .edge:focus-visible { outline-color: Highlight; }
  .fan:focus-visible .fcard.active .art::after { outline: 2px solid Highlight; }
  .undo, .sr-reveal:focus-visible { border-color: ButtonText; }
  .act-n::after, .rd--table .fin-q::after { background: CanvasText; }
  .room[data-phase="choose"] .slot.next .place::before { border: 1px solid CanvasText; inset: 0; }
  .pin .mini.is-lit .mini-in, .room[data-phase="done"] .slot.lit .place { outline: 2px solid Highlight; }
}
@media print { .pin { display: none !important; } }
