/* fae-rooms · what the rooms leave in her chronicle, in the chronicle's own hand.
   nothing here restyles fae.exe; it only dresses what the rooms add. */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+French+Canon:ital@1&display=swap');

/* voices that join her: the same tiny label, the same dotted margin she keeps */
#chat .cl.rm .cn .pen { letter-spacing: 1px; opacity: .72; }
#chat .cl.rm.guest .cbody { border-left: 1px dotted rgba(194, 67, 127, .38); padding-left: 11px; }
html.fae-h-night #chat .cl.rm.guest .cbody { border-left-color: rgba(240, 168, 208, .32); }
#chat .cl.rm.guest.crown .cbody { border-left-style: double; border-left-width: 3px; }
#chat .cl.rm.house { border-bottom-style: none; padding-bottom: 2px; margin-bottom: 6px; }
#chat .cl.rm.house .cbody { color: var(--ink-dim); font-style: italic; }
html:not(.fae-h-night) #chat .cl.rm.house .cbody { color: #a0708c; }
#chat .cl.rm.quiet .cbody { color: var(--ink-dim); font-style: italic; }
#chat .rm-tun { color: var(--ink-dim); font-style: italic; margin: 6px 0; }
#chat .rm-tun .d { animation: dots 1.4s steps(4) infinite; display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; width: 0; }
#chat .rm-tun .tt, #chat .rw-status .tt { opacity: .6; font-style: normal; }

/* works: what the rooms make, kept in the log */
#chat .cl.rm.work .cbody.rw { white-space: normal; }
#chat .cl.rm.work.fae .cbody.rw { border-left: 1px dotted rgba(194, 67, 127, .38); padding-left: 11px; }
html.fae-h-night #chat .cl.rm.work.fae .cbody.rw { border-left-color: rgba(240, 168, 208, .32); }
#chat .rw-status { color: var(--ink-dim); font-style: italic; font-size: .92em; }
#chat .cl.rm .rw-status[hidden] { display: none; }
#chat .rw .title {
  font-family: 'IM Fell French Canon', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: normal;
  font-size: 1.32em; line-height: 1.12; margin: 10px 0 3px; color: var(--ink); letter-spacing: .005em;
}
#chat .rw .poem { white-space: pre-wrap; color: var(--ink); }
#chat .rw .meta { color: var(--ink-dim); font-size: .8em; margin-top: 3px; }
#chat .cl.rm .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
#chat .cl.rm .hint { color: var(--ink-dim); font-size: .8em; margin-top: 3px; }
#chat .cl.rm.work.fae > .acts, #chat .cl.rm.work.fae > .hint, #chat .cl.rm.work.fae > .rw-status, #chat .cl.rm.fae.ask > .acts { padding-left: 12px; }
#chat .rbtn, #chat a.rbtn { display: inline-block; padding: 3px 11px; font-size: 15px; line-height: 1.3; text-decoration: none; }
#chat .rbtn:disabled { opacity: .45; cursor: default; }

#chat .rw .ascii {
  font: 11px/1 'VT323', monospace; letter-spacing: 0; white-space: pre; overflow-x: auto; overflow-y: hidden;
  margin: 8px 0 2px; padding: 2px 0; color: var(--ink); scrollbar-width: none;
}
#chat .rw .ascii::-webkit-scrollbar { display: none; }

#chat .rw .plate {
  display: block; max-width: min(100%, 460px); height: auto; margin-top: 8px;
  border: 1px solid #d894b8; box-shadow: 0 0 0 3px #fff0f7, 0 0 0 4px #d87aa8, 6px 7px 0 rgba(180, 60, 120, .2);
  opacity: 0; transition: opacity 1.2s ease;
}
html.fae-h-night #chat .rw .plate { border-color: #1c081a; box-shadow: 0 0 0 3px #3f1e3a, 0 0 0 4px #6e2f5e, 6px 7px 0 rgba(0, 0, 0, .4); }
#chat .rw .plate.in { opacity: 1; }

#chat .rw .stage3d {
  position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1; margin-top: 8px;
  border: 1px dashed rgba(176, 61, 116, .4); touch-action: none; cursor: grab;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .45), transparent 70%);
}
html.fae-h-night #chat .rw .stage3d { border-color: rgba(255, 158, 203, .3); background: radial-gradient(ellipse at 50% 40%, rgba(232, 144, 184, .12), transparent 70%); }
#chat .rw .stage3d:active { cursor: grabbing; }
#chat .rw .stage3d canvas, #chat .rw .stage3d img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#chat .rw .stage3d .load { position: absolute; left: 10px; bottom: 6px; color: var(--ink-dim); font-size: .82em; font-style: italic; pointer-events: none; }

#chat .rw .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 12px; margin-top: 10px; }
#chat .rw .cards figure { margin: 0; }
#chat .rw .cards img { width: 100%; height: auto; display: block; border: 1px solid #d894b8; opacity: 0; transform: translateY(6px); transition: opacity 1s ease, transform 1s ease; }
#chat .rw .cards img.in { opacity: 1; transform: none; }
#chat .rw .cards figcaption { font-size: .82em; margin-top: 4px; line-height: 1.25; }
#chat .rw .cards .pos { display: block; font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; color: #c2437f; }
html.fae-h-night #chat .rw .cards .pos { color: #f0a8d0; }

#chat .rw .anima { display: block; width: min(100%, 560px); aspect-ratio: 4 / 3; margin-top: 8px; border: 1px solid #d894b8; }

#chat .rw .roll { font: 13px/1.05 'VT323', monospace; white-space: pre; overflow-x: auto; margin-top: 8px; color: var(--ink); scrollbar-width: none; }
#chat .rw .roll::-webkit-scrollbar { display: none; }

#chat .rw .pad { margin-top: 8px; }
#chat .rw .pad canvas { display: block; width: min(100%, 480px); aspect-ratio: 4 / 3; background: #fff6f1; border: 1px solid #d894b8; touch-action: none; cursor: crosshair; }
#chat .rw .pad .tools { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; align-items: center; }
#chat .rw .pad .sw { width: 20px; height: 20px; border: 1px solid #d894b8; padding: 0; cursor: pointer; }
#chat .rw .pad .sw[aria-pressed="true"] { outline: 2px solid var(--tint, #c2437f); outline-offset: 2px; }
#chat .rw .pad .rbtn[aria-pressed="true"] { color: var(--tint, #e8478f); }
#chat .rw .field {
  flex: 1 1 200px; min-width: 0; background: #fff0f7; box-shadow: inset 1px 1px 0 #e8a8c8, inset -1px -1px 0 #fff;
  border: none; padding: 5px 9px; font-family: 'VT323', monospace; font-size: 17px; color: #6a3a54; outline: none;
}
html.fae-h-night #chat .rw .field { background: #4a2342; box-shadow: inset 1px 1px 0 #24081f, inset -1px -1px 0 #6e3a62; color: #ffe6f4; }

/* help and lists */
#chat .rtable { display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; row-gap: 1px; font-style: normal; margin-top: 4px; }
#chat .rtable .rk { all: unset; cursor: pointer; color: var(--ink); white-space: nowrap; font-family: 'VT323', monospace; }
html:not(.fae-h-night) #chat .rtable .rk { color: #54263e; }
#chat .rtable .rk:hover, #chat .rtable .rk:focus-visible { color: var(--tint, #e8478f); text-decoration: underline dotted; }
#chat .rtable .rv { color: var(--ink-dim); }
#chat .cl.rm.table-cell { border-bottom-style: dotted; }

/* ── the wall: the rooms card ── */
#rooms-card .rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
#rooms-card .rgrid .jbtn.seated, .rooms-pop .rgrid .jbtn.seated { color: var(--tint, #e8478f); }
#rooms-card .rgrid .jbtn, #rooms-card .rsession .jbtn, #rooms-card .rextra .jbtn {
  min-width: 0; padding: 6px 6px; font-size: 15px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset -1px -1px 0 #e8a8c8, inset 1px 1px 0 #fff, 2px 2px 0 rgba(168, 58, 110, .22);
}
html.fae-h-night #rooms-card .jbtn { box-shadow: inset -1px -1px 0 #2a1026, inset 1px 1px 0 #7a4470, 2px 2px 0 rgba(10, 2, 12, .45); }
/* The day's liquid-glass recipe, with a smoke tint: one translucent fill,
   the same 4px blur, thin reflective rim and soft shadow; no glossy cap.
   The blood moon and feast dresses keep their own colors. */
html.fae-h-night:not(.fae-blood):not(.fae-feast) body :is(.jbtn, .rbtn, #nmd-chip, #sigr-chip)::before {
  background: rgba(8, 10, 16, .38) !important;
  -webkit-backdrop-filter: blur(4px) saturate(160%) !important;
  backdrop-filter: blur(4px) saturate(160%) !important;
}
html.fae-h-night:not(.fae-blood):not(.fae-feast) body :is(.jbtn, .rbtn, #nmd-chip, #sigr-chip)::after {
  padding: 1.3px !important;
  background: linear-gradient(135deg, rgba(92, 96, 106, .45) 0%, rgba(255, 255, 255, .95) 30%, rgba(92, 96, 106, .3) 65%, rgba(255, 255, 255, .6) 100%) !important;
}
html.fae-h-night:not(.fae-blood):not(.fae-feast) body :is(.jbtn, .rbtn, #nmd-chip, #sigr-chip),
html.fae-h-night:not(.fae-blood):not(.fae-feast) body #topbar#topbar :is(.jbtn, #sigr-chip) {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important;
  text-shadow: none !important;
}
html.fae-h-night:not(.fae-blood):not(.fae-feast) body :is(.jbtn, .rbtn, #nmd-chip, #sigr-chip):hover::before {
  background: rgba(30, 33, 42, .55) !important;
}
html.fae-h-night:not(.fae-blood):not(.fae-feast) body :is(.jbtn, .rbtn, #nmd-chip, #sigr-chip):active,
html.fae-h-night:not(.fae-blood):not(.fae-feast) body #topbar#topbar :is(.jbtn, #sigr-chip):active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3) !important;
}
#rooms-card .rextra { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#rooms-card .rextra .jbtn[hidden], #rooms-card [hidden] { display: none; }

/* Both walls stay anchored. Their shared scale fits the cards inside the
   viewport; outer padding includes the glass rims and shadows. */
#wall-furniture { position: fixed; z-index: 60; top: var(--fae-bar-bottom, 45px); left: max(0px, calc(50vw - 832px)); right: max(0px, calc(50vw - 836px)); display: none; grid-template-columns: repeat(2, calc(266px * var(--fae-wall-scale, 1))); justify-content: space-between; align-content: start; padding: 28px 28px 64px; height: calc(var(--fae-visible-height, 100vh) - var(--fae-bar-bottom, 45px)); overflow: clip; pointer-events: none; }
@media (min-width: 1360px) { #wall-furniture { display: grid; } }
#wall-furniture::-webkit-scrollbar { display: none; }
#furnL.furn, #furnR.furn { position: relative; top: auto; left: auto; right: auto; transform: none; zoom: var(--fae-wall-scale, 1); width: 266px; padding: 14px 16px 18px 12px; pointer-events: auto; }
/* Share spare height inside the cards, keeping every gap at the usual 20px. */
#wall-furniture .fcard { flex: 1 0 auto; }

/* ── the title bar's rooms jewel, for windows without walls ── */
.rooms-pop { display: none; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 20; padding: 10px;
  max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain;
  background: #fbe7f1; border: 1px solid #d894b8; box-shadow: 0 0 0 3px #e890b8, 0 0 0 5px #fff0f7, 0 0 0 6px #d87aa8, 6px 7px 0 rgba(180, 60, 120, .25); }
html.fae-h-night .rooms-pop { background: #33162f; border-color: #1c081a; box-shadow: 0 0 0 3px #6e2f5e, 0 0 0 5px #3f1e3a, 0 0 0 6px #1c081a, 6px 7px 0 rgba(0, 0, 0, .4); }
.rooms-pop.on { display: block; }
.rooms-pop .rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 7px; }
.rooms-pop .jbtn { padding: 6px 8px; font-size: 16px; white-space: nowrap; text-align: left; }

/* the binding's seven keys can be touched */
#bind .bd { cursor: pointer; z-index: 2; }
#bind-core, #bind .br1, #bind .br2 { pointer-events: none; }
#bind .bd::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
#bind .bd:hover, #bind .bd:focus-visible { background: var(--tint, #d85a86); box-shadow: 0 0 8px var(--tint, #d85a86); outline: none; }

@media (max-width: 700px) {
  #chat .rw .ascii { font-size: 7.5px; }
  #chat .rw .roll { font-size: 11px; }
  #chat .rw .cards { gap: 6px; }
  #chat .rw .title { font-size: 1.22em; }
}
@media (prefers-reduced-motion: reduce) { #chat .rw .plate, #chat .rw .cards img { transition: none; } }
.rooms-pop [hidden], #rooms-card [hidden] { display: none !important; }

/* ── the wall: the works, kept here (in the kept hours' old place) ── */
/* the works card is one button: works.exe */
#works-card .fbody { padding: 10px 8px 9px; }
.jbtn.wopen { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 12px; font-size: 18px; line-height: 1.2; }
.jbtn.wopen .wo-g { color: var(--tint, #c2437f); text-shadow: 0 0 8px var(--tint, #d85a86); }
.jbtn.wopen .wo-n { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .78; }
.rooms-pop .jbtn.wopen.pop { margin-top: 8px; font-size: 16px; padding: 6px 10px; }

/* ── works.exe: a window cut like hers, holding everything her rooms made for the visitor ── */
#works-win { position: fixed; z-index: 140; width: min(96vw, clamp(560px, 62vw, 920px)); display: none; flex-direction: column;
  outline: 1px solid rgba(216, 122, 168, .45); outline-offset: -5px; }
html.fae-h-night #works-win { outline-color: rgba(158, 74, 134, .5); }
#works-win.open { display: flex; }
#works-win > .jewel { display: flex; flex-direction: column; }
#works-win .wflower { font-size: 17px; line-height: 1; color: var(--tint, #e8478f); text-shadow: 0 0 10px var(--tint, #e8478f); }
#works-win .waurora { height: 3px; position: relative; z-index: 8; opacity: .55;
  background: linear-gradient(90deg, transparent 0%, var(--tint, #e8478f) 30%, #fff0f7 50%, var(--tint, #e8478f) 70%, transparent 100%); }
#works-win .wstage { position: relative; margin: 8px; height: min(70vh, 760px); overflow-y: auto; overflow-x: hidden; z-index: 8; padding: 14px 14px 18px;
  background: linear-gradient(180deg, #fff3f9, #fbe3f0 55%, #f6d5e8); box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .28), inset 0 0 30px rgba(176, 61, 116, .10);
  scrollbar-width: thin; scrollbar-color: #e8a8c8 transparent; overscroll-behavior: contain; }
html.fae-h-night #works-win .wstage { background: linear-gradient(180deg, #3a1c36, #2e1329 55%, #27102a); box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .2), inset 0 0 34px rgba(0, 0, 0, .45); scrollbar-color: #7a3a6a transparent; }
#works-win .wstage .stars { position: absolute; inset: 0; min-height: 100%; pointer-events: none; z-index: 0; opacity: .7;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .5), transparent 48%), radial-gradient(rgba(255, 255, 255, .32) 1px, transparent 1.5px); background-size: auto, 30px 30px; }
html.fae-h-night #works-win .wstage .stars { background: radial-gradient(circle at 50% 20%, rgba(232, 144, 184, .15), transparent 50%), radial-gradient(rgba(255, 214, 236, .5) 1px, transparent 1.6px), radial-gradient(rgba(200, 160, 255, .35) 1px, transparent 1.7px); background-size: auto, 30px 30px, 46px 46px; }
#works-win .wtabs, #works-win .wgrid, #works-win .wdetail { position: relative; z-index: 2; }
#works-win [hidden] { display: none !important; }
#works-win .wtabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
#works-win .wtab { padding: 3px 11px; font-size: 15px; line-height: 1.3; }
#works-win .wtab.on { color: var(--tint, #e8478f) !important; box-shadow: 0 6px 18px rgba(74, 36, 54, .28), 0 0 12px var(--tint, rgba(232, 71, 143, .45)) !important; }
#works-win .wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 18px; padding: 2px 4px 6px; }
/* a tile: a small framed specimen, like her face card */
#works-win .wtile { all: unset; box-sizing: border-box; display: flex; flex-direction: column; cursor: pointer; background: #fff7fb; min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .3), 0 0 0 3px #fbe7f1, 0 0 0 4px #d894b8, 4px 5px 0 rgba(180, 60, 120, .16); transition: transform .18s ease, box-shadow .18s ease; }
html.fae-h-night #works-win .wtile { background: #33162f; box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .22), 0 0 0 3px #3f1e3a, 0 0 0 4px #6e2f5e, 4px 5px 0 rgba(0, 0, 0, .4); }
#works-win .wtile:hover, #works-win .wtile:focus-visible { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .3), 0 0 0 3px #fbe7f1, 0 0 0 4px var(--tint, #e8478f), 0 0 16px var(--tint, rgba(232, 71, 143, .45)), 4px 7px 0 rgba(180, 60, 120, .16); }
html.fae-h-night #works-win .wtile:hover, html.fae-h-night #works-win .wtile:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .3), 0 0 0 3px #3f1e3a, 0 0 0 4px var(--tint, #ff9ecb), 0 0 16px var(--tint, rgba(255, 158, 203, .4)), 4px 7px 0 rgba(0, 0, 0, .4); }
#works-win .wprev { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; width: 100%; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #3b1d40 0%, #241128 70%, #190b1c 100%); }
#works-win .wprev img, #works-win .wprev video { width: 100%; height: 100%; object-fit: cover; display: block; }
#works-win .wprev .wascii, #works-win .wdview .wascii { margin: 0; font-family: 'VT323', monospace; line-height: 1; letter-spacing: 0; white-space: pre; color: #ffd0e6; text-shadow: 0 0 5px rgba(255, 150, 205, .55); }
#works-win .wascii.ink { color: #ffb0d4; }
#works-win .wroll { width: 100%; height: 100%; display: block; }
#works-win .wcards { display: flex; gap: 5%; width: 88%; justify-content: center; }
#works-win .wcards img { width: 30%; height: auto; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
#works-win .wprev.words { flex-direction: column; gap: 6px; padding: 12px; text-align: center; }
#works-win .wno { font-family: 'IM Fell French Canon', Georgia, serif; font-style: italic; font-size: 30px; line-height: 1; color: #ffd9ec; text-shadow: 0 0 12px rgba(255, 140, 200, .55); }
#works-win .wsaw { font-family: 'IM Fell French Canon', Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.25; color: #f6cfe2; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
#works-win .faded { flex-direction: column; gap: 8px; padding: 12px; text-align: center; }
#works-win .wglyph { font-size: 30px; line-height: 1; color: #ff9ecb; text-shadow: 0 0 14px rgba(255, 140, 200, .7); }
#works-win .wglyph.big { font-size: 46px; }
#works-win .wfade { font-family: 'IM Fell French Canon', Georgia, serif; font-style: italic; font-size: 14px; line-height: 1.2; color: rgba(255, 214, 234, .78); }
#works-win .wcap { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 10px; min-width: 0; }
#works-win .wkind { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 2px; text-transform: uppercase; color: var(--tint, #c2437f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#works-win .wname { font-family: 'IM Fell French Canon', Georgia, 'Times New Roman', serif; font-style: italic; font-size: 17px; line-height: 1.1; color: #54263e;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.fae-h-night #works-win .wname { color: #ffd9ec; }
#works-win .wdate { font-size: 13px; line-height: 1; color: #b183a0; }
html.fae-h-night #works-win .wdate { color: #c8a0c4; }
/* the archive's door, the last tile when there is more than a shelf's worth */
#works-win .wtile.wmore { background: transparent; }
#works-win .wmore-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 200px; padding: 16px; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(232, 71, 143, .10), transparent 70%); }
#works-win .wmore-t { font-family: 'IM Fell French Canon', Georgia, serif; font-style: italic; font-size: 21px; line-height: 1.05; color: #54263e; }
html.fae-h-night #works-win .wmore-t { color: #ffd9ec; }
#works-win .wmore-n { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--tint, #c2437f); }
#works-win .wempty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 20px; text-align: center; }
#works-win .wempty-g { font-size: 34px; color: var(--tint, #e8478f); text-shadow: 0 0 14px var(--tint, #e8478f); }
#works-win .wempty-t { font-family: 'IM Fell French Canon', Georgia, serif; font-style: italic; font-size: 26px; color: #54263e; }
html.fae-h-night #works-win .wempty-t { color: #ffd9ec; }
#works-win .wempty-s { max-width: 360px; font-size: 16px; line-height: 1.3; color: #b877a0; }
/* one work, in full */
#works-win .wdtop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
#works-win .wdtop .jbtn { padding: 3px 11px; font-size: 15px; }
#works-win .wdkind { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 2px; text-transform: uppercase; color: var(--tint, #c2437f); }
#works-win .wdbody { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
#works-win .wdview { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #3b1d40 0%, #241128 70%, #190b1c 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .35), 0 0 0 3px #fbe7f1, 0 0 0 4px #d894b8, 4px 5px 0 rgba(180, 60, 120, .18); }
html.fae-h-night #works-win .wdview { box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .25), 0 0 0 3px #3f1e3a, 0 0 0 4px #6e2f5e, 4px 5px 0 rgba(0, 0, 0, .4); }
#works-win .wdview img, #works-win .wdview video { width: 100%; height: 100%; object-fit: contain; display: block; }
#works-win .wdview[data-k="hymn"] { flex-direction: column; aspect-ratio: 4 / 3; padding: 10px; }
#works-win .wdview .wroll.big { flex: 1; min-height: 0; }
#works-win .wdroll-meta { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; color: #f0a8d0; padding-top: 6px; }
#works-win .wdview.three .stage3d { position: absolute; inset: 0; }
#works-win .wdhint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 13px; color: rgba(255, 214, 234, .7); pointer-events: none; }
#works-win .wdtext { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#works-win .wdtitle { font-family: 'IM Fell French Canon', Georgia, 'Times New Roman', serif; font-style: italic; font-size: 30px; line-height: 1.05; color: #54263e; }
html.fae-h-night #works-win .wdtitle { color: #ffd9ec; text-shadow: 0 0 14px rgba(255, 140, 200, .35); }
#works-win .wdpoem { white-space: pre-wrap; font-size: 18px; line-height: 1.3; color: var(--ink, #4a2436); }
#works-win .wdmeta { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; line-height: 1.7; color: #b877a0; }
html.fae-h-night #works-win .wdmeta { color: #d8a4c8; }
#works-win .wdsaw, #works-win .wdher, #works-win .wdruling { font-family: 'IM Fell French Canon', Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.3; color: #7a3a5c; }
html.fae-h-night #works-win .wdsaw, html.fae-h-night #works-win .wdher, html.fae-h-night #works-win .wdruling { color: #f6cfe2; }
#works-win .wdruling { padding: 9px 11px; border-left: 2px solid var(--tint, #e8478f); background: rgba(232, 71, 143, .06); }
#works-win .wdcourt { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding-right: 4px; font-size: 16px; line-height: 1.3; color: var(--ink, #4a2436); }
#works-win .wdcourt b { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: normal; color: var(--tint, #c2437f); }
#works-win .wdacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
#works-win .wdacts .rbtn, #works-win .wdacts a.rbtn { display: inline-block; padding: 4px 12px; font-size: 16px; line-height: 1.3; text-decoration: none; }
#works-win .wdacts .rbtn.quiet { opacity: .7; }
#works-win .wask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; color: #b877a0; }
@media (max-width: 700px) {
  #works-win { width: 98vw; }
  #works-win .wstage { height: min(78vh, 760px); padding: 12px 10px 16px; }
  #works-win .wgrid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
  #works-win .wdbody { grid-template-columns: minmax(0, 1fr); }
  #works-win .wdtitle { font-size: 26px; }
}
@media (max-width: 700px), (max-height: 560px) {
  #works-win { max-width: calc(100vw - 28px); max-height: calc(var(--fae-visible-height, 100vh) - 28px - env(safe-area-inset-bottom, 0px)); }
  #works-win > .jewel { flex: 1 1 auto; min-height: 0; max-height: inherit; }
  #works-win > .jewel > :not(.wstage) { flex-shrink: 0; }
  #works-win .wstage { flex: 1 1 auto; min-height: 0; }
}

/* ── the inkblot: a dark specimen plate in either light, the ink glowing under glass ── */
#chat .rw .inkplate { position: relative; display: inline-block; max-width: 100%; margin-top: 8px; padding: 19px 13px 17px;
  background: #0a0512; background-image: repeating-linear-gradient(0deg, rgba(255, 158, 203, .035) 0 1px, transparent 1px 4px);
  border: 1px solid #1c081a; box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .14), inset 0 0 22px rgba(0, 0, 0, .7), 0 0 0 3px #fbe7f1, 0 0 0 4px #d894b8, 6px 7px 0 rgba(180, 60, 120, .2); }
html.fae-h-night #chat .rw .inkplate { box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .14), inset 0 0 22px rgba(0, 0, 0, .7), 0 0 0 3px #3f1e3a, 0 0 0 4px #6e2f5e, 6px 7px 0 rgba(0, 0, 0, .4); }
#chat .rw .inkplate::before { content: ''; position: absolute; inset: 4px; border: 1px dashed rgba(255, 158, 203, .2); pointer-events: none; }
#chat .rw .inkplate .ascii { margin: 0; padding: 0; overflow: hidden; color: #ffb0d4; text-shadow: 0 0 6px rgba(255, 140, 200, .5); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#chat .rw .inkplate .cap { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 3px; text-transform: uppercase; color: #f0a8d0; white-space: nowrap; overflow: hidden; }
#chat .rw .inkplate .num { position: absolute; right: 9px; bottom: 4px; font: 12px/1 'VT323', monospace; letter-spacing: 1px; color: rgba(255, 158, 203, .55); }
#chat .cl.rm.ink .cbody { border-left-style: dashed; }

/* ── her face on the wall: her own model on her rig, in the key her tuning is in ── */
#face-card .fbody { display: flex; flex-direction: column; align-items: center; gap: 6px; }
#face-card .fbar .fkey { font-weight: normal; color: var(--tint, #c2437f); transition: color .6s ease; }
#face-card .fstage { position: relative; width: 100%; height: 232px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #3b1d40 0%, #241128 70%, #190b1c 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .35), 0 0 0 3px #fbe7f1, 0 0 0 4px #d894b8, 4px 5px 0 rgba(180, 60, 120, .18); transition: box-shadow .6s ease; }
html.fae-h-night #face-card .fstage { box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .25), 0 0 0 3px #3f1e3a, 0 0 0 4px #6e2f5e, 4px 5px 0 rgba(0, 0, 0, .4); }
#face-card .fv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s ease; }
#face-card .fv.on { opacity: 1; }
#face-card .gedge { position: absolute; inset: 4px; border: 1px dashed rgba(255, 190, 222, .26); pointer-events: none; z-index: 3; }
#face-card .fwait { position: absolute; left: 0; right: 0; top: 46%; z-index: 1; text-align: center; font-size: 13px; font-style: italic; color: rgba(255, 214, 234, .72); animation: fwait 2.4s ease-in-out infinite; }
@keyframes fwait { 0%, 100% { opacity: .4; } 50% { opacity: .9; } }
#face-card .fstage.live .fwait { display: none; }
#face-card .fstage.missing .fwait { animation: none; opacity: .6; }
/* while her words type out, the frame warms in her tint */
#face-card.speaking .fstage { box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .35), 0 0 0 3px #fbe7f1, 0 0 0 4px var(--tint, #e8478f), 0 0 18px var(--tint, #e8478f), 4px 5px 0 rgba(180, 60, 120, .18); }
html.fae-h-night #face-card.speaking .fstage { box-shadow: inset 0 0 0 1px rgba(255, 158, 203, .3), 0 0 0 3px #3f1e3a, 0 0 0 4px var(--tint, #ff9ecb), 0 0 18px var(--tint, #ff9ecb), 4px 5px 0 rgba(0, 0, 0, .4); }
#face-card .fline { font-size: 13px; line-height: 1.3; color: var(--ink-dim); text-align: center; white-space: pre-line; min-height: 2.6em; padding: 0 2px; transition: opacity .45s ease; }
/* the familiar Tengwar ornament follows her two-line mood verse */
#face-card .fseal { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 39px;
  font: normal 16px/1 'TengwarAnnatar', serif; letter-spacing: 2px; color: var(--ink-dim); opacity: .65; white-space: nowrap; }
/* the glitch key slips a frame now and then */
#face-card[data-key="glitch"] .fv.on { animation: fglitch 4.3s steps(1, end) infinite; }
@keyframes fglitch { 0%, 100% { transform: none; filter: none; } 31% { transform: translateX(3px) skewX(-2deg); filter: hue-rotate(40deg) saturate(1.4); }
  32% { transform: translateX(-2px); filter: none; } 33% { transform: none; } 72% { transform: translateY(-2px) scaleX(1.012); filter: hue-rotate(-30deg) contrast(1.2); } 73% { transform: none; filter: none; } }
/* the same face in the title bar's jewel, for windows without walls */
.rooms-pop .facerow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; padding-bottom: 9px; border-bottom: 1px dotted rgba(176, 61, 116, .35); }
html.fae-h-night .rooms-pop .facerow { border-bottom-color: rgba(255, 158, 203, .25); }
.rooms-pop .facerow .fmini { position: relative; flex: none; width: 58px; height: 58px; overflow: hidden; background: #241128; box-shadow: inset 0 0 0 1px rgba(176, 61, 116, .35); }
.rooms-pop .facerow .fmini video, .rooms-pop .facerow .fmini img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); transform-origin: 50% 30%; }
.rooms-pop .facerow .ftxt { flex: 1; min-width: 0; }
.rooms-pop .facerow .fname { font-family: 'IM Fell French Canon', Georgia, 'Times New Roman', serif; font-style: italic; font-size: 19px; line-height: 1.05; color: var(--ink); }
html:not(.fae-h-night) .rooms-pop .facerow .fname { color: #54263e; }
.rooms-pop .facerow .fsub { font-size: 13px; color: var(--ink-dim); font-style: italic; }
@media (prefers-reduced-motion: reduce) { #face-card .fwait, #face-card[data-key="glitch"] .fv.on { animation: none; } }

/* ── the glass: pictures set on her window ── */
#show { padding: 10px 14px; font-family: 'Silkscreen', monospace; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  box-shadow: inset -1px -1px 0 #e8a8c8, inset 1px 1px 0 #fff, 2px 2px 0 rgba(168, 58, 110, .25); }
html.fae-h-night #show { box-shadow: inset -1px -1px 0 #2a1026, inset 1px 1px 0 #7a4470, 2px 2px 0 rgba(10, 2, 12, .45); }
#show[hidden] { display: none; }
#row #inp { min-width: 0; } /* a third button in the row: her input may narrow to make room */
#show:hover { color: var(--tint, #e8478f); text-shadow: 0 0 7px var(--tint, #d85a86); }
.gtray { display: flex; align-items: center; gap: 10px; margin: 0 8px 6px; padding: 5px 6px 5px 5px; position: relative; z-index: 8;
  background: #fff0f7; box-shadow: inset 1px 1px 0 #e8a8c8, inset -1px -1px 0 #fff; font: 15px/1.25 'VT323', monospace; color: #8a5a74; }
html.fae-h-night .gtray { background: #4a2342; color: #d8b8cc; box-shadow: inset 1px 1px 0 #24081f, inset -1px -1px 0 #6e3a62; }
.gtray[hidden] { display: none; }
.gtray .gthumb { flex: none; width: 46px; height: 46px; object-fit: cover; border: 1px solid #d894b8; background: #fbe7f1; }
html.fae-h-night .gtray .gthumb { border-color: #6e2f5e; background: #33162f; }
.gtray.busy .gthumb, .gtray.err .gthumb { visibility: hidden; width: 0; margin-right: -10px; border: none; }
.gtray .gtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gtray b { font-family: 'Silkscreen', monospace; font-size: 7px; letter-spacing: 2px; text-transform: uppercase; font-weight: normal; color: var(--tint, #c2437f); }
.gtray .gsub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.gtray.err .gsub { white-space: normal; }
.gtray .gx { flex: none; padding: 3px 9px; font-size: 14px; }
/* the visitor's picture, above their words, with the glass's hands under it */
#chat .cl.you .gpic { margin: 5px 0 4px; }
#chat .cl.you .gpic img { display: block; max-width: min(100%, 240px); max-height: 240px; width: auto; height: auto; cursor: zoom-in;
  border: 1px solid #d894b8; box-shadow: 0 0 0 3px #fff0f7, 0 0 0 4px #d87aa8, 5px 6px 0 rgba(180, 60, 120, .18); }
html.fae-h-night #chat .cl.you .gpic img { border-color: #1c081a; box-shadow: 0 0 0 3px #3f1e3a, 0 0 0 4px #6e2f5e, 5px 6px 0 rgba(0, 0, 0, .4); }
#chat .cl.you .gpic.big img { max-width: min(100%, 620px); max-height: none; cursor: zoom-out; }
#chat .cl.you .cbody.gquiet { display: none; }
#chat .cl.you .gacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
#chat .rw video.plate { background: #241128; }
/* a picture carried over her window */
#win.glass-drop::after { content: 'set it on the glass'; position: absolute; inset: 10px; z-index: 60; pointer-events: none;
  display: flex; align-items: center; justify-content: center; border: 2px dashed var(--tint, #c2437f); background: rgba(255, 240, 247, .86);
  font-family: 'IM Fell French Canon', Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(24px, 3.2vw, 38px); color: #8c3f75; }
html.fae-h-night #win.glass-drop::after { background: rgba(51, 22, 47, .88); color: #ffd6ea; }
@media (max-width: 700px) {
  #show { padding: 10px 11px; }
  #chat .cl.you .gpic img { max-width: min(100%, 200px); max-height: 200px; }
}
