body {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  color: #fdeef8;
}

#gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  /* ensure the gate (Press Start overlay) appears above all other UI */
  z-index: 100001;
}

#enter {
  font-size: 2rem;
  color: white;
}

#video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: black;
  z-index: -1;
  filter: blur(10px);
  transition: filter 0.5s ease-in-out;
}

#video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  border: none;
  pointer-events: none;
  z-index: -1;
}

#overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

#boxes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width: 600px;
  gap: 10px;
  z-index: 9999;
}

.box {
  background-color: #fce9f315;
  padding: 30px;
  border-radius: 20px;
  border: solid 2px #ffffff1f;
  width: 100%;
  opacity: 0;
  filter: blur(10px);
  text-shadow: 0px 0px 5px #ffddf4;
}

#pfp {
  width: 100px;
  transform: translate(0%, -70%);
  margin-bottom: -80px;
  border-radius: 20px;
  border: solid 2px #ffffff;
}

#bio {
  margin-bottom: -10px;
}


@keyframes gateFadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes textGrowFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

.gate-fade {
  animation: gateFadeOut 0.5s ease-in forwards;
}

.text-grow-fade {
  animation: textGrowFade 0.5s ease-in forwards;
}

@keyframes boxReveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

.box-show {
  animation: boxReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.5s;
}

#secondbox {
  font-family: 'JetBrains Mono', monospace;
}

#music-ui {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

#music-icon {
  width: 60px;
  height: 60px;
  background-color: #fdeef83e;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#music-icon svg {
  width: 40px;
  height: 40px;
}

#music-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0px;
  font-weight: 100;
}

.track {

  font-size: 1rem;
  margin: 0;
  margin-bottom: -20px;
  line-height: 1.2;
}

.typewriter::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: #fdeef8;
  margin-left: 4px;
  vertical-align: middle;
  transform: translateY(-0.12em);
  box-shadow: 0px 0px 4px #ffddf4;
}


.progress-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress .time {
  font-size: 0.75rem;
  opacity: 0.7;
  min-width: 40px;
  text-align: center;
}

.bar {
  flex: 1;
  height: 6px;
  background-color: #ffffff30;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  pointer-events: auto;
}

.fill {
  height: 100%;
  background-color: #fdeef8;
  border-radius: 3px;
  width: 0%;
  transition: width 0.2s ease;
}

.controls-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.controls-inline .btn {
  background: none;
  border: none;
  color: #fdeef8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

#back,
#skip {
  width: 48px;
  height: 48px;
  font-size: 1.4em;
}

#toggle {
  width: 64px;
  height: 64px;
  font-size: 1.8em;
}

.controls-inline .btn:hover {
  transform: scale(1.2);
}

.controls-inline .btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

#mainbox {
  position: relative;
}

#mainbox #music-icons-row {
  position: absolute;
  top: -18px;
  right: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#mainbox #music-icons-row svg {
  width: 20px;
  height: 20px;
}

#corner-text {
  position: absolute;
  top: -5px;
  right: 10px;
  font-size: 0.9rem;
  color: #fdeef8;
  text-shadow: 0px 0px 0px #000000;
  display: flex;
  align-items: center;
  gap: 6px;

}

#corner-text svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  margin-right: -2px;
}

#music-icons-row {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

#music-icons-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, opacity 200ms ease;
}

#music-icons-row a svg,
#music-icons-row a {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #fdeef8;
  cursor: pointer;
}

#music-icons-row a:hover,
#music-icons-row a:focus {
  transform: scale(1.12);
  opacity: 0.95;
}

#mainbox #music-icons-row {
  top: 18px;
  right: 10px;
}

p a {
  color: #fdeef8;
  text-decoration: underline;
  background-color: #fdeef80c;
  transition: background-color 0.3s ease;
}

p a:hover {
  background-color: #fdeef039;
}