:root{
  --bg: url("/Assets/background.jpeg");
  --circle-size: clamp(38px, 3.5vw, 70px);
  --panel-w: clamp(260px, 26vw, 520px);
  --panel-max-h: min(70vh, 520px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, sans-serif;
  /* background: url("/Assets/background.jpeg");; */
  color: #f2f2f2;
  overflow: hidden;
}

/* Background stage */
.stage{
  position: relative;
  width: 100vw;
  height: 100vh;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  touch-action: none;
}

.overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(transparent 20%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

/* Toolbar */
.toolbar{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 99999;
  display: flex;
  gap: 10px;
}
.toolbar button{
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

/* Hotspots */
.hotspot{
  position: absolute;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  background: black;
  border: 2px solid rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  cursor: grab;
  user-select: none;
}
.hotspot:active{ cursor: grabbing; }

.hotspot span{
  color: white;
  font-weight: bold;
}

/* Panels */
.panels{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panel{
  position: absolute;
  width: var(--panel-w);
  max-height: var(--panel-max-h);
  background: rgba(10,10,10,0.9);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
  pointer-events: auto;
}

.panel .head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  cursor: grab;
}

.panel .body{
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
}

.close{
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile */
@media(max-width:720px){
  body{ overflow: auto; }
  .panel{ width: 92vw; }
  .panel .head{ cursor: default; }
}
