/* progression/three/scene3d.css
   Chrome for the full-screen raw-math 3D rooms (engine3d.js). The 3D
   content itself is drawn on a single <canvas>; everything here is the
   HUD layered on top: title bar, hint, crosshair, info panel, toast. */

.e3d-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: #05050a;
  font-family: inherit;
  overflow: hidden;
  touch-action: none;
}

.e3d-canvas {
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
}
.e3d-canvas:active { cursor: grabbing; }

.e3d-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
  pointer-events: none;
}
.e3d-title {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.e3d-close {
  pointer-events: auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(20,20,30,0.65);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.e3d-close:hover { background: rgba(40,40,60,0.85); }

.e3d-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  background: rgba(10,10,18,0.55);
  padding: 7px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

.e3d-crosshair {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 6px rgba(255,255,255,0.5);
  pointer-events: none;
}

.e3d-panel {
  position: absolute;
  left: 50%; bottom: 70px;
  transform: translateX(-50%);
  width: min(380px, 86vw);
  background: rgba(16,16,26,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
}
.e3d-panel.e3d-hidden { display: none; }
.e3d-panel-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px; cursor: pointer;
}
.e3d-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.e3d-panel-desc { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.e3d-panel-meta { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; flex-direction: column; gap: 2px; }
.e3d-panel-locked { display: inline-block; margin-top: 6px; font-size: 12px; color: #ff9d6c; }

.e3d-toast {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -8px);
  background: rgba(16,16,26,0.92);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.e3d-toast.e3d-hidden { display: none; }
.e3d-toast.e3d-toast-in { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .e3d-title { font-size: 15px; }
  .e3d-hint { font-size: 11px; padding: 6px 12px; }
  .e3d-panel { bottom: 60px; }
}
