:root {
  --bg: #040507;
  --fg: #f5f8ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root,
html,
body {
  margin: 0;
  padding: 0;
  width: 100dvw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden !important;
  overflow: clip !important;
  overflow-x: clip !important;
  overflow-y: clip !important;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-gutter: auto !important;
  direction: ltr !important;
  writing-mode: horizontal-tb !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  position: fixed !important;
  inset: 0;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  position: fixed !important;
  inset: 0;
}

canvas {
  position: fixed !important;
  inset: 0;
  left: 0 !important;
  top: 0 !important;
  display: block;
  width: 100dvw;
  height: 100dvh;
  border: 0;
  outline: none;
}

.badge {
  position: fixed;
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(15, 17, 21, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10;
}

.menu-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 248, 255, 0.92);
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 30;
}

.menu-toggle:hover {
  background: rgba(25, 30, 42, 0.78);
}

.menu-panel {
  position: fixed;
  right: 16px;
  top: 58px;
  min-width: 240px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(11, 14, 20, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.menu-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 248, 255, 0.9);
  margin-bottom: 8px;
}

.menu-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(244, 248, 255, 0.72);
  margin-bottom: 6px;
}

.menu-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(245, 248, 255, 0.92);
  background: rgba(18, 22, 30, 0.95);
  font-size: 12px;
}

.menu-divider {
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
}

.menu-select:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid rgba(120, 190, 255, 0.85);
  outline-offset: 2px;
}

/* Hide foreign UI overlays injected into body (extensions/panel widgets). */
body > :not(canvas):not(.badge):not(.menu-toggle):not(.menu-panel):not(script) {
  display: none !important;
}
