body[data-room=stol] {
  --ink:#f5ebd8;
  --muted:#d3dfda;
  --line:#bda46a66;
  --control-ink:#f5e9cd;
  --control-edge:#b69b626e;
  --control-surface:#122b29;
  --control-hover:#21423a;
  --control-shadow:0 3px 10px #030e0d5c;
  background:#031b23;
  color:var(--ink);
}
body[data-room=stol] #main {width:100%;max-width:none;}
body[data-room=stol] .topbar {background:#051c24;border-color:#c7a86755;}
body[data-room=stol] .brand {color:#f5e8cd;}
body[data-room=stol] dialog {--ink:#183a34;--muted:#53665c;}

.table-room {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  align-items:start;
  gap:clamp(20px,3.4vw,58px);
  min-height:calc(100svh - 67px);
  padding:clamp(24px,4vw,62px) max(24px,calc((100% - 1420px)/2),4vw) 60px;
  background:linear-gradient(155deg,#01171f4a,#02192396 46%,#031922dc),var(--lumena-depth) center top/cover no-repeat;
}
.table-room-portrait {
  position:relative;
  display:block;
  grid-column:2;
  grid-row:1;
  aspect-ratio:1.08;
  overflow:hidden;
  border:1px solid #bca06672;
  border-radius:clamp(18px,2.5vw,38px) clamp(18px,2.5vw,38px) 14px 14px;
  background:#102726;
  box-shadow:0 18px 42px #001118a8;
}
.table-room-portrait img,.mira-tea-video {display:block;width:100%;height:100%;object-fit:cover;object-position:78% 50%;}
.table-room-panel {
  grid-column:1;
  grid-row:1;
  min-width:0;
  padding:clamp(20px,3vw,41px);
  border:1px solid #c7a86762;
  border-radius:clamp(18px,2.5vw,38px) clamp(18px,2.5vw,38px) 14px 14px;
  background:linear-gradient(145deg,#082a34f2,#041a22fa 75%);
  box-shadow:0 18px 44px #00111899,inset 0 1px 0 #d9cf9e21;
}
.table-room-kicker {
  margin-bottom:8px;
  color:#e9c588;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.table-room h1 {
  margin-bottom:11px;
  color:#fcf4e4;
  font:400 clamp(38px,4.6vw,69px)/1.04 var(--serif);
  letter-spacing:-.04em;
}
.table-room-voice,.table-room-reading-text,.table-room-next p,.table-room-stay p {
  color:#ebdfc9;
  font-size:clamp(15px,1.35vw,18px);
}
.table-room-question {
  max-width:35ch;
  margin:16px 0 21px;
  padding:4px 0 4px 12px;
  border-left:1px solid #c69a5e;
  color:#f8ebd2;
  font:400 clamp(17px,1.8vw,22px)/1.35 var(--serif);
}
.table-room-reading {
  display:grid;
  grid-template-columns:minmax(78px,36%) minmax(0,1fr);
  gap:clamp(12px,2vw,26px);
  align-items:center;
}
.table-room-card-rest {
  display:grid;
  place-items:center;
  align-self:center;
  padding:clamp(8px,1vw,16px);
  border:1px solid #a6885a5c;
  border-radius:12px;
  background:
    radial-gradient(ellipse at 23% 0%,#d09d594f,transparent 60%),
    linear-gradient(156deg,#183433,#101f20 55%,#261d14);
  box-shadow:inset 0 2px 9px #020f17a0;
}
.table-room-card {
  display:block;
  width:100%;
  max-width:158px;
  padding:0;
  border:0;
  border-radius:7px;
  background:#11332c;
  box-shadow:1px 2px 0 #a77c49,3px 6px 11px #030a0ac9;
}
.table-room-card:hover {box-shadow:1px 2px 0 #d2a46a,3px 7px 15px #030a0ae5;}
.table-room h2 {
  margin-bottom:7px;
  color:#fff0d5;
  font:400 clamp(23px,2.45vw,34px)/1.13 var(--serif);
}
.table-room [tabindex="-1"] {scroll-margin-top:20px;}
.table-room-reading-text .table-action {margin-top:13px;}
.table-room-next,.table-room-stay {
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.table-room-positions {margin:9px 0 12px;padding-inline-start:24px;color:#f5ebd8;}
.table-room-positions li + li {margin-top:4px;}
.table-room-positions li::marker {color:#e9c588;}
.table-room-pair {display:flex;flex-wrap:wrap;gap:9px;margin-top:14px;}
.table-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:9px clamp(12px,1.35vw,18px);
  border:1px solid #c69b5f;
  border-radius:23px 23px 10px 10px;
  font:400 16px/1.2 var(--serif);
  text-align:center;
  text-decoration:none;
}
.table-amber {
  color:#281c11;
  background:linear-gradient(159deg,#f4d9a3,#d9ad65 61%,#c38c48);
  box-shadow:inset 0 1px 1px #fff6d6,inset 0 -3px 0 #8a542d54,0 6px 14px #080c0990;
}
.table-amber:hover {background:linear-gradient(159deg,#ffebba,#e8be7a 61%,#cf9953);}
.table-glass {
  color:#faedd3;
  background:linear-gradient(151deg,#2b554c,#112f2e 58%,#0b2222);
  box-shadow:inset 0 1px 0 #e7c88555,inset 0 -3px 0 #061a1a8f,0 6px 14px #080c0960;
}
.table-glass:hover {background:linear-gradient(151deg,#3a6759,#1d403b 58%,#0b2526);}
.table-reset {
  color:#f6dfb0;
  border-color:#a78b56;
  background:#0b2730;
}
.table-reset:hover {background:#183943;}
.table-room-card:focus-visible,.table-action:focus-visible,.table-room summary:focus-visible {outline-color:#f1c77d;}
.table-room-stay .form-field {margin:12px 0;}
.table-room-stay .form-field textarea {background:#0a232a;color:#fbefdb;border-color:#a99a668c;}
.table-room-stay .form-field textarea::placeholder {color:#d0c9b6;}
.table-room-stay .guest-quote {color:#efe3c6;background:#d5b26618;}
.table-room-stay .error {color:#ffc0a0;}
.table-room-own-question {margin-top:10px;}
.table-room-own-question summary {cursor:pointer;}
.table-room-own-question summary::after {content:'+';margin-left:10px;color:#e9c588;}
.table-room-own-question[open] summary::after {content:'−';}
.table-room-own-question p {margin-top:12px;}

@media(max-width:900px), (max-width:1100px) and (orientation:portrait) {
  .table-room {
    grid-template-columns:minmax(0,660px);
    justify-content:center;
    gap:14px;
    padding:16px clamp(12px,4vw,34px) 30px;
    background-size:auto,max(1050px,100%) auto;
    background-position:center,center top;
  }
  .table-room-portrait {grid-column:1;aspect-ratio:1.45;}
  .table-room-portrait img,.mira-tea-video {object-position:75% 56%;}
  .table-room-panel {grid-row:2;}
}
@media(max-width:480px) {
  .table-room-portrait {aspect-ratio:1.35;}
  .table-room-panel {padding:17px;}
  .table-room h1 {font-size:clamp(34px,10vw,43px);}
  .table-room-question {margin-bottom:16px;}
  .table-room-pair>* {flex:1 1 100%;}
}

/* Only the tea-room portrait is animated; panel updates retain this media. */
.mira-tea-still {display:block;width:100%;height:100%;}
.mira-tea-video {position:absolute;inset:0;opacity:0;pointer-events:none;}
.table-room-portrait[data-tea-motion=ready] .mira-tea-video {opacity:1;}
.table-room-portrait[data-tea-motion=ready] .mira-tea-still img {opacity:0;}
.mira-tea-toggle {
  position:absolute;right:12px;bottom:12px;z-index:1;min-width:44px;min-height:44px;
  padding:8px 12px;border:1px solid #e4bc7855;border-radius:22px;
  background:#081613d9;color:#fff1d6;font:500 12px/1.3 system-ui,sans-serif;
}
.mira-tea-toggle[hidden] {display:none;}
.mira-tea-toggle:hover {background:#19382ae8;}
.mira-tea-toggle:focus-visible {outline:2px solid #ffe5a7;outline-offset:3px;}

/* A quiet keepsake beneath the portrait; the scene itself stays untouched. */
.table-room-presence {grid-column:2;grid-row:1;min-width:0;}
.eternity-tablet {
  max-width:440px;margin:20px auto 0;padding:18px 24px;
  color:#ded0ac;border:1px solid #9b8b5e70;
  border-radius:9px 15px 8px 12px;
  background:radial-gradient(ellipse at 22% 0%,#69807830,transparent 70%),
    repeating-linear-gradient(112deg,#e1d6ad03 0 1px,transparent 1px 7px),
    linear-gradient(155deg,#283936,#152722 68%,#10201e);
  box-shadow:inset 0 1px 1px #e2d1a33b,inset 0 -3px 5px #0005,0 8px 18px #00101480;
  text-align:center;
}
.eternity-tablet summary {cursor:pointer;list-style:none;}
.eternity-tablet summary::-webkit-details-marker {display:none;}
.eternity-tablet summary:focus-visible {outline:2px solid #f1c77d;outline-offset:8px;border-radius:2px;}
.eternity-tablet-title {display:block;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#c0b38d;}
.eternity-tablet-title::before {content:'✧';display:block;font-size:18px;margin-bottom:7px;}
.eternity-tablet-inscription {display:block;margin-top:10px;font:14px/1.65 Georgia,serif;text-wrap:pretty;text-shadow:0 1px 1px #000;}
.eternity-tablet-hint {display:block;margin-top:11px;font-size:11px;color:#d1c297;text-decoration:underline;text-underline-offset:3px;}
.eternity-tablet[open] .eternity-tablet-hint {display:none;}
.eternity-tablet-story {border-top:1px solid #a99a6740;margin-top:17px;padding-top:14px;text-align:left;font:15px/1.7 Georgia,serif;}
.eternity-tablet-story p {margin:0 0 12px;}
.eternity-tablet-story p:last-child {margin-bottom:0;}
.eternity-tablet-story .eternity-tablet-caption {font:10px/1.5 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.16em;color:#c0b38d;}
@media(max-width:900px), (max-width:1100px) and (orientation:portrait) {
  .table-room-presence {grid-column:1;grid-row:1;}
  .eternity-tablet {max-width:420px;margin:14px auto 4px;padding:16px 20px;}
}
