/* Windup Tarot */
:root {
  --bg: #07061a;
  --bg-2: #0e0b2a;
  --ink: #f1e8d6;
  --ink-soft: #c9bfd8;
  --muted: #8f87ad;
  --gold: #e8c26a;
  --gold-hi: #fbe3a0;
  --gold-lo: #a9792f;
  --violet: #8b7cf6;
  --panel: rgba(22, 18, 54, 0.62);
  --panel-line: rgba(232, 194, 106, 0.22);
  --radius: 18px;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --caps: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --card-w: min(30vw, 168px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overscroll-behavior-x: none; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) radial-gradient(120% 70vh at 50% -10vh, #1b1450 0%, var(--bg-2) 55%, var(--bg) 100%) no-repeat;
  color: var(--ink);
  font: 400 1.06rem/1.6 var(--sans);
  padding: env(safe-area-inset-top, 0) max(16px, env(safe-area-inset-right, 0)) env(safe-area-inset-bottom, 0) max(16px, env(safe-area-inset-left, 0));
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nebula {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; overflow: hidden;
}
.nebula::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 30% at 18% 28%, rgba(139, 124, 246, .18), transparent 70%),
    radial-gradient(35% 28% at 82% 18%, rgba(232, 120, 160, .10), transparent 70%),
    radial-gradient(45% 35% at 70% 85%, rgba(80, 170, 220, .10), transparent 70%);
  animation: drift 60s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, -2%, 0) rotate(4deg); } }

.top, main, .foot { position: relative; z-index: 1; }

a { color: var(--gold-hi); text-decoration-color: rgba(232, 194, 106, .4); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  max-width: 1100px; margin: 0 auto; padding: 18px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; min-width: 0; font: 600 1rem/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.brand-mark { display: block; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font: 500 .82rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: 10px 12px; border-radius: 999px;
}
.nav a[aria-current="page"] { color: var(--gold-hi); background: rgba(232, 194, 106, .1); }
.nav { margin-left: auto; }
.sound-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--panel-line); background: rgba(10, 8, 30, .5); color: var(--ink-soft); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.sound-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.sound-btn[aria-pressed="true"] { color: var(--gold-hi); }

/* ---------- options menu (upper right) ---------- */
.top { z-index: 20; } /* above main, so the open menu is not covered by the page */
.opts { position: relative; flex: 0 0 auto; margin-left: auto; }
.opts-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-hi); }
.opts-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 18rem; max-width: calc(100vw - 32px); min-width: 0; padding: 12px; overflow-wrap: anywhere;
  background: rgba(14, 11, 40, .96); border: 1px solid var(--panel-line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.opts-group { min-width: 0; border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.opts-group legend { font: 500 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 8px; }
.opts-choice {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; cursor: pointer;
  color: var(--ink-soft);
}
.opts-choice:hover { background: rgba(232, 194, 106, .08); }
.opts-choice:has(input:checked) { background: rgba(232, 194, 106, .14); color: var(--gold-hi); }
.opts-choice input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.opts-choice span { display: grid; gap: 2px; min-width: 0; }
.opts-choice b { font: 600 .95rem/1.2 var(--serif); letter-spacing: .02em; }
.opts-choice small { font: 400 .74rem/1.2 var(--sans); color: var(--muted); }

main { max-width: 1100px; margin: 0 auto; min-height: 70vh; }
.view { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
.eyebrow { font: 500 .78rem/1.4 var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; text-align: center; }
.title {
  overflow-wrap: anywhere;
  font: 600 clamp(2.6rem, 9vw, 5.2rem)/1 var(--caps); letter-spacing: .06em; margin: 0; text-align: center;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(232, 194, 106, .25));
}
.title-sm { font-size: clamp(2rem, 6vw, 3.4rem); }
.tagline { font: 400 clamp(1.15rem, 3.4vw, 1.45rem)/1.45 var(--serif); color: var(--ink-soft); text-align: center; max-width: 34ch; margin: .9rem auto 0; }

/* ---------- home ---------- */
.hero { padding: clamp(12px, 4vh, 48px) 0 8px; }
.hero-fan { position: relative; height: clamp(170px, 34vw, 250px); margin: 26px auto 8px; max-width: 520px; }
.hero-fan .fan-card {
  position: absolute; left: 50%; bottom: 0; width: clamp(92px, 20vw, 134px); aspect-ratio: 2 / 3;
  transform-origin: 50% 120%; margin-left: calc(clamp(92px, 20vw, 134px) / -2);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55));
  animation: bob 6s ease-in-out infinite;
}
.hero-fan .fan-card svg { width: 100%; height: 100%; display: block; }
@keyframes bob { 50% { translate: 0 -6px; } }

.ask { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; text-align: center; }
.ask-intro { max-width: 34rem; margin: 6px auto 0; }
.q-label { font: 500 1.35rem/1.3 var(--serif); color: var(--ink); margin: 10px 0 8px; }
.q-hint { color: var(--muted); font-size: .95rem; line-height: 1.5; margin: 0; }

.spreads { border: 0; padding: 0; margin: 26px 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spreads legend { font: 500 .78rem/1 var(--caps); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 auto 14px; padding: 0; }
.spread-opt { position: relative; cursor: pointer; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; border-radius: var(--radius); }
.spread-opt:focus-visible { outline: none; }
.spread-opt[disabled] { cursor: progress; opacity: .6; }
.spread-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%;
  padding: 18px 12px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line);
  transition: border-color .2s, transform .2s, background .2s, box-shadow .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.spread-opt:hover .spread-card { transform: translateY(-2px); border-color: rgba(232, 194, 106, .45); }
.spread-opt:hover .spread-card, .spread-opt:active .spread-card {
  border-color: var(--gold); background: rgba(52, 38, 96, .7);
  box-shadow: 0 0 0 1px var(--gold), 0 10px 40px rgba(232, 194, 106, .15);
}
.spread-opt:focus-visible .spread-card { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.spread-name { font: 600 1rem/1.2 var(--caps); letter-spacing: .08em; color: var(--gold-hi); }
.spread-blurb { font: 400 .86rem/1.4 var(--sans); color: var(--ink-soft); }
.spread-diagram { display: grid; gap: 4px; height: 52px; place-content: center; margin-bottom: 4px; }
.spread-diagram i { display: block; width: 14px; height: 21px; border-radius: 3px; border: 1.5px solid var(--gold); background: rgba(232, 194, 106, .12); }
.spread-opt:hover .spread-diagram i { background: rgba(232, 194, 106, .35); }
.d-three { grid-auto-flow: column; }
.d-five { grid-template-columns: repeat(3, 14px); grid-template-rows: repeat(3, 15px); gap: 2px 3px; }
.d-five i { height: 15px; width: 11px; justify-self: center; }
.d-five i:nth-child(1) { grid-area: 2 / 2; }
.d-five i:nth-child(2) { grid-area: 2 / 1; }
.d-five i:nth-child(3) { grid-area: 3 / 2; }
.d-five i:nth-child(4) { grid-area: 1 / 2; }
.d-five i:nth-child(5) { grid-area: 2 / 3; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 .95rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-gold {
  color: #1a1030; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #c99a45);
  box-shadow: 0 8px 30px rgba(232, 194, 106, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:hover { box-shadow: 0 10px 44px rgba(232, 194, 106, .45), inset 0 1px 0 rgba(255, 255, 255, .6); color: #1a1030; }
.btn-ghost { color: var(--gold-hi); border-color: rgba(232, 194, 106, .45); background: rgba(10, 8, 30, .35); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(232, 194, 106, .08); color: #fff; }
.btn-small { min-height: 42px; padding: 10px 20px; font-size: .8rem; }
.btn-glyph { display: inline-block; }
.btn:hover .btn-glyph { animation: spin 2s linear infinite; }
.fine { color: var(--muted); font-size: .8rem; margin-top: 14px; }

/* ---------- table ---------- */
.table-head { text-align: center; padding-top: 6px; }
.hint { font: 400 1.15rem/1.4 var(--serif); color: var(--ink-soft); min-height: 1.6em; margin: 4px 0 0; }

.stage { position: relative; min-height: calc(var(--card-w) * 1.5 + 60px); margin: 16px auto 8px; display: grid; place-items: center; }
/* Contain shuffle fans and major-card ripples without clipping the page or vertical card motion. */
.stage { overflow-x: clip; }
.stage.is-five { --card-w: min(24vw, 150px); }
.stage.is-one { --card-w: min(52vw, 230px); }
.stage.is-three { --card-w: min(27vw, 190px); }

.shuffle { position: relative; width: var(--card-w); aspect-ratio: 2 / 3; }
.shuffle .sh {
  position: absolute; inset: 0; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
}
.shuffle .sh svg { width: 100%; height: 100%; display: block; }
.shuffle.is-going .sh:nth-child(odd) { animation: riffleL .62s ease-in-out infinite; }
.shuffle.is-going .sh:nth-child(even) { animation: riffleR .62s ease-in-out infinite; }
.shuffle.is-going .sh:nth-child(3n) { animation-delay: .08s; }
@keyframes riffleL { 0%, 100% { transform: none; } 45% { transform: translateX(-62%) rotate(-9deg); } }
@keyframes riffleR { 0%, 100% { transform: none; } 45% { transform: translateX(62%) rotate(9deg); } }
/* the clockwork shuffle machine: gears behind the deck (table-fx.js) */
.shuffle .shuffle-gears { position: absolute; left: 50%; top: 50%; width: 290%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }

.layout { position: relative; display: grid; gap: clamp(10px, 2.4vw, 22px); justify-content: center; align-items: start; }
/* the clockwork card back: the gears tick one tooth a second, the big one one way and the small ones the other,
   so the teeth stay meshed (80 and 37 teeth). Each gear image is a square centred on its axle. */
.cw-back .cw-gear { transform-box: fill-box; transform-origin: 50% 50%; }
.cw-back .cw-gear-big { animation: cwTick 80s steps(80) infinite; }
.cw-back .cw-gear-top, .cw-back .cw-gear-bot { animation: cwTick 37s steps(37) infinite reverse; }
@keyframes cwTick { to { transform: rotate(360deg); } }
/* home page fan: the gears turn smoothly, and every other card turns the other way (each card's own gears stay
   meshed: the big one against the small ones, at speeds set by their tooth counts) */
.hero-fan .cw-back .cw-gear-big { animation: cwTick 40s linear infinite; }
.hero-fan .cw-back .cw-gear-top, .hero-fan .cw-back .cw-gear-bot { animation: cwTick 18.5s linear infinite reverse; }
.hero-fan .fan-card:nth-child(even) .cw-back .cw-gear-big { animation-direction: reverse; }
.hero-fan .fan-card:nth-child(even) .cw-back .cw-gear-top, .hero-fan .fan-card:nth-child(even) .cw-back .cw-gear-bot { animation-direction: normal; }
@media (prefers-reduced-motion: reduce) { .cw-back .cw-gear { animation: none !important; } }
/* clockwork depth: the sky drifts slowly behind the scene; the pointer shifts sky and front (Clockwork.parallax) */
.cw-sky.is-clouds, .cw-sky.is-sunrise, .cw-sky.is-sunset { animation: cwSkyDrift 14s ease-in-out infinite alternate; }
.cw-sky.is-stars { animation: cwStarDrift 30s ease-in-out infinite alternate; }
.cw-sky, .cw-front { transition: translate .35s ease-out; }
@keyframes cwSkyDrift { from { transform: translate(-8px, 0); } to { transform: translate(8px, -2px); } }
@keyframes cwStarDrift { from { transform: translate(-4px, 1px) rotate(-.6deg); } to { transform: translate(4px, -1px) rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .cw-sky { animation: none; } .cw-sky, .cw-front { transition: none; translate: none !important; } }
/* airships and balloons crossing a clockwork sky (Clockwork AIR): a slow crossing and a gentle bob */
.cw-air { animation: cwAirCross var(--t) linear var(--p) infinite; }
.cw-bob { animation: cwAirBob var(--b) ease-in-out infinite alternate; }
@keyframes cwAirCross { from { transform: translateX(0); } to { transform: translateX(var(--d)); } }
@keyframes cwAirBob { from { transform: translateY(-1.2px); } to { transform: translateY(1.2px); } }
@media (prefers-reduced-motion: reduce) { .cw-air, .cw-bob { animation: none; } .cw-air { transform: translateX(calc(var(--d) * .45)); } }
/* a major card's moment on the table (table-fx.js) */
.major-moment { position: fixed; inset: 0; pointer-events: none; z-index: 40; mix-blend-mode: screen; }
.major-moment.is-shadow { mix-blend-mode: multiply; }
.moment-star { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px rgba(220, 232, 255, .95), 0 0 18px 6px rgba(180, 200, 255, .45); pointer-events: none; z-index: 5; }
.moment-ring { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(250, 215, 130, .9); box-shadow: 0 0 18px rgba(250, 215, 130, .6); pointer-events: none; z-index: 5; }
/* the clockwork gear train between face-up cards (table-fx.js); it never takes a tap */
.gear-train { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; overflow: visible; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); }
.layout-one { grid-template-columns: var(--card-w); }
.layout-three { grid-template-columns: repeat(3, minmax(0, var(--card-w))); }
.layout-five {
  grid-template-columns: repeat(3, var(--card-w));
  grid-template-areas: ". guide ." "challenge heart outcome" ". root .";
  gap: clamp(6px, 1.6vw, 16px) clamp(8px, 2vw, 22px);
}
.slot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.slot[data-pos="heart"] { grid-area: heart; }
.slot[data-pos="challenge"] { grid-area: challenge; }
.slot[data-pos="root"] { grid-area: root; }
.slot[data-pos="guide"] { grid-area: guide; }
.slot[data-pos="outcome"] { grid-area: outcome; }
.layout-five .slot { align-self: center; }
.layout-five .pos-label { min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.pos-label { font: 500 clamp(.62rem, 2vw, .76rem)/1.2 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; }
.slot-name { font: 500 clamp(.92rem, 2.6vw, 1.12rem)/1.2 var(--serif); color: var(--ink); text-align: center; min-height: 2.6em; margin: 0; opacity: 0; transition: opacity .6s .3s; }
.slot.is-open .slot-name { opacity: 1; }
.slot-card { display: block; }
/* "open" under a face-up card: the visible sign that a tap shows the whole card. */
.slot-more { display: block; margin-top: 4px; font: 500 .66rem/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.slot-more::before { content: '✦ '; }

.card {
  position: relative; width: var(--card-w); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1100px; border-radius: 10px; -webkit-tap-highlight-color: transparent;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
}
.card .tilt { position: absolute; inset: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.3, .4, 1); }
.card.is-open .inner { transform: rotateY(180deg); }
.card .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }
.card .face svg { width: 100%; height: 100%; display: block; }
.card .front { transform: rotateY(180deg); }
.card .sheen {
  position: absolute; inset: 0; border-radius: 10px; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .3s;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 240, 200, .5), transparent 42%),
    linear-gradient(115deg, transparent 30%, rgba(160, 140, 255, .18) 45%, rgba(255, 210, 140, .22) 55%, transparent 70%);
  transform: rotateY(180deg) translateZ(1px); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card.is-open:hover .sheen, .card.is-open.is-tilting .sheen { opacity: 1; }
.card:not(.is-open):hover .tilt { transform: translateY(-6px) rotateX(var(--rx)) rotateY(var(--ry)); }
.card:not(.is-open) .face.back { box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 0 rgba(232, 194, 106, .0); animation: beckon 2.8s ease-in-out infinite; }
@keyframes beckon { 50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 26px 2px rgba(232, 194, 106, .28); } }
.card.is-open .front { animation: glowOnce 1.6s ease-out .4s both; }
@keyframes glowOnce { 0% { box-shadow: 0 0 0 0 rgba(251, 227, 160, .0); } 30% { box-shadow: 0 0 46px 8px rgba(251, 227, 160, .45); } 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, .55); } }
.card.is-flat .face { box-shadow: 0 14px 34px rgba(0, 0, 0, .55); }

/* A card's mute: a 30 px circle in the top-right corner, with a 44 px hit area. It is a sibling of the
 * card button (never inside it), so a tap on it never turns or opens the card. */
.card-hold { position: relative; }
.card-mute {
  position: absolute; top: -11px; right: -11px; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; color: var(--gold-hi); cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: muteIn .3s ease .5s both;
}
.card-mute::before {
  content: ''; position: absolute; left: 7px; top: 7px; width: 30px; height: 30px; box-sizing: border-box; border-radius: 50%;
  background: rgba(10, 8, 30, .78); border: 1px solid rgba(232, 194, 106, .55); box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  transition: border-color .2s, background .2s;
}
.card-mute svg { position: relative; width: 17px; height: 17px; }
.card-mute:hover::before { border-color: var(--gold-hi); background: rgba(40, 30, 80, .9); }
.card-mute[aria-pressed="true"]::before { border-color: var(--panel-line); }
.card-mute:focus-visible { outline: none; }
.card-mute:focus-visible::before { box-shadow: 0 0 0 2px var(--gold-hi), 0 2px 8px rgba(0, 0, 0, .5); }
body:not(.sound-on) .card-mute, .slot:not(.is-open) .card-mute { display: none; }
/* Narrow table cards (under about 110 px): a smaller circle, the same 44 px hit area. */
@media (max-width: 460px) {
  .stage.is-five .card-mute { top: -13px; right: -13px; }
  .stage.is-five .card-mute::before { left: 10px; top: 10px; width: 24px; height: 24px; }
  .stage.is-five .card-mute svg { width: 14px; height: 14px; }
}
@media (max-width: 410px) {
  .stage.is-three .card-mute { top: -13px; right: -13px; }
  .stage.is-three .card-mute::before { left: 10px; top: 10px; width: 24px; height: 24px; }
  .stage.is-three .card-mute svg { width: 14px; height: 14px; }
}
@keyframes muteIn { from { opacity: 0; } to { opacity: 1; } }
/* The one-time tip: a small label beside the first singing card's mute icon. It points at the icon,
 * then fades. It never takes taps. */
.mute-tip {
  position: absolute; top: 2px; right: 34px; z-index: 4; padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font: 600 .78rem/1.1 var(--sans); color: #fff; background: rgba(10, 8, 30, .92);
  border: 1px solid var(--gold); box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
  animation: tipIn .35s ease .7s both; transition: opacity .5s ease;
}
.mute-tip.is-right { right: auto; left: calc(100% + 8px); }
.mute-tip.is-going { opacity: 0; }
@keyframes tipIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.mute-tip.is-right { animation-name: tipInRight; }
@keyframes tipInRight { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
body:not(.sound-on) .mute-tip { display: none; }

.table-tools { text-align: center; margin: 8px 0 0; }

/* ---------- reading ---------- */
.reading { max-width: 46rem; margin: clamp(28px, 5vw, 52px) auto 0; }
.thread { text-align: center; margin: 0 auto 26px; }
.thread-line { font: 600 clamp(1.35rem, 4vw, 1.75rem)/1.4 var(--serif); color: var(--gold-hi); margin: 0 auto; max-width: 34ch; }
.entries { display: grid; padding: 0 clamp(16px, 3vw, 24px); background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); }
.entry {
  min-width: 0; cursor: pointer; padding: 18px 0;
  opacity: 0; transform: translateY(14px); animation: fadeUp .7s ease forwards;
  display: flex; flex-direction: column;
}
.entry + .entry { border-top: 1px solid var(--panel-line); }
.entry:hover .entry-open { color: var(--gold-hi); text-decoration: underline; }
.entry-pos { font: 500 .74rem/1.4 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0; }
.entry-pos .prompt { color: var(--muted); letter-spacing: .1em; text-transform: none; font: 400 .98rem/1 var(--serif); }
.entry-name { font: 600 clamp(1.5rem, 4.5vw, 1.95rem)/1.15 var(--serif); margin: 4px 0 8px; color: var(--ink); }
.entry-name .num { font: 500 .8rem/1 var(--caps); color: var(--gold); letter-spacing: .14em; margin-left: 8px; vertical-align: middle; }
.entry-whisper { font: 500 1.15rem/1.45 var(--serif); color: var(--gold-hi); margin: 0 0 10px; }
.entry-line { font: 500 clamp(1.16rem, 3.4vw, 1.32rem)/1.5 var(--serif); color: var(--ink); margin: 0 0 10px; }
.entry-open {
  align-self: flex-start; margin-top: auto; min-height: 44px; padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 500 .8rem/1.4 var(--sans); letter-spacing: .08em; color: var(--gold);
}
.entry-open:hover { color: var(--gold-hi); }
.entry-open:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }
.kw { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.kw li { display: flex; }
.kw .kw-tag { font: 500 .72rem/1 var(--sans); letter-spacing: .06em; padding: 9px 12px; min-height: 32px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); background: rgba(139, 124, 246, .14); border: 1px solid rgba(139, 124, 246, .25); transition: border-color .2s, color .2s; }
.kw .kw-tag:hover { border-color: rgba(139, 124, 246, .7); color: var(--ink); }
.kw li.el .kw-tag { color: var(--gold-hi); background: rgba(232, 194, 106, .1); border-color: rgba(232, 194, 106, .3); }
.kw li.el .kw-tag:hover { border-color: var(--gold); }
.kw-words { margin: 18px 0 0; color: var(--ink-soft); font: 400 1.02rem/1.4 var(--serif); }
.kw-none { margin: 10px 0 0; color: var(--ink-soft); font: 400 1.02rem/1.4 var(--serif); }
.kw-none[hidden] { display: none; }
.invite { font: 500 1.12rem/1.5 var(--serif); color: var(--gold-hi); margin: 0 0 10px; }
.invite b { font: 600 .72rem/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; font-style: normal; }
/* Three cards on a wide screen: each entry sits under its card. */
@media (min-width: 900px) {
  .reading:has(.entries.is-three) { max-width: 1040px; }
  .entries.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .entries.is-three .entry { padding: 20px; }
  .entries.is-three .entry + .entry { border-top: 0; border-left: 1px solid var(--panel-line); }
  .entries.is-three .entry-name { font-size: 1.5rem; }
}

.shape { max-width: 46rem; margin: 12px auto 0; padding: 0 clamp(16px, 3vw, 24px); border: 1px solid var(--panel-line); border-radius: 12px; }
.shape summary { cursor: pointer; padding: 13px 0; color: var(--gold-hi); font: 500 1.1rem/1.4 var(--serif); }
.shape summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.shape-passages { display: grid; gap: 16px; max-width: 60ch; margin: 4px 0 20px; }
.passage-title { font: 500 .74rem/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.passage p { font: 400 1.14rem/1.55 var(--serif); color: var(--ink); margin: 0; }
.carry-question { text-align: center; margin: 24px auto 0; }
.shape-question { font: 500 1.3rem/1.45 var(--serif); color: var(--gold-hi); margin: 0 auto; max-width: 40ch; }

/* ---------- notes and thoughts ---------- */
.field {
  display: block; width: 100%; box-sizing: border-box; font: 400 1.05rem/1.5 var(--serif); color: var(--ink);
  background: rgba(10, 8, 30, .5); border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.field::placeholder { color: var(--muted); }
.field:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-color: var(--gold); }
.q-write { display: block; margin: 18px 0 8px; font: 500 1.05rem/1.4 var(--serif); color: var(--ink-soft); }
.q-write span { display: block; font: 400 .85rem/1.4 var(--sans); font-style: normal; color: var(--muted); }
.q-input { max-width: 34rem; margin: 0 auto; text-align: left; }
.notes { margin: 28px auto 0; max-width: 60ch; padding: 24px clamp(16px, 4vw, 32px); border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-line); }
.notes .eyebrow { text-align: left; }
.notes-hint { text-align: left; color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.notes-label { display: block; margin: 16px 0 6px; font: 500 .74rem/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.notes-status { min-height: 1.3em; margin: 8px 0 0; color: var(--muted); font-size: .85rem; text-align: right; }
.consent { margin: 14px 0 4px; padding: 16px; border-radius: 12px; border: 1px solid rgba(232, 194, 106, .45); background: rgba(232, 194, 106, .06); }
.consent p { margin: 0; font: 400 1rem/1.5 var(--serif); color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.consent .consent-foot { font: 400 .85rem/1.4 var(--sans); color: var(--muted); }
.reflect { padding-top: 12px; border-top: 1px solid var(--panel-line); }
.reflect-out { text-align: left; }
.reflect-thoughts, .reflect-questions { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.reflect-thoughts li { font: 400 1.1rem/1.55 var(--serif); color: var(--ink); }
.reflect-questions li { font: 500 1.1rem/1.5 var(--serif); color: var(--gold-hi); }
.reflect-q-label { margin: 20px 0 4px; }
.reflect-by { margin: 16px 0 14px; color: var(--muted); font-size: .85rem; text-align: center; }
.reflect-out { margin-top: 12px; transition: opacity .3s; }
.reflect.is-gathering .reflect-thoughts, .reflect.is-gathering .reflect-questions, .reflect.is-gathering .reflect-q-label { opacity: .3; }
.reflect.is-gathering .reflect-by { color: var(--gold-hi); }
.reflect.is-gathering #reflectBtn { opacity: 1; cursor: progress; animation: gather-glow 1.6s ease-in-out infinite; }
@keyframes gather-glow {
  50% { box-shadow: 0 0 26px rgba(232, 194, 106, .45); border-color: var(--gold-hi); color: #fff; }
}
.reflect-out.is-new { animation: gather-in .5s ease-out; }
@keyframes gather-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .reflect.is-gathering #reflectBtn, .reflect-out.is-new { animation: none; }
}
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--gold-hi); text-decoration: underline; font: inherit; cursor: pointer; }
.history-q { font: 400 .95rem/1.4 var(--serif); color: var(--gold-hi); overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0 10px; }
.error { text-align: center; color: #ffb4a8; font: 1.15rem/1.4 var(--serif); }

/* ---------- history ---------- */
.saved-note { text-align: center; color: var(--muted); font: 400 1rem/1.4 var(--serif); margin: 4px 0 0; }
.saved-note[hidden], .history-empty[hidden] { display: none; }
.history-tools { display: flex; gap: 10px; justify-content: center; margin: 18px 0 6px; }
.history-tools label { cursor: pointer; }
.sync-box { max-width: 34rem; margin: 16px auto 0; padding: 12px 16px 4px; border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--panel); text-align: center; }
.sync-box[hidden], .sync-box [hidden] { display: none; }
.sync-text { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; margin: 0; }
.sync-box .history-tools { flex-wrap: wrap; margin: 12px 0 8px; }
.sync-again { margin: 0 0 6px; font-size: .9rem; }
.sync-again[hidden] { display: none; }
.history-more { max-width: 34rem; margin: 14px auto 0; text-align: center; }
.history-more summary { display: inline-block; cursor: pointer; padding: 8px 4px; color: var(--gold-hi); text-decoration: underline; font-size: .95rem; }
.more-list { list-style: none; margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--panel); text-align: left; display: grid; gap: 12px; }
.more-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.more-list li[hidden] { display: none; }
.more-list li > .btn { justify-self: start; }
.more-list span { color: var(--ink-soft); font-size: .88rem; line-height: 1.4; }
@media (max-width: 480px) { .more-list li { grid-template-columns: 1fr; gap: 6px; } }
.history-count { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.history-count:empty { display: none; }
.history-search { max-width: 820px; margin: 22px auto 0; }
.history-search[hidden] { display: none; }
.history-search input {
  width: 100%; box-sizing: border-box; padding: 12px 18px 12px 44px; border-radius: 999px; border: 1px solid var(--panel-line);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c26a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px 50% / 18px;
  color: var(--ink); font: 400 1rem/1.3 var(--sans);
}
.history-search input::placeholder { color: var(--muted); }
.history-search input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.history-month { margin: 14px 0 -2px; padding-left: 6px; font: 500 .72rem/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.history-month:first-child { margin-top: 18px; }
.history-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 12px; }
.history-item { position: relative; }
.history-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 56px 14px 16px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--panel-line); transition: border-color .2s;
}
.history-link:hover { border-color: rgba(232, 194, 106, .45); }
.history-link:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.history-strip { display: flex; justify-content: center; flex: 0 0 84px; }
.history-thumb { width: 36px; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.history-thumb + .history-thumb { margin-left: -24px; }
.history-thumb svg { width: 100%; height: 100%; display: block; }
.history-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-when { font: 500 .7rem/1.4 var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.history-spread { font: 600 1.15rem/1.2 var(--serif); }
.history-cards { font: 400 1rem/1.35 var(--serif); color: var(--ink-soft); }
.history-del {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.history-del:hover, .history-del:focus-visible { color: var(--gold-hi); background: rgba(232, 194, 106, .1); outline: none; }
.history-confirm {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 8px 12px; border-radius: var(--radius); background: rgba(14, 11, 42, .94); border: 1px solid var(--panel-line); text-align: center;
}
.history-confirm p { margin: 0; color: var(--ink); font-size: .95rem; }
.history-confirm-actions { display: flex; gap: 10px; }
.history-empty { text-align: center; color: var(--ink-soft); font: 400 1.15rem/1.5 var(--serif); margin: 20px 0; }
.history-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 10px; }
.history-foot [hidden] { display: none; }
.history-clear.is-armed { border-color: #ffb4a8; color: #ffb4a8; }
@media (max-width: 640px) {
  .history-strip { flex-basis: 66px; }
  .history-thumb { width: 30px; }
  .history-thumb + .history-thumb { margin-left: -21px; }
  .history-link { gap: 12px; padding: 12px 50px 12px 12px; }
}

/* ---------- deck ---------- */
.deck-head { padding: 18px 0 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 18px; }
.chip { font: 500 .8rem/1 var(--sans); letter-spacing: .06em; padding: 10px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); background: rgba(10, 8, 30, .5); border: 1px solid var(--panel-line); }
.chip.is-on { color: #1a1030; background: var(--gold); border-color: var(--gold); }
.deck-find { display: flex; justify-content: center; margin: 0 0 14px; }
.deck-find input { width: min(100%, 360px); font: 400 .9rem/1.2 var(--sans); color: var(--ink); background: rgba(10, 8, 30, .5); border: 1px solid var(--panel-line); border-radius: 999px; padding: 11px 16px; }
.deck-find input:focus { outline: none; border-color: var(--gold); }
.tag-note { text-align: center; color: var(--gold-hi); font: 500 .95rem/1.4 var(--sans); margin: 2px 0 28px; }
.tag-note .chip-x { margin-left: 6px; padding: 7px 12px; font-style: normal; }
.tag-note[hidden], .deck-empty[hidden], .tag-back[hidden] { display: none; }
.tag-back { text-align: center; margin: 0 0 2px; font: 500 .95rem/1.4 var(--sans); }
.tag-back, .tag-note { scroll-margin-top: 14px; }
.deck-empty { text-align: center; color: var(--muted); margin: 20px 0; }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; padding-bottom: 30px; }
.deck-item { padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--ink-soft); font: 400 .95rem/1.2 var(--serif); text-align: center; }
.deck-item .thumb { width: 100%; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); transition: transform .2s, box-shadow .2s; }
.deck-item .thumb svg { width: 100%; height: 100%; display: block; }
.deck-item:hover .thumb { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .6), 0 0 22px rgba(232, 194, 106, .2); }
.deck-item[hidden] { display: none; }

.card-dialog {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border-radius: 22px; color: var(--ink);
  background: linear-gradient(180deg, #1b1546, #0d0a26); border: 1px solid rgba(232, 194, 106, .35); box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.card-dialog::backdrop { background: rgba(4, 3, 14, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.card-dialog[open] { animation: fadeUp .35s ease both; }
.dlg-close-row { position: sticky; top: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 8px 8px 0; z-index: 2; }
.dlg-close-row form { margin: 0; }
.dlg-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--panel-line); background: rgba(10, 8, 30, .7); color: var(--gold-hi); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.music-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--panel-line); background: rgba(10, 8, 30, .7); color: var(--gold-hi); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.music-btn:hover { border-color: var(--gold); background: rgba(232, 194, 106, .1); color: #fff; }
.sound-toggle[aria-pressed="true"] { border-color: var(--gold); background: rgba(232, 194, 106, .16); }
/* The sound switch (pressed = sound on) and the mute buttons (pressed = muted) show a speaker or a
 * speaker with a slash. */
.sound-toggle .ico-on, .sound-toggle[aria-pressed="true"] .ico-off,
.mute-toggle .ico-off, .mute-toggle[aria-pressed="true"] .ico-on, .mute-toggle[data-muted="true"] .ico-on { display: none; }
.sound-toggle[aria-pressed="true"] .ico-on, .sound-toggle .ico-off,
.mute-toggle .ico-on, .mute-toggle[aria-pressed="true"] .ico-off, .mute-toggle[data-muted="true"] .ico-off { display: block; }
.mute-toggle[aria-pressed="true"], .mute-toggle[data-muted="true"] { color: var(--ink-soft); }
/* The dialog's card button: a pill with words, so it never looks like the round site switch beside it. */
.card-music-btn { width: auto; gap: 8px; padding: 0 16px 0 13px; border-radius: 999px; font: 600 .9rem/1 var(--sans); white-space: nowrap; }
.card-music-btn svg { flex: 0 0 auto; }
/* Card mutes show only while the site's sound is on. */
body:not(.sound-on) #dlgMusic { display: none; }
/* These buttons set display, which beats the hidden attribute: hide them for real. */
.music-btn[hidden], .sound-btn[hidden], .card-mute[hidden] { display: none; }
.music-hint { margin: 0; padding: 4px 28px 8px; text-align: right; font: 400 .95rem/1.3 var(--serif); color: var(--ink-soft); }
.btn[aria-pressed="true"] { border-color: var(--gold); background: rgba(232, 194, 106, .18); color: #fff; }
.music-hint[hidden] { display: none; }
/* A floating note under the switch, on a dark pill, so it never mixes with the text below it. */
.music-hint-top {
  position: absolute; right: 0; top: 100%; margin-top: -4px; padding: 6px 12px; max-width: 16em; z-index: 2; text-align: left;
  border-radius: 14px; background: rgba(10, 8, 30, .92); border: 1px solid var(--gold); box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
}
/* MUSIC (off): the singing glow was on the reading thumbnails, which are gone; give it a new home when music returns. */
.entry-art { transition: box-shadow .6s ease; }
.entry-art.is-singing { box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 26px 4px rgba(232, 194, 106, .55); }
@media (prefers-reduced-motion: reduce) {
  .entry-art { transition: none; }
  .entry-art.is-singing { box-shadow: 0 8px 22px rgba(0, 0, 0, .5); outline: 2px solid var(--gold); outline-offset: 2px; }
}
.dlg-body { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 28px; padding: 0 28px 28px; }
.dlg-art { width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); align-self: start; }
.dlg-art svg { width: 100%; height: 100%; display: block; }
.dlg-art { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; transition: transform .2s ease; }
.dlg-art:hover { transform: scale(1.02); }
.dlg-art:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
/* ‹ › beside the card art: page through the deck or the reading */
.dlg-art-wrap { position: relative; }
.dlg-step {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; padding: 0 0 3px;
  border-radius: 50%; border: 1px solid var(--panel-line); background: rgba(10, 8, 30, .72); color: var(--gold-hi);
  font: 400 1.6rem/1 var(--serif); cursor: pointer; transition: border-color .2s, background .2s;
}
.dlg-step:hover { border-color: var(--gold); background: rgba(22, 18, 54, .92); }
.dlg-step[hidden] { display: none; }
.dlg-step-prev { left: -22px; }
.dlg-step-next { right: -22px; }
.card-zoom { padding: 0; margin: 0; border: 0; background: transparent; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.card-zoom::backdrop { background: rgba(3, 2, 10, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom-stage { width: 100%; height: 100%; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); border: 0; background: none; cursor: zoom-out; }
.zoom-art { display: block; height: min(94dvh, 141vw); aspect-ratio: 2 / 3; max-width: 94vw; border-radius: 4.5%/3%; overflow: hidden; box-shadow: 0 0 80px rgba(240, 196, 106, .18), 0 30px 80px rgba(0, 0, 0, .7); }
.zoom-art svg { width: 100%; height: 100%; display: block; }
.card-zoom[open] .zoom-art { animation: zoomIn .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.dlg-text .eyebrow { text-align: left; }
.dlg-name { font: 600 clamp(1.8rem, 5vw, 2.4rem)/1.1 var(--serif); margin: 0 0 10px; }
.dlg-side { align-self: start; }
.dlg-label { display: block; font: 500 .68rem/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; font-style: normal; }
.dlg-scene { font: 400 1rem/1.5 var(--serif); color: var(--ink-soft); margin: 0 0 16px; }
.dlg-whisper { font: 500 1.3rem/1.45 var(--serif); color: var(--gold-hi); margin: 0 0 16px; }
.dlg-here { border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; margin: 0 0 18px; }
.dlg-line { font: 500 1.2rem/1.55 var(--serif); color: var(--ink); margin: 0; }
.dlg-meaning { font: 400 1.16rem/1.55 var(--serif); color: var(--ink); margin: 0 0 16px; }
.dlg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.dlg-duo > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--panel-line); background: rgba(10, 8, 30, .35); }
.dlg-duo p:last-child { font: 500 1.06rem/1.4 var(--serif); margin: 0; color: var(--ink); }
.dlg-duo .is-shadow p:last-child { color: var(--ink-soft); }
.dlg-duo .is-shadow .dlg-label { color: var(--ink-soft); }
@media (max-width: 420px) { .dlg-duo { grid-template-columns: 1fr; } }
.dlg-invite { font: 500 1.12rem/1.5 var(--serif); color: var(--gold-hi); margin: 0 0 16px; }
.dlg-invite b { display: block; font: 600 .68rem/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-style: normal; margin-bottom: 4px; }
.dlg-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--panel-line); }
.dlg-pager[hidden], .dlg-pager button[hidden], .dlg-here[hidden] { display: none; }
.dlg-pager #dlgNext { margin-left: auto; }
.dlg-count { color: var(--muted); font: 500 .8rem/1 var(--sans); letter-spacing: .08em; }
.dlg-more summary { cursor: pointer; color: var(--gold); font: 500 .82rem/1.4 var(--sans); letter-spacing: .08em; padding: 6px 0; }
/* "From the deck guide: Cups · Ace": quiet, one line under the tags; each name opens the guide drawer. */
.dlg-guide { margin: 14px 0 0; color: var(--muted); font: 400 .98rem/1.5 var(--serif); }
.dlg-guide[hidden] { display: none; }
.dlg-guide-link { padding: 4px 0; min-height: 32px; border: 0; background: none; cursor: pointer; font: 500 1rem/1.5 var(--serif); color: var(--ink-soft);
  text-decoration: underline dotted; text-decoration-color: rgba(232, 194, 106, .55); text-underline-offset: 3px; }
.dlg-guide-link { position: relative; }
.dlg-guide-link::after { content: ''; position: absolute; inset: -6px -5px; }   /* a larger tap area, same quiet look */
.dlg-guide-link:hover, .dlg-guide-link:focus-visible { color: var(--gold-hi); text-decoration-color: var(--gold); }

/* The guide drawer: a sheet that rises from the bottom, over the card dialog. */
.guide-drawer {
  width: min(620px, 100vw); max-width: 100vw; max-height: min(78dvh, 760px); margin: auto auto 0; padding: 0; color: var(--ink);
  border-radius: 22px 22px 0 0; border: 1px solid rgba(232, 194, 106, .35); border-bottom: 0;
  background: linear-gradient(180deg, #211a52, #0f0c2b); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  overflow: hidden; flex-direction: column; position: fixed;
}
.guide-drawer[open] { display: flex; animation: drawerUp .3s cubic-bezier(.2, .8, .2, 1) both; }
.guide-drawer::backdrop { background: rgba(4, 3, 14, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes drawerUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .guide-drawer[open] { animation: none; } }
.gd-close-row { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 1; }
.gd-body { overflow-y: auto; overscroll-behavior: contain; outline: none; padding: 22px 26px calc(24px + env(safe-area-inset-bottom, 0px)); }
.gd-body .eyebrow { text-align: left; padding-right: 48px; }
.gd-title { font: 500 1.7rem/1.2 var(--serif); color: var(--gold-hi); margin: 0 0 6px; }
.gd-detail { font: 400 1.0625rem/1.65 var(--sans); color: var(--ink-soft); margin: 12px 0 0; }
.guide-drawer .guide-spectrum[hidden], .guide-drawer .guide-ask[hidden] { display: none; }
[id^="guide-suit-"], [id^="guide-number-"], [id^="guide-court-"], [id^="guide-stage-"] { scroll-margin-top: 16px; }
.gd-foot { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.gd-all { color: var(--gold); font: 500 .9rem/1.4 var(--sans); letter-spacing: .04em; text-decoration: none; }
.gd-all:hover, .gd-all:focus-visible { color: var(--gold-hi); text-decoration: underline; }

.dlg-positions { margin: 8px 0 0; }
.dlg-positions dt { font: 500 .72rem/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 12px; }
.dlg-positions dd { margin: 2px 0 0; font: 400 1.06rem/1.5 var(--serif); color: var(--ink-soft); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  padding: 12px 20px; border-radius: 999px; background: var(--gold); color: #1a1030; font: 600 .85rem/1 var(--sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fadeUp .3s ease both;
}

.foot { max-width: 1100px; margin: 40px auto 0; padding: 26px 0 34px; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid rgba(232, 194, 106, .12); }
.foot .build { margin: 10px 0 0; font-size: .72rem; opacity: .7; }
.foot .build code { font: 500 .72rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .04em; }
.share-site { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.share-qr { display: block; width: 116px; height: 116px; border-radius: 10px; border: 1px solid rgba(232, 194, 106, .45); box-shadow: 0 0 24px rgba(232, 194, 106, .12); }
.share-site-text { min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.share-site-text .eyebrow { margin: 0; }
.share-site-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-site-actions [hidden], .install-hint[hidden] { display: none; }
.install-hint { max-width: 24rem; margin: 0; text-align: left; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; padding: 14px 18px; border: 1px solid rgba(232, 194, 106, .25); border-radius: 14px; background: rgba(10, 8, 30, .45); }
.install-hint p { margin: 0 0 8px; }
.install-hint p:last-child { margin-bottom: 0; }
.install-hint .install-lead { color: var(--gold-hi); }
.install-hint ol { margin: 0 0 10px; padding-left: 1.3em; }
.install-hint li { margin: 0 0 6px; }
.install-hint b { color: var(--gold-hi); font-weight: 600; }
.install-hint .ios-share { width: 1.05em; height: 1.05em; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-url { max-width: 100%; overflow-wrap: anywhere; margin: 0; font: 600 1rem/1.2 var(--caps); letter-spacing: .08em; }
.share-url a { text-decoration: none; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .spreads { grid-template-columns: 1fr; }
  .spread-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); text-align: left; padding: 14px 16px; gap: 4px 14px; }
  .spread-card .spread-diagram { grid-row: 1 / 3; margin: 0; }
  .spread-name { min-width: 0; }
  .spread-blurb { font-size: .82rem; }
  .dlg-body { grid-template-columns: 1fr; padding: 0 18px 22px; }
  .dlg-art { width: min(240px, 70%); margin: 0 auto; }
  .dlg-step-prev { left: 2px; }
  .dlg-step-next { right: 2px; }
  .brand { flex: 1 1 0; line-height: 1.3; letter-spacing: .1em; }
  .brand-mark { width: 28px; height: 28px; }
  .top { gap: 8px 12px; padding: 14px 0; }
  .nav { order: 2; flex: 1 0 100%; justify-content: center; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .entry { opacity: 1; transform: none; }
}

/* ---------- the deck guide (deck page): suits, numbers, court, the major path ---------- */
.guide-jump { text-align: center; margin: 4px 0 0; }
.guide-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 .8rem/1.4 var(--sans); letter-spacing: .06em; color: var(--gold); text-decoration: none; }
.guide-jump a:hover { color: var(--gold-hi); }
.guide { max-width: 980px; margin: 64px auto 24px; padding: 0 4px; overflow-wrap: break-word; }
.guide[hidden] { display: none; }
.guide-head { text-align: center; margin-bottom: 28px; }
#guideTitle:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.guide-tldr { font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); margin: 6px 0 8px; }
.guide-head .guide-tldr { max-width: 640px; margin-left: auto; margin-right: auto; }
.guide-more { margin: 4px 0 10px; }
.guide-more summary { cursor: pointer; gap: 10px; font: 500 .8rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); list-style: none; padding: 0; min-height: 44px; display: flex; align-items: center; }
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more summary::before { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.guide-more[open] summary::before { transform: rotate(45deg); }
.guide-more p { color: var(--ink-soft); line-height: 1.65; margin: 4px 0 0; }
.guide-head > .guide-more > summary {
  width: fit-content; max-width: 100%; min-height: 48px; justify-content: center;
  margin: 14px auto 12px; padding: 12px 22px; border: 1px solid rgba(232, 194, 106, .65); border-radius: 999px;
  background: rgba(232, 194, 106, .1); color: var(--gold-hi); font-size: .9rem; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s;
}
.guide-head > .guide-more > summary:hover, .guide-head > .guide-more > summary:focus-visible {
  background: rgba(232, 194, 106, .2); border-color: var(--gold); color: #fff;
}
.guide-head .guide-more p { max-width: 680px; margin: 4px auto 0; text-align: left; }
.guide-block { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 18px 20px; }
.guide-rev { margin: 0 auto 40px; max-width: 760px; }
.guide-block h3, .guide-block h4, .guide-num h4, .guide-stage h4 { margin: 0 0 4px; font: 600 1.15rem/1.25 var(--serif); color: var(--gold-hi); }
.guide-sub { text-align: center; font: 600 clamp(1.1rem, 3vw, 1.4rem)/1.2 var(--caps); letter-spacing: .14em; color: var(--gold); margin: 52px 0 18px; }
.guide-kicker { text-align: center; font: 500 .95rem/1.4 var(--sans); color: var(--ink-soft); margin: -10px 0 18px; }
.guide-cards { margin: 2px 0 8px; font: 500 .82rem/1.45 var(--sans); letter-spacing: .02em; color: var(--gold); }
.guide-suits { display: grid; gap: 28px; }
.guide-suit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 26px; align-items: center; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 18px; }
.guide-suit:nth-child(even) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.guide-suit:nth-child(even) .guide-art { order: 2; }
.guide-suit-text, .guide-num, .guide-block, .guide-stage { min-width: 0; }
.guide-suit, .guide-num { cursor: pointer; }
.guide-suit:focus-within, .guide-num:focus-within { border-color: var(--gold); }
.guide-art { aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); background: #0e0b2a; }
.guide-art svg { width: 100%; height: 100%; display: block; }
.guide-suit h4 { margin: 0; font: 600 1.6rem/1.1 var(--caps); letter-spacing: .1em; color: var(--gold-hi); }
.guide-el { display: block; margin-top: 6px; font: 500 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.guide-spectrum-note { max-width: 44rem; margin: -4px auto 24px; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.guide-spectrum-note strong { color: var(--ink); font-weight: 500; }
.guide-spectrum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 12px 0 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--panel-line); }
.guide-spectrum .sp { padding: 12px 14px; font: 400 1rem/1.5 var(--sans); color: var(--ink-soft); display: grid; gap: 3px; }
.guide-spectrum b { font: 600 .875rem/1.4 var(--sans); letter-spacing: .02em; color: var(--ink-soft); }
.guide-spectrum .sp-0 { background: linear-gradient(90deg, rgba(60, 70, 140, .35), rgba(60, 70, 140, .12)); }
.guide-spectrum .sp-1 { background: rgba(232, 194, 106, .14); }
.guide-spectrum .sp-1 b { color: var(--gold); }
.guide-spectrum .sp-2 { background: linear-gradient(90deg, rgba(160, 60, 70, .12), rgba(160, 60, 70, .35)); }
.guide-ask { list-style: disc; padding-left: 1.25em; margin: 12px 0 0; display: grid; gap: 10px; }
.guide-ask li { font: 400 1.0625rem/1.6 var(--sans); color: var(--ink-soft); padding-left: .2em; }
.guide-ask li::marker { color: var(--gold); }
.guide-numbers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.guide-num, .guide-stage { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 14px; padding: 14px 16px; }
.guide-num .num, .guide-stage .num, .guide-block .num { display: inline-block; min-width: 2.6em; margin-right: 8px; font: 600 .78rem/1 var(--caps); letter-spacing: .12em; color: #1a1030; background: var(--gold); border-radius: 999px; padding: 5px 9px; text-align: center; vertical-align: 2px; }
.guide-num .guide-tldr, .guide-stage .guide-tldr, .guide-court .guide-tldr { font-size: 1.0625rem; }
.guide-court { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.guide-majors { max-width: 860px; margin: 0 auto; text-align: center; }
.guide-majors > .guide-more p { text-align: left; }
.guide-stages { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; text-align: left; position: relative; }
@media (max-width: 860px) {
  .guide-suit, .guide-suit:nth-child(even) { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .guide-suit:nth-child(even) .guide-art { order: 0; }
  .guide-art { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* Links inside text: a card name opens that card; a web address opens a new tab. */
.card-ref { color: var(--gold-hi); text-decoration: underline dotted; text-decoration-color: rgba(232, 194, 106, .6); cursor: pointer; }
.text-link { overflow-wrap: anywhere; }
.notes-links { margin-top: 14px; }
.notes-links .eyebrow { margin: 0 0 6px; }
.notes-links ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0; font-size: .95rem; }
.notes-links a { display: inline-block; padding: 10px 0; }
.notes-links li { overflow-wrap: anywhere; }

/* ---------- Sit with this card (sit.js): a quiet exercise from the body, one step at a time ---------- */
.exercise-invite { padding: 14px 16px; border: 1px solid var(--panel-line); border-radius: 12px; background: rgba(10, 8, 30, .35); }
.exercise-title { margin: 0; color: var(--gold-hi); font: 600 1.2rem/1.2 var(--serif); }
.exercise-note { margin: 4px 0 10px; color: var(--ink-soft); font: 400 1rem/1.45 var(--serif); }
.exercise-invite .btn { min-height: 44px; }
.sit-start { margin: 0 0 16px; }
.sit-table { margin: 18px auto 0; max-width: 34rem; }
@media (min-width: 641px) {
  .sit-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; }
  .sit-table .exercise-note { margin-bottom: 0; }
  .sit-table .btn { grid-column: 2; grid-row: 1 / 3; }
}
.sit-table[hidden] { display: none; }

.sit { margin: 0 0 18px; padding: 16px 18px 14px; border-radius: 14px; border: 1px solid var(--panel-line); background: rgba(10, 8, 30, .4); }
.sit[hidden] { display: none; }
.sit-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sit-where { margin: 0; font: 500 .68rem/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sit-leave { min-height: 44px; padding: 4px 6px; border: 0; background: none; cursor: pointer; color: var(--ink-soft); font: 500 .9rem/1 var(--sans);
  text-decoration: underline dotted; text-decoration-color: rgba(232, 194, 106, .55); text-underline-offset: 3px; }
.sit-leave:hover, .sit-leave:focus-visible { color: var(--gold-hi); }
.sit-head { margin: 6px 0 10px; font: 600 1.5rem/1.2 var(--serif); color: var(--gold-hi); outline: none; }
.sit-quote { margin: 0 0 10px; padding: 2px 0 2px 14px; border-left: 2px solid var(--gold); font: 500 1.12rem/1.5 var(--serif); color: var(--ink); }
.sit-quote[hidden], .sit-write[hidden], .sit-deck-note[hidden] { display: none; }
.sit-lines p { margin: 0 0 10px; font: 400 1.16rem/1.55 var(--serif); color: var(--ink); }
.sit-lines.sit-balanced p { text-wrap: balance; }
/* The places to look: a plain list in gold, not pills (pills look like buttons to tap). */
.sit-lines .sit-look { margin: -4px 0 12px; padding: 0 0 0 4px; list-style: none; }
.sit-lines .sit-look li { margin: 0 0 4px; padding-left: 18px; position: relative; color: var(--gold-hi); font: 500 1.12rem/1.45 var(--serif); }
.sit-lines .sit-look li::before { content: '✦'; position: absolute; left: 0; top: .1em; font-size: .7em; color: var(--gold); }
.sit-lines .sit-soft { color: var(--ink-soft); font-size: 1.04rem; }
.sit-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sit-mini { display: block; width: 64px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.sit-mini svg { width: 100%; height: 100%; display: block; }
.sit .btn-gold, .sit .btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.sit-write { margin: 6px 0 4px; }
.sit-write .field { width: 100%; margin: 4px 0 10px; }
.sit-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; color: var(--ink-soft); }
.sit-offer[hidden] { display: none; }
.sit-status { min-height: 1.2em; margin: 8px 0 0; color: var(--ink-soft); font: 400 .95rem/1.4 var(--sans); }
.sit-deck-note { margin: 0 0 10px; color: var(--ink-soft); font: 400 1rem/1.5 var(--serif); }
.sit-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 8px 0 4px; }
.sit-actions .sit-back { flex: 0 0 auto; }
.sit-fwd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; flex: 1 1 13rem; min-width: 0; }
.sit-fwd .btn { max-width: 100%; }
.sit-source { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--panel-line); color: var(--ink-soft); font: 400 .98rem/1.5 var(--serif); }
.sit-source summary { cursor: pointer; color: var(--gold); font: 500 .82rem/1.4 var(--sans); letter-spacing: .08em; padding: 6px 0; }
.sit-source p { margin: 8px 0 0; }
.sit-links a { color: var(--gold-hi); }

/* While sitting, the deck's words and the pager step aside: only the card, its name, and the steps stay.
 * "Carry to the next card" is the way forward. */
.card-dialog.is-sitting .dlg-text > :not(#dlgMeta):not(#dlgName):not(.sit) { display: none; }
.card-dialog.is-sitting .dlg-step { display: none; }
/* Stay: a slow glow breathes around the card (about 5 s in, 5 s out). Off with reduced motion (the rule below). */
.card-dialog.sit-breathe .dlg-art { animation: sitBreathe 10s ease-in-out infinite; }
@keyframes sitBreathe {
  0%, 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 0 0 rgba(232, 194, 106, 0); }
  50% { box-shadow: 0 20px 50px rgba(0, 0, 0, .6), 0 0 34px 6px rgba(232, 194, 106, .45); }
}
@media (prefers-reduced-motion: reduce) { .card-dialog.sit-breathe .dlg-art { animation: none; } }
/* On phones, the card and the exercise scroll together below the close row. */
@media (max-width: 640px) {
  .card-dialog.is-sitting { scroll-padding-top: 52px; overscroll-behavior-y: contain; }
  .card-dialog.is-sitting .dlg-close-row { background: #1b1546; }
  .card-dialog.is-sitting .dlg-body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 12px 12px; }
  .card-dialog.is-sitting .dlg-art { width: min(16svh, 7.33rem); }
  .card-dialog.is-sitting .sit { margin-bottom: 0; padding: 12px; }
  .sit-actions .btn { min-height: 44px; padding-inline: 14px; overflow-wrap: anywhere; }
  .sit-fwd { flex-basis: 0; }
  .sit .bw-graphic { max-width: 18rem; }
}
