* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

#scene {
  width: 100%;
  height: 100%;
  display: block;
}

.fps-label {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 20;
  padding: 4px 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #e9f2f5;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  user-select: none;
  pointer-events: none;
}

.rotate-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.rotate-controls button {
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.rotate-controls button:hover {
  background-color: #e5f5f7;
  color: #70a6ad;
}
.rotate-controls button:active {
  color: red;
}

.mode-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  padding: 10px 20px;
  border-radius: 16px;

  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  user-select: none;
  pointer-events: none;
}

.history-controls {
  position: fixed;
  top: 70px;
  left: 20px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.history-controls button {
  padding: 6px 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
}

.history-controls button:hover {
  background-color: #e5f5f7;
  color: #70a6ad;
}

.history-controls button:active {
  color: red;
}
