/* Kofe
 * Layout concept: a house in the evening. The page is the dark hall, every
 * room is a picture lit from inside, type is ivory, and gold is kept for the
 * small things that matter: what is open, what is chosen, what is checked.
 */
:root {
  --bg: #0d0b09;          /* the hall at night */
  --surface: #161310;
  --raised: #1f1b17;
  --ink: #f1eadd;         /* ivory */
  --muted: #a99f8f;
  --faint: #7b7266;
  --line: #2c2620;
  --door: #d4aa63;        /* candle gold, the one accent */
  --door-ink: #1b1306;
  --door-soft: #2b2214;
  --btn: #f1eadd;         /* the main button is ivory, not gold */
  --btn-ink: #14100b;
  --lamp: #f0b755;        /* light from an open door: live */
  --lamp-glow: rgba(240, 183, 85, 0.26);
  --lamp-ink: #2b1d02;
  --danger: #f08a82;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;

  --display: "Bodoni Moda", "Noto Serif Display", "Noto Serif Armenian", "Didot", "Bodoni 72", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Noto Sans", "Noto Sans Armenian", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

/* the same house by day: ivory walls, the pictures stay dark */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3eee5;
    --surface: #faf7f1;
    --raised: #ffffff;
    --ink: #1b1611;
    --muted: #665c4f;
    --faint: #958a7b;
    --line: #ddd4c5;
    --door: #7d5c22;
    --door-ink: #fffaf0;
    --door-soft: #ece2cf;
    --btn: #1b1611;
    --btn-ink: #f3eee5;
    --lamp: #e9a93c;
    --lamp-glow: rgba(233, 169, 60, 0.35);
    --lamp-ink: #3d2a05;
    --danger: #b4322b;
    --shadow: 0 1px 2px rgba(40, 30, 15, 0.06), 0 10px 28px rgba(40, 30, 15, 0.08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3eee5;
  --surface: #faf7f1;
  --raised: #ffffff;
  --ink: #1b1611;
  --muted: #665c4f;
  --faint: #958a7b;
  --line: #ddd4c5;
  --door: #7d5c22;
  --door-ink: #fffaf0;
  --door-soft: #ece2cf;
  --btn: #1b1611;
  --btn-ink: #f3eee5;
  --lamp: #e9a93c;
  --lamp-glow: rgba(233, 169, 60, 0.35);
  --lamp-ink: #3d2a05;
  --danger: #b4322b;
  --shadow: 0 1px 2px rgba(40, 30, 15, 0.06), 0 10px 28px rgba(40, 30, 15, 0.08);
  color-scheme: light;
}

/* Anything that sits on a picture is evening in both looks. */
.night {
  --bg: #0d0b09;
  --surface: #161310;
  --raised: #1f1b17;
  --ink: #f1eadd;
  --muted: #b9af9f;
  --faint: #857c6f;
  --line: rgba(241, 234, 221, 0.16);
  --door: #d4aa63;
  --door-ink: #1b1306;
  --door-soft: rgba(13, 11, 9, 0.55);
  --btn: #f1eadd;
  --btn-ink: #14100b;
  --lamp: #f0b755;
  --lamp-glow: rgba(240, 183, 85, 0.26);
  --lamp-ink: #2b1d02;
  color: var(--ink);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--door); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
img { display: block; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- type */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-lamp { background: var(--lamp); color: var(--lamp-ink); }
.btn-quiet { background: transparent; color: var(--muted); padding: 0 10px; min-height: 36px; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--door); border-color: var(--door); color: var(--door-ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h, 160) 45% 48%); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--door-soft); color: var(--ink);
}
.pill-live { background: var(--lamp); color: var(--lamp-ink); }
.pill-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: breathe 2.4s ease-in-out infinite;
}
.pill-check { background: transparent; border: 1px solid var(--door); color: var(--door); }

@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------------------------------------------------------- avatar */
.av {
  --size: 36px;
  width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: calc(var(--size) * 0.36); font-weight: 750;
  color: #fff; background: hsl(var(--h, 160) 26% 36%);
  border: 2px solid var(--surface);
}
.av.pt { overflow: hidden; background: hsl(var(--h, 30) 20% 17%); }
.av.pt svg { width: 100%; height: 100%; display: block; }
.av.ph { overflow: hidden; background: hsl(var(--h, 30) 20% 17%); }
.av.ph img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -7px; }

/* ---------------------------------------------------------------- the door */
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px; padding: 26px 22px 20px;
  border-radius: 999px 999px var(--r) var(--r);
  background: var(--surface); border: 1.5px solid var(--line);
  text-decoration: none; color: var(--ink); cursor: pointer; text-align: left;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s ease, border-color 0.2s ease;
  overflow: hidden; isolation: isolate;
}
.door::before {
  /* the frame inside the frame */
  content: ""; position: absolute; inset: 9px; border-radius: inherit; border: 1px solid var(--line);
  pointer-events: none; z-index: -1;
}
.door:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--door); }
.door.live {
  background:
    radial-gradient(120% 70% at 50% 100%, var(--lamp-glow), transparent 70%),
    var(--surface);
  border-color: var(--lamp);
}
.door.live::after {
  /* light spilling under the door */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 4px; border-radius: 4px;
  background: var(--lamp); box-shadow: 0 0 22px 6px var(--lamp-glow);
}
.door .q { font-family: var(--display); font-size: 22px; line-height: 1.22; margin: 12px 0 16px; padding-right: 10px; }
.door .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.door .top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.door-pic {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 42%; opacity: 0.62;
  -webkit-mask-image: linear-gradient(180deg, #000 18%, transparent 74%); mask-image: linear-gradient(180deg, #000 18%, transparent 74%);
}
.door.has-pic { background: var(--surface); }
.door.has-pic.live { background: radial-gradient(120% 70% at 50% 100%, var(--lamp-glow), transparent 70%), var(--surface); }
.door .knob {
  position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
}
.door.live .knob { background: var(--lamp); }

/* ---------------------------------------------------------------- page frame */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: 25px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 20px; height: 26px; border-radius: 999px 999px 3px 3px; border: 2px solid currentColor;
  position: relative; display: inline-block;
}
.brand-mark::after {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--lamp);
}
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a.navlink { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.site-nav a.navlink:hover { color: var(--ink); }
@media (max-width: 760px) { .site-nav .navlink { display: none; } }

section.block { padding-block: clamp(56px, 9vw, 110px); }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; }
.section-head p { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* ---------------------------------------------------------------- hero */
/* One picture fills the top of the house. The words sit on its dark side,
 * and a rail of smaller pictures along the bottom chooses the room. */
.site-head.over + main .hero { margin-top: -67px; }
.site-head.over:not(.scrolled) {
  --ink: #f1eadd; --muted: #d2c9ba; --line: rgba(241, 234, 221, 0.22); --btn: #f1eadd; --btn-ink: #14100b; --lamp: #f0b755;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink);
}
.hero { --stage-h: clamp(290px, 84vw, 430px); position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-pic.on { opacity: 1; animation: drift 16s ease-out both; }
@keyframes drift { from { transform: scale(1.01); } to { transform: scale(1.08); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.9), rgba(13, 11, 9, 0.5) 36%, rgba(13, 11, 9, 0) 62%),
    linear-gradient(180deg, rgba(13, 11, 9, 0.6), rgba(13, 11, 9, 0) 20%, rgba(13, 11, 9, 0) 58%, rgba(13, 11, 9, 0.94) 100%);
}
.hero-body { display: flex; flex-direction: column; min-height: clamp(620px, 88vh, 920px); padding-top: 110px; padding-bottom: clamp(20px, 3vw, 34px); }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 640px; }
.hero h1 { font-family: var(--display); font-size: clamp(50px, 8.2vw, 122px); line-height: 0.95; letter-spacing: -0.025em; }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34ch; margin-top: clamp(16px, 2vw, 26px); }
.now { margin-top: clamp(26px, 3.6vw, 48px); display: grid; gap: 12px; transition: opacity 0.26s ease, transform 0.26s ease; }
.now.swap { opacity: 0; transform: translateY(8px); }
.now-name { font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--door); }
.now-q { font-family: var(--display); font-style: italic; font-size: clamp(23px, 2.7vw, 38px); line-height: 1.16; max-width: 21ch; text-wrap: balance; min-height: 2.32em; }
.now-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-top: clamp(26px, 4vw, 48px); }
.rail-item { display: grid; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.rail-item .thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg); outline: 1px solid var(--line); outline-offset: -1px; }
.rail-item .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.4s ease; }
.rail-item .bar { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-item .bar i { display: block; height: 100%; width: 0; background: var(--door); }
.rail-item:hover, .rail-item[aria-pressed="true"] { color: var(--ink); }
.rail-item:hover .thumb img, .rail-item[aria-pressed="true"] .thumb img { opacity: 1; }
.rail-item[aria-pressed="true"] .thumb { outline-color: var(--door); }
.rail-item:focus-visible { outline: none; }
.rail-item:focus-visible .thumb { outline: 2px solid var(--door); outline-offset: 2px; }
.rail-item[aria-pressed="true"] .bar i { width: 100%; animation: rail-fill 7s linear both; }
.hero.hold .rail-item .bar i { animation-play-state: paused; }
@keyframes rail-fill { from { width: 0; } }

@media (max-width: 760px) {
  /* the picture on top, the words under it */
  .hero-stage { position: relative; inset: auto; height: var(--stage-h); }
  .hero-shade { inset: 0 0 auto; height: var(--stage-h); background: linear-gradient(180deg, rgba(13, 11, 9, 0.55), rgba(13, 11, 9, 0) 26%, rgba(13, 11, 9, 0) 52%, var(--bg) 100%); }
  .hero-body { min-height: 0; padding-top: 0; margin-top: -54px; }
  .hero-copy { max-width: none; }
  .now-q { min-height: 3.48em; }
  .rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
  .rail-item { font-size: 12.5px; }
}

/* ---------------------------------------------------------------- the gallery */
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; max-width: none; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 20vw, 262px); gap: 14px; }
.tile {
  position: relative; grid-column: span 2; overflow: hidden; isolation: isolate; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 20px; text-decoration: none; background: var(--bg);
}
.tile.big { grid-column: span 4; grid-row: span 2; padding: 24px 28px 28px; }
.tile.half { grid-column: span 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 11, 9, 0.7), rgba(13, 11, 9, 0) 58%),
    linear-gradient(180deg, rgba(13, 11, 9, 0.3), rgba(13, 11, 9, 0) 34%, rgba(13, 11, 9, 0.1) 52%, rgba(13, 11, 9, 0.85));
}
.tile:hover img { transform: scale(1.05); }
.tile:focus-visible { outline-offset: 3px; border-radius: 22px; }
.tile .pill { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 2.5vw, 36px); line-height: 1; letter-spacing: -0.01em; }
.tile i { display: block; margin-top: 8px; font-family: var(--display); font-size: 16.5px; line-height: 1.25; color: var(--muted); max-width: 28ch; }
.tile.big b { font-size: clamp(44px, 5.4vw, 80px); }
.tile.big i { font-size: clamp(18px, 1.7vw, 23px); margin-top: 12px; }
.more-rooms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; color: var(--faint); font-size: 14px; }
.more-rooms > span:first-child { margin-right: 6px; }
.chip.quiet { cursor: default; background: transparent; color: var(--muted); font-weight: 500; min-height: 30px; padding: 0 12px; font-size: 13.5px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 42vw, 250px); }
  .tile, .tile.half { grid-column: span 1; }
  .tile.big { grid-column: span 2; grid-row: span 1; }
  .tile:last-child { grid-column: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 200px; }
  .tile, .tile.big, .tile.half, .tile:last-child { grid-column: auto; }
  .tile.big { grid-row: span 1; padding: 18px 20px 20px; }
}

/* ---------------------------------------------------------------- how it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.step { display: grid; gap: 10px; align-content: start; min-width: 0; }
.step .n { font-family: var(--display); font-style: italic; font-size: 21px; color: var(--door); margin-top: 8px; }
.step h3 { font-family: var(--display); font-size: 27px; line-height: 1.1; }
.step p { color: var(--muted); font-size: 15px; }
.vig {
  position: relative; height: 196px; border-radius: 20px; overflow: hidden; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); display: grid; align-content: center; gap: 14px;
}
.vig-door .vq { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.2; }
.vig-door .va { font-size: 14.5px; padding-bottom: 8px; border-bottom: 1px solid var(--door); display: flex; align-items: center; gap: 3px; }
.vig-door .va::after { content: ""; width: 1.5px; height: 1.1em; background: var(--lamp); animation: breathe 1.2s steps(2, jump-none) infinite; }
.vig-table .tb {
  position: absolute; left: 50%; top: 50%; width: 46%; height: 42%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--lamp-glow), transparent), var(--raised); border: 1px solid var(--line);
}
.vig-table .av { position: absolute; transform: translate(-50%, -50%); border-color: var(--surface); }
.vig-note { justify-items: center; }
.vig-note .note {
  width: min(210px, 100%); background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px;
  display: grid; gap: 6px; transform: rotate(-2.5deg); box-shadow: var(--shadow);
}
.vig-note .note b { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 2px; }
.vig-note .note span { font-family: var(--display); font-style: italic; font-size: 15.5px; line-height: 1.2; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.vig-note .note span:last-child { border-bottom: 0; padding-bottom: 0; }
.vig-follow { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.vig-follow b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; margin-bottom: 8px; }
.vig-follow .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vig-follow .chip { min-height: 28px; padding: 0 11px; font-size: 13px; cursor: default; }
.vig-follow .chip.on { background: var(--door); border-color: var(--door); color: var(--door-ink); }
.vig-follow .chip.off { background: transparent; color: var(--faint); text-decoration: line-through; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .vig { height: 168px; } }

/* ---------------------------------------------------------------- schedule */
.schedule { display: grid; gap: 0; border-top: 1px solid var(--line); }
.slot {
  display: grid; grid-template-columns: 104px 92px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding-block: 16px; border-bottom: 1px solid var(--line);
}
.slot .time { font-size: 14px; color: var(--muted); }
.slot .time b { display: block; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.slot-pic { width: 92px; height: 60px; border-radius: 10px; object-fit: cover; object-position: 70% 50%; }
.slot-pic.none { background: var(--surface); border: 1px solid var(--line); }
.slot .what { min-width: 0; display: grid; gap: 4px; }
.slot .what .q { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.slot .what .by { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .slot { grid-template-columns: 74px minmax(0, 1fr); gap: 10px 14px; }
  .slot .time { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .slot .time b { font-size: 21px; }
  .slot-pic { width: 74px; height: 52px; }
  .slot .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------------------------------------------------------------- experts + safety */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.expert-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  display: grid; gap: 14px;
}
.expert-card + .expert-card { margin-top: 14px; }
.expert-card .who { display: flex; gap: 14px; align-items: center; }
.expert-card .who b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: "✓"; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  border: 1px solid var(--door); color: var(--door);
}
.check-list b { display: block; }
.check-list span { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- worlds teaser */
.world-demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center;
}
.world-demo h2 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; }
.world-demo p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 46ch; }
.world-demo .path { display: grid; gap: 10px; }
.world-demo .path div {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 18px; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: center;
}
.world-demo .path div:last-child { border-color: var(--door); }
.world-demo .path i { font-family: var(--display); font-size: 16px; color: var(--door); }
.world-demo .path b { font-family: var(--display); font-weight: 400; font-size: 21px; }
.world-demo .path small { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .world-demo { grid-template-columns: 1fr; } }

.closing { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; z-index: -2; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 11, 9, 0.82), rgba(13, 11, 9, 0.2) 55%, rgba(13, 11, 9, 0)); }
.closing .wrap { display: grid; gap: 28px; justify-items: start; align-content: center; min-height: clamp(420px, 56vw, 640px); padding-block: 64px; }
.closing h2 { font-family: var(--display); font-size: clamp(42px, 6.8vw, 96px); line-height: 0.98; letter-spacing: -0.02em; max-width: 9ch; }
.closing .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .closing img { object-position: 60% 50%; opacity: 0.8; }
  .closing::after { background: linear-gradient(180deg, rgba(13, 11, 9, 0.2), rgba(13, 11, 9, 0.86)); }
  .closing .wrap { align-content: end; }
}

footer.site-foot { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 14px; }
footer.site-foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }

/* ---------------------------------------------------------------- auth */
.auth {
  min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.5), rgba(13, 11, 9, 0.15) 45%, rgba(13, 11, 9, 0.8)), url(art/door.webp) 62% 50% / cover var(--bg);
  color: var(--ink); padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.auth-art blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; max-width: 15ch; }
.auth-art .card {
  background: rgba(13, 11, 9, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; display: flex; gap: 12px; align-items: center; max-width: 380px;
}
.auth-art .card small { display: block; opacity: 0.75; }
.auth-form { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.auth-form form { width: min(420px, 100%); display: grid; gap: 16px; }
.auth-form h1 { font-family: var(--display); font-size: clamp(34px, 4vw, 46px); line-height: 1.05; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 650; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised);
  padding: 12px 14px; font-size: 16px; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--door); box-shadow: 0 0 0 3px var(--door-soft); }
.field .hint { font-size: 13px; color: var(--faint); }
.field .err { font-size: 13px; color: var(--danger); font-weight: 600; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); }
.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Google's own button: its colours are fixed by Google, in both looks. */
.btn-google { width: 100%; min-height: 50px; gap: 12px; background: #ffffff; color: #1f1f1f; border-color: #747775; font-weight: 600; font-size: 16px; }
.btn-google:hover { background: #f4f6fb; }
.btn-google[disabled] { opacity: 0.6; }
.btn-google svg { flex: none; }
.auth-form .err:empty { display: none; }
.arriving { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); font-size: 17px; padding: 40px var(--gutter); }
.arriving .knob { position: static; width: 14px; height: 14px; border-radius: 50%; background: var(--lamp); animation: arriving 1.2s ease-in-out infinite; }
@keyframes arriving { 50% { opacity: 0.25; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .arriving .knob { animation: none; } }
.demo-note { font-size: 13px; color: var(--faint); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 240px; }
}

/* ---------------------------------------------------------------- onboarding */
.onboard { padding-block: clamp(32px, 6vw, 72px); display: grid; gap: 28px; max-width: 880px; }
.onboard h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 58px); line-height: 1.02; }
.topic-picker { display: grid; gap: 22px; }
.topic-picker .g h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.topic-picker .g .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sticky-foot {
  position: sticky; bottom: 0; padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}

/* ---------------------------------------------------------------- app shell */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--line); background: var(--bg);
}
.side nav { display: grid; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none;
  color: var(--muted); font-weight: 600;
}
.side nav a:hover { color: var(--ink); background: var(--surface); }
.side nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.side nav svg { width: 20px; height: 20px; flex: none; }
.side .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; }
.side .me:hover { background: var(--surface); }
.side .me small { display: block; color: var(--muted); font-size: 12.5px; }
.main { min-width: 0; padding: 26px clamp(16px, 3.5vw, 44px) 80px; }
.page-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.page-head p { color: var(--muted); margin-top: 6px; }

.tabbar { display: none; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding-bottom: 110px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 650; }
  .tabbar a[aria-current="page"] { color: var(--door); }
  .tabbar svg { width: 22px; height: 22px; }
  .mobile-head { display: flex !important; }
}
.mobile-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.shelf-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.shelf-row .door { min-height: 280px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.row-head h2 { font-family: var(--display); font-size: 26px; }

.list { display: grid; gap: 10px; }
.list-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink);
}
.list-item:hover { border-color: var(--muted); }
.list-item .t { font-weight: 650; }
.list-item .s { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 26px; color: var(--muted); display: grid; gap: 12px; justify-items: start;
}

/* ---------------------------------------------------------------- at the door */
.threshold { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.threshold .ask { --pad: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: var(--pad); display: grid; gap: 18px; overflow: hidden; }
.ask-pic { height: clamp(150px, 22vw, 240px); margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 6px; background-size: cover; background-position: 68% 50%; background-color: #0d0b09; }
.threshold .ask .q { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.inside-preview { display: grid; gap: 10px; }
.answer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; }
.answer-card .who { display: flex; gap: 10px; align-items: center; font-weight: 650; font-size: 14px; }
.answer-card .who small { color: var(--muted); font-weight: 500; }
.answer-card .a { font-family: var(--display); font-size: 17px; line-height: 1.32; }
.answer-card.mine { border-color: var(--lamp); background: color-mix(in srgb, var(--lamp) 10%, var(--surface)); }
.blur-a .a { filter: blur(5px); user-select: none; }
.crisis {
  border: 1px solid var(--line); border-left: 4px solid var(--door); border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--surface);
}
@media (max-width: 900px) { .threshold { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- inside a room */
.room { display: grid; grid-template-columns: 280px minmax(0, 1fr) 260px; gap: 18px; height: calc(100vh - 190px); min-height: 480px; }
.room-col { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.room-col.scroll { overflow: auto; padding-right: 4px; }
.room-head {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.room-head .q { font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; }
.thread { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 6px 0; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; animation: arrive 0.35s ease both; }
.msg .body { min-width: 0; }
.msg .name { font-size: 13.5px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.msg .name small { color: var(--faint); font-weight: 500; font-family: var(--mono); font-size: 11.5px; }
.msg .text { font-size: 15.5px; overflow-wrap: anywhere; }
.msg.me .text { background: var(--door-soft); border-radius: 4px 14px 14px 14px; padding: 8px 12px; display: inline-block; }
.msg.system { grid-template-columns: 1fr; text-align: center; font-size: 13px; color: var(--faint); }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer { display: flex; gap: 10px; align-items: flex-end; border: 1px solid var(--line); background: var(--raised); border-radius: 18px; padding: 8px 8px 8px 14px; }
.composer textarea { flex: 1; border: 0; background: transparent; resize: none; min-height: 40px; max-height: 140px; padding: 9px 0; outline: none; font-size: 15.5px; }
.typing { font-size: 13px; color: var(--faint); min-height: 18px; }
.room-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.side-card h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
@media (max-width: 1100px) {
  .room { grid-template-columns: 240px minmax(0, 1fr); }
  .room .room-right { display: none; }
}
@media (max-width: 860px) {
  .room { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .room .room-left { display: none; }
  .room .thread { max-height: 58vh; min-height: 320px; }
  .people-strip { display: flex !important; }
}
.people-strip { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.people-strip .answer-card { min-width: 220px; }

/* ---------------------------------------------------------------- sheet */
.sheet-back {
  position: fixed; inset: 0; z-index: 50; background: rgba(6, 5, 4, 0.66);
  display: grid; place-items: center; padding: 16px; animation: fade 0.2s ease both;
}
.sheet {
  width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg);
  border-radius: 24px; border: 1px solid var(--line); padding: clamp(20px, 4vw, 34px); display: grid; gap: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25); animation: rise 0.3s cubic-bezier(.2,.7,.2,1) both;
}
.sheet h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); line-height: 1.08; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.follow-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line); }
.follow-row:last-child { border-bottom: 0; }
.follow-row small { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- create */
.create { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.create form { display: grid; gap: 18px; }
.field .seg { justify-self: start; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .create { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.preview-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }

/* ---------------------------------------------------------------- worlds */
.world { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
.world-hero {
  border-radius: 24px; padding: clamp(20px, 4vw, 32px); background: var(--surface); border: 1px solid var(--door); color: var(--ink); margin-bottom: 18px;
  display: grid; gap: 10px;
}
.world-hero h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.world-hero .chip { background: transparent; color: var(--ink); border-color: var(--line); cursor: default; }
@media (max-width: 900px) { .world { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- what is new */
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto; border-radius: 999px; font-style: normal;
  background: var(--lamp); color: var(--lamp-ink); font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; flex: none;
}
.tabbar a { position: relative; }
.tabbar .badge { position: absolute; top: 0; right: 10%; margin: 0; }
.today-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.today-card {
  display: flex; gap: 14px; align-items: center; min-width: 0; padding: 12px 16px 12px 12px; text-decoration: none;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.today-card:hover { border-color: var(--door); }
.today-card > span:last-child { min-width: 0; }
.today-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.today-card small { display: block; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-pic { width: 78px; height: 52px; flex: none; border-radius: 10px; background: center / cover var(--raised); }
@media (max-width: 640px) { .today-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- a private chat */
.chat-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.chat-head .grow { flex: 1; min-width: 160px; }
.chat-head h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; }
.chat-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.duo { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--door); }
.duo-q { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 27px); line-height: 1.2; }
.duo form, .inline-form { display: flex; gap: 8px; }
.duo input, .inline-form input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15.5px;
  border: 1px solid var(--line); background: var(--raised); color: var(--ink);
}
.duo input:focus, .inline-form input:focus { outline: none; border-color: var(--door); box-shadow: 0 0 0 3px var(--door-soft); }
.duo-lock { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.blurred { filter: blur(5px); user-select: none; color: var(--ink); }
.duo-a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.duo-a div { padding: 10px 14px; border-radius: 12px; background: var(--raised); }
.duo-a small { font-size: 12px; font-weight: 700; color: var(--door); }
.duo-a p { font-family: var(--display); font-size: 17.5px; line-height: 1.3; margin-top: 2px; }
.chat .msg { display: flex; gap: 8px; align-items: flex-end; }
.chat .msg .text { display: inline-block; max-width: min(520px, 100%); padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); }
.chat .msg.me { justify-content: flex-end; }
.chat .msg.me .text { background: var(--door-soft); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.chat .msg.gave { justify-content: center; }
.gift-msg { display: grid; justify-items: center; gap: 6px; padding: 8px 18px; }
.gift-msg :is(svg, img) { height: 76px; width: auto; max-width: 220px; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)); }
.gift-msg small { color: var(--muted); font-size: 13px; }
.msg.gave.fresh :is(svg, img) { animation: drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
.gift-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--door); display: grid; place-items: center; cursor: pointer; }
.gift-btn:hover { border-color: var(--door); }
.gift-btn svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .duo-a { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- chats */
/* The list of people on one side, the conversation on the other. */
.dm {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 190px); min-height: 480px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface);
}
.dm-list { overflow: auto; border-right: 1px solid var(--line); padding: 8px; display: grid; gap: 2px; align-content: start; }
.dm-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; }
.dm-item:hover { background: var(--raised); }
.dm-item[aria-current="true"] { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.dm-face { position: relative; display: inline-flex; }
.dm-face .here { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--lamp); border: 2px solid var(--surface); }
.dm-text { min-width: 0; display: grid; gap: 1px; }
.dm-text b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-text small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 16px; background: var(--bg); }
.dm-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dm-head .grow { flex: 1; min-width: 140px; }
.dm-head h2 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.dm-head p { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-head a { text-decoration: none; }
.dm-back { display: none; padding-left: 0; }
.dm-note { font-size: 13.5px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
.dm-none { margin: auto; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--muted); padding: 24px; }
.dm-none b { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); }
.dm-pane .duo { padding: 14px 16px; }
.dm-pane .duo-q { font-size: clamp(18px, 2vw, 22px); }
.thread-empty { margin: auto; color: var(--faint); font-size: 14px; }
.world-talk { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.world-talk .thread { max-height: 48vh; min-height: 220px; }
.people-sheet { position: relative; width: min(460px, 100%); }
.people-list { display: grid; max-height: min(52vh, 420px); overflow: auto; }
.people-list .follow-row { text-decoration: none; }
.people-list .follow-row:hover b { color: var(--door); }
@media (max-width: 899px) {
  .dm { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 250px); min-height: 420px; }
  .dm-list { border-right: 0; }
  .dm.has-open .dm-list, .dm:not(.has-open) .dm-pane { display: none; }
  .dm-back { display: inline-flex; }
  .dm-pane { padding: 12px; }
  /* with a chat open, the whole screen is the conversation */
  .page-head:has(+ .dm.has-open) { display: none; }
  .dm.has-open { height: calc(100vh - 170px); }
  .dm-pane .duo { padding: 10px 12px; gap: 8px; }
  .dm-pane .duo .eyebrow, .dm-pane .duo-lock { display: none; }
}

/* gifts and coins in a sheet, anywhere outside a room */
.gift-sheet { position: relative; width: min(430px, 100%); gap: 14px; }
.gift-sheet .card-head { padding-right: 30px; }
.gift-sheet .card-back, .gift-sheet .card-note, .gift-sheet .gift-price, .gift-sheet .seat-line, .gift-sheet .seat-card-x { color: var(--muted); }
.gift-sheet .seat-line { font-size: 14.5px; }
.gift-sheet .btn { justify-self: stretch; }

/* ---------------------------------------------------------------- a room of your own */
.place {
  --w-wall: #12100d; --w-wall-2: #0a0807; --w-felt: #3a2416; --w-felt-2: #28170d; --w-rim: #b98d43;
  --w-lamp: #f3c15e; --w-lamp-glow: rgba(243, 193, 94, 0.18); --w-ink: #ede9df; --w-muted: #b9af9f; --w-me: #d4aa63; --w-shade: rgba(0, 0, 0, 0.5);
  position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; aspect-ratio: 16 / 7.6; min-height: 320px;
  background: var(--w-wall); color: var(--w-ink); color-scheme: dark;
}
.place .stage-room { background-position: center 16%; }
.place .stage-shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 30%, transparent 52%, rgba(0, 0, 0, 0.72)), radial-gradient(90% 90% at 50% 50%, transparent 55%, var(--w-shade)); }
/* The photograph of the room stays untouched. What stands on the table and the
   gifts kept here are shown beside it, each in its own small lit case. */
.case { position: absolute; right: clamp(16px, 3vw, 34px); bottom: clamp(14px, 2.6vw, 30px); max-width: 50%; display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; }
.keep {
  width: clamp(60px, 7.4vw, 108px); aspect-ratio: 1; flex: none; display: grid; place-items: center; padding: 9px; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(212, 170, 99, 0.3);
  background: radial-gradient(120% 85% at 50% 0%, rgba(58, 44, 30, 0.92), rgba(10, 8, 7, 0.94) 72%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 236, 200, 0.1);
  backdrop-filter: blur(6px);
}
.keep.on-table { border-color: rgba(243, 193, 94, 0.6); }
.keep :is(svg, img), .keep .cp { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; transform: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }
.keep.more { font-family: var(--mono); font-size: 14px; color: var(--w-muted); }
.keep.new { animation: drop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
.place-plate { position: absolute; left: clamp(16px, 3vw, 34px); bottom: clamp(14px, 2.6vw, 30px); max-width: 44%; display: flex; gap: 16px; align-items: center; }
.place-plate .av { border: 3px solid var(--w-me); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.place-plate h1 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 46px); line-height: 1; }
.place-kind { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--w-lamp); margin-bottom: 6px; }
.place-line { color: var(--w-muted); font-size: 15px; margin-top: 6px; }
.place-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; margin-top: 24px; }
.at-door { display: grid; gap: 14px; min-width: 0; }
.door-q { font-family: var(--display); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.place-count { color: var(--muted); font-size: 14px; }
.notes { display: grid; gap: 10px; }
.note-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.note-card a { text-decoration: none; }
.note-card b { font-size: 14px; }
.note-card p { font-family: var(--display); font-size: 18px; line-height: 1.3; margin-top: 2px; }
.decorate { display: grid; gap: 12px; min-width: 0; }
.place-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.place-pick { display: grid; gap: 3px; padding: 0 0 7px; overflow: hidden; text-align: center; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); }
.place-pick .thumb { display: block; aspect-ratio: 16 / 9; background: center / cover #0d0b09; }
.place-pick .nm { font-size: 11.5px; font-weight: 650; line-height: 1.15; padding: 3px 4px 0; }
.place-pick .st { font-size: 11px; font-weight: 600; color: var(--muted); }
.place-pick[aria-pressed="true"] { border-color: var(--door); box-shadow: 0 0 0 1px var(--door); }
.place-pick[aria-pressed="true"] .st { color: var(--door); }
.place-pick.armed { border-color: var(--lamp); box-shadow: 0 0 0 1px var(--lamp); }
.place-pick.armed .st { color: var(--lamp); }
.centre-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.centre-pick { width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); font-size: 11.5px; font-weight: 650; }
.centre-pick .cp { width: 28px; filter: none; }
.centre-pick .cp-book, .centre-pick .cp-scales { width: 38px; }
.centre-pick .cp * { animation: none !important; }
.centre-pick[aria-pressed="true"] { border-color: var(--door); box-shadow: 0 0 0 1px var(--door); }
.purse-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mini-room { display: grid; gap: 2px; padding: 10px 0 2px; border-top: 1px solid var(--line); text-decoration: none; }
.mini-room b { font-family: var(--display); font-weight: 400; font-size: 17.5px; line-height: 1.2; }
.mini-room small { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .place-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .place { aspect-ratio: 4 / 3.7; border-radius: 20px; }
  .case { left: 14px; right: 14px; top: 14px; bottom: auto; max-width: none; flex-wrap: wrap; gap: 8px; }
  .keep { width: 52px; border-radius: 13px; }
  .place-plate { max-width: none; right: 16px; }
}

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 650; font-size: 14.5px;
  box-shadow: var(--shadow); animation: rise 0.25s ease both; max-width: calc(100vw - 32px);
}
@media (max-width: 860px) { .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }

/* the language picker, and what longer words need */
.lang {
  height: 40px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
}
.lang:hover { color: var(--ink); }
.lang option { color: #1b1611; background: #f3eee5; }
.side-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 0 6px; }
.side .side-foot + .me { margin-top: 0; }
.head-tools { display: inline-flex; gap: 8px; align-items: center; }
:root:lang(hy) *, :root:lang(hy) *::placeholder { font-style: normal !important; }
:root:lang(hy) .btn, :root:lang(ru) .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 8px; }
:root:lang(hy) .hero h1, :root:lang(ru) .hero h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; }
:root:lang(hy) .closing h2, :root:lang(ru) .closing h2 { font-size: clamp(36px, 5.6vw, 78px); max-width: 12ch; }
:root:lang(hy) .tabbar a, :root:lang(ru) .tabbar a { font-size: 10px; letter-spacing: -0.01em; }
:root:lang(hy) .eyebrow, :root:lang(hy) .now-name, :root:lang(hy) .place-kind { letter-spacing: 0.08em; }
@media (max-width: 520px) { .site-nav .btn-quiet { display: none; } }

.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================ the room
 * Inside, it is always evening: a dim room, one lamp over a round table,
 * people seated around it. The light follows whoever is talking.
 * One look in both themes, on purpose: walking in should feel like a place.
 */
.scene {
  --w-wall: #12100d;
  --w-wall-2: #0a0807;
  --w-felt: #3a2416;
  --w-felt-2: #28170d;
  --w-rim: #b98d43;
  --w-lamp: #f3c15e;
  --w-lamp-glow: rgba(243, 193, 94, 0.18);
  --w-ink: #ede9df;
  --w-muted: #a99f8f;
  --w-faint: #7b7266;
  --w-line: rgba(237, 233, 223, 0.09);
  --w-panel: #17130f;
  --w-panel-2: #1f1a15;
  --w-me: #d4aa63;
  --w-shade: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
  position: relative; min-height: 100vh; height: 100vh; display: flex; flex-direction: column;
  color: var(--w-ink);
  background:
    radial-gradient(60% 50% at 38% 0%, rgba(243, 193, 94, 0.10), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, var(--w-wall-2), transparent 60%),
    var(--w-wall);
}
.scene .mono { color: var(--w-muted); }

/* Each kind of room is its own place. The pictures of the wall and floor
 * come from the page; these are the colours that go with them. */
.scene[data-set="poetry"], .place[data-set="poetry"] { --w-wall: #130b06; --w-wall-2: #070403; --w-felt: #3d2312; --w-felt-2: #201107; --w-lamp: #ffb85c; --w-lamp-glow: rgba(255, 170, 80, 0.26); --w-panel: #160e09; --w-panel-2: #20150c; }
.scene[data-set="film"], .place[data-set="film"] { --w-wall: #0c0c0d; --w-wall-2: #060606; --w-felt: #2c2c2e; --w-felt-2: #151516; --w-rim: #9a9a96; --w-lamp: #ecebe6; --w-lamp-glow: rgba(236, 235, 230, 0.16); --w-ink: #ecebe8; --w-muted: #a5a5a1; --w-faint: #767673; --w-panel: #131314; --w-panel-2: #1c1c1e; --w-me: #ecebe6; }
.scene[data-set="football"], .place[data-set="football"] { --w-wall: #05090c; --w-wall-2: #03130b; --w-rim: #ffffff; --w-lamp: #f2f7ff; --w-lamp-glow: rgba(220, 238, 255, 0.18); --w-panel: #0a1410; --w-panel-2: #101d17; --w-me: #f2f7ff; --w-shade: rgba(0, 0, 0, 0.45); }
.scene[data-set="books"], .place[data-set="books"] { --w-wall: #0f0a06; --w-wall-2: #070403; --w-felt: #4a2c17; --w-felt-2: #2a170b; --w-lamp: #ffc070; --w-panel: #150e08; --w-panel-2: #1e150d; }
.scene[data-set="humour"], .place[data-set="humour"] { --w-wall: #150407; --w-wall-2: #080203; --w-felt: #1f1214; --w-felt-2: #0d0607; --w-rim: #c22a36; --w-lamp: #ffe1b0; --w-lamp-glow: rgba(255, 225, 176, 0.2); --w-panel: #170a0c; --w-panel-2: #211113; --w-me: #f0b755; }
.scene[data-set="law"], .place[data-set="law"] { --w-wall: #0b0806; --w-wall-2: #060403; --w-felt: #4a1d12; --w-felt-2: #240d08; --w-rim: #d4aa63; --w-lamp: #e9c17a; --w-panel: #140e0b; --w-panel-2: #1d1510; }
.scene[data-set="medicine"], .place[data-set="medicine"] { --w-wall: #08151a; --w-wall-2: #040b0e; --w-felt: #1d3a43; --w-felt-2: #10242b; --w-rim: #7fd3c8; --w-lamp: #a8ece2; --w-lamp-glow: rgba(140, 225, 215, 0.18); --w-ink: #e6f1f0; --w-muted: #9bb2b3; --w-faint: #6b8486; --w-panel: #0a181d; --w-panel-2: #102329; --w-me: #a8ece2; }
.scene[data-set="politics"], .place[data-set="politics"] { --w-wall: #090608; --w-wall-2: #050304; --w-felt: #5a141b; --w-felt-2: #2e0a0e; --w-rim: #d6a85c; --w-lamp: #ffd9a0; --w-panel: #150c0e; --w-panel-2: #1f1214; }
.scene-tag.where { color: var(--w-lamp); border-color: color-mix(in srgb, var(--w-lamp) 35%, transparent); }
.scene-top {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 28px) 14px;
  border-bottom: 1px solid var(--w-line);
}
.scene-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--w-line); background: rgba(237, 233, 223, 0.04); color: var(--w-ink); cursor: pointer; font-weight: 650;
}
.scene-btn:hover { background: rgba(237, 233, 223, 0.09); }
.scene-btn svg { width: 18px; height: 18px; }
.scene-title { min-width: 0; display: grid; gap: 4px; }
.scene-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.scene-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--w-muted); border: 1px solid var(--w-line); border-radius: 999px; padding: 2px 10px; }
.scene-sub { font-size: 13.5px; color: var(--w-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.scene-count { font-family: var(--mono); color: var(--w-ink); border: 1px solid var(--w-line); border-radius: 999px; padding: 4px 10px; }
.scene-crisis { margin: 10px clamp(16px, 3vw, 28px) 0; font-size: 13.5px; color: var(--w-muted); border: 1px solid var(--w-line); border-left: 3px solid var(--w-me); border-radius: 10px; padding: 9px 12px; }
.scene-crisis b { color: var(--w-ink); }
.scene .pill-live { background: var(--w-lamp); color: #2b1d02; }

.scene-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; }

/* ---------------------------------------------------------------- stage */
.stage { position: relative; min-height: 0; overflow: hidden; }
/* one photograph is the whole room: its far wall across the top, the rug in the middle */
.stage-room { position: absolute; inset: 0; background: center / cover no-repeat var(--w-wall); }
.stage-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(85% 75% at 50% 46%, transparent 50%, var(--w-shade)); }
.stage-light {
  position: absolute; left: 50%; top: -12%; width: 70%; height: 80%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--w-lamp-glow), transparent);
  pointer-events: none;
}
.scene[data-set="poetry"] .stage-light, .scene[data-set="hall"] .stage-light { animation: candlelight 3.6s ease-in-out infinite; }
.scene[data-set="film"] .stage-light { animation: projector 0.9s steps(4, jump-none) infinite; }
@keyframes candlelight { 0%, 100% { opacity: 1; } 35% { opacity: 0.78; } 60% { opacity: 0.94; } 80% { opacity: 0.82; } }
@keyframes projector { 0%, 100% { opacity: 1; } 50% { opacity: 0.86; } }
.table {
  position: absolute; left: 50%; top: 49%; width: 62%; height: 48%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #1a0e07;
  /* the thickness of the top, then its shadow on the floor */
  box-shadow:
    0 9px 0 -1px #1c0f08,
    0 11px 0 -1px rgba(0, 0, 0, 0.55),
    0 34px 46px 6px rgba(0, 0, 0, 0.62),
    0 70px 90px rgba(0, 0, 0, 0.4);
  display: grid; place-items: center;
}
.table::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(58% 52% at 50% 36%, var(--w-lamp-glow), transparent 72%),
    radial-gradient(closest-side, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.62)),
    url(art/rooms/table.webp) center / 100% 100% no-repeat;
  box-shadow: inset 0 2px 1px rgba(255, 226, 180, 0.16), inset 0 -3px 10px rgba(0, 0, 0, 0.5);
  filter: var(--w-wood, none);
}
.table-top { position: relative; z-index: 1; width: 68%; display: grid; gap: 10px; justify-items: center; text-align: center; }

/* what stands in the middle of each table */
.cp { width: clamp(44px, 5.2vw, 78px); height: auto; display: block; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.55)); }
.cp-book, .cp-scales, .cp-reel { width: clamp(64px, 7.4vw, 108px); }
.cp-candle { width: clamp(40px, 4.6vw, 68px); filter: drop-shadow(0 0 22px rgba(255, 170, 70, 0.7)) drop-shadow(0 8px 8px rgba(0, 0, 0, 0.5)); }
.cp-scales, .cp-bell { filter: brightness(1.25) drop-shadow(0 8px 8px rgba(0, 0, 0, 0.6)); }
.cp-scales, .cp-bell { filter: brightness(1.25) drop-shadow(0 8px 8px rgba(0, 0, 0, 0.6)); }
.cp-tealight { filter: drop-shadow(0 0 18px rgba(255, 130, 50, 0.65)) drop-shadow(0 6px 6px rgba(0, 0, 0, 0.5)); }
.cp .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
.cp-reel .spin { transform-box: fill-box; transform-origin: 50% 50%; animation: reel 22s linear infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-1deg); } 30% { transform: scale(1.05, 0.95) rotate(2deg); } 55% { transform: scale(0.96, 1.06) rotate(-2.5deg); } 80% { transform: scale(1.03, 0.98) rotate(1deg); } }
@keyframes reel { to { transform: rotate(360deg); } }

/* the same table in every room, its wood in the light of that room */
.scene[data-set="film"], .place[data-set="film"] { --w-wood: grayscale(0.9) brightness(0.8); }
.scene[data-set="medicine"], .place[data-set="medicine"] { --w-wood: grayscale(0.75) brightness(0.72); }
.scene[data-set="humour"], .place[data-set="humour"] { --w-wood: brightness(0.62) saturate(0.8); }
.scene[data-set="football"], .place[data-set="football"] { --w-wood: brightness(0.85); }
/* medicine: the table breathes, slowly */
.scene[data-set="medicine"] .table::after {
  content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1.5px solid var(--w-rim); opacity: 0;
  animation: breathing 6s ease-in-out infinite;
}
@keyframes breathing { 0% { transform: scale(0.86); opacity: 0; } 45% { opacity: 0.45; } 100% { transform: scale(1.03); opacity: 0; } }
/* humour: black lacquer under a spotlight */
.scene[data-set="humour"] .stage-light { top: -20%; width: 54%; height: 96%; }
.table-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(237, 233, 223, 0.45); }
.table-q { font-family: var(--display); font-size: clamp(17px, 1.9vw, 27px); line-height: 1.18; color: var(--w-ink); text-wrap: balance; }
.table-items { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-height: 90px; overflow: hidden; }
.table-item {
  display: grid; text-align: left; max-width: 150px; padding: 7px 10px; border-radius: 4px;
  background: #efe7d6; color: #2a2318; box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  transform: rotate(var(--tilt, 0deg)); font-size: 12px; line-height: 1.25;
}
.table-item b { font-family: var(--display); font-weight: 400; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-item small { color: #6b5f4b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-item.new { animation: drop 0.6s cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-26px) rotate(calc(var(--tilt) * -3)) scale(1.08); } }

/* ---------------------------------------------------------------- seats */
.seats { position: absolute; inset: 0; }
.seat {
  position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--w-ink); width: 96px;
}
.seat .av { border: 3px solid var(--w-wall-2); box-shadow: 0 8px 18px rgba(0,0,0,0.45); transition: box-shadow 0.4s ease, transform 0.4s ease; position: relative; z-index: 1; }
/* the light of the table on each face */
.seat .av::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 0%), color-mix(in srgb, var(--w-lamp) 46%, transparent), transparent 62%);
  mix-blend-mode: soft-light;
}
.scene.arrive .seat { animation: seat-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
.scene.arrive .stage-shade { animation: lights-up 1.6s ease-out backwards; }
@keyframes seat-in { from { opacity: 0; transform: translate(-50%, -42%) scale(0.9); } }
@keyframes lights-up { from { background-color: rgba(0, 0, 0, 0.7); } }
.seat .halo {
  position: absolute; top: -14px; left: 50%; width: 90px; height: 90px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--w-lamp-glow), transparent); opacity: 0; transition: opacity 0.4s ease;
}
.seat-name { font-size: 13px; font-weight: 650; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.seat-host { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-lamp); }
.seat-flags { position: absolute; top: -6px; right: 14px; font-size: 18px; z-index: 2; }
.seat-gifts { display: flex; gap: 2px; align-items: center; justify-content: center; }
.seat-gifts:empty { display: none; }
.seat-gifts :is(svg, img) { width: 20px; height: 20px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.seat-gifts small { font-size: 10.5px; font-weight: 700; color: var(--w-muted); margin-left: 2px; }
.seat.gifted .halo { opacity: 1; }
.seat.gifted .av { box-shadow: 0 0 0 3px #e9c170, 0 0 30px 8px rgba(233, 193, 112, 0.45); }
.seat.me .av { border-color: var(--w-me); }
.seat.me .seat-name { color: var(--w-me); }
.seat.mic-on .av { box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-me) 30%, transparent), 0 8px 18px rgba(0,0,0,0.45); }
.seat.speaking .halo { opacity: 1; }
.seat.speaking .av { box-shadow: 0 0 0 3px var(--w-lamp), 0 0 28px 6px var(--w-lamp-glow); transform: scale(1.06); }
.seat:hover .av { transform: scale(1.05); }
.seat:focus-visible { outline: none; }
.seat:focus-visible .av { box-shadow: 0 0 0 3px var(--w-me); }
.seat.empty { cursor: default; width: auto; }
.chair {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed rgba(237, 233, 223, 0.16);
  background: rgba(237, 233, 223, 0.02);
}

/* what someone says, above their seat */
.bubble {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 5;
  width: max-content; max-width: 230px; padding: 9px 13px; border-radius: 14px;
  background: #f6f1e4; color: #1f1a12; font-size: 13.5px; line-height: 1.38; text-align: left; font-weight: 500;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45); animation: pop 0.35s cubic-bezier(.2,.8,.2,1.15) both;
}
.bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: #f6f1e4;
}
.side-left .bubble { left: 0; transform: none; }
.side-left .bubble::after { left: 40px; }
.side-right .bubble { left: auto; right: 0; transform: none; }
.side-right .bubble::after { left: auto; right: 34px; transform: none; }
.bubble.dots { display: inline-flex; gap: 4px; padding: 11px 14px; }
.bubble.dots i { width: 6px; height: 6px; border-radius: 50%; background: #8a7f6a; animation: blink 1.2s infinite ease-in-out; }
.bubble.dots i:nth-child(2) { animation-delay: 0.15s; }
.bubble.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.94); } }
.side-left .bubble, .side-right .bubble { animation-name: pop-side; }
@keyframes pop-side { from { opacity: 0; transform: translateY(6px) scale(0.94); } }

.float-react {
  position: absolute; z-index: 6; font-size: 26px; pointer-events: none;
  transform: translate(-50%, -50%); animation: rise-react 2.1s ease-out both;
}
@keyframes rise-react {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -90%) scale(1.15); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), -260%) scale(1); }
}

/* a closer look at someone */
.seat-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8;
  width: min(330px, calc(100% - 32px)); background: #f6f1e4; color: #1f1a12; border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55); display: grid; gap: 10px; animation: rise 0.25s ease both;
}
.seat-card .who { display: flex; gap: 12px; align-items: center; }
.seat-card .who b { display: block; font-size: 16px; }
.seat-card .who small { color: #6b5f4b; }
.seat-card .seat-line { color: #4d4433; font-size: 14px; }
.seat-card .seat-answer { font-family: var(--display); font-size: 18px; line-height: 1.3; border-top: 1px solid rgba(31,26,18,0.12); padding-top: 10px; }
.seat-card .seat-answer span { display: block; font-family: var(--body); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a7f6a; font-weight: 700; margin-bottom: 4px; }
.seat-card .btn-ghost { color: #1f1a12; border-color: rgba(31,26,18,0.2); }
.seat-card .btn-lamp { background: #1b1611; color: #f6f1e4; }
.seat-card-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; cursor: pointer; color: #6b5f4b; font-size: 15px; }
.seat-card { max-height: calc(100% - 20px); overflow: auto; }
.seat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seat-card .btn-gift { background: #1b1611; color: #f6f1e4; }
.seat-got { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.seat-got span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a7f6a; font-weight: 700; margin-right: 4px; }
.seat-got :is(svg, img) { width: 24px; height: 24px; overflow: visible; }

/* ---------------------------------------------------------------- gifts */
.coin {
  display: inline-block; width: 0.95em; height: 0.95em; border-radius: 50%; margin-right: 0.3em; vertical-align: -0.12em;
  background: radial-gradient(circle at 35% 30%, #fff3cf, #e2bb6c 45%, #a87922); box-shadow: inset 0 0 0 1px rgba(90, 60, 10, 0.5);
}
.card-head { display: flex; align-items: center; gap: 8px; padding-right: 26px; }
.card-head b { flex: 1; min-width: 0; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.15; }
.card-back { border: 0; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: #6b5f4b; padding: 0 6px 3px 0; }
.coin-pill, .scene-coins {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 11px; cursor: pointer;
  font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.coin-pill { border: 1px solid rgba(31, 26, 18, 0.2); background: #fffaec; color: #1f1a12; }
.scene-coins { border: 1px solid var(--w-line); background: rgba(237, 233, 223, 0.04); color: var(--w-ink); }
.scene-coins:hover { background: rgba(237, 233, 223, 0.09); }
.gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gift {
  display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(31, 26, 18, 0.1); background: #e8dec8; color: #1f1a12;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.gift:hover { transform: translateY(-2px); border-color: #a87922; background: #efe6d2; }
.gift-art { height: 42px; width: 100%; display: grid; place-items: center; }
.gift-art :is(svg, img) { height: 42px; width: auto; max-width: 100%; overflow: visible; }
.gift-name { font-size: 11.5px; font-weight: 650; line-height: 1.15; text-align: center; }
.gift-cost { font-size: 11.5px; font-weight: 700; color: #7a5a18; }
.gift-cost.free { color: #6b5f4b; font-weight: 600; }
.card-note { font-size: 12px; line-height: 1.4; color: #6b5f4b; }
.gift-big { display: grid; place-items: center; padding: 8px 0 2px; }
.gift-big :is(svg, img) { height: 104px; width: auto; max-width: 100%; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22)); }
.gift-ask { font-family: var(--display); font-size: 22px; line-height: 1.2; text-align: center; text-wrap: balance; }
.gift-price { text-align: center; font-size: 13.5px; font-weight: 600; color: #4d4433; }
.packs { display: grid; gap: 8px; }
.pack {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(31, 26, 18, 0.14); background: #fffaec; color: #1f1a12; font-size: 15px;
}
.pack:hover { border-color: #a87922; }
.pack .price { font-weight: 700; }

/* a gift on its way across the room */
.gift-fly { position: absolute; left: 0; top: 0; z-index: 9; width: 62px; pointer-events: none; will-change: transform; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); }
.gift-fly :is(svg, img), .gift-land :is(svg, img) { display: block; width: 100%; height: auto; overflow: visible; }
.gift-fly.bright { width: 86px; filter: drop-shadow(0 0 16px rgba(255, 214, 120, 0.95)) drop-shadow(0 10px 12px rgba(0, 0, 0, 0.4)); }
.gift-fly.grand { width: clamp(130px, 21vw, 230px); filter: drop-shadow(0 0 22px rgba(255, 150, 70, 0.8)) drop-shadow(0 14px 16px rgba(0, 0, 0, 0.45)); }
.gift-land { position: absolute; z-index: 9; width: 70px; pointer-events: none; transform: translate(-50%, -50%); animation: gift-land 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.gift-land.bright { width: 92px; }
.gift-land.grand { width: 150px; }
@keyframes gift-land {
  0% { transform: translate(-50%, -50%) scale(0.7); }
  16% { transform: translate(-50%, -50%) scale(1.3); }
  30%, 72% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 10%) scale(0.25); opacity: 0; }
}
.spark {
  position: absolute; z-index: 8; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none;
  background: #ffe7a0; box-shadow: 0 0 10px 2px rgba(255, 190, 90, 0.8); animation: spark 0.95s ease-out forwards;
}
@keyframes spark { to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.2); } }
.gift-banner {
  position: absolute; left: 50%; top: 14px; z-index: 10; transform: translateX(-50%); margin: 0;
  max-width: calc(100% - 24px); padding: 9px 20px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(13, 11, 9, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(233, 193, 112, 0.55);
  color: #f6f1e4; font-family: var(--display); font-style: italic; font-size: clamp(15px, 1.6vw, 21px);
  animation: gift-banner 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes gift-banner { from { opacity: 0; transform: translate(-50%, -12px); } }
.stage.grand .stage-shade { animation: grand-light 7s ease-in-out; }
@keyframes grand-light { 20%, 70% { background-color: rgba(255, 140, 50, 0.14); } }
.line.gift-line { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--w-lamp); }
.line.gift-line :is(svg, img) { width: 22px; height: 22px; flex: none; overflow: visible; }

/* ---------------------------------------------------------------- tools */
.stage-tools {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 7;
  display: flex; gap: 4px; align-items: center; padding: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--w-panel) 84%, transparent); border: 1px solid var(--w-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4); max-width: calc(100% - 24px); overflow-x: auto;
}
.tool {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 0; background: transparent; color: var(--w-ink); font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.tool:hover { background: rgba(237, 233, 223, 0.08); }
.tool svg { width: 18px; height: 18px; }
.tool[aria-pressed="true"] { background: var(--w-lamp); color: #2b1d02; }
.tool.react { font-size: 19px; padding: 0 9px; }
.tool.react:active { transform: scale(1.25); }
.tool-sep { width: 1px; height: 22px; background: var(--w-line); flex: none; }

/* ---------------------------------------------------------------- the talk panel */
.talk { min-height: 0; display: flex; flex-direction: column; background: var(--w-panel); border-left: 1px solid var(--w-line); }
.talk-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--w-line); }
.talk-tabs button {
  border: 0; background: transparent; color: var(--w-muted); font-weight: 650; font-size: 14px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center;
}
.talk-tabs button[aria-selected="true"] { background: var(--w-panel-2); color: var(--w-ink); }
.talk-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 14px 14px; }
.talk-pane[hidden] { display: none !important; }
.talk .thread { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 14px 4px 8px 0; }
.line { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 6px 0; animation: arrive 0.35s ease both; }
.line.cont { padding-top: 0; }
.line-av { width: 30px; }
.line-av .av { border-color: var(--w-panel); }
.line-name { font-size: 13px; font-weight: 700; color: var(--w-ink); display: flex; gap: 8px; align-items: baseline; }
.line-name small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--w-faint); }
.line p { font-size: 14.5px; line-height: 1.5; color: #d9d6cc; overflow-wrap: anywhere; }
.line.me p { color: var(--w-ink); }
.line.me .line-name { color: var(--w-me); }
.line.system { grid-template-columns: 1fr; text-align: center; font-size: 12.5px; color: var(--w-faint); padding: 10px 0; }
.talk .typing { color: var(--w-faint); font-size: 12.5px; min-height: 18px; margin: 0 0 6px; }
.talk .composer { background: var(--w-panel-2); border-color: var(--w-line); border-radius: 16px; padding: 6px 6px 6px 14px; align-items: center; }
.talk .composer textarea { color: var(--w-ink); }
.talk .composer textarea::placeholder { color: var(--w-faint); }
.send {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--w-lamp); color: #2b1d02; display: grid; place-items: center;
}
.send svg { width: 18px; height: 18px; }
.pane-note { font-size: 13px; color: var(--w-faint); padding: 14px 0 10px; }
.answers { display: grid; gap: 10px; overflow: auto; padding-bottom: 8px; }
.answer { border: 1px solid var(--w-line); background: var(--w-panel-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.answer.mine { border-color: color-mix(in srgb, var(--w-me) 50%, transparent); }
.answer .who { display: flex; gap: 10px; align-items: center; }
.answer .who span { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: 14px; }
.answer .who small { color: var(--w-faint); font-size: 12px; }
.answer p { font-family: var(--display); font-size: 16.5px; line-height: 1.32; }

/* ---------------------------------------------------------------- the room on a phone */
@media (max-width: 980px) {
  .scene-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .seat { width: 80px; }
  .seat .av { --size: 52px !important; width: 52px; height: 52px; font-size: 17px; }
}
@media (max-width: 760px) {
  .scene { height: auto; min-height: 100vh; }
  .scene-top { grid-template-columns: auto minmax(0, 1fr); }
  .scene-meta { grid-column: 1 / -1; justify-content: flex-start; display: none; }
  .scene-body { display: flex; flex-direction: column; }
  .stage { height: 440px; flex: none; }
  .table { width: 70%; height: 44%; top: 49%; }
  .seat.top .bubble { bottom: auto; top: calc(100% + 22px); }
  .seat.top .bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #f6f1e4; }
  .table-q { font-size: 15px; }
  .table-items, .table-label { display: none; }
  .table-top { gap: 6px; }
  .cp { width: 30px; }
  .cp-book, .cp-scales, .cp-reel { width: 44px; }
  .seat { width: 64px; gap: 3px; }
  .seat .av { --size: 40px !important; width: 40px; height: 40px; font-size: 14px; border-width: 2px; }
  .seat .halo { width: 64px; height: 64px; top: -12px; }
  .seat-name { font-size: 11.5px; }
  .seat-host { display: none; }
  .bubble { max-width: 160px; font-size: 12.5px; padding: 7px 10px; }
  .stage-tools { bottom: 10px; }
  .tool span:not(.emoji) { display: none; }
  .tool { padding: 0 11px; }
  .talk { border-left: 0; border-top: 1px solid var(--w-line); min-height: 60vh; }
  .talk .thread { max-height: 52vh; }
  .talk .composer { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
