@font-face {
  font-family: 'Cabin Condensed-Regular';
  src: url(https://file.garden/Z3nf4eZzZUtRPfhK/screen/CabinCondensed-Regular.ttf);
 }

@font-face {
		font-family: "EquipExtended-Regular";
		src: url('https://file.garden/Z3nf4eZzZUtRPfhK/screen/EquipExtended-Regular.ttf');
	}

/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  font-family: 'Cabin Condensed-Regular', sans-serif;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ====== BACKGROUND ====== */
.background-layer {
  position: absolute;
  inset: 0;
  background: url('https://file.garden/Z3nf4eZzZUtRPfhK/screen/itrmca.webp') center/cover no-repeat;
  z-index: 1;
}

.frame-overlay {
  position: absolute;
  inset: 0;
  background: url('https://file.garden/Z3nf4eZzZUtRPfhK/screen/2bxodx.webp') center/100% 100% no-repeat;
  z-index: 10;
  pointer-events: none;
}

/* ====== VOCALOIDS ====== */
.character-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.character {
  position: absolute;
  top: 50%;
  right: -100%;
  height: 100%;
  transform: translateY(-50%);
  object-fit: contain;
  opacity: 0;
  transition: right 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease;
}

.character.active {
  right: 5%;
  opacity: 1;
}

/* ====== DESCRIPTION BOX ====== */
.description-box {
  position: absolute;
  bottom: 11%;
  right: 8%;
  width: 420px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.25),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  z-index: 5;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.description-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.description-box p {
  color: #4a4c52;
  font-size: 1.4em;
  line-height: 1.6;
  font-weight: 200;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  font-family: "EquipExtended-Regular";
}


.description-box #stats-content {
  font-size: 1.2em;
  line-height: 1.4;
  text-align: left;
}
.description-box #stats-content em {
  font-weight: bold;
  font-style: normal;
  color: #333;
}


/* ====== MENU BUTTONS ====== */
.menu-buttons {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%); /* Perfectly centers the block vertically */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Increased slightly for 2 buttons */
  z-index: 4;
}

.menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 500px;
  height: 90px;
  text-decoration: none;
  transition: filter 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  padding-left: 100px;
}

/* makes the buttons look like a staircase lol */
.menu-btn:nth-child(1) { margin-left: 0; }
.menu-btn:nth-child(2) { margin-left: 40px; }
.menu-btn:nth-child(3) { margin-left: 80px; }
.menu-btn:nth-child(4) { margin-left: 120px; }
.menu-btn:nth-child(5) { margin-left: 160px; }
.menu-btn:nth-child(6) { margin-left: 200px; }

/* ====== BUTTON ====== */
.btn-image {
  position: absolute;
  inset: 0;
  height: 150%;
  object-fit: contain;
  transition: filter 0.3s ease;
  z-index: 1;
}

#btn-rhythm:hover .btn-image { filter: brightness(1.3) drop-shadow(0 0 30px rgba(57,255,226,1)); }
#btn-customize:hover .btn-image { filter: brightness(1.3) drop-shadow(0 0 30px rgba(255,105,180,1)); }
#btn-pv:hover .btn-image { filter: brightness(1.3) drop-shadow(0 0 30px rgba(255,215,0,1)); }
#btn-gallery:hover .btn-image { filter: brightness(1.3) drop-shadow(0 0 30px rgba(255,69,0,1)); }
#btn-store:hover .btn-image { filter: brightness(1.3) drop-shadow(0 0 30px rgba(100,149,237,1)); }
#btn-options:hover .btn-image { filter: brightness(1.3) drop-shadow(0 0 30px rgba(255,215,100,1)); }

/* ====== ICONS ON THE BUTTONS ====== */
.icon-container {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 95px;
  height: 55px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 3;
}

.menu-btn:hover .icon-container {
  transform: translateY(-50%) scale(1.25);
}

.btn-icon {
  width: 100%;
  height: 160%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

/* ====== GLOWING RING THING OR SOMETHING IDK ====== */
.glow-ring {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.menu-btn:hover .glow-ring {
  opacity: 1;
  animation: hollowRingExpand 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#btn-rhythm .glow-ring { border-color: rgba(57,255,226,1); }
#btn-customize .glow-ring { border-color: rgba(255,105,180,1); }
#btn-pv .glow-ring { border-color: rgba(255,215,0,1); }
#btn-gallery .glow-ring { border-color: rgba(255,69,0,1); }
#btn-store .glow-ring { border-color: rgba(100,149,237,1); }
#btn-options .glow-ring { border-color: rgba(255,215,100,1); }


@keyframes hollowRingExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
}

/* ====== TEXT ====== */
.btn-text {
  position: relative;
  z-index: 2;
  color: #2c2c2c;
  font-size: 1.57em;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9), 2px 2px 3px rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  margin-left: 40px;
  margin-bottom: -35px;
}

.menu-btn:active {
  transform: scale(0.98);
}


#videoOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black; 
    display: none;
    z-index: 9999;
    overflow: hidden;
}

#transitionVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


.bgm-info {
  position: absolute;
  bottom: 6%;
  left: 1%;
  z-index: 5;
  
  display: flex; 
  align-items: flex-end;
}

.bgm-info img {
  height: 20px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
  display: block;
}

.top-right-controls {
  position: absolute;
  top: 3%;
  right: 3%;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.bgm-control-button, .skip-intro-button {
  width: 180px;
  height: 50px;
  background: url('https://file.garden/Z3nf4eZzZUtRPfhK/screen/ngigrp.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'EquipExtended-Regular', sans-serif;
  color: #2c2c2c;
  font-size: 1.2em;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9), 2px 2px 3px rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.bgm-control-button:hover, .skip-intro-button:hover {
  filter: brightness(1.3) drop-shadow(0 0 15px rgba(255,255,255,0.7));
}

.bgm-control-button:active, .skip-intro-button:active {
  transform: scale(0.98);
}


/* ====== RESPONSIVE STUFF ====== */
@media (max-width: 1400px) {
  .menu-btn { width: 420px; height: 70px; }
  .description-box { width: 350px; }
  .bgm-info img { height: 40px; } 
  .bgm-control-button, .skip-intro-button { width: 150px; height: 45px; font-size: 1em;}
}
@media (max-width: 1024px) {
  .menu-btn { width: 380px; height: 65px; }
  .menu-buttons { left: 3%; top: 50%; }
  .description-box { width: 300px; right: 5%; }
  .bgm-info img { height: 35px; }
  .bgm-control-button, .skip-intro-button { width: 120px; height: 40px; font-size: 0.9em;}
}

/* ====== MOBILE PORTRAIT (9:16) OVERRIDE (FINAL ALIGNMENT FIX) ====== */
@media screen and (max-width: 768px) {
  body, html, .container {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  .character-container {
    width: 100%;
    height: 45%; 
    top: 5%;
    right: 0; 
  }

  .character.active {
    right: 0; 
    left: 0;
    margin: 0 auto;
  }

  .description-box {
    bottom: 53%; 
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 90%;
    padding: 12px;
    box-sizing: border-box;
  }

  .description-box p {
    font-size: 1.1em;
  }

  .menu-buttons {
    top: auto !important; 
    bottom: 12% !important; /* Bumped up significantly to clear the bottom UI */
    left: 2%;
    width: 96%;
    gap: 12px; 
    transform: none !important; /* Forces the desktop centering to fully shut off */
  }

  .menu-btn {
    width: 88%; 
    height: 60px; 
    padding-left: 0; 
  }

  .menu-btn:nth-child(1) { margin-left: 0; }
  .menu-btn:nth-child(2) { margin-left: 2vw; }

  .icon-container {
    width: 45px;
    height: 45px;
    left: 15px;
  }

  .btn-text {
    font-size: 1.1rem !important; 
    margin: 0 0 0 75px !important; 
  }

  .top-right-controls {
    top: 2%;
    right: 2%;
    transform: scale(0.65);
    transform-origin: top right;
  }

  .bgm-info {
    bottom: 2%;
    left: 2%;
  }
  
  .bgm-info img {
    height: 15px !important;
  }
}