body {
  margin: 0;
  background: #111;
  color: #eee;
}

#info {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  opacity: 0.6;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 1;
}

body[data-sound-hint] #info {
  top: 2.6rem;
}

nav label div {
  background-color: #00bf4b;
}

#caption {
  position: fixed;
  left: 5vw;
  top: 46%;
  max-width: 70vw;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #ffffff;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 900ms ease;
}

#caption[data-shown="true"] {
  opacity: 1;
}

.a-enter-vr,
.a-enter-ar,
.a-enter-vr-button,
.a-enter-ar-button,
.a-orientation-modal,
.a-loader-title,
.a-modal,
.a-dialog {
  display: none !important;
}

#drawer {
  display: none;
}

#drawer:checked~#information {
  width: 100vw;
  height: 100vw;
  overflow: hidden;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  transform: translate(47vw, 47vw) scale(0.1);
}

@media screen and (max-width: 767px) {
  #drawer:checked~#information {
    transform: translate(42.5vw, 42.5vw) scale(0.2);
  }
}

#drawer:checked~#information a,
#drawer:checked~#information select {
  pointer-events: none;
}

#information {
  display: flex;
  position: absolute;
  bottom: 5vmin;
  right: 5vmin;
  width: calc(100% - 10vmin);
  height: calc(100% - 10vmin - 1em);
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  user-select: auto;
  pointer-events: auto;
  border-radius: 16px;
  scrollbar-width: none;
  transition: transform 300ms, width 300ms, height 300ms, border-radius 150ms ease-out;
    transform: translate(0, 0) scale(0.9);
    z-index: 10;
}

#information label[for="drawer"] {
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

#information label[for="drawer"] div {
  width: 100%;
  height: 100%;
}

#information>section {
  position: absolute;
  top: 0;
  width: calc(100% - 10vmin);
  max-width: 768px;
  padding: 3em 1.5em;
  user-select: none;
  pointer-events: none;
  font-size: 1em;
    line-height: 2em;
  text-align: left;
}

#information h1 {
  font-size: 1.3em;
  line-height: 1.6em;
  margin: 0 0 1.2em 0;
}

#information h2 {
  font-size: 1.1em;
  margin: 2em 0 0.5em 0;
}

#information select,
#information a {
  pointer-events: auto;
}

#information select {
  font-size: 1.1em;
}

#information h3 {
  font-size: 1.05em;
  line-height: 1.6em;
  margin: 1.8em 0 0.4em 0;
}

#information h3 small {
  display: block;
  font-size: 0.85em;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

#information h3+p {
  margin: 0.5em 0 0 0;
}

#information a.btn {
  display: inline-block;
  margin: 0 0.5rem 0.4rem 0;
  padding: 0 1.4rem;
  height: 3rem;
  line-height: 3rem;
  font-size: 0.95em;
  text-decoration: none;
  letter-spacing: 0.08em;
  color: white;
  background-color: blue;
  border: 1px solid blue;
  border-radius: 2px;
  transition: all 0.3s;
}

#information a.btn:hover {
  color: blue;
  background-color: white;
}

#information rt {
  font-size: 0.5em;
  font-weight: 400;
}

#loading .dots {
  display: inline-block;
  width: 3ch;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* One span per dot, revealed by OPACITY — not by animating a width, which is
   a layout property and so runs on the main thread: through the seconds the
   room spends decoding and compiling, the dots simply stopped (haruma
   2026-07-27: loading の... がアニメーションしないことがある). Opacity is
   composited, so it keeps moving while the main thread is busy — which is
   exactly the stretch the veil exists to cover. */
#loading .dots span {
  display: inline-block;
  vertical-align: bottom;
  width: 1ch;
  opacity: 0;
  will-change: opacity;
  animation: loading-dots 1.2s infinite;
}

#loading .dots span:nth-child( 2 ) {
  animation-delay: 0.3s;
}

#loading .dots span:nth-child( 3 ) {
  animation-delay: 0.6s;
}

@keyframes loading-dots {
  0%, 20% {
    opacity: 0;
  }

  25%, 100% {
    opacity: 1;
  }
}
