.fortune-wheel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.fortune-wheel-overlay.hidden {
  display: none;
}

.fortune-wheel-modal {
  background: radial-gradient(
      circle at 20% 30%,
      rgba(115, 44, 178, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(157, 78, 221, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(210, 105, 215, 0.1) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #0d111c82 0%, #1a1f2e9e 50%, #0d111c82 100%);
  border: 2px solid rgba(115, 44, 178, 0.5);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  padding: 25px 20px;
  position: relative;
  animation: modalAppear 0.4s ease;
  overflow: hidden;
}

.fortune-wheel-modal::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(115, 44, 178, 0.03) 2px,
    rgba(115, 44, 178, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.fortune-wheel-modal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(115, 44, 178, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fortune-wheel-modal > * {
  position: relative;
  z-index: 2;
}

.snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  border-radius: 24px;
}

.snowflakes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 28, 1) 0%,
    rgba(13, 17, 28, 0.7) 40%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.snowflake {
  position: absolute;
  top: -50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: fall linear infinite;
  will-change: transform;
}

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
  font-size: 1.2em;
}
.snowflake:nth-child(2) {
  left: 20%;
  animation-duration: 10s;
  animation-delay: 2s;
  font-size: 1.5em;
}
.snowflake:nth-child(3) {
  left: 30%;
  animation-duration: 14s;
  animation-delay: 4s;
  font-size: 1em;
}
.snowflake:nth-child(4) {
  left: 40%;
  animation-duration: 11s;
  animation-delay: 1s;
  font-size: 1.3em;
}
.snowflake:nth-child(5) {
  left: 50%;
  animation-duration: 13s;
  animation-delay: 3s;
  font-size: 1.1em;
}
.snowflake:nth-child(6) {
  left: 60%;
  animation-duration: 12s;
  animation-delay: 5s;
  font-size: 1.6em;
}
.snowflake:nth-child(7) {
  left: 70%;
  animation-duration: 10s;
  animation-delay: 1.5s;
  font-size: 1.2em;
}
.snowflake:nth-child(8) {
  left: 80%;
  animation-duration: 14s;
  animation-delay: 3.5s;
  font-size: 1.4em;
}
.snowflake:nth-child(9) {
  left: 90%;
  animation-duration: 11s;
  animation-delay: 2.5s;
  font-size: 1em;
}
.snowflake:nth-child(10) {
  left: 15%;
  animation-duration: 13s;
  animation-delay: 4.5s;
  font-size: 1.5em;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #fcfc3c 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleAnimation 3s ease-in-out infinite;
  will-change: transform, opacity;
  z-index: 1;
}

@keyframes sparkleAnimation {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
}

.sparkle:nth-child(1) {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}
.sparkle:nth-child(3) {
  top: 40%;
  left: 10%;
  animation-delay: 2s;
}
.sparkle:nth-child(4) {
  top: 60%;
  right: 15%;
  animation-delay: 0.5s;
}
.sparkle:nth-child(5) {
  top: 80%;
  left: 25%;
  animation-delay: 1.5s;
}
.sparkle:nth-child(6) {
  top: 30%;
  right: 30%;
  animation-delay: 2.5s;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fortune-wheel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #44216a;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fortune-wheel-close:hover {
  background: linear-gradient(
    51.77deg,
    rgb(111 60 170) 0%,
    rgb(217 126 221) 100%
  );
  transform: rotate(90deg);
}

.fortune-wheel-close svg {
  width: 24px;
  height: 24px;
}

.fortune-wheel-header {
  text-align: center;
}

.fortune-wheel-logo {
  max-width: 300px;
  margin-bottom: 10px;
  filter: 
    drop-shadow(0 10px 30px rgba(168, 85, 247, 0.6))
    drop-shadow(0 20px 60px rgba(168, 85, 247, 0.4))
    drop-shadow(0 30px 80px rgba(168, 85, 247, 0.2));
}

.fortune-wheel-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35 0%, #fcfc3c 50%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fortune-wheel-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.fortune-wheel-attempts {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.attempt-indicator {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #182034;
  border: 2px solid rgba(115, 44, 178, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.attempt-indicator.active {
  background: linear-gradient(135deg, #732cb2 0%, #9d4edd 100%);
  border-color: #732cb2;
  box-shadow: 0 0 20px rgba(115, 44, 178, 0.6);
  animation: pulse 1.5s infinite;
}

.attempt-indicator.used {
  background: #0d111c;
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.5;
}

.attempt-indicator.win {
  background: linear-gradient(
    51.77deg,
    rgb(95, 31, 170) 0%,
    rgb(210, 105, 215) 100%
  );
  border-color: #d26ad7;
  box-shadow: 0 0 30px rgba(210, 105, 215, 0.8);
  animation: winPulse 0.6s ease;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes winPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.fortune-wheel-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  aspect-ratio: 1;
  filter: 
    drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6))
    drop-shadow(0 10px 40px rgba(115, 44, 178, 0.5))
    drop-shadow(0 0 30px rgba(168, 85, 247, 0.3));
}

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

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #d26ad7;
  filter: 
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6))
    drop-shadow(0 4px 12px rgba(210, 105, 215, 0.7))
    drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
  z-index: 10;
  animation: pointerBounce 2s infinite;
}

@keyframes pointerBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.wheel-center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(
    51.77deg,
    rgb(95, 31, 170) 0%,
    rgb(210, 105, 215) 100%
  );
  border: 4px solid #0d111c;
  cursor: pointer;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  text-transform: uppercase;
  transition: all 0.3s ease;
  user-select: none;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    0 8px 30px rgba(95, 31, 170, 0.4),
    inset 0 2px 8px rgba(255, 255, 255, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.wheel-center-button:hover:not(.spinning) {
  transform: translate(-50%, -50%) scale(1.05);
  background: linear-gradient(
    51.77deg,
    rgb(111 60 170) 0%,
    rgb(217 126 221) 100%
  );
}

.wheel-center-button:active:not(.spinning) {
  transform: translate(-50%, -50%) scale(0.98);
}

.wheel-center-button.spinning,
.wheel-center-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.wheel-center-text {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 4px;
}

.wheel-center-subtext {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 600;
}

.wheel-svg {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.wheel-svg.spinning {
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-segment {
  transition: all 0.3s ease;
}

.wheel-segment:hover {
  opacity: 0.9;
}

.wheel-segment.win {
  animation: segmentWin 1s infinite;
}

@keyframes segmentWin {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(210, 105, 215, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(210, 105, 215, 1));
  }
}

.fortune-wheel-result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(13 17 28 / 71%);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 24px;
  padding: 20px;
}

.fortune-wheel-result.show {
  display: flex;
  animation: resultFadeIn 0.4s ease;
}

@keyframes resultFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-message {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 25px;
  animation: fadeIn 0.5s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.result-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-message.fail {
  color: #ff6b6b;
}

.result-message.win {
  background: linear-gradient(135deg, #d269d7 0%, #9d4edd 50%, #d269d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  font-size: 38px;
  animation: winText 0.8s ease, gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes winText {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.result-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  animation: fadeIn 0.5s ease 0.2s backwards;
  margin-bottom: 10px;
}

.result-gift-text {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}

.prize-item {
  background: linear-gradient(
    135deg,
    rgba(115, 44, 178, 0.3) 0%,
    rgba(157, 78, 221, 0.2) 100%
  );
  border: 2px solid rgba(157, 78, 221, 0.5);
  border-radius: 16px;
  padding: 20px 25px;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
  animation: prizeAppear 0.6s ease backwards;
}

.prize-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(157, 78, 221, 0.15) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes prizeAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.prize-item:first-child {
  animation-delay: 0.4s;
}

.prize-item:last-child {
  animation-delay: 0.6s;
}

.prize-value {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #d269d7 0%, #9d4edd 50%, #d269d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  letter-spacing: 1px;
  line-height: 1.3;
  display: block;
  margin-bottom: 5px;
  animation: gradientShift 3s ease infinite;
}

.prize-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fortune-wheel-result-content {
  max-width: 90%;
  text-align: center;
}

.promo-code-container {
  margin: 25px 0;
  animation: prizeAppear 0.6s ease 0.8s backwards;
}

.promo-code-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.promo-code-box {
  background: linear-gradient(
    135deg,
    rgba(115, 44, 178, 0.3) 0%,
    rgba(157, 78, 221, 0.2) 100%
  );
  border: 2px solid rgba(157, 78, 221, 0.5);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.promo-code-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(157, 78, 221, 0.15) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

.promo-code-value {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #d269d7 0%, #9d4edd 50%, #d269d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  letter-spacing: 3px;
  font-family: "Courier New", monospace;
  text-align: center;
  display: block;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  animation: gradientShift 3s ease infinite;
}

.promo-code-copy-btn {
  background: linear-gradient(
    51.77deg,
    rgb(95, 31, 170) 0%,
    rgb(210, 105, 215) 100%
  );
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.promo-code-copy-btn:hover {
  background: linear-gradient(
    51.77deg,
    rgb(111 60 170) 0%,
    rgb(217 126 221) 100%
  );
  transform: translateY(-2px);
}

.promo-code-copy-btn:active {
  transform: translateY(0);
}

.promo-code-copy-btn.copied {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.fortune-wheel-action {
  margin-top: 20px;
}

.fortune-wheel-register-btn {
  background: linear-gradient(135deg, #732cb2 0%, #9d4edd 100%);
  color: #ffffff;
  border: none;
  padding: 20px 60px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(115, 44, 178, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease 0.4s backwards;
  width: 100%;
  max-width: 400px;
}

.fortune-wheel-register-btn:hover {
  background: linear-gradient(135deg, #9d4edd 0%, #732cb2 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(115, 44, 178, 0.6);
}

.fortune-wheel-register-btn:active {
  transform: translateY(0);
}

/* Confetti Animation */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #732cb2;
  opacity: 0;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-100px) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

@media (min-width: 1024px) {
  .fortune-wheel-modal {
    max-width: 700px;
    padding: 25px 30px;
    border-radius: 28px;
  }

  .fortune-wheel-header {
    display: none;
  }

  .fortune-wheel-logo {
    max-width: 350px;
    margin-bottom: 5px;
  }

  .fortune-wheel-container {
    max-width: 550px;
    margin-bottom: 20px;
  }

  .wheel-center-button {
    width: 130px;
    height: 130px;
  }

  .wheel-center-text {
    font-size: 20px;
  }

  .wheel-center-subtext {
    font-size: 15px;
  }

  .wheel-pointer {
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 32px solid #d26ad7;
  }

  .attempt-indicator {
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 12px;
    margin: 0 8px;
  }

  .fortune-wheel-register-btn {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 12px;
    max-width: 360px;
  }

  .promo-code-container {
    padding: 18px;
    margin-bottom: 15px;
  }

  .promo-code-text {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .promo-code-value {
    font-size: 22px;
    padding: 11px 18px;
  }

  .promo-code-copy-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .result-logo {
    max-width: 320px;
    margin-bottom: 10px;
  }

  .result-gift-text {
    font-size: 16px;
    margin-bottom: 16px;
  }
}

@media (min-width: 1440px) {
  .fortune-wheel-modal {
    max-width: 800px;
    padding: 30px 35px;
    border-radius: 32px;
  }

  .fortune-wheel-header {
    display: none;
  }

  .fortune-wheel-logo {
    max-width: 400px;
    margin-bottom: 8px;
  }

  .fortune-wheel-container {
    max-width: 620px;
    margin-bottom: 25px;
  }

  .wheel-center-button {
    width: 145px;
    height: 145px;
  }

  .wheel-center-text {
    font-size: 22px;
  }

  .wheel-center-subtext {
    font-size: 17px;
  }

  .wheel-pointer {
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 34px solid #d26ad7;
  }

  .attempt-indicator {
    width: 52px;
    height: 52px;
    font-size: 26px;
    border-radius: 12px;
    margin: 0 10px;
  }

  .fortune-wheel-register-btn {
    padding: 18px 45px;
    font-size: 20px;
    border-radius: 14px;
    max-width: 400px;
  }

  .promo-code-container {
    padding: 20px;
    margin-bottom: 18px;
  }

  .promo-code-text {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .promo-code-value {
    font-size: 24px;
    padding: 12px 20px;
  }

  .promo-code-copy-btn {
    padding: 11px 18px;
    font-size: 14px;
  }

  .result-logo {
    max-width: 360px;
    margin-bottom: 12px;
  }

  .result-gift-text {
    font-size: 18px;
    margin-bottom: 18px;
  }
}

@media (max-width: 1023px) and (min-width: 769px) {
  .fortune-wheel-modal {
    width: 85%;
    padding: 30px 25px;
  }

  .fortune-wheel-container {
    max-width: 550px;
    margin-bottom: 20px;
  }

  .wheel-center-button {
    width: 110px;
    height: 110px;
  }

  .attempt-indicator {
    width: 48px;
    height: 48px;
    font-size: 22px;
    border-radius: 11px;
    margin: 0 7px;
  }
}

@media (max-width: 768px) {
  .fortune-wheel-modal {
    width: 95%;
    padding: 25px 18px;
    border-radius: 20px;
  }

  .fortune-wheel-logo {
    max-width: 220px;
  }

  .promo-code-value {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .promo-code-copy-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .fortune-wheel-title {
    font-size: 22px;
  }

  .fortune-wheel-subtitle {
    font-size: 14px;
  }

  .fortune-wheel-attempts {
    gap: 10px;
    margin-bottom: 20px;
  }

  .fortune-wheel-container {
    max-width: 420px;
    margin-bottom: 15px;
  }

  .wheel-center-button {
    width: 100px;
    height: 100px;
  }

  .wheel-center-text {
    font-size: 15px;
  }

  .wheel-center-subtext {
    font-size: 11px;
  }

  .wheel-pointer {
    top: -12px;
    border-left-width: 16px;
    border-right-width: 16px;
    border-top-width: 25px;
  }

  .attempt-indicator {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .result-message {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .result-message.win {
    font-size: 28px;
  }

  .result-description {
    font-size: 15px;
  }

  .prize-item {
    padding: 15px 20px;
    margin: 12px 0;
  }

  .prize-value {
    font-size: 28px;
  }

  .prize-label {
    font-size: 14px;
  }

  .fortune-wheel-register-btn {
    padding: 18px 50px;
    font-size: 20px;
    max-width: 100%;
  }

  .fortune-wheel-close {
    top: 12px;
    right: 12px;
    padding: 8px;
  }

  .fortune-wheel-close svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .fortune-wheel-modal {
    width: 98%;
    padding: 20px 12px;
    border-radius: 16px;
  }

  .fortune-wheel-logo {
    max-width: 180px;
    margin-bottom: 8px;
  }

  .fortune-wheel-title {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .fortune-wheel-subtitle {
    font-size: 13px;
  }

  .fortune-wheel-attempts {
    gap: 8px;
    margin-bottom: 12px;
  }

  .fortune-wheel-container {
    max-width: 360px;
    margin-bottom: 12px;
  }

  .wheel-center-button {
    width: 90px;
    height: 90px;
  }

  .wheel-center-text {
    font-size: 0.7rem;
  }

  .wheel-center-subtext {
    font-size: 10px;
  }

  .wheel-pointer {
    top: -10px;
    border-left-width: 14px;
    border-right-width: 14px;
    border-top-width: 22px;
  }

  .attempt-indicator {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }

  .result-message {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .result-message.win {
    font-size: 24px;
  }

  .result-description {
    font-size: 14px;
  }

  .prize-item {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 12px;
  }

  .prize-value {
    font-size: 24px;
  }

  .prize-label {
    font-size: 12px;
  }

  .fortune-wheel-action {
    margin-top: 15px;
  }

  .fortune-wheel-register-btn {
    padding: 14px 35px;
    font-size: 17px;
    border-radius: 11px;
    max-width: 100%;
  }

  .result-logo {
    max-width: 200px;
  }

  .result-gift-text {
    font-size: 15px;
  }

  .fortune-wheel-close {
    top: 10px;
    right: 10px;
    padding: 6px;
    border-radius: 8px;
  }

  .fortune-wheel-close svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  .fortune-wheel-modal {
    padding: 15px 10px;
  }

  .fortune-wheel-logo {
    max-width: 150px;
    margin-bottom: 6px;
  }

  .fortune-wheel-title {
    font-size: 18px;
  }

  .fortune-wheel-subtitle {
    font-size: 12px;
  }

  .fortune-wheel-container {
    max-width: 300px;
    margin-bottom: 10px;
  }

  .wheel-center-button {
    width: 75px;
    height: 75px;
    border-width: 3px;
  }

  .wheel-center-text {
    font-size: 13px;
  }

  .wheel-center-subtext {
    font-size: 9px;
  }

  .attempt-indicator {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .fortune-wheel-register-btn {
    padding: 14px 35px;
    font-size: 16px;
    max-width: 100%;
  }

  .result-message {
    font-size: 18px;
  }

  .result-message.win {
    font-size: 22px;
  }

  .prize-value {
    font-size: 20px;
  }

  .prize-label {
    font-size: 11px;
  }

  .promo-code-value {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .promo-code-copy-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .result-logo {
    max-width: 180px;
  }

  .result-gift-text {
    font-size: 14px;
  }
}

@media (max-height: 700px) {
  .fortune-wheel-modal {
    padding: 15px 20px;
  }

  .fortune-wheel-logo {
    max-width: 240px;
    margin-bottom: 6px;
  }

  .fortune-wheel-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .fortune-wheel-subtitle {
    font-size: 13px;
  }

  .fortune-wheel-attempts {
    margin-bottom: 10px;
  }

  .fortune-wheel-container {
    max-width: 320px;
    margin-bottom: 10px;
  }

  .wheel-center-button {
    width: 75px;
    height: 75px;
  }
}

@media (max-height: 600px) {
  .fortune-wheel-modal {
    padding: 12px 18px;
  }

  .fortune-wheel-logo {
    max-width: 200px;
    margin-bottom: 5px;
  }

  .fortune-wheel-title {
    font-size: 20px;
  }

  .fortune-wheel-attempts {
    margin-bottom: 8px;
  }

  .fortune-wheel-container {
    max-width: 270px;
    margin-bottom: 8px;
  }

  .wheel-center-button {
    width: 65px;
    height: 65px;
  }

  .wheel-center-text {
    font-size: 12px;
  }

  .wheel-center-subtext {
    font-size: 9px;
  }

  .attempt-indicator {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .fortune-wheel-modal {
    padding: 15px 20px;
  }

  .fortune-wheel-title {
    font-size: 18px;
  }

  .fortune-wheel-subtitle {
    font-size: 12px;
  }

  .fortune-wheel-attempts {
    margin-bottom: 8px;
    gap: 6px;
  }

  .attempt-indicator {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .fortune-wheel-container {
    max-width: 260px;
    margin-bottom: 8px;
  }

  .wheel-center-button {
    width: 60px;
    height: 60px;
  }

  .wheel-center-text {
    font-size: 11px;
  }

  .wheel-center-subtext {
    font-size: 8px;
  }

  .result-message {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .result-message.win {
    font-size: 18px;
  }

  .result-description {
    font-size: 12px;
  }

  .prize-item {
    padding: 8px 12px;
    margin: 6px 0;
  }

  .prize-value {
    font-size: 18px;
  }

  .prize-label {
    font-size: 10px;
  }

  .fortune-wheel-action {
    margin-top: 8px;
  }

  .fortune-wheel-register-btn {
    padding: 12px 30px;
    font-size: 15px;
    max-width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .wheel-center-button:hover:not(.spinning) {
    transform: translate(-50%, -50%);
    background: linear-gradient(
      51.77deg,
      rgb(95, 31, 170) 0%,
      rgb(210, 105, 215) 100%
    );
  }

  .wheel-center-button:active:not(.spinning) {
    transform: translate(-50%, -50%) scale(0.95);
  }

  .fortune-wheel-close:hover {
    background: #44216a;
    transform: none;
  }

  .fortune-wheel-close:active {
    background: linear-gradient(
      51.77deg,
      rgb(111 60 170) 0%,
      rgb(217 126 221) 100%
    );
  }

  .fortune-wheel-register-btn:hover {
    background: linear-gradient(135deg, #732cb2 0%, #9d4edd 100%);
    transform: none;
    box-shadow: 0 4px 15px rgba(115, 44, 178, 0.4);
  }

  .fortune-wheel-register-btn:active {
    transform: scale(0.98);
  }
}

@media (max-height: 768px) and (orientation: landscape) {
  .fortune-wheel-modal {
    padding: 15px 25px;
    width: 95%;
    max-width: 850px;
  }

  .fortune-wheel-logo {
    max-width: 220px;
    margin-bottom: 5px;
  }

  .fortune-wheel-container {
    max-width: 350px;
    margin-bottom: 10px;
  }

  .wheel-center-button {
    width: 90px;
    height: 90px;
  }

  .wheel-center-text {
    font-size: 15px;
  }

  .wheel-center-subtext {
    font-size: 11px;
  }

  .wheel-pointer {
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 24px solid #d26ad7;
  }

  .attempt-indicator {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 10px;
    margin: 0 6px;
  }

  .fortune-wheel-register-btn {
    padding: 10px 28px;
    font-size: 15px;
    border-radius: 10px;
    max-width: 300px;
  }

  .promo-code-container {
    padding: 12px;
    margin-bottom: 8px;
  }

  .promo-code-text {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .promo-code-value {
    font-size: 18px;
    padding: 9px 14px;
  }

  .promo-code-copy-btn {
    padding: 7px 12px;
    font-size: 11px;
  }

  .result-logo {
    max-width: 200px;
    margin-bottom: 6px;
  }

  .result-gift-text {
    font-size: 13px;
    margin-bottom: 10px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .fortune-wheel-modal {
    padding: 10px 20px;
  }

  .fortune-wheel-logo {
    max-width: 180px;
    margin-bottom: 4px;
  }

  .fortune-wheel-container {
    max-width: 280px;
    margin-bottom: 8px;
  }

  .wheel-center-button {
    width: 70px;
    height: 70px;
  }

  .wheel-center-text {
    font-size: 12px;
  }

  .wheel-center-subtext {
    font-size: 9px;
  }

  .wheel-pointer {
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 20px solid #d26ad7;
  }

  .attempt-indicator {
    width: 35px;
    height: 35px;
    font-size: 16px;
    border-radius: 9px;
    margin: 0 5px;
  }

  .fortune-wheel-register-btn {
    padding: 8px 22px;
    font-size: 13px;
    border-radius: 8px;
  }

  .promo-code-container {
    padding: 10px;
    margin-bottom: 6px;
  }

  .promo-code-text {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .promo-code-value {
    font-size: 16px;
    padding: 7px 12px;
  }

  .promo-code-copy-btn {
    padding: 6px 10px;
    font-size: 10px;
  }

  .result-logo {
    max-width: 160px;
    margin-bottom: 4px;
  }

  .result-gift-text {
    font-size: 11px;
    margin-bottom: 8px;
  }
}
