* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: 24pt;
  background: #020617;
  color: #f8fafc;
  font-family: 'IBM Plex Mono', 'Inter', system-ui, sans-serif;
  overflow: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#language-buttons {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.25rem;
  z-index: 100;
}

.lang-btn {
  width: 1rem;
  height: 1rem;
  padding: 0;
  font-size: 0.325rem;
  letter-spacing: 0.025rem;
  text-transform: uppercase;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(248, 250, 252, 0.3);
  color: rgba(248, 250, 252, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'IBM Plex Mono', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.compact {
  width: 0.9rem;
  font-size: 0.3rem;
  font-weight: 500;
}

.lang-btn:hover {
  background: rgba(248, 250, 252, 0.2);
  color: rgba(248, 250, 252, 0.9);
  border-color: rgba(248, 250, 252, 0.6);
}

.lang-btn.active {
  background: rgba(248, 250, 252, 0.3);
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.9);
}

.hint {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.6);
  text-align: center;
  pointer-events: none;
}

#audio-btn {
  width: 1rem;
  height: 1rem;
  padding: 0;
  font-size: 0.4rem;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(248, 250, 252, 0.3);
  color: rgba(248, 250, 252, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#audio-btn:hover {
  background: rgba(248, 250, 252, 0.2);
  color: rgba(248, 250, 252, 0.9);
  border-color: rgba(248, 250, 252, 0.6);
}

#audio-btn.playing {
  background: rgba(248, 250, 252, 0.3);
  color: #ffffff;
  border-color: rgba(248, 250, 252, 0.9);
}

#intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#intro-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.intro-btn {
  width: 6rem;
  height: 1.8rem;
  padding: 0;
  font-size: 0.5rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  background: rgba(248, 250, 252, 0.1);
  border: 1px solid rgba(248, 250, 252, 0.3);
  color: rgba(248, 250, 252, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'IBM Plex Mono', 'Inter', system-ui, sans-serif;
  font-weight: 600;
}

.intro-btn:hover {
  background: rgba(248, 250, 252, 0.2);
  color: rgba(248, 250, 252, 1);
  border-color: rgba(248, 250, 252, 0.6);
}
