:root {
  color-scheme: dark;
}

html, body, #museum-root {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0c10;
  color: #f4f5f7;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#museum-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#label-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

#label-layer > div {
  pointer-events: auto;
}

#loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(23, 27, 38, 0.9), rgba(8, 10, 14, 0.95));
  z-index: 10;
  transition: opacity 220ms ease;
}

#loading-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#loading-bar-wrap {
  width: min(420px, 70vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

#loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4fbeff, #78ffd1);
  transition: width 120ms linear;
}

#enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(19, 22, 31, 0.76), rgba(5, 7, 10, 0.9));
  transition: opacity 180ms ease;
}

#enter-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.enter-card {
  width: min(520px, 85vw);
  border-radius: 16px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 18, 27, 0.68);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(211, 226, 255, 0.8);
}

.enter-card h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
}

.enter-card p {
  margin: 0 0 16px;
  color: rgba(236, 240, 247, 0.92);
}

.graphics-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 205, 230, 0.28);
  background: rgba(17, 26, 40, 0.58);
}

.graphics-label {
  font-size: 13px;
  color: rgba(212, 226, 246, 0.9);
}

.graphics-select label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(232, 240, 251, 0.95);
  cursor: pointer;
}

.graphics-select input[type="radio"] {
  accent-color: #78c4ff;
}

#enter-button {
  border: 1px solid rgba(170, 214, 255, 0.35);
  background: linear-gradient(120deg, rgba(32, 76, 119, 0.86), rgba(20, 47, 74, 0.86));
  color: #e9f5ff;
  border-radius: 999px;
  font-size: 15px;
  padding: 11px 20px;
  cursor: pointer;
}

#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  z-index: 7;
}

#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: rgba(240, 248, 255, 0.9);
  box-shadow: 0 0 6px rgba(137, 198, 255, 0.7);
}

#crosshair::before {
  left: 8px;
  top: 2px;
  width: 2px;
  height: 14px;
}

#crosshair::after {
  left: 2px;
  top: 8px;
  width: 14px;
  height: 2px;
}

#crosshair.is-hidden {
  display: none;
}

.info-panel {
  width: 250px;
  border-radius: 14px;
  border: 1px solid rgba(188, 207, 233, 0.35);
  background: linear-gradient(165deg, rgba(13, 20, 31, 0.76), rgba(16, 26, 37, 0.58));
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  color: #edf4ff;
  overflow: hidden;
}

.info-panel-media {
  height: 96px;
  background:
    radial-gradient(circle at 80% 18%, rgba(166, 205, 249, 0.25), transparent 42%),
    linear-gradient(130deg, rgba(38, 58, 83, 0.86), rgba(23, 33, 47, 0.9));
}

.info-panel-body {
  padding: 12px;
}

.info-panel-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.info-panel-category {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(201, 220, 246, 0.8);
}

.info-panel-btn {
  width: 100%;
  border: 1px solid rgba(165, 198, 228, 0.4);
  border-radius: 10px;
  background: rgba(27, 48, 69, 0.7);
  color: #f0f7ff;
  font-size: 13px;
  padding: 9px 12px;
  cursor: pointer;
}
