* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, #4545a8 0%, #17172f 45%, #0d0d1d 100%);
  color: white;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
}

.promo-card {
  width: 100%;
  max-width: 760px;
  padding: 35px 25px;
  text-align: center;

  background: rgba(255, 255, 255, 0.09);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(12px);
}

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;

  background: #ffd43b;
  color: #17172f;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;

  box-shadow: 0 8px 25px rgba(255, 212, 59, 0.25);
}

h1 {
  margin: 18px 0 8px;

  font-size: clamp(38px, 8vw, 64px);
  font-weight: 1000;
  letter-spacing: -2px;

  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

.subtitle {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.subtitle strong {
  color: #ffd43b;
}

.description {
  margin: 10px 0 25px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.wheel-area {
  position: relative;
  width: min(520px, 90vw);
  aspect-ratio: 1;
  margin: 0 auto 25px;

  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

#wheel {
  width: 100%;
  height: 100%;
  display: block;
}

.pointer {
  position: absolute;
  z-index: 5;

  top: -12px;
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 42px solid #ffffff;

  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}

.wheel-center {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 92px;
  height: 92px;

  transform: translate(-50%, -50%);

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

  border-radius: 50%;

  background: white;
  color: #17172f;

  font-size: 36px;
  font-weight: 900;

  border: 6px solid #17172f;

  pointer-events: none;
}

#spinButton {
  width: min(460px, 90%);
  padding: 19px 25px;

  border: none;
  border-radius: 18px;

  background: #ffd43b;
  color: #17172f;

  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0.5px;

  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(255, 212, 59, 0.3),
    inset 0 -4px 0 rgba(0, 0, 0, 0.12);

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

#spinButton:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

#spinButton:active {
  transform: translateY(1px);
}

#spinButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

#attempts {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

#attempts strong {
  color: #ffffff;
}

.result {
  margin: 25px auto 0;
  padding: 25px 20px;

  max-width: 520px;

  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;

  animation: resultAppear 0.4s ease;
}

.hidden {
  display: none;
}

.result-title {
  font-size: 22px;
  font-weight: 900;
}

.result-prize {
  margin: 8px 0;

  font-size: 38px;
  font-weight: 1000;
  color: #ffd43b;
}

.result p {
  margin: 8px 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.claim-button {
  display: inline-block;

  padding: 15px 25px;

  border-radius: 15px;

  background: #69db7c;
  color: #102515;

  text-decoration: none;
  font-size: 17px;
  font-weight: 1000;

  box-shadow: 0 8px 20px rgba(105, 219, 124, 0.2);

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.claim-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.rules {
  margin-top: 25px;

  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

@keyframes resultAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 15px 10px;
  }

  .promo-card {
    padding: 25px 12px;
    border-radius: 22px;
  }

  .subtitle {
    font-size: 18px;
  }

  .description {
    font-size: 14px;
  }

  .wheel-area {
    width: min(440px, 94vw);
  }

  .wheel-center {
    width: 72px;
    height: 72px;
    font-size: 28px;
    border-width: 5px;
  }

  .pointer {
    border-left-width: 17px;
    border-right-width: 17px;
    border-top-width: 34px;
  }

  #spinButton {
    font-size: 17px;
    padding: 17px;
  }
}