:root {
  --violet: #7b3ff2;
  --violet-glow: #a06bff;
  --bg: #05030f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color: #eae6ff;
}
/* Курсор виден в ожидании (персоналу удобно), прячется только в диалоге */
body.in-dialog { cursor: none; }

.layer {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hidden { display: none !important; }

#idle-canvas { z-index: 1; }
#scene { z-index: 2; }

#overlay {
  position: fixed; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  padding: 0 8vw 9vh; pointer-events: none;
  text-align: center;
}
#status {
  margin-top: 2vh;
  font-size: clamp(12px, 1.2vw, 18px);
  letter-spacing: .35em; text-transform: uppercase;
  color: rgba(160,107,255,.55);
}

#start-btn {
  position: fixed; z-index: 20;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 20px 54px; border: none; border-radius: 100px;
  background: linear-gradient(135deg, var(--violet), var(--violet-glow));
  color: #fff; font-size: 22px; font-weight: 600; letter-spacing: .02em;
  cursor: pointer; box-shadow: 0 10px 60px rgba(123,63,242,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
#start-btn:hover { transform: translate(-50%, -50%) scale(1.05); }

#debug {
  position: fixed; z-index: 30; left: 16px; bottom: 16px;
  display: flex; gap: 8px; opacity: .25; transition: opacity .2s;
}
#debug:hover { opacity: 1; }
#mock-badge {
  position: fixed; z-index: 30; right: 16px; top: 16px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(80, 40, 10, .75); border: 1px solid rgba(255,170,60,.5);
  color: #ffcf8a; font-size: 13px; letter-spacing: .02em;
}

#debug button {
  padding: 8px 12px; border: 1px solid rgba(160,107,255,.4);
  background: rgba(20,10,40,.7); color: #cbb8ff;
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
