/* Keep the room prominent; entry choices and help use its existing paper controls. */
.opening-purpose { margin: 0; max-width: 340px; color: #eee5cf; font: 15px/1.5 var(--sans); }
.opening-options { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 3px; margin-top: 10px; }
.opening-options :is(button,a) { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; color: #f1e7cf; font: 14px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 5px; }
.opening-options button:disabled { opacity: .5; cursor: default; }
.opening-options :is(button,a):hover:not(:disabled) { color: #fff6e0; text-decoration-thickness: 2px; }
.opening-options :is(button,a):focus-visible { outline: 2px solid #f8deb0; outline-offset: 5px; }
.opening-options a { font-size: 12px; }
#opening-portfolio { font-size:14px; }
.opening-noscript a { color:inherit; text-decoration:underline; text-underline-offset:3px; }

.room-chrome { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.room-chrome .scene-focus { justify-self: start; }
.room-chrome .scene-focus .view-button { min-width: 44px; min-height: 44px; }
.room-tools { position: relative; display: flex; align-items: flex-end; gap: 10px; }
.room-chrome .room-tools .controls-panel { position: static; left: auto; right: auto; bottom: auto; transform: none; }
.room-chrome .room-tools .player-controls { right: 0; left: auto; bottom: calc(100% + 12px); transform: none; }
.room-contact { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 10px 16px; border: 1px solid #8f8169; border-radius: 6px; color: var(--ink); background: var(--chrome); box-shadow: var(--paper-shadow); font: 13px/1.4 var(--sans); text-decoration: none; white-space: nowrap; }
.room-contact:hover { background: #d6dfc7; color: #304637; }
.room-contact:focus-visible { outline: 2px solid #405942; outline-offset: 4px; }
html[data-presentation='on'] .room-contact { visibility: visible; }

.room-guide { position: absolute; left: 0; bottom: calc(100% + 14px); width: min(350px,100%); padding: 15px 17px 9px; color: var(--ink); background: var(--chrome); border: 1px solid #8f8169; border-radius: 6px; box-shadow: var(--paper-shadow); animation: room-guide-arrive .2s ease-out both; }
.room-guide[hidden] { display: none; }
.room-guide h2 { margin: 0 0 6px; font: 21px/1.2 var(--serif); color: #405942; }
.room-guide p { margin: 0; font: 14px/1.5 var(--sans); text-wrap: pretty; }
.room-guide button { display: block; min-width: 44px; min-height: 44px; padding: 9px 0; text-align: left; color: #405942; font: 13px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 4px; }
.room-guide button:focus-visible { outline: 2px solid #405942; outline-offset: 3px; }
html[data-style] .view-button[data-guide-highlight] { background: #d6dfc7; box-shadow: inset 0 0 0 1px #60735b; transition: background .2s; }
.room-guide-replay { display: block; width: 100%; min-height: 44px; padding: 8px 0; color: #405942; font: 14px/1.4 var(--sans); text-align: left; }
.room-guide-replay:focus-visible { outline: 2px solid #405942; outline-offset: 3px; }
@keyframes room-guide-arrive { from {opacity:0;transform:translateY(6px);} to {opacity:1;transform:translateY(0);} }
@media(max-width:900px) {
  .room-chrome { grid-template-columns: 1fr; gap: 8px; }
  .room-chrome .scene-focus { grid-column: 1; display: grid; grid-template-columns: 1fr 1.35fr 1fr 1fr 1.7fr; width: 100%; }
  .room-tools { justify-content: space-between; }
  .room-contact { min-height: 44px; padding-inline: 14px; }
  .room-chrome .room-tools .player-controls { max-height: calc(100dvh - 190px - env(safe-area-inset-bottom)); }
}
@media(max-height:520px) {
  .opening-copy { padding-top: 22px; padding-bottom: 50px; }
  .opening-story { font-size: 16px; line-height: 1.4; }
  .opening-aside { margin: 6px 0 9px; }
  .opening-purpose { font-size: 13px; }
  .opening-arrival { padding-top: 12px; }
  #opening-progress { margin-bottom: 12px; }
  #opening-enter { min-height: 48px; padding-block: 10px; }
  .opening-options { margin-top: 2px; }
  .room-guide { padding-top: 11px; bottom: calc(100% + 10px); }
  .room-guide h2 { font-size: 19px; }
}
@media(prefers-reduced-motion:reduce) {
  .room-guide { animation: none; }
  html[data-style] .view-button[data-guide-highlight] { transition: none; }
}
