:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f4f4f5;
  --accent: #7c3aed;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

#app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

#canvas { display: block; width: 100vw; height: 100vh; position: fixed; inset: 0; touch-action: none; }
#start-btn { position: fixed; z-index: 10; top: 62%; left: 50%; transform: translate(-50%, -50%); padding: 0.9rem 2rem; background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); font-family: inherit; font-size: 0.85rem; cursor: pointer; letter-spacing: 0.18em; backdrop-filter: blur(4px); transition: background 0.25s, border-color 0.25s, color 0.25s; }
#start-btn:hover { background: rgba(124, 58, 237, 0.22); border-color: rgba(255,255,255,0.6); color: #fff; }

#title-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

/* Joystick Floating Styles */
.joystick-base {
  position: fixed;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none;
  z-index: 999;
  display: none;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.joystick-knob {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.8) 0%, rgba(124, 58, 237, 0.2) 70%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

