html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
}
#viewport { position: fixed; inset: 0; }
body.hide-cursor, body.hide-cursor * { cursor: none !important; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 7, 15, 0.92);
}
.overlay[hidden] { display: none; }
.panel {
  width: min(720px, 100%);
  max-height: 100%;
  overflow: auto;
  text-align: center;
}
.panel h1 { font-weight: 600; font-size: clamp(24px, 4vw, 44px); margin: 0 0 8px; color: #f2c46d; }
.hint { color: #a9adc2; margin: 8px 0 20px; font-size: clamp(14px, 2vw, 18px); }
.pick-list { display: grid; gap: 12px; }
.pick-list button {
  display: block;
  width: 100%;
  padding: 18px 22px;
  border-radius: 14px;
  border: 2px solid #2c3150;
  background: #141830;
  color: #fff;
  font: inherit;
  font-size: clamp(18px, 2.6vw, 26px);
  text-align: left;
  cursor: pointer;
}
.pick-list button small { display: block; color: #a9adc2; font-size: 0.65em; margin-top: 4px; }
.pick-list button:hover, .pick-list button:focus-visible { border-color: #f2c46d; outline: none; background: #1d2244; }

.startbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 14px 12px 20px;
  border-radius: 14px;
  background: rgba(15, 18, 36, 0.92);
  border: 1px solid rgba(242, 196, 109, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 16px;
  transition: opacity 0.4s;
}
.startbar[hidden] { display: none; }
.startbar .sb-text { display: flex; flex-direction: column; gap: 2px; }
.startbar strong { color: #f2c46d; }
.startbar kbd { background: #2a2f4d; border-radius: 4px; padding: 1px 6px; font-family: inherit; font-size: 0.9em; }
.startbar button {
  flex: none;
  border: 1px solid #3a4066;
  background: #1d2244;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(15, 18, 36, 0.95);
  border: 1px solid #3a4066;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 16px;
}
.toast[hidden] { display: none; }

.netdot {
  position: fixed;
  right: 12px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.3);
  z-index: 45;
}
.netdot[hidden] { display: none; }
