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

body {
  background: #0a0a0a;
  color: #fff;
  font-family: "Courier New", monospace;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-container {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100vw;
  max-width: 100vw;
  padding: 20px 30px;
  justify-content: center;
  overflow: hidden;
}

#canvas-container {
  position: relative;
  flex-shrink: 0;
}
#canvas-container:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

canvas {
  display: block;
}

#fullscreen-btn,
#audio-toggle-btn {
  position: absolute;
  bottom: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
#fullscreen-btn:hover,
#audio-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(100, 255, 150, 0.8);
  border-color: rgba(100, 255, 150, 0.3);
}

#fullscreen-btn {
  right: 10px;
}

#audio-toggle-btn {
  right: 52px;
  font-size: 18px;
}
#audio-toggle-btn.active {
  color: #64ff96;
  border-color: rgba(100, 255, 150, 0.4);
  background: rgba(100, 255, 150, 0.1);
}

body.ios-fullscreen #main-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  padding: 0;
  margin: 0;
}
body.ios-fullscreen #canvas-container {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
body.ios-fullscreen #info-panel {
  display: none;
}
body.ios-fullscreen #zone-indicator {
  z-index: 10001;
}
body.ios-fullscreen #fullscreen-btn,
body.ios-fullscreen #audio-toggle-btn {
  z-index: 10001;
}
body.ios-fullscreen #credit {
  z-index: 10001;
}

#start-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  z-index: 10;
  cursor: pointer;
  transition: opacity 1s ease;
}
#start-screen.hidden {
  opacity: 0;
  pointer-events: none;
}
#start-screen h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 20px;
  white-space: nowrap;
}
#start-screen p {
  font-size: 0.9rem;
  opacity: 0.6;
  letter-spacing: 0.1em;
  padding-left: 0.1em;
}
#start-screen .ios-hint {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 1.5rem;
  max-width: 280px;
  line-height: 1.5;
  text-align: center;
}

#zone-indicator {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 5;
}
#zone-indicator.visible {
  opacity: 1;
}

#zone-name {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
  white-space: nowrap;
}

#info-panel {
  width: 400px;
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
  display: flex;
  flex-direction: column;
  gap: 29px;
}
#info-panel.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 0s linear 0s;
}
#info-panel h2 {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
#info-panel p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.6;
}

.info-section {
  padding-left: 8px;
}

#credit {
  position: fixed;
  bottom: 15px;
  left: 20px;
  right: auto;
  font-size: 0.7rem;
  font-family: "Courier New", monospace;
  opacity: 0.3;
  letter-spacing: 0.05em;
  z-index: 50;
  white-space: nowrap;
}
#credit a {
  color: #64ff96;
  text-decoration: none;
  transition: opacity 0.2s;
}
#credit a:hover {
  opacity: 1;
  text-decoration: underline;
}

#ship-count {
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0.9;
}

#ship-count-label {
  font-size: 0.7rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.7;
}

.legend-color {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

#hover-tooltip {
  position: fixed;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-family: "Courier New", monospace;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 100;
  display: none;
  white-space: nowrap;
}
#hover-tooltip.visible {
  display: block;
}

#debug-hint {
  position: fixed;
  bottom: 15px;
  right: 20px;
  font-size: 0.7rem;
  opacity: 0.25;
  letter-spacing: 0.05em;
  font-family: "Courier New", monospace;
}

#debug-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 280px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  font-size: 11px;
  z-index: 1000;
  display: none;
}
#debug-panel.visible {
  display: block;
}
#debug-panel h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #64ff96;
}
#debug-panel .control-group {
  margin-bottom: 12px;
}
#debug-panel .control-group label {
  display: block;
  margin-bottom: 4px;
  opacity: 0.7;
}
#debug-panel .control-group input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
}
#debug-panel .control-group input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #5588ff;
  border-radius: 50%;
  cursor: pointer;
}
#debug-panel .control-group input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #5588ff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
#debug-panel .control-group .ctrl-value {
  margin-top: 3px;
  opacity: 0.5;
  font-size: 10px;
}

@media (max-width: 900px) {
  #main-container {
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 100vh;
    max-height: 100dvh;
  }
  #info-panel {
    width: 100%;
    max-width: 400px;
  }
}
@media (max-width: 900px) and (max-height: 700px) {
  #info-panel {
    display: none;
  }
  #main-container {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  #start-screen h1 {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
}

/*# sourceMappingURL=style.css.map */
