:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  --page: #191a1c;
  --surface: #222428;
  --hover: #30343a;
  --border: #454a51;
  --text: #f2f4f5;
  --muted: #c6cbd0;
  --cyan: #92ebf1;
  --red: #ff8c94;
  background: var(--page);
  color: var(--text);
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 112rem;
  margin: auto;
  padding: clamp(.75rem, 2.5vw, 2rem);
  display: grid;
  grid-template-rows: auto minmax(16rem, 1fr) auto;
  gap: .85rem;
}
header, footer, .controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
}
header, footer { justify-content: space-between; }
h1 { margin: 0; font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 650; }
p { margin: 0; color: var(--muted); line-height: 1.45; }
.red { color: var(--red); }
.cyan { color: var(--cyan); }
main {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--surface);
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  cursor: grab;
  touch-action: none;
}
canvas.dragging { cursor: grabbing; }
canvas:focus-visible, button:focus-visible, .door-hotspot:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.controls {
  gap: .35rem;
  margin-inline-start: auto;
  justify-content: flex-end;
}
.view-controls, .view-zoom-controls { display: inline-flex; align-items: center; gap: inherit; }
.view-controls { margin-inline-start: auto; flex-wrap: wrap; justify-content: flex-end; }
#view-rotation { display: inline-grid; place-items: center; }
#view-rotation:not([data-playing]) .rotation-stop, #view-rotation[data-playing] .rotation-play { display: none; }
#view-rotation[data-playing] { color: var(--cyan); }
html:is(:has(main:fullscreen), .hotel-fullscreen-view) :is(#zoom-out, #zoom-in, #fullscreen) { display: none; }
main > .fullscreen-view-actions {
  display: flex; align-items: center; gap: .35rem;
  position: absolute; z-index: 1; top: .65rem; right: calc(var(--fullscreen-exit-inset, 7.5rem) + .35rem);
}
.fullscreen-view-actions > button {
  background: #1a2029; border-color: #465465; border-radius: .4rem;
  font-size: .85rem; white-space: nowrap;
}
.fullscreen-view-actions > #reset { display: none; }
@media (any-hover: hover) and (any-pointer: fine) {
  .fullscreen-view-actions > #reset { display: inline-block; }
}
main.tour-room-open > .fullscreen-view-actions { visibility: hidden; }
#preview-exit-fullscreen { display: none; }
main:fullscreen > #preview-exit-fullscreen { display: block; position: absolute; z-index: 1; top: .65rem; right: .65rem; }
.glasses { margin-inline-start: auto; text-align: end; }
#fullscreen-status { flex-basis: 100%; text-align: end; }
button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: .375rem;
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
button:not(:disabled):hover { background: var(--hover); }
button:disabled { opacity: .55; cursor: default; }
main:fullscreen { border: 0; border-radius: 0; }
canvas:fullscreen, main:fullscreen canvas {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 0;
  outline: none;
}
#fullscreen:disabled { opacity: .55; cursor: default; }
#status { position: absolute; top: 1rem; left: 1rem; right: 1rem; pointer-events: none; }
.door-hotspot {
  opacity: 0.7;
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  background: var(--surface);
  color: var(--cyan);
  box-shadow: 0 2px 8px #0008;
  touch-action: manipulation;
}
.door-hotspot:not([hidden]) { display: grid; place-items: center; }
.door-hotspot:disabled { display: none; }
.door-hotspot[data-arrow="left"] svg { transform: rotate(180deg); }
.door-hotspot[data-arrow="up"] svg { transform: rotate(-90deg); }
.door-hotspot:hover { background: var(--hover); }
