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

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow", sans-serif;
}
.scene {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.bg-img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* ── Content layer ── */
.content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.logo {
  margin-top: 2%;
  width: min(38%, 320px);
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.85));
  animation: logoPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes logoPop {
  from {
    transform: scale(0.6) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.spacer {
  flex: 1;
}
.loading-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom:2%;
  gap: 0;
}

.loading-label {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  animation: pulse 1.2s ease-in-out infinite;
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-shadow: 1px 2px 5px #000;

}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
.bar-wrapper {
  position: relative;
  width: 480px;
}
.bar-track {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.bar-fill-clip {
  position: absolute;
  top: -1px;
  left: 0px;
  width: 98%;
  height: 100%;
  border-radius: 100px;
  overflow: hidden;
  z-index: 2;

}
.bar-fill-img {
  display: block;
  width: 0%;
  height: 50px;
  object-fit: cover;
  object-position: left center;
  border-radius: 100px;
  transition: width 0.08s linear;
  mix-blend-mode: lighten;
}
.ball-icon {
  position: absolute;
  top: 50%;
  left: 10%; /* updated via JS */
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* filter: drop-shadow(0 0 8px rgba(80, 120, 255, 0.95)); */
  transition: left 0.08s linear;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media only screen and (max-width: 1600px) {

  .logo {
    width: min(32%, 280px);
    
  }
}

@media only screen and (max-width: 1400px) {
  .logo {
      width: min(32%, 230px);
  }
  .loading-label {
    font-size: 30px;
  }
}

@media only screen and (max-width: 1200px) {
  .logo {
      width: min(32%, 180px);
  }
  .bar-wrapper {
    width: 360px;
  }
  .loading-label {
      font-size: 20px;
  }
  .bar-fill-img {
    height: 38px;
  }
  .ball-icon {
    width: 30px;
    height: 30px;
  }
}


@media only screen and (max-width: 768px) {
  .logo {
    width: 100%;
    max-width: 180px;
    margin-top: 8%;
  }
  .bar-wrapper {
    width: 330px;
  }
  .loading-section {
    padding-bottom: 8%;
  }
  .bar-fill-img {
    height: 35px;
  }
  .ball-icon {
    width: 28px;
    height: 28px;
  }

}



@media only screen and (max-width:450px) {
  .logo {

    margin-top: 12%;
  }

  .loading-section {
    padding-bottom: 12%;
  }

}

.share-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(5px);
    z-index: 99999;
    padding: 20px;
}

.share-modal.show {
    display: flex;
}

.share-modal-content {
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    animation: sharePopup .25s ease;
}

@keyframes sharePopup {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.share-modal-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #222;
    text-align: center;
}

.share-modal-content p {
    margin-bottom: 22px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.share-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.share-input-group input {
    flex: 1;
    height: 46px;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    background: #f8f9fb;
    color: #444;
    outline: none;
}

.share-input-group input:focus {
    border-color: #2563eb;
}

.share-input-group button {
    min-width: 110px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.share-input-group button:hover {
    background: #1d4ed8;
}

.share-input-group button:active {
    transform: scale(.97);
}

.close-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #f3f4f6;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.close-btn:hover {
    background: #e5e7eb;
}

.close-btn:active {
    transform: scale(.98);
}
