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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: crosshair;
}

#dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.title {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35),
               0 0 48px rgba(255, 255, 255, 0.15);
  letter-spacing: 0.08em;
  /* hidden but kept in layout for text-mask measurement */
  opacity: 0;
  line-height: 0.95;
  padding: 0 5vw;
  max-width: 100vw;
  overflow: hidden;
}

.title { font-size: 22vw; font-weight: 800; }
.title .brand { display: block; overflow-wrap: break-word; }

.title .dev {
  margin-top: 0.5vh;
  font-size: 5vw;
  font-weight: 200;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  opacity: 0.85;
  padding-left: 0.6em;
}

@media (max-width: 768px) {
  .title, #dots, .debug-toggle, #debug-panel { display: none !important; }
}

@media (min-width: 481px) and (max-aspect-ratio: 1/1) {
  .title { font-size: 18vh; }
  .title .dev { font-size: 4vh; letter-spacing: 0.5em; }
}

/* Debug Panel */
.debug-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.7);
  color: #0f0;
  border: 1px solid #0f0;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1000;
  font-family: monospace;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}

.debug-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  border-left: 1px solid #333;
  z-index: 999;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  color: #fff;
}

.debug-panel.hidden {
  display: none;
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #111;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
}

.debug-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.debug-content {
  padding: 10px;
}

.debug-group {
  margin-bottom: 15px;
}

.debug-group-title {
  color: #0f0;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

.debug-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.debug-item label {
  flex: 0 0 120px;
  font-size: 10px;
  color: #aaa;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debug-item input[type="range"] {
  flex: 1;
  height: 16px;
  background: #333;
  outline: none;
  -webkit-appearance: none;
}

.debug-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #0f0;
  cursor: pointer;
  border-radius: 2px;
}

.debug-item .value {
  flex: 0 0 45px;
  text-align: right;
  font-size: 10px;
  color: #0f0;
}