﻿:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #27362e;
  background: #eee4ca;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
html {
  overflow: hidden;
}
#main {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#hotspots {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
#hotspots button {
  pointer-events: auto;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid #276e61;
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
}
a {
  color: inherit;
}
#room {
  display: block;
  width: 100vw;
  height: 100dvh;
  touch-action: none;
  outline: none;
}
.hud {
  position: fixed;
  z-index: 4;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hud > * {
  pointer-events: auto;
}
.top {
  top: max(28px, env(safe-area-inset-top));
}
.location {
  display: flex;
  gap: 12px;
  align-items: center;
  text-shadow: 0 1px 12px #fff;
  background: #f9f7eade;
  border-radius: 30px;
  padding: 8px 16px;
}
.house-icon {
  font-size: 43px;
  line-height: 1;
}
h1 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
}
#location {
  margin: 0;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.top nav {
  display: flex;
  gap: 8px;
}
.top button,
.bottom button {
  border: 1px solid #ffffff8a;
  background: #f9f7eade;
  backdrop-filter: blur(12px);
  border-radius: 30px;
  padding: 12px 20px;
  font-size: 12px;
  box-shadow: 0 3px 15px #263b2620;
}
.top #help {
  width: 42px;
  padding: 0;
  font-family: Georgia, serif;
  font-size: 20px;
}
.top #links span {
  margin-left: 18px;
}
.bottom {
  bottom: max(26px, env(safe-area-inset-bottom));
}
.bottom p {
  font-size: 11px;
  background: #fcf8e1d9;
  border: 1px solid #fff8;
  border-radius: 20px;
  padding: 10px 18px;
}
.bottom p span {
  padding: 0 9px;
  opacity: 0.45;
}
.arrival {
  position: fixed;
  z-index: 3;
  left: 6vw;
  bottom: 16vh;
  padding: 26px 30px 24px;
  background: #fff7e4e8;
  backdrop-filter: blur(18px);
  border: 1px solid #fff9;
  box-shadow: 0 14px 60px #27362e20;
  border-radius: 4px 35px 35px 35px;
  max-width: 380px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.1px;
  font-weight: bold;
}
.arrival h2 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 46px;
  letter-spacing: -2px;
  margin: 13px 0 8px;
}
.arrival p {
  font-size: 13px;
  margin: 0 0 25px;
  color: #596555;
}
.primary {
  display: flex;
  justify-content: space-between;
  gap: 38px;
  background: #304e3d;
  color: #fff9e9;
  padding: 15px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
}
.primary:hover {
  background: #426951;
}
.loading {
  font-size: 11px;
  display: block;
  margin-top: 12px;
}
.loading:empty {
  display: none;
}
.hotspot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff8;
  background: #fff9e9ed;
  border-radius: 24px;
  padding: 3px;
  box-shadow: 0 2px 8px #22362520;
  font-size: 11px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.hotspot i {
  font-style: normal;
  border: 1px solid #334c3650;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hotspot span {
  display: none;
}
.hotspot:hover,
.hotspot:focus-visible {
  background: #fff;
  padding-right: 11px;
}
.hotspot:hover span,
.hotspot:focus-visible span {
  display: block;
}
@media (pointer: coarse) {
  .hotspot {
    padding: 10px;
    background: #fff9e98c;
  }
}
#crosshair {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #ffffe8;
  border: 1px solid #203b3590;
  border-radius: 50%;
  pointer-events: none;
}
body.exploring #crosshair {
  display: block;
}
#use {
  position: fixed;
  z-index: 5;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  padding: 12px 20px;
  background: #fff9e9;
  box-shadow: 0 3px 12px #0002;
  font-size: 12px;
}
dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid #d6cfb9;
  border-radius: 14px;
  padding: 42px;
  background: #f6f0df;
  color: #27362e;
  box-shadow: 0 24px 100px #122b3b66;
}
dialog::backdrop {
  background: #20343066;
  backdrop-filter: blur(7px);
}
.close {
  position: absolute;
  top: 12px;
  right: 15px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #e4dece;
  font-size: 23px;
}
dialog h2 {
  font:
    normal 36px/1.05 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 15px 0 20px;
}
dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: #596355;
}
dialog .primary {
  margin-top: 24px;
}
dialog img {
  width: 100%;
  border-radius: 4px;
}
dialog .link-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.link-list a,
.link-list button {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 17px 0;
  border-bottom: 1px solid #b7bfad;
  background: transparent;
  text-align: left;
}
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
  padding: 20px 0;
}
.controls dt {
  font-weight: bold;
}
.controls dd {
  margin: 0;
}
.newspaper {
  text-align: center;
}
.newspaper .masthead {
  font:
    26px Georgia,
    serif;
  border-top: 3px double;
  border-bottom: 3px double;
  padding: 10px 0;
}
.newspaper h2 {
  font-weight: bold;
  font-size: 49px;
  text-transform: uppercase;
}
.newspaper .date {
  font-size: 10px;
  letter-spacing: 1px;
}
.podium {
  display: flex;
  justify-content: space-between;
  border-block: 1px solid #a7ad9d;
  padding: 15px 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.8;
}
.podium strong {
  display: block;
}
.source {
  font-size: 11px;
}
.chess-symbol {
  font-size: 85px;
  text-align: center;
  background: #d4dbc3;
  padding: 20px;
}
#touch-controls {
  display: none;
  position: fixed;
  z-index: 4;
  left: 20px;
  bottom: 80px;
  grid-template-columns: repeat(3, 44px);
  gap: 5px;
  touch-action: none;
}
#touch-controls button {
  height: 44px;
  border-radius: 50%;
  background: #fff8e1c9;
  border: 1px solid #fff9;
  font-size: 20px;
  box-shadow: 0 2px 8px #0001;
}
#touch-controls button:first-child {
  grid-column: 2;
}
#touch-controls button:nth-child(2) {
  grid-column: 1;
}
#touch-controls button:active {
  background: #baceac;
}
#fallback,
.no-script {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 15vh 10vw;
  background: #eee4ca;
}
#fallback a,
.no-script a {
  display: block;
  margin: 25px 0;
}
#fallback button {
  padding: 12px;
}
body.failed .hud {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (pointer: coarse) {
  body.exploring #touch-controls {
    display: grid;
  }
  #hint {
    display: none;
  }
}
@media (max-width: 600px) {
  .hud {
    left: 18px;
    right: 18px;
  }
  .top {
    top: max(20px, env(safe-area-inset-top));
  }
  .bottom {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .location {
    gap: 7px;
  }
  .house-icon {
    font-size: 34px;
  }
  h1 {
    font-size: 15px;
  }
  #location {
    font-size: 9px;
  }
  .top button {
    padding: 11px 15px;
  }
  .arrival {
    left: 20px;
    right: 20px;
    bottom: 100px;
    padding: 23px;
    max-width: 330px;
  }
  .arrival h2 {
    font-size: 40px;
  }
  .bottom #reset span {
    display: none;
  }
  .bottom p {
    display: none;
  }
  .bottom button {
    padding: 11px 15px;
  }
  .hotspot {
    font-size: 10px;
    gap: 6px;
  }
  .hotspot i {
    width: 19px;
    height: 19px;
  }
  dialog {
    padding: 35px 25px;
  }
  dialog h2 {
    font-size: 30px;
  }
  .newspaper h2 {
    font-size: 38px;
  }
  #use {
    bottom: 85px;
    left: auto;
    right: 20px;
    transform: none;
    max-width: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
