/* ── Geisterhaus overlays: loading · intro · escape ── */
.gh-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(42, 22, 64, 0.92),
    rgba(0, 0, 0, 0.97)
  );
  backdrop-filter: blur(3px);
  font-family: "Ubuntu", system-ui, sans-serif;
}
.gh-overlay.gh-hidden {
  display: none;
}
.gh-box {
  max-width: 460px;
  width: 100%;
  text-align: center;
  background: rgba(18, 14, 28, 0.92);
  border: 1px solid rgba(150, 118, 214, 0.38);
  border-radius: 18px;
  padding: 42px 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  color: #e9e4f6;
}
.gh-box h1 {
  font-size: 2rem;
  margin: 0 0 14px;
  color: #cbb8ff;
  letter-spacing: 0.04em;
}
.gh-box h2 {
  font-size: 1.4rem;
  margin: 16px 0 10px;
  color: #cbb8ff;
}
.gh-box p {
  color: #b9b2cc;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 8px;
}
.gh-note {
  font-size: 0.92rem;
  color: #9c95b2;
  margin-top: 10px;
}
.gh-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 28px;
  text-align: left;
}
.gh-control {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #dcd6ec;
  font-size: 1.02rem;
}
.gh-key {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1230;
  background: linear-gradient(#efe9ff, #cbbcf3);
  border-radius: 9px;
  padding: 9px 14px;
  box-shadow:
    0 3px 0 #7a63b0,
    0 6px 12px rgba(0, 0, 0, 0.45);
  min-width: 116px;
  text-align: center;
  flex-shrink: 0;
}
.gh-emoji {
  font-size: 1.7rem;
  width: 116px;
  text-align: center;
  flex-shrink: 0;
}
.gh-emoji.gh-big {
  display: block;
  width: auto;
  font-size: 3.2rem;
  margin-bottom: 8px;
}
.gh-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1230;
  background: linear-gradient(#d9c7ff, #b79cf1);
  border: none;
  border-radius: 11px;
  padding: 13px 24px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(120, 80, 200, 0.4);
}
.gh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(120, 80, 200, 0.55);
}
.gh-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border: 4px solid rgba(160, 130, 220, 0.25);
  border-top-color: #cbb8ff;
  border-radius: 50%;
  animation: gh-spin 0.9s linear infinite;
}
@keyframes gh-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gh-spinner {
    animation-duration: 2s;
  }
}
