/* The Room window, the Compass window, the Scene window and the phone's room strip
   (room.js). Same ink, parchment and gilt as the other windows. */

#room, #compass, #scene {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: var(--ink-high);
  border: 1px solid var(--gilt);
  box-shadow: var(--shadow);
  overflow: hidden;
  resize: both;
  font-family: var(--chrome-font);
  font-size: var(--chrome-size);
  color: var(--parchment);
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
}
#room { width: min(420px, calc(100vw - 16px)); height: min(560px, calc(100vh - 40px)); min-width: 200px; min-height: 120px; }
#compass { width: 200px; height: 210px; min-width: 150px; min-height: 170px; }
#scene { width: 320px; height: 150px; min-width: 160px; min-height: 70px; }
#room[hidden], #compass[hidden], #scene[hidden], #room-strip[hidden] { display: none; }
#room.front, #compass.front, #scene.front { z-index: 7; }
#room:focus, #compass:focus, #scene:focus { outline: none; }
#room > header, #compass > header, #scene > header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 2px 10px;
  color: var(--gilt);
  border-bottom: 1px solid var(--rule);
  cursor: move;
  touch-action: none;
  user-select: none;
}
#room-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
/* The Scene window: the picture fills it, cropped to its shape (sky.js),
   with its words inside along the foot on a soft dark fade. */
.scene-body { flex: 1; min-height: 0; position: relative; container-type: size; }
.scene-body > .sky-scene { position: absolute; inset: 0; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.scene-body > .sky-scene[hidden], .scene-caption[hidden], .scene-empty[hidden] { display: none; }
.scene-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 10px 5px;
  background: linear-gradient(to bottom, transparent, rgb(8 6 4 / 0.55) 45%, rgb(8 6 4 / 0.78));
  color: #f1e8d4; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
  font: italic 14px/1.3 "Spectral", Georgia, serif;
  pointer-events: none;
}
.scene-caption > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@container (max-height: 110px) { .scene-caption { font-size: 12px; padding: 12px 8px 3px; } .scene-caption > span { -webkit-line-clamp: 1; } }
/* too small for words: the picture alone (its words are its tooltip) */
@container (max-height: 60px) { .scene-caption { display: none; } }
.scene-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; }
.compass-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px; }
/* Locked in place (layout.js .lay-locked): the compass is the bare rose
   with a soft shadow, only its slices taking clicks; the scene is the bare
   picture with its thin gilt edge, its words inside. */
#compass.lay-locked > .compass-body { pointer-events: none; }
#compass.lay-locked .r-b { pointer-events: auto; }
#compass.lay-locked .rose3-dial { border-radius: 50%; box-shadow: 0 8px 26px rgb(0 0 0 / 0.6); }
#scene.lay-locked > .scene-body { pointer-events: none; }
#scene.lay-locked .scene-body > .sky-scene { pointer-events: auto; border: 1px solid var(--gilt); border-radius: 2px; box-shadow: 0 0 0 2px var(--ink-high), 0 0 0 3px color-mix(in srgb, var(--gilt) 40%, transparent), 0 8px 26px rgb(0 0 0 / 0.6); }
.room-muted { color: var(--muted); margin: 0; }
.room-sky { color: var(--muted); font-style: italic; margin: 0; font-family: "Spectral", Georgia, serif; font-size: 14px; line-height: 1.35; flex: 1; min-width: 0; }
#room-title { display: flex; min-width: 0; }
.room-title-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
.room-title-area { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: pre; flex: 0 10 auto; }
/* A context that isn't live (M5: a builder's private ledit view): a frame
   that can't be missed (docs/layers-on-the-map.md §4). */
#room[data-context] { outline: 2px solid var(--warn); outline-offset: -2px; }
#room[data-context] > header { color: var(--warn); }
#room[data-editing] { outline-style: double; outline-width: 4px; }

/* The Room window's shapes (room.js fitShape; owner 2026-11-13, mockups A
   to F), set on the body as data-shape. C, about square, is the default:
   the rose and the scene side by side, then the description, then who is
   here. The content's column is never wider than 760px, centred (F). The
   scene crops to its box and never stretches (sky.js); its words are
   inside it along its foot. */
.room-body { container-type: inline-size; }
.room-inner { width: 100%; max-width: 760px; margin: 0 auto; flex: none; display: flex; flex-direction: column; gap: 12px; }
.room-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.room-top.unseen { grid-template-columns: minmax(0, 1fr); }
/* C, side by side: the rose's dial (not the dial and its caption under it)
   is centred against the scene (owner 2026-11-13). The scene's column
   keeps the caption's height (its line and the gap) free below it, so the
   two centres meet. */
.room-body[data-shape="C"] .room-top:not(.unseen) > .room-side { margin-bottom: calc(14px * 1.3 + 4px); }
.room-side { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#room .rose3 { width: var(--rose, 176px); margin: 0; }
#room .room-top .sky-scene { height: var(--scene-h, 124px); }
.room-scene { position: relative; min-width: 0; }
.room-scene > .room-sky {
  position: absolute; left: 1px; right: 1px; bottom: 1px; margin: 0; padding: 18px 9px 4px;
  background: linear-gradient(to bottom, transparent, rgb(8 6 4 / 0.55) 45%, rgb(8 6 4 / 0.78));
  color: #f1e8d4; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8); font-size: 13.5px; line-height: 1.3;
  pointer-events: none;
}
.room-sky > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-here { display: flex; flex-direction: column; gap: 8px; }
.room-here-label { display: none; }
.room-readall { align-self: flex-start; font: inherit; font-size: 0.95em; color: var(--gilt); background: none; border: 0; padding: 0; cursor: pointer; }
.room-readall:hover, .room-readall:focus-visible { color: var(--gilt-bright); text-decoration: underline; outline: none; }
.room-readall[hidden] { display: none; }
.room-desc-group { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.room-desc-group > .room-desc { align-self: stretch; }

/* C, wide (owner 2026-11-21): the scene a picture's width; the
   description wraps under the rose and the scene, no wider than they are;
   who is here is a column down the whole right side, as long as the room
   has things in it. */
.room-body[data-shape="C"][data-wide="1"] .room-inner { display: grid; grid-template-columns: var(--top-w, 464px) minmax(0, 1fr); grid-template-areas: "top here" "desc here"; grid-template-rows: auto 1fr; column-gap: 18px; row-gap: 12px; align-items: start; }
.room-body[data-shape="C"][data-wide="1"] .room-top { grid-area: top; grid-template-columns: auto var(--scene-w, 300px); }
.room-body[data-shape="C"][data-wide="1"][data-parts="scene"] .room-top { grid-template-columns: var(--scene-w, 300px); }
.room-body[data-shape="C"][data-wide="1"] .room-top:not(.unseen) > .room-side { margin-bottom: 0; }
.room-body[data-shape="C"][data-wide="1"] .room-desc-group { grid-area: desc; min-width: 0; }
.room-body[data-shape="C"][data-wide="1"] .room-here { grid-area: here; min-width: 0; }
.room-body[data-shape="C"][data-wide="1"] .room-list.chips { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }

/* D, narrow and tall, and E, very narrow: stacked, the scene across the
   top and the rose centred under it. */
.room-body[data-shape="D"] .room-top, .room-body[data-shape="E"] .room-top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.room-body[data-shape="D"] .room-top .rose3, .room-body[data-shape="E"] .room-top .rose3 { order: 2; justify-self: center; }
/* E: the area under the name, a thin scene, the description clamped with
   Read all, and one "Here" list. */
#room[data-shape="E"] > header { align-items: flex-start; padding-top: 4px; padding-bottom: 4px; }
#room[data-shape="E"] #room-title { flex-direction: column; line-height: 1.2; }
#room[data-shape="E"] .room-title-sep { display: none; }
#room[data-shape="E"] .room-title-area { font-size: 0.9em; }
.room-body[data-shape="E"] { padding: 8px 9px 10px; }
.room-body[data-shape="E"] .room-sky > span { -webkit-line-clamp: 1; }
.room-body[data-shape="E"] .room-sky { font-size: 12.5px; padding: 12px 7px 3px; }
.room-body[data-shape="E"] .room-here-label { display: block; }
.room-body[data-shape="E"] .room-list.chips { flex-direction: column; flex-wrap: nowrap; }
.room-body[data-shape="E"] .room-list.chips .room-entry { width: 100%; }
.room-body:is([data-shape="B"], [data-shape="E"]) .room-fold { display: none; }
.room-body[data-shape="E"] .room-desc:not(.all) { max-height: calc(7 * 1.45em); overflow: hidden; }
.room-body[data-shape="B"] .room-desc:not(.all) { max-height: calc(3 * 1.45em); overflow: hidden; }

/* A, the wide strip, and B, very wide and short: one row, never a
   scrollbar on the window: the rose fits the height, the scene a fixed
   width, the description its own column (its lines capped), who is here a
   narrow column. */
.room-body:is([data-shape="A"], [data-shape="B"]) { overflow: hidden; padding: 8px 12px 8px 8px; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-inner { max-width: none; flex: 1 1 auto; min-height: 0; flex-direction: row; align-items: stretch; justify-content: center; gap: 16px; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-top { display: contents; }
.room-body:is([data-shape="A"], [data-shape="B"]) .rose3 { align-self: center; }
.room-body:is([data-shape="A"], [data-shape="B"]) .rose3-cap { display: none !important; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-side { flex: none; width: var(--scene-w, 400px); position: relative; justify-content: center; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-conds { position: absolute; top: 4px; right: 4px; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-cond-tip { position: absolute; top: 34px; left: 4px; right: 4px; width: auto; z-index: 1; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-desc-group { flex: 1 1 0; max-width: 68ch; overflow: auto; padding-right: 4px; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-here { flex: none; width: var(--here-w, 230px); overflow: auto; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-list.chips .room-entry { font-size: 0.92em; padding: 1px 7px; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-desc { line-height: 1.4; }
.room-body[data-shape="B"] { padding: 4px 12px 4px 8px; }
.room-body[data-shape="B"] .room-inner { align-items: center; gap: 14px; }
.room-body[data-shape="B"] .room-desc-group { align-self: stretch; }
/* centred up and down while it fits, scrolling from its top when it doesn't */
.room-body[data-shape="B"] .room-desc-group > :first-child { margin-top: auto; }
.room-body[data-shape="B"] .room-desc-group > :last-child { margin-bottom: auto; }
.room-body[data-shape="B"] .room-here { max-height: 100%; justify-content: center; }
.room-body[data-shape="B"] .room-sky > span { -webkit-line-clamp: 1; }
.room-body[data-shape="B"] .room-sky { font-size: 12.5px; padding: 12px 7px 3px; }

/* The sky: a window of leaded glass (sky.js). Motion stops when reduced. */
.sky-scene { position: relative; height: 124px; overflow: hidden; border: 1px solid var(--gilt); border-radius: 2px; background: #040406; box-shadow: 0 0 0 2px var(--ink-high), 0 0 0 3px color-mix(in srgb, var(--gilt) 40%, transparent); }
.sky-scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-fx, .sky-flash { position: absolute; inset: 0; pointer-events: none; }
/* Every loop here ends as it began, and sky.js runs them all on the page's
   one clock, so neither a loop's end nor a redraw shows a jump
   (tools/web/sky-loops-test.mjs). Hail is a 16 px tile that falls four
   tiles down and one across a loop (about 40 px/s, as before): whole tiles
   both ways, so the wrap can't be seen. */
.sky-hail { background-image: radial-gradient(1.6px 1.6px at 30% 20%, #f4f6f8 70%, transparent 72%), radial-gradient(1.6px 1.6px at 75% 60%, #f4f6f8 70%, transparent 72%); background-size: 16px 16px; animation: sky-hail 1.6s linear infinite; }
.sky-flash { background: #f4f1e6; opacity: 0; animation: sky-flash 7s infinite; }
.sky-scene .sky-bolt { opacity: 0; animation: sky-bolt 7s infinite; }
.sky-scene .sky-drift { animation: sky-drift 30s ease-in-out infinite alternate; }
.sky-scene .sky-twinkle { animation: sky-twinkle 2.6s ease-in-out infinite alternate; }
.sky-scene .sky-flicker { animation: sky-twinkle 0.9s ease-in-out infinite alternate; }
/* The rain painted on the glass, and the flakes and beads: a slow shimmer of
   light along their edges that travels across the panes (sky.js glassWork). */
.sky-scene .sky-glint { opacity: 0.35; animation: sky-glint 6s ease-in-out infinite; }
/* The rain's lead strokes fall along their slant, one pane's height a loop
   (sky.js glassWork: each stroke is drawn again one and two slants up, so
   the layer repeats exactly along this move: 124 down, 124 x 0.24 across). */
.sky-scene .sky-rainfall { animation: sky-rainfall 4.6s linear infinite; }
@keyframes sky-rainfall { from { transform: translate(0, 0); } to { transform: translate(-29.76px, 124px); } }
@keyframes sky-glint { 0%, 100% { opacity: 0.3; } 45% { opacity: 0.95; } 60% { opacity: 0.55; } }
@keyframes sky-hail { to { background-position: -16px 64px; } }
/* Snow (sky.js snowfall): the flakes on a canvas of their own; the snow on
   the land and at the window's foot builds up over the time sky.js gives
   it (a negative delay carries on from the last redraw). */
.sky-scene > canvas.sky-snowfall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky-scene .sky-snowbuild { animation: sky-snowbuild 600s linear both; }
@keyframes sky-snowbuild { from { transform: var(--from, translateY(0)); } }
@keyframes sky-flash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 0.45; } 88% { opacity: 0.05; } 89.5% { opacity: 0.3; } 91% { opacity: 0; } }
@keyframes sky-bolt { 0%, 86%, 92%, 100% { opacity: 0; } 87%, 91% { opacity: 1; } }
@keyframes sky-drift { from { transform: translateX(-10px); } to { transform: translateX(10px); } }
@keyframes sky-twinkle { from { opacity: 0.6; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sky-fx, .sky-scene .sky-drift, .sky-scene .sky-twinkle, .sky-scene .sky-flicker, .sky-scene .sky-glint, .sky-scene .sky-rainfall, .sky-scene .sky-snowbuild { animation: none; }
  .sky-scene .sky-glint { opacity: 0.7; }
  .sky-flash { animation: none; opacity: 0; }
  .sky-scene .sky-bolt { animation: none; opacity: 1; }
}

/* Software rendering (gpu.js; play.js puts .aa-gpu-soft on <html>): the
   slow shimmers stand still at their middle, the rain and hail fall in
   fewer steps and the snow builds up in steps, so far fewer repaints and
   much the same look. Each loop still ends as it began. */
.aa-gpu-soft .sky-scene .sky-drift, .aa-gpu-soft .sky-scene .sky-twinkle, .aa-gpu-soft .sky-scene .sky-flicker, .aa-gpu-soft .sky-scene .sky-glint { animation: none; }
.aa-gpu-soft .sky-scene .sky-glint { opacity: 0.55; }
.aa-gpu-soft .sky-scene .sky-twinkle, .aa-gpu-soft .sky-scene .sky-flicker { opacity: 0.85; }
.aa-gpu-soft .sky-scene .sky-rainfall { animation-timing-function: steps(32); }
.aa-gpu-soft .sky-hail { animation-timing-function: steps(12); }
.aa-gpu-soft .sky-scene .sky-snowbuild { animation-timing-function: steps(60); }

/* The room's conditions: danger filled, a rule outlined, safe quiet. */
.room-conds { display: flex; flex-wrap: wrap; gap: 3px; }
.room-cond { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 26px; height: 26px; padding: 0 3px; border: 1px solid transparent; border-radius: 2px; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.room-cond .ic { width: 16px; height: 16px; }
.room-cond.rule { color: var(--parchment); border-color: var(--rule); background: var(--ink); }
.room-cond.danger { color: var(--ink); background: var(--ember); border-color: var(--ember); }
.room-cond.no::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.6px; background: currentColor; transform: rotate(-45deg); box-shadow: 0 0 0 1px var(--ink); }
.room-cond:hover, .room-cond:focus-visible, .room-cond[aria-expanded="true"] { outline: 1px solid var(--gilt-bright); outline-offset: 1px; }
.room-cond-n { font-family: "Marcellus", serif; font-size: 11px; line-height: 1; }
.room-cond-tip { margin: 0; padding: 5px 8px; border: 1px solid var(--gilt); border-radius: 2px; background: var(--ink); color: var(--parchment); font-family: "Spectral", Georgia, serif; font-size: 13px; line-height: 1.4; width: 100%; }
@media (pointer: coarse) { .room-cond { min-width: 36px; height: 36px; } }

/* More than four in a group: compact chips. */
.room-list.chips { flex-direction: row; flex-wrap: wrap; gap: 4px 5px; }
.room-list.chips .room-entry { width: auto; border-color: var(--rule); background: var(--ink); padding: 2px 8px; }
.room-list.chips .room-entry:hover, .room-list.chips .room-entry:focus-visible { border-color: var(--gilt); }

/* The phone strip: the sky's glyphs before the room's name. */
.strip-name { display: inline-flex; align-items: center; gap: 4px; }
.sky-glyph { width: 16px; height: 16px; flex: none; color: var(--gilt); }

/* The compass rose, design C3 "Astrolabe" (rose.js; arcana
   docs/compass-rose.md): eight wedges tiling a disc, Up and Down in the
   split centre, an engraved instrument over them and a rule that swings to
   the last step. Every colour is a --rose-* property the core works out
   from the theme's tokens (held to its contrast floor); every shape is in a
   200-unit box. A direction with no exit stays drawn, dashed, so nothing
   moves under the pointer. */
.rose3 { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(180px, 100%); margin: 0 auto; flex: none; }
.rose3-dial { position: relative; width: 100%; aspect-ratio: 1; container-type: inline-size; }
.rose3-dial > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rose3-cap { display: none; min-height: 1.3em; font-family: "Spectral", Georgia, serif; font-style: italic; font-size: 14px; line-height: 1.3; color: var(--rose-caption); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#room .rose3-cap, #compass.lay-pinned .rose3-cap { display: block; }
.r-disc { fill: var(--rose-ground); stroke: var(--rose-rim); }
/* A slice's fill, and (in a layer over every mark) its outline. The
   marks' clearings take the slice's fill too. */
.r-fill, .r-sign-clear { fill: var(--rose-ground); }
.r-w.live .r-fill, .r-w.live .r-sign-clear { fill: var(--rose-face); }
.r-w.live.hover .r-fill, .r-w.live.hover .r-sign-clear { fill: var(--rose-face-hover); }
.r-w.live.press .r-fill, .r-w.live.press .r-sign-clear { fill: var(--rose-face-pressed); }
.r-edge { fill: none; stroke: var(--rose-none-edge); stroke-width: 0.9; stroke-dasharray: 2.4 2.4; stroke-linejoin: round; }
.r-w.live .r-edge { stroke: var(--rose-edge); stroke-width: 1.2; stroke-dasharray: none; }
.r-w.live.hover .r-edge { stroke: var(--rose-edge-hover); stroke-width: 1.8; }
.r-w.wrong .r-edge { stroke: var(--rose-wrong); stroke-width: 1.8; stroke-dasharray: none; }
.r-inner { fill: none; stroke: var(--rose-inner); stroke-linejoin: round; display: none; }
.r-w.live:not(.r-hub) .r-inner { display: inline; }
.r-limb, .r-stars { fill: var(--rose-limb); }
.r-stars { opacity: 0.9; }
.r-ring { fill: none; stroke: var(--rose-ring); }
.r-rete { fill: none; stroke: var(--rose-limb); opacity: 0.85; }
.r-needle { transform-box: view-box; transform-origin: 100px 100px; transition: transform 280ms cubic-bezier(.2, .7, .2, 1); }
.r-needle-body, .r-needle-vanes { fill: var(--rose-needle); }
@media (prefers-reduced-motion: reduce) { .r-needle { transition: none; } }
.r-chev { fill: none; stroke: var(--rose-none-letter); stroke-linecap: round; stroke-linejoin: round; }
.r-hubtext { fill: var(--rose-none-letter); font-family: "Marcellus", Georgia, serif; }
.r-hub.live .r-chev { stroke: var(--rose-letter); }
.r-hub.live .r-hubtext { fill: var(--rose-letter); }
.r-hub.live.hover .r-chev { stroke: var(--rose-letter-hover); }
.r-hub.live.hover .r-hubtext { fill: var(--rose-letter-hover); }
.r-hub.live.press .r-chev { stroke: var(--rose-letter-pressed); }
.r-hub.live.press .r-hubtext { fill: var(--rose-letter-pressed); }
.r-hub.wrong .r-chev { stroke: var(--rose-wrong); }
.r-hub.wrong .r-hubtext { fill: var(--rose-wrong); text-decoration: line-through; }
/* The marks, engraved in the limb's ink with no disc: signs on the tick
   ring (doors) and the inner ring (movement), pictures beside Up's and
   Down's word; "can't go" in the danger colour. */
.r-sign-ink { fill: none; stroke: var(--rose-limb); stroke-linecap: round; stroke-linejoin: round; }
.r-sign.bad .r-sign-ink { stroke: var(--rose-wrong); }
.r-hg-fill { fill: var(--rose-limb); }
.r-hg-stroke { fill: none; stroke: var(--rose-limb); stroke-linecap: round; stroke-linejoin: round; }
.r-hub-mark.bad .r-hg-fill { fill: var(--rose-wrong); }
.r-hub-mark.bad .r-hg-stroke { stroke: var(--rose-wrong); }
.r-hg-hole { fill: var(--rose-ground); }
.r-w.live .r-hg-hole { fill: var(--rose-face); }
.r-w.live.hover .r-hg-hole { fill: var(--rose-face-hover); }
.r-w.live.press .r-hg-hole { fill: var(--rose-face-pressed); }
/* the phone strip's emblems keep the small picture in its disc */
.r-mark { color: var(--rose-mark); }
.r-mark.good { color: var(--rose-mark-good); }
.r-mark.bad { color: var(--rose-wrong); }
.r-mark-disc { fill: var(--rose-ground); stroke: currentColor; stroke-width: 1; }
.r-ink-fill { fill: currentColor; }
.r-ink-hole { fill: var(--rose-ground); }
.r-ink-stroke { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.r-focus-under { fill: none; stroke: var(--rose-ground); stroke-linejoin: round; }
.r-focus { fill: none; stroke: var(--rose-focus); stroke-linejoin: round; }
.r-lbl { position: absolute; transform: translate(-50%, -50%); line-height: 1; pointer-events: none; white-space: nowrap; letter-spacing: 0.03em; font-family: "Marcellus", Georgia, serif; color: var(--rose-none-letter); }
.r-lbl.card { font-size: max(10px, 10cqi); }
.r-lbl.between { font-size: max(10px, 7.2cqi); }
.r-lbl.live { color: var(--rose-letter); }
.r-lbl.live.hover { color: var(--rose-letter-hover); }
.r-lbl.live.press { color: var(--rose-letter-pressed); }
.r-lbl.wrong { color: var(--rose-wrong); text-decoration: line-through; }
.r-b { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: default; -webkit-tap-highlight-color: transparent; }
.r-b.live { cursor: pointer; }
.r-b:focus { outline: none; }
/* Sizes: the Room window (above), pinned and as a phone sheet larger; the
   Compass window fills itself. */
#room.sheet .rose3 { width: 200px; }
.compass-body { container-type: size; }
#compass .rose3 { width: min(100cqw, 100cqh); }
#compass.lay-pinned .rose3 { width: min(100cqw, calc(100cqh - 24px)); }

/* The phone strip's exits: an emblem of the slice, its letters, its mark. */
.rose-dir {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: inherit;
  font-family: "Marcellus", Georgia, serif;
  color: var(--rose-letter);
  background: var(--rose-face);
  border: 1px solid var(--rose-edge);
  border-radius: 2px;
  cursor: pointer;
  padding: 0 6px;
}
.rose-dir:hover { border-color: var(--rose-edge-hover); color: var(--rose-letter-hover); background: var(--rose-face-hover); }
.rose-dir:active { background: var(--rose-face-pressed); color: var(--rose-letter-pressed); }
.rose-dir:focus-visible { outline: 2px solid var(--rose-focus); outline-offset: 1px; }
.r-emblem { width: 22px; height: 22px; flex: none; overflow: visible; }
.r-em-face { fill: var(--rose-edge); }
.r-em-chev { fill: none; stroke: var(--rose-edge); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.room-group h3 { font-family: "Marcellus", serif; font-weight: 400; font-size: 0.95em; color: var(--muted); margin: 0 0 4px; }
.room-fold { font: inherit; font-family: "Marcellus", serif; font-size: 0.95em; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.room-fold::before { content: "▾ "; }
.room-fold[aria-expanded="false"]::before { content: "▸ "; }
.room-fold:hover, .room-fold:focus-visible { color: var(--gilt); outline: none; }
.room-desc { margin-top: 4px; line-height: 1.45; }
.room-desc p { margin: 0 0 0.5em; }
.room-desc pre { font-family: var(--font); font-size: 13px; white-space: pre; overflow-x: auto; margin: 0; }
.room-desc.folded > :not(:first-child) { display: none; }
/* The description as the game's document: prose in the body font, drawn
   blocks in the game font, lists with their own markers. Folded, only its
   first plain line shows; open, only the document. */
/* Sizes follow the game window's text size (15px at its default 14). */
.room-desc.doc { font-family: var(--prose-font, "Spectral", Georgia, serif); font-size: calc(var(--size, 14px) * 15 / 14); }
.room-desc.doc:not(.folded) > .room-doc-first { display: none; }
.room-desc.doc.folded > .room-doc-first { display: -webkit-box; }
.room-desc.doc p { margin: 0 0 0.5em; }
.room-desc.doc pre { font-family: var(--font); font-size: calc(var(--size, 14px) * 13 / 14); white-space: pre; overflow-x: auto; margin: 0 0 0.5em; }
.room-desc.doc ul, .room-desc.doc ol { margin: 0 0 0.5em; }
.room-desc.doc b, .room-desc.doc strong { font-weight: 600; }
.room-desc.doc a { color: var(--gilt); }
.room-desc.doc img { max-width: 100%; height: auto; }
.room-desc.folded > :first-child { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.room-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.room-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--parchment);
  background: none;
  border: 1px solid transparent;
  padding: 3px 6px;
  cursor: pointer;
}
.room-entry:hover, .room-entry:focus-visible { border-color: var(--gilt); outline: none; }
.room-entry-note { color: var(--muted); font-size: 0.9em; }
.room-entry.foe .room-entry-name { color: var(--ember); }
.room-entry.foe .room-entry-name::before { content: "⚔ "; }
.room-menu { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 6px 6px 18px; }
.room-menu button { font: inherit; font-size: 0.95em; color: var(--parchment); background: var(--ink); border: 1px solid var(--rule); padding: 3px 10px; cursor: pointer; }
.room-menu button:hover, .room-menu button:focus-visible { border-color: var(--gilt); color: var(--gilt); outline: none; }

/* The phone's strip just below the command line: the room's name (opens the
   window as a sheet) and its exits, large enough to tap. */
#room-strip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--ink-high);
  border-top: 1px solid var(--rule);
  font-family: var(--chrome-font);
  font-size: var(--chrome-size);
  overflow-x: auto;
}
#room-strip .strip-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: var(--gilt); background: none; border: 0; padding: 0 4px; min-height: 44px; cursor: pointer; text-align: left; }
#room-strip .strip-exits { display: flex; gap: 4px; flex: none; }
#room-strip .rose-dir { min-width: 44px; height: 44px; }

/* On a phone the room window is a sheet from the bottom. */
#room.sheet {
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  height: min(70vh, 560px) !important;
  max-width: none;
  resize: none;
  border-width: 1px 0 0;
  z-index: 8;
}
#room.sheet > header { cursor: default; }
@media (pointer: coarse) {
  .room-entry { min-height: 44px; align-items: center; }
  .room-menu button { min-height: 44px; }
}
#settings label.sub-setting { margin-left: 22px; }
/* With the layout on a phone, the open room window is the strip; the
   window itself shows only as the sheet, and the compass not at all. */
body.lay-phone #room:not(.sheet) { display: none !important; }
body.lay-phone #compass, body.lay-phone #scene { display: none !important; }

/* The direction words on the game's exits line: links that walk that way,
   in the row's own colours, quiet until pointed at. */
a.go { color: inherit; cursor: pointer; text-decoration: underline dotted 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a.go:hover { text-decoration-style: solid; text-decoration-color: currentColor; }
a.go:focus-visible { outline: 1px solid var(--gilt); outline-offset: 1px; text-decoration-style: solid; }

/* A look's document (Content.Show) drawn in the game output over its plain
   rows, which stay in the scrollback for triggers, search and the log. */
#lines > .rows > .show-cont, #tail-lines > .rows > .show-cont { display: none; }
/* A room's description drawn as its Room.Info doc the same way; the blank
   row the game ends it with hides with the rest, so the gap stays here. */
.show-doc.room-1 > .quill-show, .show-doc.room-1 > .aa-show { padding-bottom: 0.7em; }
/* The room's creatures and things (the rows from Room.Look "contents" to the
   next label, room-3) and its track, gate and wall lines (Room.Look "more",
   room-4) in the body font the drawn description uses, each game line still
   one row, its colours and bold as sent. A picture stays mono. */
#lines:not(.fixed-game) > .rows > div.room-3:not(.art), #tail-lines:not(.fixed-game) > .rows > div.room-3:not(.art),
#lines:not(.fixed-game) > .rows > div.room-4:not(.art), #tail-lines:not(.fixed-game) > .rows > div.room-4:not(.art) { font-family: var(--prose-font, "Spectral", Georgia, serif); font-size: calc(var(--size, 14px) * 15 / 14); line-height: var(--prose-lh, inherit); text-rendering: optimizeLegibility; }
/* A numbered row's "[ 3]" in the game font, so the numbers line up. */
.room-count { font-family: var(--font); font-size: var(--size, 14px); white-space: pre; }
/* Prose font and spacing from Settings (--prose-font, --prose-lh); a drawn
   description never gets tighter than its own 1.45. */
.quill-show, .aa-show { white-space: normal; font-family: var(--prose-font, "Spectral", Georgia, serif); font-size: calc(var(--size, 14px) * 15 / 14); line-height: max(1.45, var(--prose-lh, 1.45)); text-rendering: optimizeLegibility; padding: 2px 0 4px; max-width: 80ch; }
.quill-show p, .aa-show p { margin: 0 0 0.4em; }
/* Ordinary command output sent as a document (Content.Show "out", gmcp.md
   §3A.4; today the utter lines, their runes drawn): one game line in the
   body font, the row's own height, no block spacing. With "Fixed-width game
   window" it keeps the game font like every other line. */
.quill-show:has(> .quill-out) { padding: 0; max-width: none; line-height: var(--prose-lh, inherit); }
.quill-out p { margin: 0; }
:is(#lines, #tail-lines).fixed-game .quill-show:has(> .quill-out) { font-family: var(--font); font-size: var(--size, 14px); line-height: inherit; }
/* "Fixed-width game window" (owner 2026-11-14: "some of the stuff is still
   variable"): drawn room descriptions and every other document in the game
   window take the game font, size and row too; only notices keep their strip. */
:is(#lines, #tail-lines).fixed-game .quill-show:not(:has(.quill-notice)), :is(#lines, #tail-lines).fixed-game .aa-show { font-family: var(--font); font-size: var(--size, 14px); line-height: var(--row); text-rendering: auto; max-width: none; }
/* A notice from the game (Quill <notice>, quill.md §3.11; system
   announcements, design A): a full-width strip between two thin rules in
   its colour type (--qc, set per theme by play.js), a faint tint behind
   it; a small line of bell, label in small capitals and who sent it, then
   the words larger and semibold. The same in the game window and the chat
   window. */
.quill-notice { --qn: var(--qc, var(--gilt-bright)); color: var(--qn); margin: 7px 0; padding: 6px 0 7px;
  border-top: 1px solid color-mix(in srgb, var(--qn) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--qn) 55%, transparent);
  background: color-mix(in srgb, var(--qn) 6%, transparent); font-family: "Spectral", Georgia, serif; white-space: normal; }
.quill-notice-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; line-height: 1.3; }
.quill-notice-icon { width: 14px; height: 14px; flex: none; }
.quill-notice-label { font-family: "Marcellus", Georgia, serif; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.quill-notice-by { font-size: 12px; color: var(--muted); }
.quill-notice-body { font-size: 1.14em; font-weight: 600; line-height: 1.3; margin-top: 1px; overflow-wrap: anywhere; }
.quill-notice-body > :is(p, ul, ol, h2, blockquote, pre) { margin: 0 0 0.3em; }
.quill-notice-body > :last-child { margin-bottom: 0; }
/* In the game window it runs edge to edge of the rows. */
.quill-show .quill-notice { margin-inline: -8px; padding-inline: 8px; }
.quill-show p:last-child, .aa-show p:last-child { margin-bottom: 0; }
.quill-show pre, .aa-show pre { font-family: var(--font); font-size: inherit; white-space: pre; margin: 0 0 0.4em; }
.room-desc.doc pre, .quill-show pre, .aa-show pre { line-height: 1.35; }
.quill-show strong, .quill-show b, .aa-show strong, .aa-show b { font-weight: 600; }
.quill-show a, .aa-show a { color: var(--gilt); }
.quill-show img, .aa-show img { max-width: 100%; height: auto; }
.quill-show ul, .quill-show ol, .aa-show ul, .aa-show ol { margin: 0 0 0.4em; padding-left: 1.3em; }
/* a list nested in an item (quill.md §3.5): under the item's text, no gap */
:is(.quill-show, .aa-show, .room-desc.doc) li > :is(ul, ol) { margin: 0.1em 0 0.15em; padding-left: 1.2em; }
/* Quill <h> and <grid> in the game window and the help window (quill.md
   §3.10): a real table in the body font, numbers right-aligned in tabular
   figures, every column but the last on one line; wider than the window it
   scrolls in its own box. A grid taller than its window shows a page at a
   time with a pager line under it (gridpager.js, generic). */
.quill-show .quill-h { font-family: "Marcellus", serif; font-weight: 400; color: var(--verdigris, var(--gilt)); font-size: 1.15em; margin: 0.2em 0 0.3em; }
.quill-show:has(.quill-grid) { max-width: none; }
:is(#help-page, .quill-show) .quill-grid-wrap { overflow-x: auto; max-width: 100%; margin: 0.2em 0 0.5em; }
:is(#help-page, .quill-show) .quill-grid { border-collapse: collapse; line-height: 1.45; }
:is(#help-page, .quill-show) .quill-grid :is(td, th) { border: 0; border-top: 1px solid var(--rule); padding: 0.18em 1.2em 0.18em 0; vertical-align: top; text-align: left; font-weight: normal; }
:is(#help-page, .quill-show) .quill-grid :is(td, th):not(:last-child) { white-space: nowrap; }
:is(#help-page, .quill-show) .quill-grid :is(td, th):last-child { padding-right: 0; }
:is(#help-page, .quill-show) .quill-grid tbody tr:first-child > * { border-top: 0; }
:is(#help-page, .quill-show) .quill-grid th { font-family: "Marcellus", serif; color: var(--muted); letter-spacing: 0.03em; }
:is(#help-page, .quill-show) .quill-grid thead th { border-bottom: 1px solid var(--rule); vertical-align: bottom; }
:is(#help-page, .quill-show) .quill-grid .quill-r { text-align: right; font-variant-numeric: tabular-nums; }
:is(#help-page, .quill-show) .quill-grid .quill-m { text-align: center; font-variant-numeric: tabular-nums; }
/* <grid compact lines labels> (quill.md §3.10, owner 2026-11-14): a grid
   that lays things out. Compact: tight, as wide as its content; lines
   head / none: fewer rules; labels: the first column muted, body font. */
:is(#help-page, .quill-show) .quill-grid.quill-grid-compact :is(td, th) { padding: 0.05em 0.7em 0.05em 0; }
:is(#help-page, .quill-show) .quill-grid.quill-grid-compact :is(td, th):last-child { padding-right: 0; min-width: 0; }
:is(#help-page, .quill-show) .quill-grid.quill-grid-lines-none :is(td, th) { border: 0; }
:is(#help-page, .quill-show) .quill-grid.quill-grid-lines-head tbody :is(td, th) { border-top: 0; }
:is(#help-page, .quill-show) .quill-grid.quill-grid-labels tbody th[scope="row"] { font-family: inherit; font-size: inherit; letter-spacing: normal; color: var(--muted); }
:is(#help-page, .quill-show) .quill-grid-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.9em; margin: 0 0 0.6em; font-family: "Marcellus", serif; color: var(--muted); }
:is(#help-page, .quill-show) .quill-grid-pager button { font: inherit; color: var(--gilt); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.1em 0.7em; cursor: pointer; }
:is(#help-page, .quill-show) .quill-grid-pager button:hover:not(:disabled) { border-color: var(--gilt); }
:is(#help-page, .quill-show) .quill-grid-pager button:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
:is(#help-page, .quill-show) .quill-grid-pager button:focus-visible { outline: 1px solid var(--gilt); outline-offset: 1px; }
/* The pager's filter box (owner 2026-11-13): framed like the pager's
   buttons; its <filter> placeholder italic gold, fixed width, faint
   brackets (the standing placeholder rule, as the chat composer's). */
:is(#help-page, .quill-show) .quill-grid-pager button[hidden] { display: none; }
:is(#help-page, .quill-show) .quill-grid-filter { position: relative; flex: 0 1 12em; min-width: 7em; display: inline-flex; align-self: stretch; }
:is(#help-page, .quill-show) .quill-grid-filter input { width: 100%; min-width: 0; box-sizing: border-box; font: 13px/1.5 "JetBrains Mono", monospace; color: var(--parchment); background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 0.1em 0.5em; margin: 0; }
:is(#help-page, .quill-show) .quill-grid-filter input:hover { border-color: color-mix(in srgb, var(--gilt) 50%, var(--rule)); }
:is(#help-page, .quill-show) .quill-grid-filter input:focus { outline: none; border-color: var(--gilt); }
:is(#help-page, .quill-show) .quill-grid-ph { position: absolute; left: calc(0.5em + 1px); top: 50%; transform: translateY(-50%); pointer-events: none; white-space: nowrap; font: italic 13px/1.5 "JetBrains Mono", monospace; color: var(--arg); }
:is(#help-page, .quill-show) .quill-grid-ph i { font-style: inherit; opacity: 0.45; }
:is(#help-page, .quill-show) .quill-grid-ph[hidden] { display: none; }
/* <p align>: a sign's centred title, a letter's signature (quill). */
.quill-show .quill-center, .room-desc.doc .quill-center, .aa-show .aa-center, .room-desc.doc .aa-center { text-align: center; }
.quill-show .quill-right, .room-desc.doc .quill-right, .aa-show .aa-right, .room-desc.doc .aa-right { text-align: right; }
/* <quote> and margins (quill, markup.md §4; owner 2026-11-12): someone
   else's words set in from both sides with a thin gold rule, in the help
   window, the rich editor (.re-doc), looks and room descriptions. A margin
   step is 5 telnet columns (quill-ml-K / quill-mr-K); a margin never takes more
   than a fifth of a narrow window. */
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-quote, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-quote {
  --quill-l: 1; --quill-r: 1;
  margin: 0.3em min(calc(var(--quill-r) * 2.5em), 20%) 0.6em min(calc(var(--quill-l) * 2.5em), 20%);
  padding: 0.4em 0.8em;
  border-left: 3px solid var(--gilt);
  /* a raised panel, like the website's syntax callouts (owner 2026-11-15);
     a tint of the text colour so it lifts on every colour scheme */
  background: color-mix(in srgb, currentColor 6%, transparent);
  border-radius: 2px;
  /* the normal text colour, upright (owner 2026-11-12) */
  color: inherit;
  font-style: normal;
}
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-quote > :last-child, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-quote > :last-child { margin-bottom: 0; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-indent, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-indent { margin-left: min(calc(var(--quill-l) * 2.5em), 20%); }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-0, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-0 { --quill-l: 0; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-1, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-1 { --quill-l: 1; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-2, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-2 { --quill-l: 2; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-3, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-3 { --quill-l: 3; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-4, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-4 { --quill-l: 4; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-5, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-5 { --quill-l: 5; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-6, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-6 { --quill-l: 6; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-7, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-7 { --quill-l: 7; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-ml-8, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-ml-8 { --quill-l: 8; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-0, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-0 { --quill-r: 0; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-1, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-1 { --quill-r: 1; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-2, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-2 { --quill-r: 2; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-3, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-3 { --quill-r: 3; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-4, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-4 { --quill-r: 4; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-5, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-5 { --quill-r: 5; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-6, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-6 { --quill-r: 6; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-7, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-7 { --quill-r: 7; }
:is(#help-page, .re-doc, .quill-show, .room-desc.doc) .quill-mr-8, :is(#help-page, .re-doc, .aa-show, .room-desc.doc) .aa-mr-8 { --quill-r: 8; }
.quill-show .quill-c-bold, .room-desc.doc .quill-c-bold, .aa-show .aa-c-bold, .room-desc.doc .aa-c-bold { font-weight: 600; }
.quill-show .quill-fg-black, .room-desc.doc .quill-fg-black, .aa-show .aa-fg-black, .room-desc.doc .aa-fg-black { color: var(--i0); } .quill-show .quill-fg-black.quill-bright, .room-desc.doc .quill-fg-black.quill-bright, .aa-show .aa-fg-black.aa-bright, .room-desc.doc .aa-fg-black.aa-bright { color: var(--i8); }
.quill-show .quill-bg-black, .room-desc.doc .quill-bg-black, .aa-show .aa-bg-black, .room-desc.doc .aa-bg-black { background: var(--f0); }
.quill-show .quill-fg-red, .room-desc.doc .quill-fg-red, .aa-show .aa-fg-red, .room-desc.doc .aa-fg-red { color: var(--i1); } .quill-show .quill-fg-red.quill-bright, .room-desc.doc .quill-fg-red.quill-bright, .aa-show .aa-fg-red.aa-bright, .room-desc.doc .aa-fg-red.aa-bright { color: var(--i9); }
.quill-show .quill-bg-red, .room-desc.doc .quill-bg-red, .aa-show .aa-bg-red, .room-desc.doc .aa-bg-red { background: var(--f1); }
.quill-show .quill-fg-green, .room-desc.doc .quill-fg-green, .aa-show .aa-fg-green, .room-desc.doc .aa-fg-green { color: var(--i2); } .quill-show .quill-fg-green.quill-bright, .room-desc.doc .quill-fg-green.quill-bright, .aa-show .aa-fg-green.aa-bright, .room-desc.doc .aa-fg-green.aa-bright { color: var(--i10); }
.quill-show .quill-bg-green, .room-desc.doc .quill-bg-green, .aa-show .aa-bg-green, .room-desc.doc .aa-bg-green { background: var(--f2); }
.quill-show .quill-fg-yellow, .room-desc.doc .quill-fg-yellow, .aa-show .aa-fg-yellow, .room-desc.doc .aa-fg-yellow { color: var(--i3); } .quill-show .quill-fg-yellow.quill-bright, .room-desc.doc .quill-fg-yellow.quill-bright, .aa-show .aa-fg-yellow.aa-bright, .room-desc.doc .aa-fg-yellow.aa-bright { color: var(--i11); }
.quill-show .quill-bg-yellow, .room-desc.doc .quill-bg-yellow, .aa-show .aa-bg-yellow, .room-desc.doc .aa-bg-yellow { background: var(--f3); }
.quill-show .quill-fg-blue, .room-desc.doc .quill-fg-blue, .aa-show .aa-fg-blue, .room-desc.doc .aa-fg-blue { color: var(--i4); } .quill-show .quill-fg-blue.quill-bright, .room-desc.doc .quill-fg-blue.quill-bright, .aa-show .aa-fg-blue.aa-bright, .room-desc.doc .aa-fg-blue.aa-bright { color: var(--i12); }
.quill-show .quill-bg-blue, .room-desc.doc .quill-bg-blue, .aa-show .aa-bg-blue, .room-desc.doc .aa-bg-blue { background: var(--f4); }
.quill-show .quill-fg-purple, .room-desc.doc .quill-fg-purple, .aa-show .aa-fg-purple, .room-desc.doc .aa-fg-purple { color: var(--i5); } .quill-show .quill-fg-purple.quill-bright, .room-desc.doc .quill-fg-purple.quill-bright, .aa-show .aa-fg-purple.aa-bright, .room-desc.doc .aa-fg-purple.aa-bright { color: var(--i13); }
.quill-show .quill-bg-purple, .room-desc.doc .quill-bg-purple, .aa-show .aa-bg-purple, .room-desc.doc .aa-bg-purple { background: var(--f5); }
.quill-show .quill-fg-cyan, .room-desc.doc .quill-fg-cyan, .aa-show .aa-fg-cyan, .room-desc.doc .aa-fg-cyan { color: var(--i6); } .quill-show .quill-fg-cyan.quill-bright, .room-desc.doc .quill-fg-cyan.quill-bright, .aa-show .aa-fg-cyan.aa-bright, .room-desc.doc .aa-fg-cyan.aa-bright { color: var(--i14); }
.quill-show .quill-bg-cyan, .room-desc.doc .quill-bg-cyan, .aa-show .aa-bg-cyan, .room-desc.doc .aa-bg-cyan { background: var(--f6); }
.quill-show .quill-fg-white, .room-desc.doc .quill-fg-white, .aa-show .aa-fg-white, .room-desc.doc .aa-fg-white { color: var(--i7); } .quill-show .quill-fg-white.quill-bright, .room-desc.doc .quill-fg-white.quill-bright, .aa-show .aa-fg-white.aa-bright, .room-desc.doc .aa-fg-white.aa-bright { color: var(--i15); }
.quill-show .quill-bg-white, .room-desc.doc .quill-bg-white, .aa-show .aa-bg-white, .room-desc.doc .aa-bg-white { background: var(--f7); }

/* A and B with too little room for the description: it goes (the game
   window has it); the rose, the scene and who is here keep their places. */
.room-body[data-nodesc="1"] :is(.room-desc-group, .room-desc, .room-readall, .room-fold) { display: none; }

/* The Room window without its rose or its scene (DECISIONS §51): while the
   Compass or the Scene window is on screen beside it, the body's
   data-parts is "rose" (the rose only), "scene" (the scene only) or "none".
   Without the scene its words and the room's badges are a small line
   (.room-light) above the description. */
.room-light { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.room-light > .room-sky { flex: 1 1 12em; font-size: 13.5px; }
.room-light > .room-conds { flex: none; }
.room-light > .room-cond-tip { flex-basis: 100%; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-light > .room-conds { position: static; }
.room-body:is([data-shape="A"], [data-shape="B"]) .room-light > .room-cond-tip { position: static; width: auto; }
.room-body:is([data-shape="B"], [data-shape="E"]) .room-light > .room-sky { font-size: 12.5px; }
.room-body:is([data-shape="B"], [data-shape="E"]) .room-light > .room-sky > span { -webkit-line-clamp: 1; }

/* The scene only: across the whole column in C, D and E (no rose beside
   it, so nothing to centre against). */
.room-body[data-parts="scene"] .room-top { grid-template-columns: minmax(0, 1fr); }
.room-body[data-parts="scene"][data-shape="C"] .room-top > .room-side { margin-bottom: 0; }

/* The rose only. C: the rose on the left, the light line and the
   description beside it, who is here across the foot. D and E: the rose
   centred at the top, the rest under it. */
.room-body[data-parts="rose"] .room-top { grid-template-columns: auto; justify-content: center; }
.room-body[data-parts="rose"][data-shape="C"] .room-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "rose light" "rose desc" "here here"; column-gap: 18px; row-gap: 8px; align-items: start;
}
.room-body[data-parts="rose"][data-shape="C"] .room-top { display: contents; }
.room-body[data-parts="rose"][data-shape="C"] .rose3 { grid-area: rose; }
.room-body[data-parts="rose"][data-shape="C"] .room-light { grid-area: light; }
.room-body[data-parts="rose"][data-shape="C"] .room-desc-group { grid-area: desc; }
.room-body[data-parts="rose"][data-shape="C"] .room-here { grid-area: here; margin-top: 4px; }
.room-body[data-parts="rose"][data-shape="C"]:not(:has(.room-light)) .room-inner { grid-template-areas: "rose desc" "rose desc" "here here"; }

/* A and B, the strip, with no scene: columns for the rose (when there),
   the description with the light line over it, and who is here; the
   description takes what the others leave (fitDesc still drops it when
   that is too narrow). */
.room-body:is([data-shape="A"], [data-shape="B"]):is([data-parts="rose"], [data-parts="none"]) .room-inner {
  display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, auto) minmax(0, 1fr); column-gap: 16px; row-gap: 0; justify-content: center; align-items: start;
}
.room-body:is([data-shape="A"], [data-shape="B"])[data-parts="rose"] .room-inner { grid-template-columns: auto minmax(0, 68ch) var(--here-w, 230px); grid-template-areas: "rose . here" "rose light here" "rose desc here" "rose . here"; }
.room-body:is([data-shape="A"], [data-shape="B"])[data-parts="none"] .room-inner { grid-template-columns: minmax(0, 68ch) var(--here-w, 300px); grid-template-areas: ". here" "light here" "desc here" ". here"; }
.room-body:is([data-shape="A"], [data-shape="B"]):is([data-parts="rose"], [data-parts="none"]) .rose3 { grid-area: rose; }
.room-body:is([data-shape="A"], [data-shape="B"]):is([data-parts="rose"], [data-parts="none"]) .room-light { grid-area: light; margin-bottom: 4px; }
.room-body:is([data-shape="A"], [data-shape="B"]):is([data-parts="rose"], [data-parts="none"]) .room-desc-group { grid-area: desc; max-width: none; }
.room-body:is([data-shape="A"], [data-shape="B"]):is([data-parts="rose"], [data-parts="none"]) .room-here { grid-area: here; width: auto; align-self: center; max-height: 100%; }
.room-body:is([data-shape="A"], [data-shape="B"]):is([data-parts="rose"], [data-parts="none"]):not(:has(.room-light)) .room-desc-group { grid-row: 2 / 4; }
.room-body[data-shape="B"]:is([data-parts="rose"], [data-parts="none"]) .room-desc-group > :first-child { margin-top: 0; }
/* (nobody and nothing here: no column for them) */
.room-body:is([data-shape="A"], [data-shape="B"])[data-parts="rose"]:not(:has(.room-here)) .room-inner { grid-template-columns: auto minmax(0, 68ch); grid-template-areas: "rose ." "rose light" "rose desc" "rose ."; }
.room-body:is([data-shape="A"], [data-shape="B"])[data-parts="none"]:not(:has(.room-here)) .room-inner { grid-template-columns: minmax(0, 68ch); grid-template-areas: "." "light" "desc" "."; }
/* With neither part the strip's content starts at the left (owner
   2026-11-14: "align left"), not centred. */
.room-body:is([data-shape="A"], [data-shape="B"])[data-parts="none"] .room-inner { justify-content: start; }
/* B, the ribbon, is too short for a line over the description: the light
   line is a narrow column of its own before it. */
.room-body[data-shape="B"]:is([data-parts="rose"], [data-parts="none"]) .room-inner { grid-template-rows: minmax(0, 1fr); align-items: center; }
.room-body[data-shape="B"][data-parts="rose"] .room-inner { grid-template-columns: auto fit-content(15em) minmax(0, 68ch) var(--here-w, 230px); grid-template-areas: "rose light desc here"; }
.room-body[data-shape="B"][data-parts="none"] .room-inner { grid-template-columns: fit-content(15em) minmax(0, 68ch) var(--here-w, 300px); grid-template-areas: "light desc here"; }
.room-body[data-shape="B"][data-parts="rose"]:not(:has(.room-here)) .room-inner { grid-template-columns: auto fit-content(15em) minmax(0, 68ch); grid-template-areas: "rose light desc"; }
.room-body[data-shape="B"][data-parts="none"]:not(:has(.room-here)) .room-inner { grid-template-columns: fit-content(15em) minmax(0, 68ch); grid-template-areas: "light desc"; }
.room-body[data-shape="B"]:is([data-parts="rose"], [data-parts="none"]) .room-light { margin-bottom: 0; }
.room-body[data-shape="B"]:is([data-parts="rose"], [data-parts="none"]) .room-desc-group { grid-row: auto; align-self: stretch; }
.room-body .room-light > .room-sky { padding: 0; }

/* The two smallest shapes, B (the short ribbon) and E (the narrow column),
   show no description: the game window has it (owner 2026-11-14, "Drop the
   description", replacing their clamped few lines and "Read all"). */
.room-body:is([data-shape="B"], [data-shape="E"]) :is(.room-desc-group, .room-desc, .room-readall) { display: none; }
