/* Room bar (layer/rooms/090), INV-02 Love Letters W2 (A2314): the Rooms part, one bar with two settings. --k-rooms-bar in the
   skin picks it: bubble (still icons, a drop of liquid, --k-rooms-drop) or drift (icons always travel left to right).
   Clear glass, dark words; white words inside the drop (owner 2026-10-31, A2332). The page stays one long scroll until the script runs, so a
   guest without it (Reduce Motion, a failed load) still sees all 12 sections. */
html.rm090-on { --rm090-h: 60px; --rm090-gap: 12px; --rm090-space: calc(var(--rm090-h) + var(--rm090-gap) + env(safe-area-inset-bottom)); }

/* The hero's words stay above the bar. They sit at the top of a fixed-height hero, so nothing shifts when this arrives. */
html.rm090-on .he090 { padding-bottom: calc(clamp(20px, 3.4svh, 40px) + var(--rm090-space)); }

.rm090 { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(var(--rm090-gap) + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 400px); height: var(--rm090-h); margin-inline: auto;
  border-radius: calc(var(--rm090-h) / 2); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .38), rgb(255 255 255 / .24)); -webkit-backdrop-filter: blur(9px) saturate(1.7); backdrop-filter: blur(9px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .4), inset 0 -1px 1px rgb(22 20 18 / .05), 0 0 0 1px rgb(22 20 18 / .07), 0 12px 26px -10px rgb(22 20 18 / .34); animation: rm090-in .5s ease-out; }
@keyframes rm090-in { from { opacity: 0; } }
.rm090__track { position: relative; display: flex; height: 100%; }
.rm090-cell { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--k-ink); font: 500 .71875rem/1 var(--k-font-body); text-shadow: 0 0 6px rgb(255 255 255 / .95), 0 0 2px rgb(255 255 255 / .95); letter-spacing: .03em; -webkit-tap-highlight-color: transparent; transition: color .25s ease; }
.rm090-cell[hidden] { display: none; }
.rm090-cell svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgb(255 255 255 / .95)); stroke-width: 1.7; } /* a soft halo, so dark words stay readable when a dark photo passes behind the glass */
.rm090-cell:focus-visible { outline: 2px solid var(--k-ink); outline-offset: -5px; border-radius: 16px; }
/* The same words in white, cut to the drop's own shape: they turn white exactly where the liquid reaches them */
.rm090__track--on { position: absolute; inset: 0; pointer-events: none; }
.rm090__track--on .rm090-cell { color: var(--k-on-dark); text-shadow: none; }
.rm090__track--on .rm090-cell svg { filter: none; }

/* Bubble bar: the liquid is drawn, and only while it moves */
.rm090__liquid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Drift bar */
.rm090[data-bar="drift"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.rm090[data-bar="drift"] .rm090__liquid { display: none; }
.rm090[data-bar="drift"] .rm090__track { position: absolute; inset: 0 auto 0 0; }
.rm090[data-bar="drift"] .rm090-cell { flex: 0 0 var(--rm090-cell, 70px); width: var(--rm090-cell, 70px); }

/* The end of a room: where next, in the design's own title device */
.rm090-end { display: grid; justify-items: center; gap: 22px; padding: calc(var(--k-section-pad) * .2) var(--k-gutter) calc(var(--k-section-pad) * .7 + var(--rm090-space)); text-align: center; }
.rm090-end--home { padding-top: var(--k-section-pad); }
.rm090-next { display: grid; justify-items: center; gap: .3em; font-size: calc(clamp(64px, 17vw, 128px) * var(--k-ll-z, 1)); color: var(--k-ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.rm090-next__t { position: relative; display: block; margin-bottom: .34em; }
.rm090-next__b { display: block; font: 300 1em/.9 var(--k-font-display); text-transform: uppercase; }
.rm090-next__s { position: absolute; left: 50%; bottom: -.58em; translate: -46% 0; rotate: -5deg; font: 400 .62em/1 var(--k-font-script); font-style: normal; color: var(--k-script-ink, var(--k-ink)); white-space: nowrap; }
.rm090-next__go { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--k-ink); border-radius: 50%; }
.rm090-next__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rm090-next:focus-visible { outline: 2px solid var(--k-ink); outline-offset: 6px; border-radius: 8px; }

/* Changing room: two torn sheets meet, the room changes behind them, they part. Under the bar, which stays in view. */
.rm090-cover { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.rm090-cover__s { position: absolute; left: 0; right: 0; height: 50%; transition: transform .52s var(--k-ease); }
.rm090-cover__s--a { top: 0; transform: translateY(calc(-100% - var(--k-ll-strip, 1000px) * .16)); }
.rm090-cover__s--b { bottom: 0; transform: translateY(calc(100% + var(--k-ll-strip, 1000px) * .16)); }
.rm090-cover__s .k-ll-tear--dn { top: calc(100% - 1px); }
.rm090-cover__s .k-ll-tear--up { bottom: calc(100% - 1px); }
.rm090-cover.is-shut .rm090-cover__s { transform: none; transition: transform .28s cubic-bezier(.5, 0, .75, .4); }

html.rm090-on [data-kjy-section]:focus { outline: 0; }
html.rm090-on .kjy-footer { padding-bottom: calc(var(--rm090-space) + 14px); }
