* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #0a0a0a;
  color: #eef1f4;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  overflow: hidden;
}
#scene-container {
  width: 100%;
  height: 100%;
}
#scene-container canvas {
  display: block;
}

.login-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form {
  background: #14161a;
  border: 2px solid #1b3bf0;
  padding: 32px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
}

.hint {
  position: fixed;
  top: 16px;
  left: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8a8f98;
  background: rgba(20, 22, 26, 0.7);
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  z-index: 5;
  pointer-events: none;
}
.login-form input {
  padding: 10px;
  background: #0a0a0a;
  border: 2px solid #2a2a2a;
  color: #eef1f4;
  font-size: 14px;
}
.login-form button {
  padding: 10px;
  background: #1b3bf0;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.login-error {
  color: #c0392b;
  font-size: 13px;
  margin: 0;
}

.overlay-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 18px;
  background: #1b3bf0;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
}
.overlay-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.overlay-card {
  background: #14161a;
  border: 2px solid #1b3bf0;
  width: 360px;
  max-width: 90vw;
}
.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 2px solid #2a2a2a;
}
.overlay-header h2 {
  margin: 0;
  font-size: 16px;
  font-family: "IBM Plex Mono", monospace;
}
.overlay-close {
  background: none;
  border: none;
  color: #eef1f4;
  font-size: 20px;
  cursor: pointer;
}
.overlay-body {
  padding: 16px;
}
.overlay-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overlay-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.overlay-form input,
.overlay-form select,
.overlay-form textarea {
  padding: 8px;
  background: #0a0a0a;
  border: 2px solid #2a2a2a;
  color: #eef1f4;
  font-size: 14px;
  font-family: inherit;
}
.overlay-form .checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.overlay-form button {
  padding: 10px;
  background: #1b3bf0;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
