/* Molano Music rooms: one full-screen room view that opens over the page (rooms.js, rooms.html, rooms.json).
   Colours come only from the page tokens (--mol-*), each with its fallback, so the module also works on its test page.
   While a room is open <html> carries the class "molano-room-open"; the page behind is inert and does not scroll.
   Layers: page menu 20, safe-area cap 30, gate 40, skip link 50, ROOM 55, music bar 60 (the bar stays above the room and usable).
   The room, top to bottom: the top bar (the way back, the mark, the room's name, lying light over the top of the picture), the
   picture, and under the picture a slim rail with the names of the products. A press on a product or on its name opens the
   showcase over the picture (.molano-showcase, last block but one): the top bar and the rail stay above it. NOTHING is drawn on the picture but one small soft
   glint on each product: no ring, no pill, no label. The area that can be pressed is the product's own box, and it is not drawn. */

.molano-room {
  --room-ease: cubic-bezier(.2, .7, .1, 1);
  --room-font-caps: "Tenor Sans", "Optima", "Gill Sans", "Century Gothic", sans-serif;
  --room-font-display: "Marcellus", "Optima", "Palatino Linotype", serif;
  --room-abyss: var(--mol-abyss, #0A0A0B);
  --room-gold: var(--mol-gold, #C6A66F);
  --room-gold-hi: var(--mol-gold-highlight, #EDD39F);
  --room-gold-light: var(--mol-gold-light, #E1C594);
  --room-gold-shadow: var(--mol-gold-shadow, #80674A);
  --room-ember: var(--mol-ember, #FFA53D);
  --room-bar-h: 64px;
  --room-rail-h: calc(44px + env(safe-area-inset-bottom, 0px));
  --room-glass: rgba(10, 10, 11, .74);
  --room-hair: rgba(128, 103, 74, .7);
  position: fixed; inset: 0; z-index: 55;
  box-sizing: border-box; overflow: hidden;
  background: var(--room-abyss); color: var(--room-gold-light);
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .molano-room { --room-glass: color-mix(in srgb, var(--room-abyss) 74%, transparent); --room-hair: color-mix(in srgb, var(--room-gold-shadow) 70%, transparent); }
}
.molano-room[hidden] { display: none; }
.molano-room:focus { outline: none; }   /* the room itself takes focus when it is opened by its address; its controls show their own */
.molano-room *, .molano-room *::before, .molano-room *::after { box-sizing: border-box; }
/* the music bar keeps its place at the bottom: the room ends where the bar begins */
html.molano-player-open .molano-room { bottom: var(--molano-player-h, 96px); --room-rail-h: 44px; }
/* the page behind does not scroll while a room is open (its place is kept) */
html.molano-room-open, html.molano-room-open body { overflow: hidden; }

/* ---------- coming in and going out
   Plain (a room opened by its address, by Back / Forward or by the script): the room fades up.
   From a door: the door bay brightens, warm light spreads from the door over the screen, and the room comes up out of that light (600 ms). */
.molano-room.is-open { opacity: 1; transition: opacity 260ms var(--room-ease); }
.molano-room.is-leaving { opacity: 0; transition: opacity 220ms var(--room-ease); }
.molano-room__light { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--room-door-x, 50%) var(--room-door-y, 50%), #FFE7BE 0, var(--room-ember) 16%, rgba(190, 104, 30, .96) 40%, rgba(70, 36, 12, .98) 68%, var(--room-abyss) 100%); }
.molano-room.is-from-door { opacity: 1; transition: none; animation: molano-room-ground 600ms linear both; }
.molano-room.is-from-door .molano-room__light { animation: molano-room-light 600ms cubic-bezier(.45, 0, .6, 1) both; }
.molano-room.is-from-door .molano-room__view, .molano-room.is-from-door .molano-room__bar, .molano-room.is-from-door .molano-room__rail { animation: molano-room-up 600ms var(--room-ease) both; }
@keyframes molano-room-ground { 0%, 48% { background-color: transparent; } 49%, 100% { background-color: var(--room-abyss); } }
@keyframes molano-room-light {
  0% { opacity: 0; clip-path: circle(var(--room-door-r, 80px) at var(--room-door-x, 50%) var(--room-door-y, 50%)); }
  14% { opacity: 1; }
  50% { opacity: 1; clip-path: circle(125vmax at var(--room-door-x, 50%) var(--room-door-y, 50%)); }
  100% { opacity: 0; clip-path: circle(125vmax at var(--room-door-x, 50%) var(--room-door-y, 50%)); }
}
@keyframes molano-room-up { 0%, 46% { opacity: 0; } 100% { opacity: 1; } }
/* the door itself: its lantern glow goes fully warm while the visitor walks in (the page gives every door bay this glow as ::after) */
[data-molano-room].is-entering::after { opacity: 1 !important; filter: brightness(1.7) saturate(1.15); transition: opacity 160ms linear, filter 240ms linear; }

/* ---------- the picture: fills the room, cropped like object-fit: cover; rooms.js sets its position so the stages stay in view */
.molano-room__view { position: absolute; inset: 0 0 var(--room-rail-h) 0; z-index: 1; overflow: hidden; background: var(--room-abyss); }
/* a picture wider than an upright screen can be dragged sideways (rooms.js); up and down and a pinch stay the browser's */
.molano-room[data-room-pan] .molano-room__view { touch-action: pan-y pinch-zoom; cursor: grab; }
.molano-room[data-room-pan] .molano-room__view.is-dragging { cursor: grabbing; }
.molano-room__view picture { display: contents; }
.molano-room__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%;
  opacity: 0; transition: opacity 320ms var(--room-ease); -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.molano-room__img.is-loaded { opacity: 1; }
/* a layer exactly over the whole picture as it is drawn (rooms.js sizes and places it), so a stage sits at its own percentages */
.molano-room__stages { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ---------- top bar: back to the courtyard, the mark (top of the house), the room's name */
.molano-room__bar { position: absolute; inset: 0 0 auto; z-index: 4; padding-top: env(safe-area-inset-top, 0px); pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 11, .78) 0, rgba(10, 10, 11, .42) 55%, rgba(10, 10, 11, 0) 100%); }
.molano-room__bar-in { position: relative; height: var(--room-bar-h); max-width: 1400px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; pointer-events: auto; }
.molano-room__side { min-width: 0; display: flex; align-items: center; }
.molano-room__side:last-child { justify-content: flex-end; }
/* the way back: plain gold words with a small arrow, no plate round them */
.molano-room__back { -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 4px; border: 0; border-radius: 6px; background: none;
  font-family: var(--room-font-caps); font-size: clamp(12px, 1vw, 15px); font-weight: 400; line-height: 1; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  color: var(--room-gold-light); text-shadow: 0 2px 14px var(--room-abyss), 0 0 3px var(--room-abyss);
  transition: transform 200ms var(--room-ease), color 200ms var(--room-ease); }
.molano-room__back svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 6px var(--room-abyss)); }
.molano-room__back span { margin-right: -.24em; }   /* the letter spacing after the last letter does not count as width */
.molano-room__back:focus-visible { color: var(--room-gold-hi); }
@media (hover: hover) { .molano-room__back:hover { transform: translateX(-3px); color: var(--room-gold-hi); } }
.molano-room__back:active { transform: none; }
.molano-room__home { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: grid; place-items: center; width: 64px; height: 44px; margin-inline: clamp(2px, 1.6vw, 28px); transition: transform 200ms var(--room-ease); }
.molano-room__home svg { width: 40px; height: 36px; filter: drop-shadow(0 2px 10px var(--room-abyss)); }
.molano-room__home:hover, .molano-room__home:focus-visible { transform: translateY(-2px); }
/* the room's name: drawn like a door label */
.molano-room__name { margin: 0; min-height: 44px; display: inline-flex; align-items: center;
  font-family: var(--room-font-caps); font-size: clamp(13px, 1.25vw, 23px); font-weight: 400; line-height: 1; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; white-space: nowrap;
  color: var(--room-gold-light); text-shadow: 0 2px 14px var(--room-abyss), 0 0 3px var(--room-abyss); }
/* the page has its own global :focus-visible rule; shape and offset are repeated here so that rule cannot change them */
.molano-room__back:focus-visible, .molano-room__home:focus-visible, .molano-room__pick:focus-visible { outline: 2px solid var(--room-gold-hi); outline-offset: 3px; }
.molano-room__back:focus-visible, .molano-room__home:focus-visible { border-radius: 6px; }

/* ---------- the products in the picture.
   .molano-room__hit: the product's own box, laid over it in the stage layer. Nothing is drawn; a press opens the product's showcase.
     It is for the pointer and the finger only: the keyboard and a screen reader use the product's name in the rail under the picture.
   .molano-room__glint: the one thing drawn on the picture. A small soft catch of gold light on a highlight the object really has.
     Each fires once, one after the other, as the room comes up (rooms.js adds "is-lit" and the wait before the first one), then
     breathes slowly. It holds steady while its product is pointed at or focused in the rail. No ring, no rays, no star.
     While a showcase is open the glints are off (nothing moves behind it). */
.molano-room__hit { position: absolute; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.molano-room__glint { position: absolute; width: var(--room-glint, 22px); height: var(--room-glint, 22px); margin: calc(var(--room-glint, 22px) / -2) 0 0 calc(var(--room-glint, 22px) / -2);
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle closest-side, #FFF6DF 0, rgba(255, 233, 184, .95) 12%, rgba(255, 214, 140, .6) 30%, rgba(237, 199, 128, .26) 55%, rgba(225, 190, 120, .07) 80%, rgba(225, 190, 120, 0) 100%); }
.molano-room__stages.is-lit .molano-room__glint {
  animation: molano-room-glint-fire 760ms cubic-bezier(.2, .7, .3, 1) both, molano-room-glint-breathe 4.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--room-glint-wait, 0ms) + var(--room-i, 0) * 420ms), calc(var(--room-glint-wait, 0ms) + var(--room-i, 0) * 420ms + 760ms); }
@keyframes molano-room-glint-fire { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.55); } 100% { opacity: .5; transform: scale(1); } }
@keyframes molano-room-glint-breathe { 0% { opacity: .5; transform: scale(1); } 100% { opacity: .9; transform: scale(1.1); } }
.molano-room__stages.is-lit .molano-room__glint.is-held { animation: none; opacity: 1; transform: scale(1.2); transition: opacity 200ms var(--room-ease), transform 200ms var(--room-ease); }
.molano-room.is-showcase .molano-room__stages .molano-room__glint { animation: none; opacity: 0; transition: opacity 200ms linear; }

/* ---------- the showcase: a product presented over the room (rooms.js, "the showcase"; rooms.html).
   The veil dims the room and takes it out of focus. The plate is a stage of the brand's near-black that fills the room between
   the top bar and the rail: no window frame; a gold hairline with a lozenge closes it above and below, and its sides run out
   into the dimmed room. On it: the product's line drawing, large (inline SVG, fitted whole, never cropped); beside it (wide
   screens) or under it (upright screens) the label, the name, the same object cut from the room picture, and the way to the
   other products. Close is the control at the top right, Escape, or a press on the dimmed room. */
.molano-showcase { position: absolute; inset: 0 0 var(--room-rail-h) 0; z-index: 3; display: grid; place-items: center;
  padding: calc(var(--room-bar-h) + env(safe-area-inset-top, 0px) + 4px) 0 14px; }
.molano-showcase[hidden] { display: none; }
.molano-showcase:focus { outline: none; }
.molano-showcase.is-closing { pointer-events: none; }
.molano-showcase__veil { position: absolute; inset: 0; background: rgba(10, 10, 11, .62); -webkit-backdrop-filter: blur(10px) saturate(.85); backdrop-filter: blur(10px) saturate(.85); cursor: pointer; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .molano-showcase__veil { background: rgba(10, 10, 11, .9); } }
.molano-showcase__plate { position: relative; width: min(100% - 2 * clamp(20px, 5vw, 96px), 1560px); height: 100%; max-height: 940px; touch-action: pan-y;
  background: var(--room-abyss);
  box-shadow: 0 0 0 1px rgba(10, 10, 11, .6), 0 0 70px 46px var(--room-abyss);          /* no edge: the stage runs out into the dimmed room */
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); column-gap: clamp(24px, 3.5vw, 64px); align-items: center;
  padding: clamp(22px, 2.6vw, 44px) clamp(28px, 4vw, 72px); }
/* the two hairlines that close the stage above and below: gold that fades out to both sides, a small lozenge in the middle */
.molano-showcase__plate::before, .molano-showcase__plate::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; pointer-events: none;
  background:
    linear-gradient(var(--room-gold), var(--room-gold)) center / 5px 5px no-repeat,
    linear-gradient(90deg, transparent 0, var(--room-gold-shadow) 16%, var(--room-gold) 47%, transparent 48.6%, transparent 51.4%, var(--room-gold) 53%, var(--room-gold-shadow) 84%, transparent 100%) center / 100% 1px no-repeat; }
.molano-showcase__plate::before { top: 0; }
.molano-showcase__plate::after { bottom: 0; }
/* the picture of the object: the drawing, as large as the stage allows */
.molano-showcase__figure { position: relative; align-self: stretch; min-width: 0; min-height: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  translate: var(--sc-lx, 0px) var(--sc-ly, 0px); transition: translate 150ms ease-out; }
.molano-showcase__figure--pair { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); column-gap: clamp(12px, 2vw, 32px); }
.molano-showcase__cell { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.molano-showcase__cell > svg, .molano-showcase__cell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
/* a slow catch of light across the drawing: a second copy of the same drawing, a little brighter, shown only inside a narrow band
   that crosses it. Where the drawing is near-black the copy is near-black too, so the ground does not light up. */
.molano-showcase__cell > img.molano-showcase__sweep { pointer-events: none; filter: brightness(1.3) contrast(1.026);   /* the two numbers together leave the near-black ground (10, 10, 11) where it is */
  -webkit-mask: linear-gradient(105deg, transparent 43%, #000 50%, transparent 57%) no-repeat; mask: linear-gradient(105deg, transparent 43%, #000 50%, transparent 57%) no-repeat;
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 150% 0; mask-position: 150% 0;
  animation: molano-showcase-sweep 9s cubic-bezier(.45, 0, .55, 1) .6s infinite both; }
@keyframes molano-showcase-sweep { 0% { -webkit-mask-position: 150% 0; mask-position: 150% 0; } 27%, 100% { -webkit-mask-position: -50% 0; mask-position: -50% 0; } }
/* beside the picture: the label, the name, the same object as it stands in the room, and the way to the other products */
.molano-showcase__side { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.molano-showcase__label { display: block; line-height: 0; }
.molano-showcase__label img { display: block; height: clamp(96px, 13vh, 150px); width: auto; }
.molano-showcase__orn { position: relative; display: block; height: 7px; width: 132px; margin: 18px auto 14px; }
.molano-showcase__orn::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--room-gold-shadow) 34%, transparent 44%, transparent 56%, var(--room-gold-shadow) 66%, transparent 100%); }
.molano-showcase__orn::after { content: ""; position: absolute; left: 50%; top: 1px; width: 5px; height: 5px; margin-left: -2.5px; transform: rotate(45deg); background: var(--room-gold); }
.molano-showcase__title { max-width: 100%; }
.molano-showcase__name { margin: 0; font-family: var(--room-font-display); font-weight: 400; font-size: clamp(34px, 3.4vw, 60px); line-height: 1.1; letter-spacing: .04em; color: var(--room-gold-hi); }
.molano-showcase__crop { display: block; margin-top: clamp(18px, 3.2vh, 32px); max-width: 100%; padding: 7px; line-height: 0; }
.molano-showcase__crop picture { display: contents; }
.molano-showcase__crop img, .molano-showcase__fly { display: block; outline: 1px solid var(--room-hair); outline-offset: 6px; }
.molano-showcase__crop img { width: auto; height: auto; max-width: 100%; max-height: clamp(110px, 27vh, 290px); }
/* the crop on its way between the object in the room and its place on the stage (rooms.js sets its box and moves it) */
.molano-showcase__fly { position: fixed; left: 0; top: 0; z-index: 6; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.molano-showcase__fly[hidden] { display: none; }
.molano-showcase__pager { display: flex; align-items: center; justify-content: center; margin-top: clamp(14px, 2.6vh, 26px); }
.molano-showcase__dots { display: flex; }
.molano-showcase__step, .molano-showcase__close { -webkit-appearance: none; appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--room-gold);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; transition: color 200ms var(--room-ease); }
.molano-showcase__step svg, .molano-showcase__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* where the visitor is among the products: small lozenges, not controls (the names in the rail and the two arrows are the controls) */
.molano-showcase__dot { width: 32px; height: 44px; display: grid; place-items: center; }
.molano-showcase__dot::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--room-gold-shadow); }
.molano-showcase__dot[data-on]::before { background: var(--room-gold-hi); box-shadow: none; }
.molano-showcase__close { position: absolute; top: 12px; right: 4px; z-index: 2; }
.molano-showcase__step:focus-visible, .molano-showcase__close:focus-visible { outline: 2px solid var(--room-gold-hi); outline-offset: -3px; color: var(--room-gold-hi); }
@media (hover: hover) { .molano-showcase__step:hover, .molano-showcase__close:hover { color: var(--room-gold-hi); } }

/* upright screens: one column; the stage fills the room between the top bar and the rail; the drawing on top, as tall as what is
   left after the words, the crop and the arrows */
@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  .molano-showcase { padding: calc(var(--room-bar-h) + env(safe-area-inset-top, 0px)) 0 0; }
  .molano-showcase__plate { width: 100%; max-height: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: 10px; padding: 14px 16px 6px; box-shadow: none; }
  .molano-showcase__plate::after { display: none; }
  .molano-showcase__figure--pair { grid-template-columns: minmax(0, 1fr); }
  .molano-showcase__figure--pair > .molano-showcase__cell:not(:last-child) { display: none; }
  .molano-showcase__label img { height: 64px; }
  .molano-showcase__orn { margin: 8px auto 6px; }
  .molano-showcase__name { font-size: 28px; }
  .molano-showcase__crop { margin-top: 8px; padding: 5px; }
  .molano-showcase__crop img { max-height: 108px; max-width: 72vw; outline-offset: 4px; }
  .molano-showcase__pager { margin-top: 4px; }
  .molano-showcase__close { top: 8px; right: 4px; }
}
/* a phone on its side: two columns, no crop (there is no room for it) */
@media (orientation: landscape) and (max-height: 500px) {
  .molano-showcase { padding: calc(var(--room-bar-h) + env(safe-area-inset-top, 0px)) 0 0; }
  .molano-showcase__plate { width: 100%; max-height: none; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); grid-template-rows: none; padding: 8px 56px 4px 24px; box-shadow: none; }
  .molano-showcase__plate::after { display: none; }
  .molano-showcase__label img { height: 44px; }
  .molano-showcase__orn { margin: 6px auto 4px; }
  .molano-showcase__name { font-size: 24px; }
  .molano-showcase__crop { display: none; }
  .molano-showcase__pager { margin-top: 2px; }
}

/* ---------- the rail under the picture, off it: the names of the products as plain small gold words. Each is a button: it opens the
   same showcase as a press on the object (the name of the product on show is brighter). Where the names do not fit the width
   (upright phones) the rail scrolls sideways, without a scrollbar, and rooms.js brings the name on show into view.
   .molano-room__where: on a picture that can be dragged, a hairline along the rail's top edge whose brighter part is the part of
   the room that is on screen. */
.molano-room__rail { position: absolute; inset: auto 0 0 0; z-index: 4; height: var(--room-rail-h); padding-bottom: calc(var(--room-rail-h) - 44px);
  background: var(--room-abyss); box-shadow: inset 0 1px 0 rgba(128, 103, 74, .38); }
.molano-room__rail[hidden] { display: none; }
.molano-room__names { list-style: none; margin: 0; padding: 0 8px; height: 44px; display: flex; align-items: stretch; gap: clamp(2px, 2.4vw, 34px);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.molano-room__names::-webkit-scrollbar { display: none; }
.molano-room__names li { flex: none; display: flex; align-items: center; margin: 0; padding: 0; }
.molano-room__names li:first-child { margin-left: auto; }   /* centred while the names fit; from the left edge, all reachable, when they do not */
.molano-room__names li:last-child { margin-right: auto; }
.molano-room__names li + li::before { content: ""; flex: none; width: 4px; height: 4px; margin-right: clamp(2px, 2.4vw, 34px); transform: rotate(45deg); background: var(--room-gold-shadow); opacity: .8; }
.molano-room__pick { -webkit-appearance: none; appearance: none; margin: 0; padding: 0 12px; min-width: 44px; height: 44px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font-family: var(--room-font-caps); font-size: clamp(11.5px, .9vw, 13.5px); font-weight: 400; line-height: 1; letter-spacing: .28em; text-indent: .28em; text-transform: uppercase; white-space: nowrap;
  color: var(--room-gold); transition: color 200ms var(--room-ease); }
.molano-room__pick[aria-expanded="true"] { color: var(--room-gold-hi); }
.molano-room__pick:focus-visible { color: var(--room-gold-hi); outline-offset: -5px; }
@media (hover: hover) { .molano-room__pick:hover { color: var(--room-gold-hi); } }
.molano-room__where { position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; }
.molano-room__where[hidden] { display: none; }
.molano-room__where span { position: absolute; top: 0; height: 1px; left: 0; width: 30%; background: var(--room-gold); box-shadow: 0 0 6px rgba(237, 211, 159, .45); }

@media (max-width: 760px) {
  .molano-room { --room-bar-h: 56px; }
  .molano-room__back { padding: 0 10px 0 0; gap: 4px; font-size: 11.5px; letter-spacing: .14em; }
  .molano-room__back svg { width: 18px; height: 18px; }
  .molano-room__back span { margin-right: -.14em; }
  .molano-room__home { width: 48px; margin-inline: 4px; }
  .molano-room__pick { padding: 0 8px; letter-spacing: .2em; text-indent: .2em; }
}

/* the narrowest phones: the mark sits beside the back control (it cannot be at the exact middle and leave room for both) */
@media (max-width: 339px) { .molano-room__bar-in { grid-template-columns: auto auto minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .molano-room.is-open, .molano-room.is-leaving, .molano-room__img, .molano-room__back, .molano-room__home, .molano-room__pick,
  [data-molano-room].is-entering::after { transition: none; }
  .molano-room.is-from-door, .molano-room.is-from-door .molano-room__light, .molano-room.is-from-door .molano-room__view, .molano-room.is-from-door .molano-room__bar,
  .molano-room.is-from-door .molano-room__rail { animation: none; }
  .molano-room.is-showcase .molano-room__stages .molano-room__glint { transition: none; opacity: 0; }
  .molano-showcase__cell > img.molano-showcase__sweep { display: none; }   /* the drawing is still: no light, no lean */
  .molano-showcase__figure { translate: none; transition: none; }
  .molano-showcase__step, .molano-showcase__close { transition: none; }
  /* the glints do not move: each is simply there, still and quiet, and a little brighter while its product is pointed at or open */
  .molano-room__stages.is-lit .molano-room__glint { animation: none; opacity: .7; }
  .molano-room__stages.is-lit .molano-room__glint.is-held { opacity: 1; transform: none; transition: none; }
  .molano-room__back:hover, .molano-room__home:hover, .molano-room__home:focus-visible { transform: none; }
  .molano-map, .molano-map__shape, .molano-map__name { transition: none; }
}

/* ---------- depth (2.5D): one canvas over the picture, the size of the view (rooms.js draws the same picture through it, its
   planes slid a little against each other). It comes up over the plain picture once its first frame is there; with reduced
   motion, data saving or no WebGL it is never made and the plain picture is all there is. */
.molano-room__depth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 200ms linear; }
.molano-room__depth.is-on { opacity: 1; }
.molano-room__img { transform-origin: 0 0; }
.molano-room__hit, .molano-room__glint { will-change: translate; }

/* ---------- a room without products (2026-11-26: the salon, the stair): no rail, the picture runs to the foot of the room */
.molano-room.is-bare .molano-room__view, .molano-room.is-bare .molano-showcase { bottom: 0; }

/* ---------- the house map (2026-11-26; rooms.html, rooms.js, rooms_partial.py): the approved plan in the house's gold line on black.
   Open rooms lit and linked, the others a dim line with their names; the room the visitor is in carries a small ember lozenge. */
.molano-map {
  --map-gold: var(--mol-gold, #C6A66F); --map-hi: var(--mol-gold-highlight, #EDD39F); --map-shadow: var(--mol-gold-shadow, #80674A);
  --map-ember: var(--mol-ember, #FFA53D); --map-abyss: var(--mol-abyss, #0A0A0B);
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  display: grid; place-items: start center; padding: 0 16px 24px;
  color: var(--map-hi); opacity: 0; transition: opacity 260ms ease;
  -webkit-tap-highlight-color: transparent;
}
.molano-map[hidden] { display: none; }
.molano-map.is-open { opacity: 1; }
html.molano-map-open { overflow: hidden; }
.molano-map *, .molano-map *::before, .molano-map *::after { box-sizing: border-box; }
.molano-map__veil { position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(60, 44, 22, .55) 0, rgba(10, 10, 11, .96) 62%), var(--map-abyss); }
.molano-map__frame { position: relative; z-index: 1; width: min(100%, 1240px); margin: 0 auto; }
.molano-map__head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px;
  background: linear-gradient(to bottom, var(--map-abyss) 0, var(--map-abyss) 60%, rgba(10, 10, 11, 0) 100%); }
.molano-map__side { display: flex; justify-content: flex-end; }
.molano-map__title { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--room-font-caps, "Tenor Sans", "Optima", sans-serif); font-weight: 400; font-size: 13px; line-height: 1; letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--map-gold); }
.molano-map__title svg { width: 40px; height: 36px; filter: drop-shadow(0 2px 10px var(--map-abyss)); }
.molano-map__close { appearance: none; background: none; border: 0; padding: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--map-gold); border-radius: 6px; }
.molano-map__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.molano-map__close:hover { color: var(--map-hi); }
.molano-map__close:focus-visible { outline: 2px solid var(--map-hi); outline-offset: 2px; }
.molano-map__plan { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; padding-top: 8px; }
.molano-map__level { margin: 0; position: relative; padding-top: 18px; }
.molano-map__level::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(to right, rgba(198, 166, 111, 0), var(--map-gold) 20%, var(--map-gold) 80%, rgba(198, 166, 111, 0)); opacity: .55; }
.molano-map__level figcaption { margin: 0 0 12px; text-align: center; font-family: var(--room-font-caps, "Tenor Sans", sans-serif); font-size: 11.5px; line-height: 1;
  letter-spacing: .32em; text-transform: uppercase; color: var(--map-gold); }
.molano-map__floor { display: block; width: 100%; height: auto; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow: visible; }
.molano-map__shape { fill: rgba(198, 166, 111, .025); stroke: var(--map-shadow); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill 220ms ease, stroke 220ms ease; }
.molano-map__room.is-air .molano-map__shape { fill: none; stroke-dasharray: 3 5; }
.molano-map__pool { fill: rgba(22, 64, 104, .38); stroke: rgba(127, 208, 224, .38); stroke-width: 1; vector-effect: non-scaling-stroke; }
.molano-map__name { fill: #9A8460; font-family: var(--room-font-caps, "Tenor Sans", sans-serif); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-anchor: middle; }
.molano-map__name.is-big { font-size: 18px; }
.molano-map__name.is-small { font-size: 13px; }
.molano-map__here { fill: none; }
.molano-map__wall { fill: none; stroke: var(--map-gold); stroke-opacity: .42; stroke-width: 1; vector-effect: non-scaling-stroke; }
.molano-map__orn { fill: var(--map-abyss); stroke: var(--map-gold); stroke-opacity: .7; stroke-width: 1; vector-effect: non-scaling-stroke; }
a.molano-map__room { cursor: pointer; outline: none; }
a.molano-map__room .molano-map__shape { fill: rgba(198, 166, 111, .12); stroke: var(--map-gold); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(237, 211, 159, .35)); }
a.molano-map__room .molano-map__name { fill: var(--map-hi); }
a.molano-map__room:hover .molano-map__shape, a.molano-map__room:focus-visible .molano-map__shape { fill: rgba(237, 211, 159, .3); stroke: var(--map-hi); }
a.molano-map__room:focus-visible .molano-map__shape { stroke: #fff; stroke-width: 2.4; }
a.molano-map__room[aria-current="page"] .molano-map__shape { stroke: var(--map-hi); stroke-width: 2.4; }
a.molano-map__room[aria-current="page"] .molano-map__here { fill: var(--map-ember); filter: drop-shadow(0 0 5px var(--map-ember)); }

/* the House control at the doors (the home page): one small word in the door-label style, under the arcade */
.molano-map-call-row { display: flex; justify-content: center; padding: 18px 16px 6px; background: var(--mol-abyss, #0A0A0B); }
.molano-map-call { appearance: none; background: none; border: 0; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 14px;
  font-family: var(--font-caps, var(--room-font-caps, "Tenor Sans", sans-serif)); font-size: clamp(13px, 1.1vw, 18px); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase;
  color: var(--mol-gold, #C6A66F); transition: color 240ms ease, transform 240ms ease; }
.molano-map-call::before, .molano-map-call::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.molano-map-call:hover, .molano-map-call:focus-visible { color: var(--mol-gold-highlight, #EDD39F); transform: translateY(-2px); }
.molano-map-call:focus-visible { outline: 2px solid var(--mol-gold-highlight, #EDD39F); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 760px) {
  .molano-map__head { min-height: 64px; }
  .molano-map__plan { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .molano-map__floor { max-height: none; }
  .molano-map__name { font-size: 21px; letter-spacing: .04em; }
  .molano-map__name.is-big { font-size: 26px; letter-spacing: .08em; }
  .molano-map__name.is-small { font-size: 19px; }
  .molano-map__level--upper .molano-map__name { font-size: 16px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { .molano-map-call, .molano-map-call:hover, .molano-map-call:focus-visible { transition: none; transform: none; } }
