@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- The light in each hall ---------- */
:root, [data-hall="atrium"] {
  --sky-top: #3f86d6; --sky-mid: #8fc0f0; --sky-low: #fff1c4; --sun: #fffbe6;
  --wall: #f8f2e2; --wall-far: #d3e2f3; --soffit: #cdb682; --floor: #e3c98a; --floor-far: #fff3cc;
  --plaque: #f7f0dd; --ink: #1b2a4a; --ink-soft: #46536f; --gold: #a9812f; --accent: #1f3f86; --flame: #e8891a;
}
[data-hall="chapel"] {
  --sky-top: #7f97d4; --sky-mid: #f1c3c0; --sky-low: #ffe6b0; --sun: #fff6dc;
  --wall: #f3e5d8; --wall-far: #ecdfe6; --soffit: #d3b9a4; --floor: #e9d2bd; --floor-far: #ffeccb;
  --plaque: #f8eee3; --ink: #3a1c26; --ink-soft: #6a4650; --gold: #a37a35; --accent: #7d2637; --flame: #e07a1c;
}
[data-hall="masjid"] {
  --sky-top: #1f8a99; --sky-mid: #a8dfdb; --sky-low: #fbf5d9; --sun: #ffffee;
  --wall: #f3f5ee; --wall-far: #dcefec; --soffit: #bfd6cf; --floor: #dfeae0; --floor-far: #f8f8e4;
  --plaque: #f5f6ee; --ink: #0d3238; --ink-soft: #3d5d61; --gold: #9a8134; --accent: #0c5f66; --flame: #e2901f;
}
[data-hall="mandir"] {
  --sky-top: #ee7d24; --sky-mid: #f9c676; --sky-low: #fff0c2; --sun: #fffbe0;
  --wall: #fae5c2; --wall-far: #fbe9cf; --soffit: #e0b47c; --floor: #f3d39c; --floor-far: #ffefc6;
  --plaque: #fcefd6; --ink: #46160c; --ink-soft: #74402f; --gold: #a8741c; --accent: #a3300f; --flame: #d9480f;
}
[data-hall="synagogue"] {
  --sky-top: #233c8c; --sky-mid: #9db8ea; --sky-low: #f4f0e2; --sun: #ffffff;
  --wall: #eef0f3; --wall-far: #dbe3f1; --soffit: #bcc5d6; --floor: #dde2ea; --floor-far: #f6f4ea;
  --plaque: #f2f3f5; --ink: #131f47; --ink-soft: #434d70; --gold: #8d7a45; --accent: #20357f; --flame: #e08a1a;
}
[data-hall="vihara"] {
  --sky-top: #c56e27; --sky-mid: #efc885; --sky-low: #fbefca; --sun: #fffbe2;
  --wall: #efdfc0; --wall-far: #f1e3c9; --soffit: #cfb283; --floor: #e4cb9c; --floor-far: #fbedc8;
  --plaque: #f5e9d0; --ink: #3d1616; --ink-soft: #6c4238; --gold: #9c7424; --accent: #772525; --flame: #d9621a;
}
[data-hall="gurdwara"] {
  --sky-top: #263a96; --sky-mid: #8fa6e2; --sky-low: #f8c873; --sun: #fff3cf;
  --wall: #faf1de; --wall-far: #e6e6ee; --soffit: #dcc79a; --floor: #efdcb2; --floor-far: #fbe3ad;
  --plaque: #fbf3e2; --ink: #17235c; --ink-soft: #454f7c; --gold: #b0741a; --accent: #1f3391; --flame: #e2761a;
}
[data-hall="quiet"] {
  --sky-top: #6fa58e; --sky-mid: #cfe5d5; --sky-low: #f8f5e4; --sun: #ffffff;
  --wall: #f0f0e5; --wall-far: #e2ebe2; --soffit: #c8cfbb; --floor: #dfe2cf; --floor-far: #f6f5e6;
  --plaque: #f4f4ea; --ink: #1d3329; --ink-soft: #48604f; --gold: #8c7c45; --accent: #2f5a45; --flame: #dd8a22;
}

:root {
  --vpx: 50vw; --vpy: 42vh; --rail-h: 200px; --wall-top: 120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Marcellus", "Iowan Old Style", Georgia, serif;
  --sans: "Atkinson Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 500 1.0625rem/1.5 var(--sans);
  color: var(--ink); background: var(--wall);
  overflow: hidden; overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent); color: var(--plaque); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }

/* ---------- The building ---------- */
.world { position: fixed; inset: 0; overflow: hidden; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--sky-top) 0, var(--sky-mid) calc(var(--vpy) * 0.8), var(--sky-low) calc(var(--vpy) * 1.02));
}
.sun {
  position: absolute; left: var(--vpx); top: var(--vpy); width: 70vmin; height: 70vmin; translate: -50% -52%;
  background: radial-gradient(circle, var(--sun) 0 7%, color-mix(in oklab, var(--sun) 65%, transparent) 16%, color-mix(in oklab, var(--sky-low) 40%, transparent) 34%, transparent 60%);
}
.cloud {
  position: absolute; border-radius: 50%; opacity: 0.9; will-change: transform;
  background: radial-gradient(ellipse at 50% 60%, #fff 0, color-mix(in oklab, #fff 70%, transparent) 30%, color-mix(in oklab, #fff 25%, transparent) 52%, transparent 70%);
  animation: drift 160s linear infinite;
}
.c1 { width: 70vmin; height: 20vmin; left: 8%; top: calc(var(--vpy) - 30vmin); }
.c2 { width: 90vmin; height: 24vmin; left: 52%; top: calc(var(--vpy) - 21vmin); animation-duration: 220s; animation-delay: -80s; }
.c3 { width: 55vmin; height: 15vmin; left: 30%; top: calc(var(--vpy) - 12vmin); animation-duration: 190s; animation-delay: -140s; opacity: 0.7; }
@keyframes drift { from { transform: translateX(-12vmin); } 50% { transform: translateX(12vmin); } to { transform: translateX(-12vmin); } }

.floor {
  position: absolute; left: 0; right: 0; top: var(--vpy); bottom: 0;
  background: linear-gradient(to bottom, var(--floor-far) 0, var(--floor) 55%, color-mix(in oklab, var(--floor) 82%, var(--ink)) 100%);
}
.floor-light {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--sun) 95%, transparent), color-mix(in oklab, var(--sun) 0%, transparent) 85%);
  -webkit-mask-image: conic-gradient(from 150deg at 50% 0, transparent 0deg, #000 26deg, #000 34deg, transparent 60deg);
  mask-image: conic-gradient(from 150deg at 50% 0, transparent 0deg, #000 26deg, #000 34deg, transparent 60deg);
}

#stage, #people-stage {
  position: fixed; left: 0; top: 0; width: 400px; height: 700px;
  transform-origin: 0 0; --px: 0; --py: 0;
}
#people-stage { pointer-events: none; }
#camera { position: absolute; inset: 0; transform-origin: 200px 330px; will-change: transform; }
#layers, #candles { position: absolute; inset: 0; }
#candles, #doors { z-index: 20; }
.layer {
  position: absolute; inset: 0; overflow: visible; transform-origin: 200px 330px;
  transform: translate(calc(var(--px) * var(--ls) * 1px), calc(var(--py) * var(--ls) * 1px)) scale(var(--ls));
  will-change: transform;
}
.layer .face { fill: color-mix(in oklab, var(--wall) calc((1 - var(--d)) * 100%), var(--wall-far)); }
.layer .soffit { fill: color-mix(in oklab, var(--soffit) calc((1 - var(--d) * 0.7) * 100%), var(--wall-far)); }
.layer .mould { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: calc(0.75 - var(--d) * 0.5); vector-effect: non-scaling-stroke; }
.layer .base { fill: color-mix(in oklab, var(--soffit) calc((1 - var(--d)) * 70%), var(--wall-far)); }

.shafts {
  position: absolute; left: var(--vpx); top: var(--vpy); width: 150vmax; height: 150vmax; translate: -50% -50%;
  opacity: 0.62; pointer-events: none; will-change: transform;
  animation: turn 300s linear infinite;
}
@keyframes turn { to { rotate: 360deg; } }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#veil {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at var(--vpx) var(--vpy), #fff 0, #fffbe8 40%, #fff4cf 100%);
}

/* Candles left along the nave */
.candle {
  position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); width: 10px; height: 30px;
  transform: translate(calc(-50% + var(--px) * var(--s) * 1px), calc(-100% + var(--py) * var(--s) * 1px)) scale(var(--s));
  transform-origin: 50% 100%;
}
.candle::before { content: ""; position: absolute; left: 3px; bottom: 0; width: 4px; height: 16px; background: #fffaf0; box-shadow: inset -1px 0 0 rgb(0 0 0 / 0.14); }
.candle::after {
  content: ""; position: absolute; left: 1.5px; bottom: 17px; width: 7px; height: 11px; border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%;
  background: radial-gradient(ellipse at 50% 75%, #fff8d6 0 25%, var(--flame) 70%);
  box-shadow: 0 -2px 10px 3px color-mix(in oklab, var(--flame) 55%, transparent);
  animation: flicker 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s); transform-origin: 50% 100%;
}
.candle.new { animation: catch 1.4s var(--ease); }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(-2deg); } 35% { transform: scale(0.92, 1.12) rotate(2deg); } 70% { transform: scale(1.05, 0.94) rotate(-1deg); } }
@keyframes catch { from { opacity: 0; filter: brightness(3); } }

/* Doors at the threshold */
#doors { position: absolute; inset: 0; perspective: 900px; perspective-origin: 200px 330px; }
.leaf { position: absolute; top: 0; left: 0; width: 400px; height: 700px; transition: transform 2.4s cubic-bezier(0.3, 0.1, 0.2, 1), filter 2.4s; }
.leaf.l { transform-origin: 50px 50%; clip-path: inset(0 200px 0 0); }
.leaf.r { transform-origin: 350px 50%; clip-path: inset(0 0 0 200px); }
.leaf svg { width: 400px; height: 700px; overflow: visible; }
.leaf .wood { fill: url(#door-grad); }
.leaf .line { fill: none; stroke: #8a6a22; stroke-width: 1.2; opacity: 0.7; }
.leaf .ring { fill: none; stroke: #7a5c1c; stroke-width: 2.4; }
[data-doors="open"] .leaf.l { transform: rotateY(-104deg); filter: brightness(1.5); }
[data-doors="open"] .leaf.r { transform: rotateY(104deg); filter: brightness(1.5); }
[data-doors="gone"] #doors { display: none; }

/* ---------- People ---------- */
#people { position: absolute; inset: 0; }
.person {
  position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px);
  transform: translate(calc(-50% + var(--px) * var(--s) * 1px), calc(-100% + var(--py) * var(--s) * 1px)) scale(var(--s));
  transform-origin: 50% 100%;
  display: grid; justify-items: center; gap: 4px; padding: 6px 8px 0; min-width: 48px;
  background: none; border: 0; pointer-events: auto;
  animation: arrive 1.6s var(--ease);
}
.person .flame { width: 26px; height: 36px; overflow: visible; animation: hover 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); filter: drop-shadow(0 0 9px color-mix(in oklab, var(--flame) 70%, transparent)); }
.person .flame path { fill: url(#flame-grad); }
.person .pool { width: 46px; height: 9px; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in oklab, var(--flame) 55%, transparent), transparent 70%); margin-top: 6px; }
.person .tag {
  font: 650 0.875rem/1.2 var(--sans); white-space: nowrap; color: var(--ink);
  background: var(--plaque); padding: 2px 7px; border-radius: 3px; margin-top: 1px;
}
.person.far .tag { display: none; }
.person.me .flame { width: 32px; height: 44px; }
.person.silent .flame { animation: none; }
.person.silent .pool { box-shadow: 0 0 0 2px var(--plaque), 0 0 0 3px var(--gold); }
.person:hover .flame, .person:focus-visible .flame { filter: drop-shadow(0 0 14px var(--flame)); }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes arrive { from { opacity: 0; filter: brightness(2.5) blur(4px); } }

.said, .sign {
  position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); pointer-events: none;
  translate: -50% -100%; white-space: nowrap;
}
.said {
  font: 600 0.95rem/1.25 var(--sans); color: var(--ink); background: var(--plaque);
  padding: 7px 11px; border-radius: 4px; box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--ink) 45%, transparent);
  max-width: 250px; white-space: normal; text-align: center; width: max-content;
  animation: rise 6s var(--ease) forwards;
}
.said b { display: block; font-weight: 500; font-size: 0.8rem; color: var(--ink-soft); }
.sign { font-size: 1.9rem; animation: float-up 3.4s ease-out forwards; }
@keyframes rise { 0% { opacity: 0; transform: translateY(10px); } 8% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px); } }
@keyframes float-up { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 15% { opacity: 1; transform: translateY(-14px) scale(1); } 100% { opacity: 0; transform: translateY(-120px) scale(1.1); } }

/* ---------- Carved interface ---------- */
.lintel {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 58px; padding: calc(6px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) 6px;
  background: var(--plaque); border-bottom: 1px solid var(--gold);
  transition: translate 0.9s var(--ease), background-color 1s;
}
[data-view="threshold"] .lintel { translate: 0 -110%; }
.mark { font: 1.15rem/1 var(--serif); letter-spacing: 0.02em; display: none; }
.where { font: 1.2rem/1.15 var(--serif); display: grid; }
.where #hall-count { font: 500 0.875rem/1.3 var(--sans); color: var(--ink-soft); }
.sound {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: none; border: 1px solid var(--gold); border-radius: 3px; font-weight: 600; font-size: 0.95rem;
}
.sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound[aria-pressed="true"] .mute, .sound[aria-pressed="false"] .waves { display: none; }
.sound[aria-pressed="true"] { background: var(--accent); color: var(--plaque); border-color: var(--accent); }

.threshold { position: fixed; inset: 0; z-index: 4; pointer-events: none; transition: opacity 0.8s; }
.threshold h1 {
  position: absolute; left: 0; right: 0; top: calc(var(--wall-top) * 0.5); translate: 0 -50%;
  font: clamp(2.1rem, 9.4vw, 4.2rem)/1 var(--serif); letter-spacing: 0.01em; text-align: center; text-wrap: balance;
  color: var(--ink); text-shadow: 0 1px 0 rgb(255 255 255 / 0.75);
  padding-inline: 16px;
}
.plaque {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(100%, 34rem); pointer-events: auto;
  background: var(--plaque); border-top: 1px solid var(--gold);
  padding: 20px max(20px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
}
.lede { font: 1.3rem/1.3 var(--serif); text-wrap: balance; }
.inside { font-weight: 650; color: var(--accent); }
.fine { font-size: 0.9rem; color: var(--ink-soft); }
[data-view="hall"] .threshold { opacity: 0; visibility: hidden; transition: opacity 0.8s, visibility 0s 0.8s; }

.field { display: grid; gap: 4px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
select {
  appearance: none; min-height: 50px; padding: 0 44px 0 14px; border: 1px solid var(--ink-soft); border-radius: 3px;
  background: #fffdf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23444' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
  font-weight: 600; font-size: 1.1rem; width: 100%;
}
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1rem; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.enter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  min-height: 54px; padding: 8px 16px; border-radius: 3px; border: 1px solid var(--accent);
  background: transparent; color: var(--accent); font-weight: 700; font-size: 1.05rem;
  transition: background-color 0.2s, color 0.2s, translate 0.2s var(--ease);
}
.btn.primary { background: var(--accent); color: #fffaf0; }
.btn:hover { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.btn.primary:hover { background: color-mix(in oklab, var(--accent) 86%, #000); }
.btn:active { translate: 0 1px; }
.btn.small { min-height: 44px; font-size: 0.95rem; }

.rail {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  background: var(--plaque); border-top: 1px solid var(--gold);
  padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
  transition: translate 0.9s var(--ease), background-color 1s;
}
[data-view="threshold"] .rail { translate: 0 110%; visibility: hidden; }
.arcade { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px 8px; scroll-snap-type: x proximity; justify-content: safe center; }
.door {
  flex: 0 0 auto; width: 82px; display: grid; justify-items: center; gap: 3px; padding: 4px 2px 6px;
  background: none; border: 0; border-bottom: 3px solid transparent; scroll-snap-align: center;
  font-size: 0.82rem; line-height: 1.15; font-weight: 600; text-align: center;
}
.door-arch { width: 44px; height: 58px; background: linear-gradient(to bottom, var(--sky-top), var(--sky-mid) 60%, var(--sky-low)); transition: scale 0.3s var(--ease); }
.door:hover .door-arch { scale: 1.08; }
.door small { font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); }
.door[aria-current="true"] { border-bottom-color: var(--gold); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 10px 0; max-width: 34rem; margin-inline: auto; border-top: 1px solid color-mix(in oklab, var(--gold) 35%, transparent); }
.act {
  display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 68px; padding: 6px 2px;
  background: none; border: 0; border-radius: 3px; font-size: 0.86rem; font-weight: 650; line-height: 1.15;
}
.act svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.25s var(--ease); }
.act:hover svg { translate: 0 -3px; }
.act[aria-pressed="true"] { background: var(--accent); color: #fffaf0; }
.act[aria-pressed="true"] svg { stroke: #fffaf0; }
.silence-line { text-align: center; font: 1.15rem/1.3 var(--serif); padding: 4px 16px 10px; }
[data-silent] .arcade, [data-silent] .act:not(#silence) { display: none; }
[data-silent] .acts { grid-template-columns: 1fr; border-top: 0; }
[data-silent] .shafts { animation-duration: 900s; }

.notice {
  position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top)); translate: -50% 0; z-index: 4;
  width: max-content; max-width: min(92vw, 30rem); text-align: center; text-wrap: balance;
  background: var(--plaque); padding: 9px 14px; border-radius: 4px; font-weight: 600; font-size: 0.98rem;
  box-shadow: 0 8px 20px -8px color-mix(in oklab, var(--ink) 50%, transparent);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.notice.show { opacity: 1; }
.received {
  position: fixed; left: 50%; top: calc(70px + env(safe-area-inset-top)); translate: -50% 0; z-index: 6;
  width: min(92vw, 26rem); display: grid; gap: 10px; text-align: center;
  background: var(--accent); color: #fffaf0; padding: 16px; border-radius: 4px;
  box-shadow: 0 14px 30px -10px color-mix(in oklab, var(--ink) 60%, transparent);
  animation: sheet-in 0.5s var(--ease);
}
.received p { font: 1.25rem/1.3 var(--serif); text-wrap: balance; }
.received p b { display: block; font: 500 0.9rem/1.4 var(--sans); opacity: 0.9; }
.received .btn { border-color: #fffaf0; color: #fffaf0; }

.sheet {
  position: fixed; left: 50%; bottom: 0; translate: -50% 0; z-index: 8; width: min(100%, 35rem);
  max-height: min(82dvh, 44rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--plaque); border-radius: 12px 12px 0 0;
  padding: 0 max(18px, env(safe-area-inset-left)) calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 50px -18px color-mix(in oklab, var(--ink) 55%, transparent);
  display: grid; gap: 14px; animation: sheet-in 0.45s var(--ease);
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--plaque); padding: 16px 0 10px; border-bottom: 1px solid var(--gold); }
.sheet h2 { font: 1.55rem/1.15 var(--serif); }
.sheet h3 { font: 1.15rem/1.2 var(--serif); margin-top: 10px; }
.close { min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--ink-soft); border-radius: 3px; font-weight: 650; }
.choices { display: grid; }
.choices button {
  min-height: 54px; text-align: left; padding: 8px 6px; background: none; border: 0; border-bottom: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  font-size: 1.1rem; font-weight: 600; transition: background-color 0.15s;
}
.choices button:hover, .choices button:focus-visible { background: color-mix(in oklab, var(--accent) 9%, transparent); }
.signs { display: flex; flex-wrap: wrap; gap: 8px; }
.signs button { width: 56px; height: 56px; font-size: 1.7rem; background: #fffdf6; border: 1px solid color-mix(in oklab, var(--gold) 60%, transparent); border-radius: 3px; transition: translate 0.2s var(--ease); }
.signs button:hover { translate: 0 -3px; }
.burning li, .houses li { padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--gold) 40%, transparent); }
.burning li span, .houses li span { display: block; font-size: 0.92rem; color: var(--ink-soft); }
.houses li { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.houses .none { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; text-align: right; max-width: 9rem; }
.empty { color: var(--ink-soft); padding: 10px 0; }
#give-leave, #give-list { display: grid; gap: 14px; }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  .mark { display: block; }
  .where { text-align: center; }
  .lintel { display: grid; grid-template-columns: 1fr auto 1fr; padding-inline: 24px; }
  .sound { justify-self: end; }
  .plaque { bottom: 28px; border: 0; border-top: 1px solid var(--gold); border-radius: 0 0 4px 4px; box-shadow: 0 24px 50px -24px color-mix(in oklab, var(--ink) 60%, transparent); padding: 24px 28px; }
  .door { width: 96px; font-size: 0.88rem; }
  .sheet { bottom: 24px; border-radius: 12px; }
}
@media (max-height: 640px) {
  .plaque { gap: 8px; padding-top: 14px; }
  .fine { display: none; }
  .door-arch { width: 34px; height: 44px; }
  .act { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .shafts, .person .flame, .candle::after { animation: none; }
  .leaf { transition-duration: 0.01s; }
  .said { animation: fade 6s linear forwards; }
  .sign { animation: fade 3s linear forwards; }
  .sheet, .received, .person, .candle.new { animation: none; }
  @keyframes fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
}
