html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0c0c0f;
  overflow: hidden;
}
#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}
#boot {
  display: block;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 72px);
  text-align: left;
  background:
    linear-gradient(90deg, #08090bf5 0%, #08090bdb 60%, #08090b88),
    url("/assets/royal-court.jpg") center/cover;
}
#boot[hidden] {
  display: none;
}
#boot .return-link {
  display: inline-block;
  margin-bottom: 36px;
  color: #d8c08a;
  font:
    16px Lato,
    sans-serif;
  text-decoration: none;
}
#boot .return-link:hover {
  text-decoration: underline;
}
#boot .boot-content {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 32px;
}
#boot h1 {
  font-family: Spectral, Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 0.025em;
  line-height: 1.15;
  color: #eee2c2;
  margin: 8px 0 12px;
}
#boot p {
  margin: 14px 0;
  font:
    17px/1.6 Lato,
    sans-serif;
  max-width: none;
}
#boot .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c6a970;
}
#boot .boot-intro {
  font:
    24px/1.4 Spectral,
    Georgia,
    serif;
  color: #d1c1a0;
}
#boot .device-note {
  font-size: 14px;
  color: #aea38e;
}
#browser-tips {
  border-top: 1px solid #625239;
  border-bottom: 1px solid #625239;
  margin: 22px 0;
  padding: 14px 0;
  font:
    15px/1.6 Lato,
    sans-serif;
}
#browser-tips summary {
  cursor: pointer;
  color: #dfc38b;
  list-style-position: inside;
}
#browser-tips p {
  font-size: 15px;
  color: #c3baa8;
}
#browser-tips a {
  color: #dcc58f;
}
#browser-support:not(:empty) {
  padding: 16px;
  border-left: 3px solid #ba9650;
  background: #352b1eaa;
  font:
    17px/1.5 Lato,
    sans-serif;
}
#boot button,
#boot label {
  font:
    16px/1.3 Lato,
    sans-serif;
  color: #e5d2aa;
  background: #211f1b;
  border: 1px solid #7c6843;
  border-radius: 2px;
  padding: 12px 18px;
}
#boot button:hover,
#boot label:hover {
  background: #373023;
}
#boot button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
#boot button:focus-visible,
#boot a:focus-visible,
#boot summary:focus-visible {
  outline: 2px solid #e7c785;
  outline-offset: 5px;
}
#boot #boot-play {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 18px 24px;
  font:
    23px Spectral,
    Georgia,
    serif;
  color: #181308;
  background: linear-gradient(#ddc18b, #b38f51);
  margin: 20px 0;
}
#boot #boot-play:hover {
  background: #e3ca99;
}
#boot #boot-status {
  min-height: 30px;
  color: #c4baa5;
  font-size: 16px;
}
#boot #boot-progress {
  display: block;
  width: 100%;
  max-width: 550px;
  margin: 18px 0;
  accent-color: #d3b879;
}
#boot #boot-progress[hidden] {
  display: none;
}
#boot #boot-saves {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 25px;
}
#boot #boot-storage {
  font-size: 12px;
  color: #9c968a;
}
#boot #boot-persist {
  font-size: 13px;
}
#live-report-launcher {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  background: #27231c;
  color: #e3c992;
  border: 1px solid #8d7447;
  padding: 8px 12px;
  font:
    14px Lato,
    sans-serif;
  border-radius: 3px;
  cursor: pointer;
}
#live-report-dialog {
  position: fixed;
  inset: 5vh max(20px, calc((100vw - 720px) / 2));
  z-index: 10001;
  overflow: auto;
  background: #171715;
  color: #ded5c2;
  border: 1px solid #927953;
  padding: 24px;
  box-shadow: 0 12px 70px #000d;
  font:
    16px/1.5 Lato,
    sans-serif;
}
#live-report-dialog::backdrop {
  background: #000a;
}
#live-report-dialog h2 {
  font:
    30px Spectral,
    Georgia,
    serif;
  color: #e1c591;
  margin: 0 0 12px;
}
#live-report-dialog img {
  display: block;
  width: 100%;
  max-height: 30vh;
  object-fit: contain;
  margin: 15px 0;
}
#live-report-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 100px;
  background: #0d0e0d;
  color: #e9dfca;
  border: 1px solid #726044;
  padding: 12px;
  font:
    16px Lato,
    sans-serif;
}
#live-report-dialog button {
  background: #332c20;
  color: #e6d3ae;
  border: 1px solid #8c714a;
  border-radius: 2px;
  padding: 10px 16px;
  font:
    16px Lato,
    sans-serif;
  cursor: pointer;
  margin: 12px 10px 0 0;
}
#live-report-dialog button:disabled {
  opacity: 0.5;
}
#live-report-status {
  color: #dac18e;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  #boot {
    padding: 22px;
  }
  #boot .return-link {
    margin-bottom: 22px;
  }
  #boot #boot-saves {
    display: grid;
  }
  #live-report-dialog {
    inset: 12px;
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #boot[data-loading="true"] #boot-status::before {
    animation: none;
  }
}

#boot {
  background-size:
    cover,
    auto 135%;
  background-position:
    center,
    center 42%;
}
