* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #08090b; color: #ded6ec; font-family: Arial, sans-serif; }
body { height: 100vh; height: 100dvh; overflow: hidden; }
main { position: fixed; inset: 0; overflow: hidden; }
.scene { position: absolute; top: 50%; left: 50%; width: min(100vw, calc(100vh * var(--ratio))); width: min(100vw, calc(100dvh * var(--ratio))); transform: translate(-50%, -50%); }
.scene img { display: block; width: 100%; height: auto; }
.passage { position: absolute; display: block; border-radius: 50%; cursor: pointer; }
.passage:hover { box-shadow: inset 0 0 25px 3px #d6c4ff55; }
.passage:focus-visible { outline: 3px solid #e0d0ff; outline-offset: 2px; background: #d6c4ff22; }
nav { position: fixed; z-index: 5; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(8,9,11,.82)); text-shadow: 0 1px 5px #000; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px clamp(16px, 4vw, 60px); font-size: 14px; }
nav span { color: #9588a5; letter-spacing: .12em; }
nav a { color: #ded6ec; text-decoration: none; padding: 12px 0; }
nav a:hover { color: white; text-decoration: underline; }
nav a:focus-visible { outline: 2px solid #d6c4ff; outline-offset: 4px; }

/* The extended artwork also fills any remaining space on other display ratios. */
main::before { content: ""; position: absolute; inset: -24px; background-image: var(--scene-image); background-size: cover; background-position: center; filter: blur(16px); }

.cave-welcome { position: absolute; left: 68.7%; top: 35%; width: 10.5%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: transparent; color: white; cursor: pointer; }
.cave-welcome video { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.cave-sound { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 3px; background: #080e16c9; font: 14px Arial, sans-serif; white-space: nowrap; }
.cave-welcome:focus-visible { outline: 2px solid #d6c4ff; outline-offset: 4px; }


/* Besucherzahl statt Replay-Text unter dem Höhlenvideo */
.cave-counter { color: #ffd83d; background: rgba(8,14,22,.78); font-weight: 700; font-size: 15px; letter-spacing: .08em; min-width: 2.4em; text-align: center; }
.hideout-counter-source { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }


/* Secret Hideout 2.6: Uhr startet den Arstech-Tanz. */
.clock-hotspot {
  position: absolute;
  left: 69.1%;
  top: 65.8%;
  width: 8.2%;
  height: 16.5%;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 8;
}
.clock-hotspot:focus-visible {
  outline: 3px solid #e0d0ff;
  outline-offset: 3px;
  background: rgba(214,196,255,.08);
}
@media (hover:hover) and (pointer:fine) {
  .clock-hotspot:hover { box-shadow: inset 0 0 22px 2px rgba(214,196,255,.20); }
}
.scene .arstech-dancer {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: 28%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.55));
}
.scene .arstech-dancer.is-dancing {
  opacity: 1;
  visibility: visible;
}
