/* Style the game container, title screen, reader dialog, and accessible catalogue. */
.adventure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000;
  color: #f5e3b8;
  font: 16px/1.5 monospace;
  outline: none;
  isolation: isolate;
}
.adventure canvas {
  display: block;
  flex: none;
  image-rendering: pixelated;
  touch-action: none;
}
.adventure [hidden] {
  display: none;
}
.adventure button {
  border: 2px solid #917b69;
  border-radius: 0;
  padding: 10px 18px;
  background: #292c3b;
  color: #f5e3b8;
  font: inherit;
  cursor: pointer;
}
.adventure button:hover,
.adventure button:focus-visible {
  background: #493438;
  border-color: #ffd08a;
  outline: 2px solid #ffd08a;
  outline-offset: 3px;
}
.adventure button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.adventure-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: #11121de8;
  padding: 24px;
  text-align: center;
}
.adventure-start h1 {
  margin: 0;
  font: bold clamp(20px, 4vw, 36px) / 1.2 monospace;
}
.adventure-start p {
  max-width: 48ch;
  margin: 0;
}
.adventure-start button + button {
  padding: 5px 12px;
  font-size: 13px;
}
.adventure-reader {
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  width: 70%;
  min-width: min(300px, 100%);
  display: flex;
  flex-direction: column;
  background: #1d202f;
  border: 12px solid #917b69;
  border-image: url("./reader-frame.png") 4 / 12px / 0 stretch;
  box-shadow: 0 0 0 100vmax #0009;
}
.adventure .adventure-close {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.adventure-reader iframe {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: #fbf7ef;
}
.adventure-live,
.adventure-catalogue {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.adventure-reader > a {
  padding: 4px 12px;
  color: #f5e3b8;
}
.adventure-reader > a:focus-visible {
  outline: 2px solid #ffd08a;
}

.adventure-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
