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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.hidden {
  display: none !important;
}

/* LOADING */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030303;
  transition: opacity 0.7s ease;
}

.loading-content {
  width: min(430px, 82%);
}

.loading-label {
  color: #aaa;
  font-size: 10px;
  letter-spacing: 5px;
  margin-bottom: 15px;
  text-align: center;
}

.loading-content h1 {
  font-size: clamp(30px, 7vw, 48px);
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 35px;
}

.loading-content h1 span,
.brand span {
  color: #f4ad24;
}

.loading-track {
  height: 4px;
  background: #292929;
  overflow: hidden;
}

#loading-bar {
  height: 100%;
  width: 0%;
  background: #f4ad24;
  box-shadow: 0 0 15px #f4ad24;
  transition: width 0.15s linear;
}

.loading-info {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa;
}

#loading-percent {
  color: #f4ad24;
}

/* TRANSITION */
#transition-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 2s ease;
}

#transition-screen.fade-out {
  opacity: 0;
}

/* MAIN MENU */
#main-menu {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 65% 55%, #38200e 0%, #111 38%, #030303 78%);
  opacity: 1;
}

#three-container,
#fire-canvas,
.scene-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#three-container {
  z-index: 1;
}

#three-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#fire-canvas {
  z-index: 2;
  pointer-events: none;
}

.scene-vignette {
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.85), transparent 75%),
    linear-gradient(0deg, rgba(0,0,0,.8), transparent 40%),
    radial-gradient(ellipse, transparent 30%, rgba(0,0,0,.5) 100%);
}

.top-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 3px;
}

.online-status {
  font-size: 9px;
  letter-spacing: 2px;
  color: #aaa;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e7a52a;
  box-shadow: 0 0 10px #e7a52a;
  margin-right: 8px;
}

.menu-information {
  position: absolute;
  z-index: 5;
  top: 34%;
  left: 7%;
  max-width: 440px;
}

.eyebrow {
  color: #e9a52a;
  font-size: 10px;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.menu-information h1 {
  font-size: clamp(35px, 6vw, 70px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 0 4px 20px #000;
}

.menu-information h1 span {
  color: #e9a52a;
}

.menu-information p {
  margin-top: 22px;
  color: #aaa;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.8;
}

.character-caption {
  position: absolute;
  z-index: 5;
  bottom: 35px;
  left: 5%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #aaa;
}

.character-caption span:first-child {
  color: #e9a52a;
}

#play-button {
  position: absolute;
  z-index: 8;
  right: 5%;
  bottom: 35px;
  width: 190px;
  height: 58px;
  border: 1px solid #ffc04a;
  background: linear-gradient(110deg, #f1a51d, #bb6a0c);
  color: #100b04;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 0 25px rgba(237, 145, 22, .3);
  transition: .25s;
}

#play-button:hover {
  background: #ffc04a;
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(237, 145, 22, .6);
}

.play-arrow {
  font-size: 13px;
}

.game-message {
  position: absolute;
  z-index: 9;
  right: 5%;
  bottom: 105px;
  color: #f4ad24;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: right;
}

.bottom-footer {
  position: absolute;
  z-index: 5;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  white-space: nowrap;
  font-size: 8px;
  letter-spacing: 2px;
}

.bottom-footer span {
  color: #e9a52a;
  padding: 0 7px;
}

@media (max-width: 650px) {
  .top-header {
    padding: 20px 6%;
  }

  .brand {
    font-size: 14px;
  }

  .online-status {
    font-size: 8px;
  }

  .menu-information {
    top: 18%;
    left: 6%;
    max-width: 80%;
  }

  .menu-information h1 {
    font-size: clamp(35px, 10vw, 55px);
  }

  .menu-information p {
    font-size: 8px;
  }

  #play-button {
    right: 6%;
    bottom: 65px;
    width: 145px;
    height: 52px;
    font-size: 14px;
  }

  .character-caption {
    left: 6%;
    bottom: 75px;
    font-size: 8px;
  }

  .bottom-footer {
    bottom: 15px;
    font-size: 7px;
  }
}
