:root {
  color-scheme: dark;
  --panel: rgba(16, 19, 24, 0.82);
  --panel-strong: rgba(16, 19, 24, 0.94);
  --text: #f6f8fb;
  --muted: #b7c0ca;
  --accent: #fab005;
  --accent-dark: #8a5d00;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body,
.app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #101318;
  color: var(--text);
}

#renderCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

.hud {
  position: fixed;
  top: 18px;
  left: 18px;
  width: min(430px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.05;
  letter-spacing: 0;
}

.status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(250, 176, 5, 0.5);
  border-radius: 999px;
  color: #111317;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.control-block,
.model-block,
.control-row,
.hotspot-list {
  display: grid;
  gap: 8px;
}

.control-block {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.model-block {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}

.control-row,
.hotspot-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.hotspot-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: rgba(250, 176, 5, 0.75);
  background: rgba(250, 176, 5, 0.15);
  outline: none;
}

.mode-btn.active,
.model-btn.active {
  color: #141414;
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 700px) {
  .hud {
    top: auto;
    bottom: 12px;
    left: 12px;
    width: calc(100vw - 24px);
    padding: 12px;
  }

  .brand-row {
    margin-bottom: 10px;
  }

  .control-block,
  .model-block,
  .hotspot-list {
    grid-template-columns: 1fr;
  }

  .control-row {
    grid-template-columns: 1fr;
  }
}
