* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #1a1a2e;
  font-family: 'Black Ops One', cursive;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#three-container {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#three-container.active {
  display: block;
}

#three-container.active + #controls ~ #canvas,
body.mode-3d #canvas {
  display: none;
}

body.mode-3d #three-container {
  display: block;
}

#controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
}

.mode-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  border: 2px solid #4AF;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Black Ops One', cursive;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.mode-toggle:hover {
  background: rgba(68,170,255,0.3);
  border-color: #8CF;
  transform: scale(1.05);
}

.ctrl-toggle {
  position: fixed;
  top: 50px;
  left: 10px;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  border: 2px solid #4AF;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Black Ops One', cursive;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.ctrl-toggle:hover {
  background: rgba(68,170,255,0.3);
  border-color: #8CF;
  transform: scale(1.05);
}