*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07090c;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

#stage {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #07090c;
  cursor: default;
}

.control-strip {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
  max-width: 300px;
  padding: 10px 12px;
  background: rgba(8, 10, 14, 0.92);
  border: 1px solid rgba(120, 70, 60, 0.35);
  color: #c8cdd4;
  user-select: none;
}

.control-strip.is-hidden {
  display: none;
}

.control-strip__brand {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3ad;
  font-weight: 600;
}

.control-strip__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  appearance: none;
  border: 1px solid rgba(120, 90, 80, 0.45);
  background: rgba(18, 20, 26, 0.95);
  color: #d5d8de;
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
}

.ctrl-btn:hover {
  border-color: rgba(170, 100, 80, 0.7);
}

.ctrl-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.ctrl-btn--primary {
  border-color: rgba(160, 90, 70, 0.55);
}

.ctrl-btn--active {
  border-color: rgba(190, 120, 90, 0.85);
  color: #f0e8e4;
}

.control-strip__status {
  font-size: 11px;
  color: #8e96a0;
  line-height: 1.35;
  min-height: 28px;
}

.control-strip__hint {
  font-size: 10px;
  color: #5c646e;
  letter-spacing: 0.04em;
}

/* Phone-only: hide/show existing control strip (desktop unchanged) */
.mobile-controls-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-controls-toggle {
    display: block;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 110;
    appearance: none;
    border: 1px solid rgba(120, 90, 80, 0.55);
    background: rgba(8, 10, 14, 0.92);
    color: #d5d8de;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 8px 10px;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-controls-toggle:active {
    border-color: rgba(170, 100, 80, 0.7);
  }

  .control-strip {
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .control-strip.is-hidden {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
  }
}
