/* The Common Room: arriving. A lit studio, not a page.
   The room takes its light from the piece in front (--wash). Depth is made with
   distance, haze, overlap and light on the floor; there are no boxes or rules. */

@property --wash { syntax: '<color>'; inherits: true; initial-value: oklch(0.575 0.185 29); }
@property --ink  { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

:root {
  --wash: oklch(0.575 0.185 29);
  --ink: #ffffff;
  --paper: #fffdf8;
  --type: #17131c;
  --now: #ffe14a;
  --big: "Radio Canada Big", "Helvetica Neue", Arial, sans-serif;
  --text: "Radio Canada", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
  --side: 296px;         /* the width of the side panel; the room has the rest */
  --vx: calc((100vw - var(--side)) * .58);   /* where the eye is looking on the screen */
  --vy: 40vh;
  --move: 1.5s cubic-bezier(.6, 0, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #120a1c; color: var(--ink); font-family: var(--text); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

.room {
  position: fixed; inset: 0; overflow: hidden;
  --lit: color-mix(in oklab, var(--wash), white 13%);
  --deep: color-mix(in oklab, var(--wash), #1a0a33 44%);
  /* a studio, not a flat colour: two lamps high on the wall, the wall catching light where it curves down into the
     floor, and the whole falling away toward the corners */
  background:
    radial-gradient(34vw 30vh at calc(var(--vx) - 30vw) -4vh, color-mix(in oklab, var(--lit), transparent 35%) 0%, transparent 100%),
    radial-gradient(30vw 26vh at calc(var(--vx) + 12vw) -6vh, color-mix(in oklab, var(--lit), transparent 50%) 0%, transparent 100%),
    linear-gradient(to bottom, transparent calc(var(--vy) - 24vh), color-mix(in oklab, var(--lit), transparent 82%) var(--vy), color-mix(in oklab, var(--deep), transparent 88%) calc(var(--vy) + 3vh), transparent calc(var(--vy) + 34vh)),
    radial-gradient(120vw 90vh at var(--vx) 34vh, var(--lit) 0%, var(--wash) 34%, var(--deep) 100%);
}
/* the front of the floor falls into shade, as a studio floor does away from the lamps */
.room::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46vh; pointer-events: none;
  background: linear-gradient(to top, color-mix(in oklab, var(--deep), #000 22%) 0%, transparent 100%);
  opacity: .55;
}

.rig, .world, #things { position: absolute; transform-style: preserve-3d; }
.rig { left: var(--vx); top: var(--vy); width: 0; height: 0; perspective: none; }
.room { perspective: 1400px; perspective-origin: var(--vx) var(--vy); }
.world { left: 0; top: 0; width: 0; height: 0; will-change: transform; }   /* moved frame by frame from arrival.js */
#things { left: 0; top: 0; }

/* the surface of things: a fine grain over the room, so that the light reads as falling on something */
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .11; mix-blend-mode: normal;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- the name of the place, written on its far wall ---------- */
.sign {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 600 380px/1 var(--big); letter-spacing: -.035em;
  color: color-mix(in oklab, var(--wash), white 20%);
  transform: translate3d(-1150px, -1470px, -5000px);
  opacity: .9;
}

/* ---------- the floor ---------- */
.floor {
  position: absolute; left: 0; top: 0; width: 0; height: 0;    /* a point: what lies on the floor is placed from it, so no vast surface is drawn */
  transform: translate3d(0, 300px, 0) rotateX(90deg);
  transform-style: preserve-3d;
}
.floor .pool, .floor .shade { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.floor .pool { background: radial-gradient(closest-side, color-mix(in oklab, var(--wash), white 30%) 0%, transparent 100%); opacity: .3; }
.floor .shade { background: radial-gradient(closest-side, rgba(10, 0, 24, .5) 0%, transparent 100%); }
/* a person in the room: their name on the floor where they stand, drawn long so it reads from where you are */
.floor .mark {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--turn, 0deg)) scaleY(4.4);
  font: 600 40px/1 var(--big); letter-spacing: -.01em; white-space: nowrap; color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.floor .mark i { width: 17px; height: 17px; border-radius: 50%; background: var(--now); box-shadow: 0 0 16px 5px color-mix(in oklab, var(--now), transparent 40%); flex: none; }

/* ---------- a piece standing in the room ---------- */
.thing {
  position: absolute; left: 0; top: 0; display: block; text-align: left;
  transform-style: preserve-3d; cursor: pointer; color: var(--type);
  will-change: transform, opacity;
}
.thing .face { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 5px; background: var(--paper);
  -webkit-box-reflect: below var(--off, 80px) linear-gradient(to bottom, transparent 70%, rgba(255, 255, 255, .085));   /* the floor is polished: a piece is seen in it, faintly, as far below the floor as it stands above */
 
  box-shadow: 0 40px 90px -20px rgba(12, 0, 30, .5); }
/* haze: the further a piece is from where you stand, the more of the room's colour is in front of it */
.thing .haze { display: block; position: absolute; inset: 0; z-index: 2; background: var(--wash); opacity: var(--haze, 0); will-change: opacity; pointer-events: none; border-radius: inherit; }
.thing.front { cursor: default; }
.thing.front .face { box-shadow: 0 60px 120px -30px rgba(12, 0, 30, .55), 0 0 130px 0 color-mix(in oklab, var(--wash), white 32%); }
.thing:not(.front):hover .haze { opacity: calc(var(--haze, 0) * .5); }
.thing:focus-visible { outline: none; }
.thing:focus-visible .face { outline: 6px solid #fff; outline-offset: 10px; }

.thing .tag { display: block; position: absolute; left: 0; bottom: calc(100% + 26px); font: 500 54px/1 var(--big); color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.wide .thing .tag { opacity: 1; }

/* screens */
.thing.video .face { background: #0b0812; border-radius: 6px; }
.thing.video img, .thing.video video, .thing.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.thing.video .play {
  position: absolute; left: 34px; bottom: 30px; height: 64px; padding: 0 28px 0 22px; border-radius: 32px;
  background: #fff; color: var(--type); font: 600 21px/1 var(--big); display: none; align-items: center; gap: 14px;
}
.thing.video .play i { width: 0; height: 0; border-left: 17px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.thing.video .play small { font: 400 17px/1 var(--text); opacity: .6; }
.thing.video.front .play { display: flex; }
.thing.video.playing .play { display: none; }

/* sheets of writing */
.thing.sheet .face { padding: 46px 48px; }
.thing.sheet p { margin: 0 0 .7em; font: 400 23px/1.42 var(--text); }
.thing.sheet p:first-of-type { font: 500 31px/1.26 var(--big); letter-spacing: -.012em; margin-bottom: .6em; }
.thing.sheet .face::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(to top, var(--paper) 18%, transparent); z-index: 1; }
.thing.sheet .from { position: relative; margin: 0 0 30px; padding: 18px 20px; background: #efe9ff; border-radius: 4px; }
.thing.sheet .from b { display: block; font: 600 15px/1.2 var(--text); margin-bottom: 7px; }
.thing.sheet .from span { font: italic 400 17px/1.38 var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* the library post */
.thing.post .face { padding: 40px 44px; background: var(--paper); }
.thing.post .fig { font: 700 300px/.8 var(--big); letter-spacing: -.06em; margin: 0 0 22px -12px; }
.thing.post h3 { margin: 0; font: 600 40px/1.04 var(--big); letter-spacing: -.02em; }

/* prints */
.thing.photo .face { padding: 16px; background: #fff; }
.thing.photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }

/* a set of cards, each a little further back than the last */
.thing.cards .face { background: none; box-shadow: none; overflow: visible; transform-style: preserve-3d; }
.thing.cards .card { display: block; position: absolute; top: 0; left: 0; width: 62%; height: 100%; border-radius: 5px; overflow: hidden; background: #eee; box-shadow: 0 30px 70px -18px rgba(12, 0, 30, .55); }
.thing.cards .card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.thing.cards .card:nth-child(1) { transform: translate3d(0, 0, 0); }
.thing.cards .card:nth-child(2) { transform: translate3d(31%, -3%, -90px); }
.thing.cards .card:nth-child(3) { transform: translate3d(62%, -6%, -180px); }

/* ---------- what is said about the piece in front, low and to the left ---------- */
.near { position: absolute; left: clamp(28px, 5.6vw, 84px); bottom: clamp(30px, 6.4vh, 64px); width: min(calc((100vw - var(--side)) * .66), 760px); color: var(--ink); transition: opacity .5s ease; }
.near.out { opacity: 0; }
.near .meta { margin: 0 0 14px; font: 500 16px/1.2 var(--text); letter-spacing: .01em; display: flex; gap: 14px; align-items: baseline; }
.near .meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 14px; vertical-align: .18em; opacity: .7; }
.near h1 { margin: 0 0 12px; font: 600 clamp(34px, 3.7vw, 54px)/1.02 var(--big); letter-spacing: -.028em; text-wrap: balance; }
.near .line { margin: 0 0 22px; font: 400 19px/1.4 var(--text); max-width: 34em; opacity: .92; }
.near .more { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font: 500 16px/1.2 var(--text); }
.near .more button { padding: 6px 0; border-bottom: 1.5px solid color-mix(in oklab, currentColor, transparent 55%); }
.near .more button:hover { border-bottom-color: currentColor; }
.near .more button b { font-weight: 600; margin-left: 8px; }
.near .more .with { display: inline-flex; align-items: center; gap: 9px; }
.near .more .with i { width: 9px; height: 9px; border-radius: 50%; background: var(--now); box-shadow: 0 0 10px 2px color-mix(in oklab, var(--now), transparent 40%); }

/* ---------- the few fixed things, at the corners ---------- */
.out { position: absolute; top: clamp(18px, 3.4vh, 30px); margin: 0; font: 500 14px/1.2 var(--text); color: var(--ink); opacity: .78; text-decoration: none; transition: opacity .2s; }
.out { left: clamp(20px, calc(5.6vw - 12px), 72px); padding: 7px 13px; margin-top: -7px; border-radius: 16px; background: color-mix(in oklab, var(--deep), transparent 55%); opacity: .9; }   /* its own ground, so that it reads when the wall's lettering passes behind it */
.out::before { content: "\2190\00a0\00a0"; }
.out:hover { opacity: 1; }

.tools { position: absolute; right: calc(var(--side) + 14px); bottom: clamp(30px, 6.4vh, 64px); display: flex; gap: 10px; align-items: center; color: var(--ink); }
.tools button { height: 46px; min-width: 46px; border-radius: 23px; font: 500 15px/1 var(--text);
  background: color-mix(in oklab, var(--deep), transparent 30%);   /* no blur here: it would be worked out again on every frame the room moves */
  border: 1px solid color-mix(in oklab, var(--ink), transparent 72%); transition: background-color .2s, border-color .2s; }
.tools button:hover { border-color: var(--ink); }
.tools .whole { padding: 0 20px; margin-left: 8px; }
.tools .whole[aria-pressed="true"] { background: var(--ink); color: var(--deep); border-color: var(--ink); }
.tools button:focus-visible, .near button:focus-visible, .out:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- the side panel: one fixed column, set like the side of a code editor, in the room's own light ---------- */
.side {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; gap: 22px;
  padding: 22px 18px 20px 40px; color: var(--ink); font: 400 12px/1.45 var(--mono);
  /* no hard edge: the room's colour deepens into it, so a piece that passes behind goes out of the light */
  background: linear-gradient(to right, transparent 0, color-mix(in oklab, var(--deep), transparent 30%) 22px, color-mix(in oklab, var(--deep), #0a0416 12%) 46px, color-mix(in oklab, var(--deep), #0a0416 20%) 100%);
}
.side button { text-align: left; }
.side .name { margin: 0; font: 600 15px/1.2 var(--big); letter-spacing: -.005em; }
.side section { min-height: 0; display: flex; flex-direction: column; }
.side h3 { margin: 0 0 7px; display: flex; align-items: baseline; gap: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: color-mix(in oklab, var(--ink), transparent 34%); padding-bottom: 6px; border-bottom: 1px solid color-mix(in oklab, var(--ink), transparent 82%); }
.side h3 b { font-weight: 500; color: var(--ink); }
.side h3 .by { margin-left: auto; display: flex; gap: 12px; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.side h3 .by button { color: color-mix(in oklab, var(--ink), transparent 42%); padding: 0 0 1px; border-bottom: 1px solid transparent; }
.side h3 .by button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.side h4 { margin: 9px 0 2px; font: 500 11.5px/1.4 var(--mono); color: color-mix(in oklab, var(--ink), transparent 36%); display: flex; align-items: center; gap: 8px; }
.side h4:first-child { margin-top: 2px; }
.side i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--now); box-shadow: 0 0 8px 1px color-mix(in oklab, var(--now), transparent 45%); }
.side .h, .side .r { display: grid; align-items: baseline; gap: 0 10px; width: 100%; margin: 0; padding: 3.5px 8px 3.5px 10px; border-radius: 4px; font: inherit; color: inherit; }
.side .h { grid-template-columns: 7px auto 1fr; padding-left: 2px; }
.side .h i { align-self: center; }
.side .r { grid-template-columns: 52px 1fr auto; color: color-mix(in oklab, var(--ink), transparent 30%); }
.side .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .k, .side .d { font-size: 11.5px; color: color-mix(in oklab, var(--ink), transparent 46%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .h .k { text-align: right; }
.side button.h:hover, .side .r:hover { background: color-mix(in oklab, var(--ink), transparent 91%); color: var(--ink); }
.side .r.on { background: color-mix(in oklab, var(--ink), transparent 86%); color: var(--ink); box-shadow: inset 2px 0 0 var(--now); }
.side .r.on .d, .side .r.on .k { color: color-mix(in oklab, var(--ink), transparent 20%); }
.side .index { flex: 0 1 auto; }
.side .rows { overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--ink), transparent 70%) transparent; margin-right: -8px; padding-right: 8px; }
.side .said { flex: 1 1 180px; }
.side .about { margin: 0 0 9px; font-size: 11.5px; color: color-mix(in oklab, var(--ink), transparent 40%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side ol { list-style: none; margin: 0; padding: 0 8px 0 0; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 13px; scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--ink), transparent 70%) transparent; }
.side li { padding-left: 11px; border-left: 1px solid color-mix(in oklab, var(--ink), transparent 72%); }
.side li b { display: block; font: 500 12px/1.35 var(--mono); margin-bottom: 2px; }
.side li b small { font-weight: 400; font-size: 11px; color: color-mix(in oklab, var(--ink), transparent 44%); margin-left: 9px; }
.side li span { font: 400 15px/1.42 var(--text); }      /* what people say is set in the room's reading face, not in the panel's */
.side .none { margin: 0; flex: 1; font: 400 15px/1.42 var(--text); color: color-mix(in oklab, var(--ink), transparent 30%); }
.side form { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid color-mix(in oklab, var(--ink), transparent 82%); }
.side form > span { color: var(--now); font-weight: 600; }
.side input { flex: 1; min-width: 0; height: 34px; font: 400 13.5px/1 var(--mono); color: var(--ink); background: none; border: 0; outline: none; caret-color: var(--now); }
.side input::placeholder { color: color-mix(in oklab, var(--ink), transparent 50%); }
.side form button { font: 500 12px/1 var(--mono); padding: 8px 11px; border-radius: 4px; border: 1px solid color-mix(in oklab, var(--ink), transparent 66%); }
.side form:focus-within { border-top-color: var(--ink); }
.side button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* ---------- reading: the sheet comes forward and the room falls out of focus behind it ---------- */
.reader { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: clamp(24px, 6vh, 64px) 20px 80px;
  background: color-mix(in oklab, var(--deep), transparent 45%); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 0; transition: opacity .35s ease; }
.reader[hidden] { display: none; }
.reading .reader { opacity: 1; }
.reader .page { width: min(720px, 100%); background: var(--paper); color: var(--type); border-radius: 6px; padding: clamp(30px, 6vw, 76px) clamp(24px, 6vw, 80px) clamp(40px, 6vw, 84px);
  box-shadow: 0 60px 140px -40px rgba(12, 0, 30, .7); transform: translateY(26px) scale(.975); transition: transform .5s cubic-bezier(.2, .7, .2, 1); outline: none; }
.reading .reader .page { transform: none; }
.reader .meta { margin: 0 0 30px; font: 500 15px/1.2 var(--text); color: color-mix(in oklab, var(--type), transparent 35%); display: flex; gap: 14px; }
.reader .meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-right: 14px; vertical-align: .22em; }
.reader h1 { margin: 0 0 26px; font: 600 clamp(32px, 4.4vw, 50px)/1.04 var(--big); letter-spacing: -.028em; text-wrap: balance; }
.reader p { margin: 0 0 1.05em; font: 400 20px/1.58 var(--text); }
.reader p.lead { font: 500 clamp(25px, 3vw, 31px)/1.3 var(--big); letter-spacing: -.012em; margin-bottom: 1em; }
.reader p.mark { margin: 1.5em 0; padding-left: 24px; border-left: 5px solid var(--wash); font: 500 clamp(23px, 2.7vw, 28px)/1.32 var(--big); letter-spacing: -.01em; }
.reader .from { margin: 0 0 36px; padding: 22px 24px; background: #efe9ff; border-radius: 5px; }
.reader .from b { display: block; font: 600 15px/1.3 var(--text); margin-bottom: 8px; }
.reader .from b small { font-weight: 400; opacity: .7; margin-left: 8px; }
.reader .from p { font: italic 400 18px/1.48 var(--text); margin: 0 0 .5em; }
.reader .from p:last-child { margin: 0; }
.reader .go { display: inline-block; margin-top: 14px; font: 600 17px/1.2 var(--text); color: var(--type); text-decoration: none; border-bottom: 2px solid var(--wash); padding-bottom: 3px; }
.reader .shut { position: fixed; top: clamp(18px, 3.4vh, 30px); right: clamp(28px, 4vw, 56px); height: 42px; padding: 0 20px; border-radius: 21px; color: var(--ink); font: 500 15px/1 var(--text);
  background: color-mix(in oklab, var(--deep), transparent 30%); border: 1px solid color-mix(in oklab, var(--ink), transparent 60%); }

/* ---------- live: the stage holds the sitting ---------- */
.thing .onair { display: none; position: absolute; left: 26px; top: 24px; height: 40px; padding: 0 16px 0 14px; border-radius: 20px; align-items: center; gap: 10px; background: var(--now); color: #17131c; font: 700 17px/1 var(--big); }
.thing .onair i { width: 10px; height: 10px; border-radius: 50%; background: #d1241a; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .25; } }
.thing.live .onair { display: flex; }
.thing.live .play { display: none !important; }
.thing .sound { display: none; position: absolute; right: 22px; bottom: 20px; height: 42px; padding: 0 18px; border-radius: 21px; background: rgba(12, 8, 20, .62); color: #fff; font: 500 15px/1 var(--text); align-items: center; }
.thing.live.front .sound { display: flex; }
.near .soon { margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font: 500 17px/1.3 var(--text); }
.near .soon b { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 15px; border-radius: 18px; background: var(--now); color: #17131c; font: 600 16px/1 var(--big); }
.near .soon button { padding: 6px 0; border-bottom: 1.5px solid color-mix(in oklab, currentColor, transparent 55%); font: 500 16px/1.2 var(--text); }
.near .meta .now { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.near .meta .now i { width: 9px; height: 9px; border-radius: 50%; background: var(--now); box-shadow: 0 0 10px 2px color-mix(in oklab, var(--now), transparent 40%); }
.near .more button[aria-pressed="true"] { border-bottom-color: currentColor; font-weight: 600; }

/* ---------- arriving: the lamps come up ---------- */
.dark { position: absolute; inset: 0; background: #0d0616; pointer-events: none; opacity: 1; transition: opacity 2.2s ease .15s; }
.ready .dark { opacity: 0; }
.wide .near { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .dark { transition: none !important; }
}

/* ---------- a phone: the same room, one thing at a time ---------- */
@media (max-width: 1000px) {
  :root { --side: 0px; --vx: 50vw; --vy: 34vh; }
  .near { width: auto; right: 28px; bottom: 96px; }
  .near h1 { font-size: 30px; }
  .near .line { font-size: 16px; margin-bottom: 16px; }
  .tools { left: 28px; right: 28px; bottom: 24px; justify-content: space-between; }
  .tools .whole { margin-left: auto; }
  .tools { right: 28px; }
  /* the panel is a sheet that comes up from below when asked for */
  .side { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: 70vh; z-index: 3; padding: 20px 20px 16px; border-radius: 16px; gap: 16px;
    background: color-mix(in oklab, var(--deep), #0a0416 22%); box-shadow: 0 -20px 60px rgba(8, 0, 20, .5); transform: translateY(108%); transition: transform .42s cubic-bezier(.2, .7, .2, 1); }
  .talking .side { transform: none; }
  .side .index { flex: 0 1 34%; }
}
@media (min-width: 1001px) and (max-width: 1100px) { :root { --side: 240px; } .side { padding-left: 30px; } }


/* ---------- drawn by the 3D engine: the room is a canvas, and only the words and controls are laid over it ---------- */
.room { background: #0b0810; perspective: none; }
.room::before { display: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grain { opacity: .05; }
#play, #onair, #sound { position: absolute; left: 0; top: 0; z-index: 1; }
#play { height: 56px; padding: 0 26px 0 20px; border-radius: 28px; background: #fff; color: var(--type); font: 600 19px/1 var(--big); display: flex; align-items: center; gap: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
#play i { width: 0; height: 0; border-left: 15px solid currentColor; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
#play small { font: 400 15px/1 var(--text); opacity: .6; }
#onair { height: 36px; padding: 0 15px 0 13px; border-radius: 18px; display: flex; align-items: center; gap: 9px; background: var(--now); color: #17131c; font: 700 15px/1 var(--big); }
#onair i { width: 9px; height: 9px; border-radius: 50%; background: #d1241a; animation: beat 1.6s ease-in-out infinite; }
#sound { height: 38px; padding: 0 16px; border-radius: 19px; background: rgba(12, 8, 20, .7); color: #fff; font: 500 14px/1 var(--text); }
#play[hidden], #onair[hidden], #sound[hidden] { display: none; }

.who3d { position: absolute; left: 0; top: 0; transform-origin: 0 50%; white-space: nowrap; pointer-events: none; font: 500 15px/1.3 var(--text); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); transition: opacity .3s; will-change: transform; }

/* the side panel's words lie on a sheet of glass that the engine draws (scene.js): no painted ground, no painted edge */
@media (min-width: 1001px) {
  .side { left: 0; top: 0; right: auto; bottom: auto; transform-origin: 0 0; will-change: transform; background: none; padding: 26px 26px 22px 28px; }
}

/* The panel is on the left (Evan, 2 December 2026), and the room begins where it ends. Darker and sharper throughout:
   plain white lettering on near-black glass, no soft greys, the one bright colour kept for what is live or chosen. */
:root { --vx: calc(var(--side) + (100vw - var(--side)) * .58); }
.near { left: calc(var(--side) + clamp(28px, 5.6vw, 84px)); }
.tools { right: clamp(28px, 4vw, 56px); }
.tools button { background: rgba(8, 6, 12, .7); border-color: rgba(255, 255, 255, .34); }
.out { left: calc(var(--side) + clamp(16px, 4vw, 60px)); background: rgba(8, 6, 12, .7); }
@media (min-width: 1001px) {
  .side { font-size: 13.5px; color: #fff; }
  .side .name { font-size: 22px; letter-spacing: -.02em; }
  .side h3 { color: rgba(255, 255, 255, .62); border-bottom-color: rgba(255, 255, 255, .22); }
  .side h3 b, .side h3 .by button[aria-pressed="true"] { color: #fff; }
  .side h3 .by button { color: rgba(255, 255, 255, .5); }
  .side .r { color: rgba(255, 255, 255, .74); }
  .side .k, .side .d, .side .about, .side li b small { color: rgba(255, 255, 255, .5); }
  .side .r.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 2px 0 0 var(--now); }
  .side li { border-left-color: rgba(255, 255, 255, .3); }
  .side form { border-top-color: rgba(255, 255, 255, .22); }
  .side form button { border-color: rgba(255, 255, 255, .5); }
}
@media (max-width: 1000px) { .near { left: 28px; } .out { left: 28px; } }

/* a piece you have not been to yet: a small light before its date in the index */
.side .r .d { display: flex; align-items: center; gap: 6px; }
.side .r .d i { width: 5px; height: 5px; margin-left: -11px; }
/* the other rooms of the building */
.side .doors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); }
.side .doors h3 { width: 100%; border: 0; padding: 0; margin: 0 0 2px; }
.side .doors a { color: rgba(255, 255, 255, .8); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 1px; }
.side .doors a:hover { color: #fff; border-bottom-color: #fff; }
.side .said { flex: 1 1 120px; }

/* ---------- moments and threads ---------- */
.near .thr { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.near .thr i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 10px 1px currentColor; }
.near .from { margin: 0 0 20px; font: 400 clamp(20px, 2vw, 27px)/1.25 var(--big); letter-spacing: -.012em; max-width: 26em; }
.near .from b { font-weight: 600; }
.side .th { display: grid; grid-template-columns: 9px 1fr auto; align-items: baseline; gap: 0 10px; width: 100%; padding: 5px 8px 5px 10px; border-radius: 4px; font: inherit; color: rgba(255, 255, 255, .78); }
.side .th[data-thread=""] { grid-template-columns: 1fr auto; }
.side .th i { align-self: center; width: 9px; height: 9px; box-shadow: 0 0 9px 1px currentColor; }
.side .th:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side .th.on { background: rgba(255, 255, 255, .12); color: #fff; }
.side .new button { align-self: flex-start; font: 500 13px/1 var(--mono); color: #17131c; background: var(--now); padding: 9px 12px; border-radius: 4px; }
.side .threads { flex: 0 1 auto; min-height: 0; }
.side details.find { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
.side details.find summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .62); padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.side details.find summary::-webkit-details-marker { display: none; }
.side details.find summary::after { content: "+"; margin-left: auto; font-size: 14px; letter-spacing: 0; }
.side details.find[open] summary::after { content: "\2212"; }
.side details.find summary b { font-weight: 500; color: #fff; }
.side details.find .rows { max-height: 24vh; margin-top: 6px; }
.side { gap: 17px; }
.reader .pl { padding: 18px 0 16px; border-top: 1px solid #ddd6cc; }
.reader .pl .meta { margin-bottom: 10px; }
.reader .pl .mark { margin: 0 0 .7em; }
.reader button.go { background: none; border: 0; border-bottom: 2px solid var(--wash); font: 600 17px/1.2 var(--text); color: var(--type); padding: 0 0 3px; margin-left: 14px; cursor: pointer; }

/* ---------- a moment: what is said beside it, and writing there ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.near h1.from { margin: 0 0 16px; font: 600 clamp(22px, 2.2vw, 30px)/1.14 var(--big); letter-spacing: -.016em; max-width: 24em; text-wrap: balance; }
.near h1.from small { font: 400 .62em/1 var(--text); letter-spacing: 0; opacity: .72; margin-right: .35em; }
.near .beside { max-width: 640px; margin: 0 0 18px; }
.near .rem { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 24vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.near .rem li { padding-left: 12px; border-left: 2px solid var(--wash); }
.near .rem b { display: block; font: 500 12px/1.3 var(--mono); margin-bottom: 2px; }
.near .rem b small { font-weight: 400; font-size: 11px; opacity: .6; margin-left: 9px; }
.near .rem span { font: 400 16.5px/1.38 var(--text); }
.near .rem .earlier { border-left-color: transparent; }
.near .rem .earlier button { font: 500 12px/1.3 var(--mono); opacity: .7; border-bottom: 1px solid rgba(255, 255, 255, .4); padding: 0 0 1px; }
.near .write { display: flex; align-items: center; gap: 9px; margin-top: 8px; border-bottom: 1px solid rgba(255, 255, 255, .34); }
.near .write:focus-within { border-bottom-color: #fff; }
.near .write > span { color: var(--now); font: 600 14px/1 var(--mono); }
.near .write input { flex: 1; min-width: 0; height: 38px; font: 400 14px/1 var(--mono); color: var(--ink); background: none; border: 0; outline: none; caret-color: var(--now); }
.near .write input::placeholder { color: rgba(255, 255, 255, .5); }
.near .write button { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .34); opacity: 0; transition: opacity .2s; }
.near .write:focus-within button, .near .write input:not(:placeholder-shown) + button { opacity: 1; }
.plain { position: absolute; top: clamp(18px, 3.4vh, 30px); right: clamp(28px, 4vw, 56px); margin-top: -7px; padding: 7px 13px; border-radius: 16px; background: rgba(8, 6, 12, .7); font: 500 14px/1.2 var(--text); color: var(--ink); opacity: .78; }
.plain:hover { opacity: 1; } .plain:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* ---------- the panel: threads, the question, what is said in a thread ---------- */
.side { overflow-y: auto; scrollbar-width: none; }
.side .name small { display: block; margin-top: 5px; font: 400 11px/1.3 var(--mono); color: var(--now); letter-spacing: .02em; }
.side .th .k b.in { font-weight: 500; color: var(--now); }
.side .q .qt { margin: 2px 0 6px; font: 500 18px/1.24 var(--big); letter-spacing: -.012em; color: #fff; text-wrap: balance; }
.side .q > .k { margin: 0 0 8px; }
.side .q > .k button, .side .said li button.k { font: inherit; color: inherit; border-bottom: 1px solid rgba(255, 255, 255, .28); padding: 0; }
.side .q > .k button:hover, .side .said li button.k:hover { color: #fff; border-bottom-color: #fff; }
.side .q ol { flex: none; gap: 9px; margin-bottom: 2px; max-height: 20vh; }
.side .q form { margin-top: 6px; padding-top: 4px; }
.side .said li button.k { display: block; margin-top: 3px; font-size: 11px; max-width: 100%; text-align: left; }
.side .said li.at { border-left-color: var(--now); }
.side .here .rows { max-height: 18vh; }
.side .here { flex: none; }
.side .q { flex: none; }

.side section, .side details, .side nav { flex: none; }
.side .said { flex: 1 0 150px; min-height: 150px; }
.side .new h3 { margin: 0; align-items: center; }
.side .new h3 button { margin-left: auto; font: 500 12px/1 var(--mono); letter-spacing: 0; text-transform: none; color: #17131c; background: var(--now); padding: 6px 9px; border-radius: 4px; }
.side .who { margin: 0; display: flex; flex-wrap: wrap; gap: 5px 14px; }
.side .who button, .side .who span { display: inline-flex; align-items: center; gap: 7px; font: inherit; color: rgba(255, 255, 255, .82); padding: 0; }
.side .who button:hover { color: #fff; }
.side .who span { color: rgba(255, 255, 255, .6); }
.side .q button.ans { align-self: flex-start; font: inherit; font-size: 11.5px; color: rgba(255, 255, 255, .7); border-bottom: 1px solid rgba(255, 255, 255, .28); padding: 0; margin: 0 0 8px; }
.side .q > .k { margin: 0 0 6px; }
.side .doors h3 { display: none; }
.side { gap: 15px; }

.side .threads { flex: none; }
.side .th { padding-top: 3.5px; padding-bottom: 3.5px; }
.side .said { flex: 1 0 112px; min-height: 112px; }
.side .q > .k { display: flex; gap: 14px; align-items: baseline; white-space: normal; }
.side .q > .k button.ans { margin: 0 0 0 auto; align-self: auto; white-space: nowrap; }
.side .q .qt { font-size: 17px; }
.side .doors { gap: 4px 12px; font-size: 12.5px; flex-wrap: nowrap; white-space: nowrap; }

.side .q > .k span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side .q > .k span button { border-bottom: 1px solid rgba(255, 255, 255, .28); font: inherit; color: inherit; padding: 0; }

/* ---------- adding a moment (this Mac only) ---------- */
.plain.add { right: calc(clamp(28px, 4vw, 56px) + 132px); }
.reader .pick { display: flex; flex-direction: column; }
.reader .pick button { text-align: left; padding: 15px 0; border: 0; border-top: 1px solid #ddd6cc; background: none; font: 500 21px/1.25 var(--big); letter-spacing: -.01em; color: var(--type); cursor: pointer; }
.reader .pick button:hover, .reader .pick button:focus-visible { background: #f0ebe2; padding-left: 12px; outline: none; }
.reader .how { font: 500 16px/1.3 var(--text); margin: -8px 0 26px; padding: 10px 14px; background: #17131c; color: #fff; border-radius: 4px; display: inline-block; }
.reader .words p { cursor: text; }
.reader .words ::selection { background: #ffd23c; color: #17131c; }
.reader .hangbar { position: sticky; bottom: -60px; margin: 30px calc(-1 * clamp(24px, 6vw, 80px)) calc(-1 * clamp(40px, 6vw, 84px)); padding: 18px clamp(24px, 6vw, 80px) 22px; background: #17131c; color: #fff; border-radius: 0 0 6px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font: 500 15px/1.3 var(--text); }
.reader .hangbar[hidden] { display: none; }
.reader .hangbar p { margin: 0; font: 400 15px/1.4 var(--text); width: 100%; }
.reader .hangbar .sel b { font-weight: 600; margin-right: 8px; color: #ffd23c; }
.reader .hangbar .why:empty { display: none; } .reader .hangbar .why { color: #ffd23c; }
.reader .hangbar select, .reader .hangbar input { height: 40px; padding: 0 10px; margin-left: 8px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .4); background: #17131c; color: #fff; font: 500 15px/1 var(--text); }
.reader .hangbar input[hidden] { display: none; }
.reader .hangbar button { height: 40px; padding: 0 18px; border-radius: 20px; font: 600 15px/1 var(--text); color: #fff; border: 1px solid rgba(255, 255, 255, .4); background: none; cursor: pointer; }
.reader .hangbar button[type=submit] { background: #ffd23c; color: #17131c; border-color: #ffd23c; }
.near .more .down { opacity: .55; font-weight: 400; }
.near .more .down:hover, .near .more .down[data-sure="1"] { opacity: 1; }

/* ---------- 3 December: bays, the margin beside a moment, a quieter panel ---------- */
.beside { position: absolute; left: 0; top: 0; width: 280px; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; color: var(--ink); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.beside.on { opacity: 1; pointer-events: auto; }
.beside .rem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.beside .rem li { padding-left: 13px; border-left: 2px solid var(--wash); }
.beside .rem li.mine { border-left-color: var(--now); }
.beside .rem b { display: block; font: 500 12px/1.3 var(--mono); margin-bottom: 3px; }
.beside .rem b small { font-weight: 400; font-size: 11px; opacity: .62; margin-left: 9px; }
.beside .rem span { font: 400 16px/1.4 var(--text); }
.beside .write { flex: none; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid rgba(255, 255, 255, .34); }
.beside .write:focus-within { border-bottom-color: #fff; }
.beside .write > span { color: var(--now); font: 600 14px/1 var(--mono); }
.beside .write input { flex: 1; min-width: 0; height: 38px; font: 400 14px/1 var(--mono); color: var(--ink); background: none; border: 0; outline: none; caret-color: var(--now); }
.beside .write input::placeholder { color: rgba(255, 255, 255, .62); }
.beside .write button { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .4); color: var(--ink); opacity: 0; transition: opacity .2s; }
.beside .write:focus-within button, .beside .write input:not(:placeholder-shown) + button { opacity: 1; }
.beside .write button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.near .more .narrow { display: none; }
/* no margin to stand in: what is said opens from the foot of the screen, from a button under the moment */
.room.tight .near .more .narrow { display: inline-block; }
.room.tight .beside { position: fixed; left: 0; right: 0; top: auto !important; bottom: 0; width: auto !important; max-height: 62vh !important; padding: 22px 22px 26px; background: rgba(8, 6, 12, .96); border-top: 1px solid rgba(255, 255, 255, .3); transform: translateY(102%); transition: transform .3s ease; opacity: 1; z-index: 6; }
.room.tight.saying .beside { transform: none; pointer-events: auto; }
.near .meta { margin-bottom: 12px; }
/* the panel */
.side .fill { flex: 1 1 0; min-height: 0; }
.side .q h3, .side .threads h3, .side .hot h3 { border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; }
.side .q .qt { font: 600 21px/1.18 var(--big); letter-spacing: -.016em; margin: 0 0 10px; }
.side .q ol { max-height: 26vh; margin: 0 0 8px; flex: none; }
.side .q > .k { margin: 0 0 2px; }
.side .q form { margin-top: 4px; padding-top: 2px; border-top: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.side .q form:focus-within { border-bottom-color: #fff; }
.side .q form button { opacity: 0; transition: opacity .2s; } .side .q form:focus-within button, .side .q input:not(:placeholder-shown) + button { opacity: 1; }
.side .q { padding-bottom: 4px; }
.side .th { padding-top: 5px; padding-bottom: 5px; font-size: 14px; }
.side .th.all { grid-template-columns: 1fr auto; margin-top: 4px; color: rgba(255, 255, 255, .62); }
.side .th .k { font-size: 11.5px; }
.side .threads .next { align-self: flex-start; margin: 8px 0 0 10px; font: 500 12px/1.3 var(--mono); color: var(--now); border-bottom: 1px solid color-mix(in oklab, var(--now), transparent 50%); padding: 0 0 1px; }
.side .threads .next:hover { border-bottom-color: var(--now); }
.side .ht { display: grid; grid-template-columns: 9px 1fr auto; align-items: baseline; gap: 1px 10px; width: 100%; padding: 6px 8px 7px 10px; border-radius: 4px; font: inherit; color: rgba(255, 255, 255, .86); text-align: left; }
.side .ht i { align-self: center; width: 9px; height: 9px; }
.side .ht .l { grid-column: 2 / 4; font: 400 14px/1.35 var(--text); color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .ht:hover, .side .ht.on { background: rgba(255, 255, 255, .09); color: #fff; }
.side .k, .side .d, .side h3, .side details.find summary { color: rgba(255, 255, 255, .7); }
.side .doors { border-top: 0; padding-top: 0; }
.side { gap: 20px; }

.side .mid { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; margin-right: -10px; padding-right: 10px; }
.side .mid > section { flex: none; }

/* ---------- a narrow screen ---------- */
.tools .menu { display: none; }
@media (max-width: 1000px) {
  .tools .menu { display: inline-block; margin-left: 0; }
  .tools .whole { padding: 0 15px; }
  .tools .whole:not(.menu) { margin-left: auto; }
  .near .meta { font-size: 14px; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
  .near .meta span + span::before { margin-right: 10px; }
  .near h1.from { font-size: 21px; line-height: 1.22; margin-bottom: 12px; }
  .near .more { gap: 4px 20px; font-size: 15px; }
  .near .more .down, .plain.add { display: none; }
  .side { overflow-y: auto; }
  .side .mid { overflow: visible; flex: none; }
  .talking .side { z-index: 7; }
}

@media (max-width: 1000px) { .tools .whole { white-space: nowrap; font-size: 14px; padding: 0 13px; } .near .meta span:nth-child(3) { display: none; } }

/* a thread's light is full when it holds something you have not been to, and a ring when you have been to all of it */
.side .th i { background: none !important; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.side .th.fresh i { background: currentColor !important; box-shadow: 0 0 9px 1px currentColor; opacity: 1; }
.side .threads .next { display: block; text-align: left; }
.side .threads .next b { font-weight: 500; margin-left: 9px; opacity: .7; }
.side .threads .next.leave { color: rgba(255, 255, 255, .78); border-bottom-color: rgba(255, 255, 255, .3); }
.side .ht .t, .side .ht .l { white-space: normal; overflow: visible; }
.side .ht .l { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- from the audit of keyboard, screen-reader and small-screen use, 3 December ---------- */
.near .more a.lnk { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid color-mix(in oklab, currentColor, transparent 55%); }
.near .more a.lnk:hover { border-bottom-color: currentColor; }
.near .more a.lnk:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.near .more button, .near .more a.lnk { padding-top: 10px; padding-bottom: 10px; }
.beside { background: rgba(8, 6, 12, .74); padding: 12px 14px 10px; border-radius: 6px; margin-left: -4px; }      /* its own ground, so its words can be read whatever colour the floor is behind them */
.beside .write input:focus-visible, .side input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 2px; }
.shutit { display: none; }
.room.tight .beside .shutit { display: block; align-self: flex-end; order: -1; font: 500 13px/1 var(--text); color: var(--ink); padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 18px; }
.side .th { min-height: 36px; align-items: center; }
.side .threads .next { padding: 9px 0 3px; }
.out, .plain { padding-top: 10px; padding-bottom: 10px; margin-top: -10px; }
.tools button:disabled { opacity: .35; cursor: default; }
.reader h2.meta { font: 500 15px/1.2 var(--text); color: color-mix(in oklab, var(--type), transparent 35%); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
@media (max-width: 1000px) {
  .side > .shutit { display: block; position: absolute; top: 14px; right: 16px; font: 500 13px/1 var(--text); color: var(--ink); padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 18px; }
  .side .doors { flex-wrap: wrap; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .reader .page, .side, .beside, .near, .reader { transition: none !important; } }

/* ---------- the player, the stage, pressing a thread (3 December, afternoon) ---------- */
.side .deck { flex: none; display: flex; flex-direction: column; gap: 9px; padding: 13px 14px 12px; margin: 0 -6px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: rgba(255, 255, 255, .045); }
.side .deck h3 { margin: 0; padding: 0; border: 0; }
.side .deck .np { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: end; }
.side .deck .meter { width: 44px; height: 22px; }
.side .deck .what { min-width: 0; }
.side .deck .tt { margin: 0; font: 600 15px/1.25 var(--big); letter-spacing: -.008em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .deck .tm { margin: 2px 0 0; font: 400 11.5px/1.3 var(--mono); color: rgba(255, 255, 255, .7); }
.side .deck .seek { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: none; cursor: pointer; }
.side .deck .seek::-webkit-slider-runnable-track { height: 2px; background: rgba(255, 255, 255, .34); }
.side .deck .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: #fff; }
.side .deck .seek::-moz-range-track { height: 2px; background: rgba(255, 255, 255, .34); }
.side .deck .seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.side .deck .seek:disabled { opacity: .4; cursor: default; }
.side .deck .seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.side .deck .tr { display: flex; align-items: center; gap: 8px; }
.side .deck .tr button { height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .34); color: #fff; font: 500 13px/1 var(--text); }
.side .deck .tr button:hover { border-color: #fff; }
.side .deck .tr svg { width: 13px; height: 13px; fill: currentColor; }
.side .deck .tr .pp { padding: 0 15px 0 13px; background: #fff; color: #0b0a0e; border-color: #fff; font-weight: 600; }
.side .deck .tr .lst { margin-left: auto; padding: 0 13px; border-color: transparent; color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.side .deck .tracks { list-style: none; margin: 2px -6px 0; padding: 0; display: block; max-height: 31vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; flex: none; gap: 0; }
.side .deck .tracks li { padding: 0; border: 0; }
.side .deck .tk { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 0 10px; width: 100%; min-height: 34px; padding: 4px 8px; border-radius: 4px; font: 400 13.5px/1.25 var(--mono); color: rgba(255, 255, 255, .86); text-align: left; }
.side .deck .tk i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px 1px currentColor; }      /* not yet heard: a full light */
.side .deck .tk.part i { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }      /* part heard: half */
.side .deck .tk.heard i { background: none; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .65; }      /* heard: a ring */
.side .deck .tk.heard .t { color: rgba(255, 255, 255, .62); }
.side .deck .tk:hover, .side .deck .tk.on { background: rgba(255, 255, 255, .1); color: #fff; }
.side .deck .tk .k { font-size: 11.5px; }
.side .liverow { display: grid; grid-template-columns: 9px auto 1fr; align-items: center; gap: 0 10px; width: 100%; min-height: 36px; padding: 4px 8px 4px 10px; margin: -6px 0 -4px; border-radius: 4px; font: 500 14px/1.2 var(--mono); color: rgba(255, 255, 255, .86); text-align: left; }
.side .liverow i { width: 9px; height: 9px; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px #c9434c; }      /* the tally lamp, unlit */
.side .liverow .k { text-align: right; }
.side .liverow:hover, .side .liverow.on { background: rgba(255, 255, 255, .09); color: #fff; }
.room.onstage .stagecap { opacity: 1 !important; pointer-events: auto; }
.stagecap[hidden] { display: none; }
.stagecap .thr i { background: none; box-shadow: inset 0 0 0 1.5px #c9434c; }
.stagecap h1.from { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 8px; }
.stagecap .line { margin: 0; }

.side .deck .tracks { max-height: 24vh; }
.side .deck .np { grid-template-columns: 34px 1fr; align-items: center; } .side .deck .meter { width: 34px; height: 22px; }

.side .mid { min-height: 190px; }
.side .deck .tracks { max-height: 21vh; }

/* ---------- where you are, and the way back (3 December) ---------- */
html, body, .room, .side, .side .mid, .reader, .deck .tracks { overscroll-behavior: none; }      /* a sideways swipe moves you in the room; it never turns the browser's page back */
.path { position: absolute; top: clamp(18px, 3.4vh, 30px); left: calc(var(--side) + clamp(16px, 4vw, 60px)); margin-top: -10px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; padding: 4px 6px; border-radius: 20px; background: rgba(8, 6, 12, .7); font: 500 14px/1.2 var(--text); color: var(--ink); z-index: 4; max-width: calc(100vw - var(--side) - 300px); }
.path a, .path button, .path span[aria-current] { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 9px; border-radius: 17px; color: inherit; text-decoration: none; font: inherit; }
.path a { opacity: .72; }
.path a::before { content: "\2190"; margin-right: 2px; }
.path a:hover, .path button:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.path button { border: 1px solid rgba(255, 255, 255, .34); }
.path span[aria-current] { font-weight: 600; }
.path .sep { opacity: .4; padding: 0 1px; }
.path i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.path i.tally { box-shadow: inset 0 0 0 1.5px #c9434c; }
.path a:focus-visible, .path button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 1000px) { .path { left: 16px; max-width: calc(100vw - 150px); font-size: 13px; } .path a { font-size: 0; } .path a::before { font-size: 15px; } .path a::after { content: "Site"; font-size: 13px; } }

.side .deck .tr .lst, .side .deck .tr .pp { white-space: nowrap; }
.side .deck .tracks { max-height: 17vh; }
.side .mid { min-height: 230px; }

/* ---------- a narrower panel (Evan, 3 December: "competing too much ... rather than a side panel vibe") ---------- */
.side { gap: 16px; }
.side .mid { gap: 18px; }
.side .q .qt { font-size: 16.5px; line-height: 1.2; }
.side .th { font-size: 13px; min-height: 32px; padding: 3px 6px 3px 8px; gap: 0 9px; }
.side .liverow { font-size: 13px; padding-left: 8px; }
.side .deck { padding: 11px 11px 10px; margin: 0 -4px; gap: 8px; }
.side .deck .tr { gap: 6px; } .side .deck .tr button { height: 32px; min-width: 32px; font-size: 12.5px; }
.side .deck .tr .pp { padding: 0 12px 0 10px; } .side .deck .tr .lst { padding: 0 6px; }
.side .deck .tt { font-size: 14px; }
.side .deck .tk { font-size: 12.5px; padding: 3px 6px; min-height: 30px; }
.side .ht .l { font-size: 13px; }
.side .doors { flex-wrap: wrap; white-space: nowrap; gap: 2px 12px; font-size: 12px; }
/* what is said beside a moment needs no box of its own: its letters carry their own shadow against the room */
.beside { background: none; padding: 0; margin-left: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .75); }
.beside .write input::placeholder { color: rgba(255, 255, 255, .78); }

/* a short screen: the middle of the panel gives way first, and scrolls; the player and the foot stay whole */
.side .mid { flex: 1 1 auto; min-height: 150px; }
.side .deck .tracks { max-height: 14vh; }

/* the conversation on the site: asking a visitor to sign in, a first-time writer for a name, and why a remark did not go */
.beside .ask { margin: 0; font: 400 15px/1.45 var(--text); color: var(--ink); }
.beside .ask a, .side .q .k a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); }
.beside .naming { flex-wrap: wrap; }
.beside .naming label { width: 100%; font: 500 12px/1.3 var(--mono); opacity: .85; padding-top: 2px; }
.beside .why { margin: 4px 0 0; font: 400 13px/1.35 var(--text); color: #ffd23c; }
.beside .why:empty { display: none; }
.side .opener .next { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); margin: 0; }
