* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  background: #0d1117; color: #e6edf3;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
#toolbar {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 12px; background: #161b22;
  border-bottom: 1px solid #30363d;
}
#toolbar label {
  display: flex; gap: 6px; align-items: center; font-size: 12px; color: #8b949e;
}
#toolbar input {
  background: #0d1117; color: #e6edf3;
  border: 1px solid #30363d; padding: 4px 8px;
  border-radius: 4px; font: inherit; width: 200px;
}
#toolbar input#token { width: 110px; }
#toolbar button {
  background: #238636; color: white; border: 0;
  padding: 5px 12px; border-radius: 4px; cursor: pointer; font: inherit;
}
#toolbar button:hover { background: #2ea043; }
#toolbar button#fullscreen { background: #30363d; }
#toolbar button#fullscreen:hover { background: #484f58; }
.spacer { flex: 1; }
.status {
  padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 500;
}
.status.online { background: #1f6f3a; color: #e6edf3; }
.status.offline { background: #5a1e1e; color: #e6edf3; }
.status.connecting { background: #6a4d1e; color: #e6edf3; }

#stage {
  display: flex; justify-content: center; align-items: center;
  height: calc(100% - 86px); position: relative; background: #000;
}
#screen {
  max-width: 100%; max-height: 100%;
  background: #000; outline: none; cursor: crosshair;
  image-rendering: auto;
}
#screen.kbfocus { box-shadow: 0 0 0 2px #58a6ff inset; }
#overlay {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  background: rgba(0,0,0,0.6); font-size: 18px; cursor: pointer;
  user-select: none;
}
#overlay.hidden { display: none; }
#hud {
  display: flex; gap: 24px; justify-content: center; align-items: center;
  padding: 6px 12px; background: #161b22;
  border-top: 1px solid #30363d;
  font-size: 12px; color: #8b949e;
}
#hud #hint { margin-left: auto; opacity: 0.7; }
