html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0b0f14;
  color: #e8eef7;
}

#c { display:block; width:100vw; height:100vh; }

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#topbar {
  display: flex;
  gap: 10px;
  padding: 10px;
  align-items: center;
}

.pill {
  pointer-events: none;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

#center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

#crosshair {
  font-size: 28px;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

#toast {
  position: absolute;
  bottom: 18px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(8px);
  transition: 160ms ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

.card {
  pointer-events: auto;
  position: absolute;
  left: 14px;
  top: 60px;
  width: 280px;
  background: rgba(0,0,0,0.70);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px;
}

#menu h1 { margin: 0 0 10px 0; font-size: 18px; }
label { display:block; margin-top: 10px; font-size: 12px; opacity: 0.9; }
input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e8eef7;
  outline: none;
}
button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #e8eef7;
  cursor: pointer;
}
button:hover { background: rgba(255,255,255,0.20); }

.hint { margin: 10px 0 0; font-size: 12px; opacity: 0.85; }
.hint.small { opacity: 0.65; }

.hidden { display: none; }
#chat {
  top: auto;
  bottom: 14px;
  width: 340px;
  height: 180px;
  overflow: hidden;
}
#chatLog {
  height: 100%;
  overflow: auto;
  font-size: 12px;
  opacity: 0.9;
  white-space: pre-wrap;
}
