/* Lada de zestre: a painted dowry chest in a lime-washed room; the lid opens on three museums' collections */
:root {
  --bg: #e3eaee; --bg2: #d6dfe5; --wall: #dfe7ec; --ink: #111720; --ink2: #27313d; --mute: #34404d; --line: #a9b7c2; --accent: #8a2410; --accent2: #1f4f86;
  --card: #f4f7f9; --chip: #ffffff; --chip-on: #111720; --chip-on-ink: #f4f7f9; --sheet: #f6f3ec; --sheet-ink: #17130e; --sheet-mute: #3b3428; --sheet-line: #d4cbb8;
  --rug1: #6e1d12; --rug2: #1c1714; --rug3: #a6741f; --rug4: #26432f; --tile: #f3ead6; --tile-ink: #17130e; --tile-mute: #3d3427;
  --lamp: rgba(255, 214, 150, .0); --floor: #b9ab95; --to-top-bg: #e3eaee; --to-top-fg: #111720;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
html.dark { --bg: #0d1016; --bg2: #121620; --wall: #10141c; --ink: #ede7db; --ink2: #d3ccbf; --mute: #b9b2a5; --line: #2b3340; --accent: #f2a77c; --accent2: #9cc3f0;
  --card: #151a23; --chip: #19202b; --chip-on: #ede7db; --chip-on-ink: #0d1016; --sheet: #17140f; --sheet-ink: #f0e8d8; --sheet-mute: #cdbfa6; --sheet-line: #3d362a;
  --lamp: rgba(255, 190, 110, .30); --floor: #1d1712; --to-top-bg: #0d1016; --to-top-fg: #ede7db; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
svg[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 500 1rem/1 var(--serif); }
.brand svg { width: 22px; height: 22px; }
.topbar nav { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: .9rem; }
.topbar nav a { text-decoration: none; color: var(--ink2); }
.theme { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink2); }
html.dark .i-sun, html:not(.dark) .i-moon { display: none; }
@media (max-width: 620px) { .topbar nav a:not([hreflang]) { display: none; } .brand span { display: none; } }

/* hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 34px 20px 0; }
.kicker { font: 600 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h1 { font: 600 clamp(2rem, 4.6vw, 3.5rem)/1.04 var(--serif); font-variation-settings: "opsz" 144; margin: 0; max-width: 19ch; letter-spacing: -.012em; }
.deck { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink2); max-width: 54ch; margin: 14px 0 0; }

/* ------------------------------------------------------------ the room */
.stage { max-width: 1120px; margin: 0 auto; padding: 8px 20px 10px; }
.room { position: relative; padding: 4vh 0 1vh; overflow: hidden; border-radius: 4px;
  background:
    radial-gradient(60% 70% at 30% 18%, var(--lamp), transparent 70%); }
html:not(.dark) .room { background: radial-gradient(70% 60% at 50% 30%, rgba(255,255,255,.6), transparent 70%); }
.lamp { position: absolute; left: 22%; top: -30px; width: 2px; height: 70px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.lamp::after { content: ""; position: absolute; left: -16px; top: 66px; width: 34px; height: 18px; border-radius: 0 0 18px 18px; background: #3b2a1c; box-shadow: 0 8px 40px 18px var(--lamp); }
html:not(.dark) .lamp { display: none; }

.scene { --W: min(84vw, 740px, calc((100vh - 170px) / .95)); --W: min(84vw, 740px, calc((100svh - 170px) / .95)); --H: calc(var(--W) * .42); --D: calc(var(--W) * .40); --T: calc(var(--W) * .03);
  position: relative; width: var(--W); height: calc(var(--W) * .86); margin: 0 auto; perspective: calc(var(--W) * 2.3); perspective-origin: 50% -10%; }
.chest { --a: 90deg; --fill: .6; position: absolute; left: 0; bottom: calc(var(--W) * .07); width: var(--W); height: var(--H); transform-style: preserve-3d;
  transform: rotateX(-10deg); transition: transform 1.1s cubic-bezier(.3,.7,.2,1); }
.chest[data-open="1"] { --a: 194deg; transform: rotateX(-24deg) translateY(calc(var(--W) * .02)); }
.face { position: absolute; left: 0; top: 0; }
.face .art, .lid .art { display: block; width: 100%; height: 100%; }
.f-front { width: var(--W); height: var(--H); transform: translateZ(calc(var(--D) / 2)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.4); }
.f-front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,240,210,.10), transparent 30%, rgba(0,0,0,.18)); }
html.dark .f-front::after { background: radial-gradient(90% 120% at 30% 0%, rgba(255,200,130,.16), transparent 60%), linear-gradient(180deg, transparent 40%, rgba(0,0,0,.32)); }
.f-back { width: var(--W); height: var(--H); transform: translateZ(calc(var(--D) / -2)); }
.f-left, .f-right { width: var(--D); height: var(--H); left: calc(var(--D) / -2); transform: rotateY(90deg); }
.f-right { left: calc(var(--W) - var(--D) / 2); transform: rotateY(-90deg); }
.f-left .art, .f-right .art { filter: brightness(.82); }
.f-stack { width: var(--W); height: var(--D); top: calc(var(--H) * (.94 - .78 * var(--fill))); transform-origin: 50% 0; transform: translateZ(calc(var(--D) / -2)) rotateX(90deg);
  background: linear-gradient(90deg, #6d4a2c, #8a6440 30%, #8a6440 70%, #6d4a2c); transition: top .9s cubic-bezier(.3,.7,.2,1); }
.pile { position: absolute; left: 3%; top: 6%; width: 74%; height: 88%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3%; }
.pile i { display: block; border-radius: 3px; background: #ddd0b4 center / cover no-repeat; transform: rotate(var(--r)); box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 0 0 4px rgba(243,234,214,.95); position: relative; }
.pile i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 48%, rgba(0,0,0,.22) 50%, transparent 56%); border-radius: 3px; }
.till { position: absolute; right: 2%; top: 3%; width: 18%; height: 94%; padding: 0; border: 0; cursor: pointer; background: linear-gradient(90deg, #5b3b22, #7a5434); box-shadow: inset 0 0 0 3px #3a2414, -6px 0 12px rgba(0,0,0,.35); }
.till i { position: absolute; inset: 8% 10%; border: 2px solid rgba(217,164,65,.5); }
.till span { position: absolute; left: 0; right: 0; top: 44%; font: italic 500 calc(var(--W) * .022)/1 var(--serif); color: #f0d9a8; text-align: center; }
.till:hover, .till:focus-visible { background: linear-gradient(90deg, #6d4a2c, #8f6640); }
.chest[data-code="X"] .till { box-shadow: inset 0 0 0 3px #d9a441, -6px 0 12px rgba(0,0,0,.35); }
.chest[data-open="0"] .lid { transition: transform .62s cubic-bezier(.55,0,.8,.3); }
.lid { --tt: transform 1.1s cubic-bezier(.45,.05,.2,1); position: absolute; left: 0; top: 0; width: var(--W); height: var(--D); transform-origin: 50% 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--D) / -2)) rotateX(var(--a)); transition: var(--tt); }
.lid-out, .lid-in { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lid-in { transform: rotateX(180deg); }
.lid-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 50% 100%, rgba(255,210,150,.0), rgba(60,40,20,.28)); }
html.dark .lid-in::after { background: radial-gradient(80% 100% at 40% 90%, rgba(255,200,120,.14), rgba(20,12,6,.45)); }
.lid-edge { position: absolute; left: 0; top: 100%; width: 100%; height: var(--T); transform-origin: 50% 0; transform: rotateX(-90deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.inscr { --fs: 1; position: absolute; left: 21%; right: 21%; top: 29.5%; bottom: 29.5%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: #1a1410; font-family: var(--serif); line-height: 1.05; pointer-events: none; }
.inscr .i1 { font: 400 calc(var(--W) * .052 * var(--fs))/1.05 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: .14em; text-transform: uppercase; }
.inscr .i2 { font: italic 400 calc(var(--W) * .036)/1.2 var(--serif); font-variation-settings: "opsz" 144; margin-top: .2em; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 13%; aspect-ratio: 1; padding: 0; border: 0; background: #f3eee2; cursor: zoom-in; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.pin img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.pin.p0 { left: 7%; top: 12%; transform: rotate(-6deg); }
.pin.p1 { right: 7%; top: 10%; transform: rotate(5deg); }
.pin.p2 { left: 8%; bottom: 10%; transform: rotate(4deg); }
.pin:focus-visible { outline: 3px solid #b4401e; }
.shadow { position: absolute; left: 6%; right: 6%; bottom: calc(var(--W) * .035); height: calc(var(--W) * .07); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.42), transparent); filter: blur(6px); }

/* the painted map on the front */
.map .co { fill: #efe4c8; stroke: #16301f; stroke-width: 2.2; cursor: pointer; transition: fill .25s; }
.map .co.l0 { fill: #2a4634; cursor: default; }
.map .co.l1 { fill: #c99a4e; } .map .co.l2 { fill: #d9ae62; } .map .co.l3 { fill: #e6c886; } .map .co.l4 { fill: #efdcae; } .map .co.l5 { fill: #f6ead0; }
.map .co:hover { fill: #ffffff; }
.map .co.sel { fill: #b4401e; stroke: #f3ead6; stroke-width: 5; }

/* the enlarged map */
.map-zoom { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 12px; background: #16301f; }
.mz-map { width: 100%; height: 100%; max-height: 72vh; }
.mz-map .co { fill: #efe4c8; stroke: #16301f; stroke-width: 2.4; cursor: pointer; }
.mz-map .co.l0 { fill: #2a4634; } .mz-map .co.l1 { fill: #c99a4e; } .mz-map .co.l2 { fill: #d9ae62; } .mz-map .co.l3 { fill: #e6c886; } .mz-map .co.l4 { fill: #efdcae; } .mz-map .co.l5 { fill: #f6ead0; }
.mz-map .co.sel { fill: #b4401e; }
.mz-l { font: 600 30px var(--sans); fill: #17130e; paint-order: stroke; stroke: #efe4c8; stroke-width: 5px; text-anchor: middle; pointer-events: none; }
.map-zoom .btn { justify-self: center; background: #f3ead6; color: #17130e; border-color: #f3ead6; }

/* the map key */
.legend { display: grid; gap: 3px; font-size: .78rem; color: var(--mute); }
.legend ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 4px; color: var(--ink2); }
.legend .sw { width: 16px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.sw.l0 { background: #2a4634; } .sw.l1 { background: #c99a4e; } .sw.l2 { background: #d9ae62; } .sw.l3 { background: #e6c886; } .sw.l4 { background: #efdcae; } .sw.l5 { background: #f6ead0; }

/* controls under the chest */
.controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 10px 12px; margin-top: 6px; }
.pick { display: grid; gap: 2px; font-size: .82rem; color: var(--mute); }
.pick select { min-width: 220px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-size: 1rem; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 8px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); text-decoration: none; cursor: pointer; font-size: .95rem; line-height: 1.2; }
.btn:hover { border-color: var(--ink2); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-strong { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.btn-strong:hover { color: var(--chip-on-ink); }
.ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); color: var(--ink); cursor: pointer; text-decoration: none; }
.snd .x { display: none; } .snd[aria-pressed="false"] .w { display: none; } .snd[aria-pressed="false"] .x { display: inline; }
.mapbtn { display: none; }
@media (max-width: 760px) { .mapbtn { display: inline-flex; } }
.hint { text-align: center; color: var(--ink2); font: italic 400 1.05rem/1.45 var(--serif); max-width: 58ch; margin: 12px auto 0; }
.stage[data-picked="1"] .hint { display: none; }

/* ------------------------------------------------------------ the bed: a woven rug */
.bed { max-width: 1120px; margin: 20px auto 0; padding: 22px 20px 26px; position: relative; }
.bed::before { content: ""; position: absolute; inset: 0 8px; z-index: -1; border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, var(--rug2) 0 8px, var(--rug3) 8px 11px, var(--rug1) 11px calc(100% - 11px), var(--rug3) calc(100% - 11px) calc(100% - 8px), var(--rug2) calc(100% - 8px)); }
.bed::after { content: ""; position: absolute; inset: 16px 26px; z-index: -1; border: 2px dashed rgba(243,234,214,.35); border-radius: 4px; pointer-events: none; }
.bed-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; color: #f3ead6; }
.bed h2 { font: 600 1.5rem/1.1 var(--serif); margin: 0; }
.bed-count { margin: 0; font-size: .98rem; color: #f3ead6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.groups { margin: 14px 0 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(243,234,214,.55); background: #3a110a; color: #f7efdd; cursor: pointer; font-size: .88rem; }
.chip[aria-pressed="true"] { background: #f3ead6; color: #17130e; border-color: #f3ead6; }
.tiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tiles li { will-change: transform; }
.tile { display: grid; width: 100%; padding: 8px 8px 10px; border: 0; border-radius: 3px; background: var(--tile); color: var(--tile-ink); text-align: left; cursor: zoom-in; box-shadow: 0 10px 18px -8px rgba(0,0,0,.6); }
.tile:hover { transform: translateY(-2px); }
.cloth { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e2d6bc; }
.cloth img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cloth.noimg { background: repeating-linear-gradient(45deg, #e2d6bc 0 8px, #d8caa9 8px 16px); }
.cloth.noimg img { visibility: hidden; }
.cloth::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 46%, rgba(0,0,0,.14) 50%, transparent 54%); pointer-events: none; }
.tl { display: grid; gap: 1px; margin-top: 7px; font-size: .86rem; line-height: 1.3; }
.tl b { font-weight: 600; }
.tl i { color: var(--tile-mute); }
.tl small { color: var(--tile-mute); font-size: .8rem; }
.bed-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.bed .btn { background: #f3ead6; color: #17130e; border-color: #f3ead6; }
.bed .btn-strong { background: #17130e; color: #f3ead6; border-color: #f3ead6; }

/* ------------------------------------------------------------ village and name */
.tools { max-width: 1120px; margin: 26px auto 0; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; position: relative; }
.tool h2 { font: 600 1.25rem/1.15 var(--serif); margin: 0 0 10px; }
.tool form { display: flex; gap: 8px; }
.tool input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); font-size: 1rem; }
.tool form button { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--chip-on); background: var(--chip-on); color: var(--chip-on-ink); cursor: pointer; }
.msg { margin: 10px 0 0; color: var(--ink2); font-size: .95rem; }
.v-list { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--chip); max-height: 280px; overflow: auto; }
.v-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.v-list li:hover, .v-list li:focus { background: var(--bg2); outline: none; }
.v-list b { float: right; color: var(--accent); font-weight: 600; }
.tool .chips { margin-top: 10px; }
.tool .chip { border-color: var(--line); background: var(--chip); color: var(--ink); }
.tool .chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.n-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.n-list button { display: grid; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--chip); color: var(--ink); cursor: pointer; font-size: .95rem; }
.n-list i { color: var(--ink2); }
.n-list small { color: var(--mute); font-size: .85rem; }
.tool > .btn { margin-top: 10px; }

/* ------------------------------------------------------------ an object, unfolded */
.sheet { width: min(1060px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 6px; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.sheet::backdrop { background: rgba(10, 8, 6, .72); }
.s-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-height: 94vh; }
.s-img { position: relative; background: #2a211a; overflow: hidden; touch-action: none; cursor: grab; min-height: 300px; }
.s-cloth { width: 100%; height: 100%; display: grid; place-items: center; transform-origin: 50% 0; }
.s-cloth img { max-width: 100%; max-height: 90vh; display: block; transition: transform .08s linear; user-select: none; -webkit-user-drag: none; }
.s-cloth.unfold { animation: unfold .9s cubic-bezier(.3,.7,.2,1) both; }
@keyframes unfold { 0% { transform: scaleX(.42) scaleY(.06); filter: brightness(.6); } 38% { transform: scaleX(1) scaleY(.06); } 100% { transform: none; filter: none; } }
.s-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.s-zoom .ic { background: rgba(243,234,214,.92); color: #17130e; border-color: transparent; font-size: 1.3rem; }
.s-text { padding: 26px 26px 20px; overflow: auto; max-height: 94vh; }
.s-kicker { margin: 0 0 6px; font: 600 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
html:not(.dark) .sheet .s-kicker { color: #8a2410; }
.s-title { font: 600 1.7rem/1.1 var(--serif); margin: 0; padding-right: 36px; }
.s-local { margin: 4px 0 0; font: italic 400 1.15rem/1.3 var(--serif); color: var(--sheet-mute); }
.s-place { margin: 10px 0 0; font-weight: 600; }
.s-coll { display: block; font-weight: 400; font-size: .86rem; color: var(--sheet-mute); }
.s-facts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; font-size: .93rem; color: var(--sheet-ink); }
.s-desc { font-size: .95rem; color: var(--sheet-ink); margin: 12px 0 0; }
.s-note { font-size: .86rem; color: var(--sheet-mute); border-left: 3px solid var(--sheet-line); padding-left: 10px; }
.s-lic { font-size: .84rem; color: var(--sheet-mute); margin: 12px 0 0; }
.s-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet .btn { background: transparent; color: var(--sheet-ink); border-color: var(--sheet-line); }
.s-close { position: absolute; right: 12px; top: 12px; background: var(--sheet); color: var(--sheet-ink); border-color: var(--sheet-line); }
@media (max-width: 760px) {
  .s-wrap { grid-template-columns: 1fr; overflow: auto; }
  .s-img { height: 52vh; min-height: 0; }
  .s-cloth img { max-height: 52vh; }
  .s-text { max-height: none; overflow: visible; }
}

/* ------------------------------------------------------------ reading */
.read { max-width: 700px; margin: 0 auto; padding: 0 20px; }
.read h2 { font: 600 1.6rem/1.15 var(--serif); margin: 2.2em 0 .5em; }
.read p { margin: 0 0 1em; }
.model { margin-top: 2.4em !important; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--card); color: var(--ink2); font-size: .98rem; }
.anchor { margin-left: 8px; color: var(--mute); text-decoration: none; font-size: .8em; opacity: 0; }
h2:hover .anchor, .anchor:focus { opacity: 1; }
.wide { max-width: 1120px; margin: 10px auto 0; padding: 0 20px; }
.entry { width: 100%; height: auto; min-width: 680px; }
.wide { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry .ax { stroke: var(--line); }
.entry .rl { font: 600 15px var(--sans); fill: var(--ink); }
.entry .tl { font: 13px var(--sans); fill: var(--mute); }
.entry .hl { fill: var(--accent); opacity: .08; }
.entry .hlt { font: 600 13px var(--sans); fill: var(--accent); }
.entry .bv { font: 600 12px var(--sans); fill: var(--ink2); }
.entry .b-ms { fill: #b4401e; } .entry .b-astra { fill: #2c6a8a; } .entry .b-met { fill: #6f8a3a; }
html.dark .entry .b-ms { fill: #e07a5f; } html.dark .entry .b-astra { fill: #7fb6d6; } html.dark .entry .b-met { fill: #a9c46a; }
.figcap { font-size: .88rem; color: var(--mute); max-width: 700px; margin: 6px auto 0; }
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a { display: grid; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--card); }
.related span { color: var(--mute); font-size: .92rem; }
.share { margin: 28px 0 0; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-weight: 600; margin-right: 6px; }
.share-msg { min-height: 1.4em; color: var(--mute); font-size: .9rem; }
footer { max-width: 700px; margin: 40px auto 0; padding: 20px 20px 50px; color: var(--mute); font-size: .9rem; border-top: 1px solid var(--line); }
footer p { margin: 0 0 4px; }

@media (max-width: 760px) {
  .scene { --W: min(92vw, 520px); }
  .hero { padding-top: 22px; }
  .stage { padding: 4px 8px 6px; }
  .bed { padding: 18px 12px 22px; }
  .bed::before { inset: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .chest, .lid, .f-stack { transition-duration: .01s !important; }
  .s-cloth.unfold { animation: none; }
}
