* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000000;
  font-family: 'JetBrains Mono', monospace;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

#audio-prompt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease;
}

#audio-prompt.fade-out {
  opacity: 0;
  pointer-events: none;
}

.prompt-inner {
  text-align: center;
}

.prompt-glyph {
  font-size: 48px;
  color: #00FFFF;
  text-shadow: 0 0 30px #00FFFF, 0 0 60px #00FFFF44;
  margin-bottom: 20px;
  animation: pulse-glyph 3s ease-in-out infinite;
}

@keyframes pulse-glyph {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.prompt-title {
  font-size: 28px;
  font-weight: 200;
  letter-spacing: 16px;
  color: #00FFFF;
  text-shadow: 0 0 20px #00FFFF88;
  margin-bottom: 8px;
}

.prompt-sub {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #FF00FF88;
  margin-bottom: 40px;
}

#audio-enable-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #000;
  background: #00FFFF;
  border: none;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px #00FFFF66, 0 0 40px #00FFFF22;
}

#audio-enable-btn:hover {
  background: #FF00FF;
  box-shadow: 0 0 20px #FF00FF66, 0 0 40px #FF00FF22;
}

#info-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#info-panel.hidden-panel {
  opacity: 0;
  pointer-events: none;
}

.panel-content {
  max-width: 480px;
  padding: 40px;
  text-align: center;
}

.panel-title {
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 12px;
  color: #00FFFF;
  text-shadow: 0 0 15px #00FFFF66;
  margin-bottom: 20px;
}

.panel-content p {
  font-size: 12px;
  font-weight: 300;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 8px;
}

.panel-content .dim {
  color: #555;
  font-size: 11px;
  margin-top: 16px;
}

.panel-section {
  font-size: 10px;
  letter-spacing: 4px;
  color: #FF00FF;
  margin: 20px 0 10px;
}

.key {
  color: #00FFFF;
  background: rgba(0,255,255,0.1);
  padding: 2px 8px;
  font-size: 11px;
}

#info-close-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: #00FFFF;
  background: transparent;
  border: 1px solid #00FFFF44;
  padding: 10px 28px;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.3s ease;
}

#info-close-btn:hover {
  border-color: #FF00FF;
  color: #FF00FF;
}

#history-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 300px;
  background: rgba(5,5,10,0.95);
  border-top: 1px solid #00FFFF22;
  z-index: 800;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
  padding: 16px 20px;
}

#history-panel.history-visible {
  transform: translateY(0);
}

.history-header {
  font-size: 10px;
  letter-spacing: 4px;
  color: #FF00FF;
  margin-bottom: 12px;
}

#history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  font-size: 12px;
  font-weight: 300;
  color: #00FFFF99;
  cursor: pointer;
  padding: 6px 10px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.history-item:hover {
  color: #00FFFF;
  border-left-color: #00FFFF;
  background: rgba(0,255,255,0.05);
}

.history-item .hist-freq {
  color: #00FFFF;
}

.history-item .hist-name {
  color: #FF00FF99;
  font-size: 10px;
  margin-left: 10px;
}

#volume-control {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

#volume-control:hover {
  opacity: 0.8;
}

#info-icon {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ffffff11;
  color: #ffffff22;
  font-size: 12px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

#info-icon:hover {
  border-color: #00FFFF44;
  color: #00FFFF88;
}

#footer-link {
  position: fixed;
  bottom: 6px;
  right: 12px;
  z-index: 100;
}

#footer-link a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #222;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

#footer-link a:hover {
  color: #00FFFF88;
  text-shadow: 0 0 8px #00FFFF44;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #00FFFF33;
  border-radius: 2px;
}