html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

canvas {
  display: block;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 12px;
  font-size: 12px;
  color: #cccccc;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0)
  );
  text-align: center;
  pointer-events: auto;
}

.footer-link {
  color: #89b4ff;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.gui-tooltip-icon {
  display: inline-block;
  margin-right: 4px;
  padding: 0 4px;
  border-radius: 50%;
  border: 1px solid #666;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  color: #ccc;
}

.gui-tooltip-bubble {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  max-width: 240px;
  font-size: 11px;
  line-height: 1.4;
  color: #f5f5f5;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.model-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.model-dialog {
  max-width: 520px;
  width: 90%;
  background: #111;
  color: #f5f5f5;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  line-height: 1.5;
}

.model-dialog-hidden {
  display: none !important;
}

.model-dialog-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.model-dialog-body p {
  margin: 4px 0;
}

.model-dialog-close {
  margin-top: 10px;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #f5f5f5;
  font-size: 12px;
  cursor: pointer;
}

.model-dialog-close:hover {
  background: #444;
}
