* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #1a0b2e;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background: url('../images/bg.jpg') no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wrapper {
  background: url('../images/bg.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 100%;
  padding: 30px 16px 77px;

  aspect-ratio: 375 / 667;


  min-width: 350px;
  max-width: 450px;

  display: flex;
  flex-direction: column;
  align-items: center;

}

/* Header */
.header {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo {
  width: 100%;
  max-width: 119px;
  height: auto;
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.hero__title {
  font-weight: 700;
  font-size: 22px;
  line-height: 27px;
  margin-bottom: 4px;
}

.hero__subtitle {
  font-size: 14px;
  line-height: 17px;
  margin-bottom: 40px;
  font-weight: 400;
}

/* Wheel */
.wheel-container {
  position: relative;
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;

  position: absolute;
  top: 29%;
}

.wheel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.wheel {
  width: 100%;
  object-fit: contain;
  transform: rotate(0deg);
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* Buttons */
.btn {
  background: radial-gradient(101.56% 101.56% at 50% 50%, #BC8835 0%, #FADDB0 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s, opacity 0.2s;

  position: relative;
  overflow: hidden;

  width: 100%;
  max-width: 145px;
  min-height: 43px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  line-height: 27px;
  color: #FFFFFF;

  border: 0.3px solid #FFFFFF;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 107, 28, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(247, 107, 28, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--hidden {
  opacity: 0;
  visibility: hidden;
}

#spinBtn {
  margin-top: auto;
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  width: 100%;
  height: 100%;

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-card {
  width: calc(100% - 32px);
  max-width: 400px;

  padding: 24px 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .popup-card {
  transform: scale(1);
}

.popup__title {
  position: relative;
  color: #F1B459;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 7px;
}

.popup__box {
  width: 100%;
  aspect-ratio: 319 / 340;
  border-radius: 15px;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.61);
}

.popup__text--large {
  position: relative;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.popup__text--large .highlight {
  color: #F1B459;
  font-weight: 700;
  display: inline;
}

.popup__image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.popup__arrow {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 7px 0;
}

.popup__image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
}

.btn--popup {
  font-size: 27px;
  max-width: 272px;
  min-height: 53px;
}

.popup__footer-text {
  font-size: 12px;
  line-height: 14px;
  margin-top: 23px;
}



/* Animations */
@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  }
}

.popup__image {
  animation: pulse-glow 2s infinite ease-in-out;
}