:root {
  color-scheme: dark;
  background: #000;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("./assets/Bodoni-Moda-Italic.ttf") format("truetype");
  font-display: block;
  font-style: italic;
  font-weight: 400 900;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  color: #fff;
}

.welcome-stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: #000;
}

.welcome-panel {
  position: absolute;
  top: 40.2%;
  left: 50%;
  width: min(80%, 760px);
  color: #fff;
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  transform: translateX(-50%);
}

.welcome-panel h1,
.welcome-panel p {
  margin: 0;
}

.welcome-panel h1 {
  min-height: 1em;
  font-size: 21.02px;
  line-height: 1;
  font-weight: 400;
}

.welcome-panel h1 [data-typewriter] {
  display: inline-block;
}

.typewriter-character {
  opacity: 0;
  transition: opacity 90ms linear;
}

.typewriter-character.is-visible {
  opacity: 1;
}

.welcome-panel h1 .welcome-rest {
  margin-left: -0.17em;
}

.welcome-panel p > span {
  display: inline;
  white-space: normal;
}

.welcome-panel p > span + span::before {
  content: " ";
}

.welcome-panel p {
  max-width: 100%;
  margin-top: 0.2em;
  font-size: 11.30px;
  line-height: 1.2;
  font-weight: 400;
}

.audio-visualizer {
  width: 100%;
  height: 112px;
  margin-top: 28px;
  cursor: pointer;
  touch-action: manipulation;
}

.audio-visualizer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.audio-visualizer audio {
  display: none;
}

@media (max-width: 600px) {
  .welcome-panel {
    width: 80%;
  }

  .welcome-panel p > span {
    display: block;
    white-space: nowrap;
  }

  .welcome-panel p > span + span::before {
    content: none;
  }

  .audio-visualizer {
    height: 96px;
    margin-top: 22px;
  }
}
