/* ========================================
   Flyff Universe - Event FWC 2026
   Pure CSS Styles - FINAL VERSION v2.0
   Last Updated: 2026-05-28
   ======================================== */

/* Reset & Base - Ensures consistent rendering across browsers */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

/* Page Container */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a1f2e;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  background-color: #1e2433;
  border-bottom: 1px solid #2a3142;
  padding: 0.75rem 1rem;
}

@media (min-width: 1024px) {
  .navbar {
    padding: 0.75rem 2rem;
  }
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@media (min-width: 768px) {
  .nav-logo img {
    height: 3rem;
  }
}

/* Desktop Menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: #5eb8e8;
}

.nav-link.active {
  color: #5eb8e8;
  border-bottom: 2px solid #5eb8e8;
  padding-bottom: 0.25rem;
}

.chevron-icon {
  width: 1rem;
  height: 1rem;
}

/* Nav Right */
.nav-right {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-right {
    display: flex;
  }
}

.flag-icon {
  width: 1.75rem;
  height: 1.25rem;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flag-stripe {
  flex: 1;
}

.flag-stripe.red {
  background-color: #dc2626;
}

.flag-stripe.white {
  background-color: white;
}

/* Play Now Button */
.play-now-btn {
  position: relative;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  color: white;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  background: linear-gradient(90deg, #4fc3f7 0%, #7c4dff 50%, #e040fb 100%);
  clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
  box-shadow: 0 0 20px rgba(127, 77, 255, 0.4), 0 4px 15px rgba(0,0,0,0.2);
}

.play-now-btn:hover {
  transform: scale(1.05);
}

.play-now-btn:active {
  transform: scale(0.95);
}

.play-now-btn span {
  position: relative;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.play-now-btn .btn-hover-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(90deg, #64d8ff 0%, #9c6fff 50%, #f060ff 100%);
  clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
}

.play-now-btn:hover .btn-hover-overlay {
  opacity: 1;
}

.play-now-btn.mobile {
  width: fit-content;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.hidden {
  display: none !important;
}

/* Mobile Menu */
.mobile-menu {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #2a3142;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-link {
  color: white;
  text-decoration: none;
}

.mobile-link.active {
  color: #5eb8e8;
}

.mobile-auth {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  flex: 1;
  background: linear-gradient(180deg, #e8ecf4 0%, #d4dbe8 100%);
  padding: 1rem;
}

@media (min-width: 768px) {
  .main-content {
    padding: 1.5rem 1rem;
  }
}

.content-container {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Event Logo */
.event-logo {
  position: relative;
  margin-bottom: 0.25rem;
}

.event-logo .logo-glow {
  position: absolute;
  inset: 0;
  transform: scale(1.1);
  opacity: 0.25;
  background: radial-gradient(ellipse at center, #7c4dff 0%, transparent 60%);
  filter: blur(20px);
}

.event-logo img {
  position: relative;
  width: 4.5rem;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(124, 77, 255, 0.3));
}

@media (min-width: 768px) {
  .event-logo img {
    width: 5.5rem;
  }
}

/* Title Section */
.title-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .title-section {
    gap: 1.25rem;
  }
}

.wing-left, .wing-right {
  width: 1.75rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .wing-left, .wing-right {
    width: 2.25rem;
    height: 1.25rem;
  }
}

.wing-right {
  transform: scaleX(-1);
}

.main-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #f8d74a 0%, #d4a853 50%, #a07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .main-title {
    font-size: 1.875rem;
  }
}

/* Subtitle */
.subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #5a6070;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .subtitle {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
}

.arrow-left {
  color: #d4a853;
}

.arrow-right {
  color: #d4a853;
  display: inline-block;
  transform: scaleX(-1);
}

/* ========================================
   WHEEL
   ======================================== */
.wheel-wrapper {
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .wheel-wrapper {
    margin-bottom: 1.5rem;
  }
}

/* Pointer */
.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 30;
}

.wheel-pointer svg {
  width: 1.25rem;
  height: 2rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

@media (min-width: 768px) {
  .wheel-pointer svg {
    width: 1.5rem;
    height: 2.5rem;
  }
}

/* Wheel Container - Fixed dimensions */
.wheel-container {
  position: relative;
  width: 240px;
  height: 240px;
  min-width: 240px;
  min-height: 240px;
  max-width: 240px;
  max-height: 240px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .wheel-container {
    width: 300px;
    height: 300px;
    min-width: 300px;
    min-height: 300px;
    max-width: 300px;
    max-height: 300px;
  }
}

.wheel-outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8e87c 0%, #d4a853 30%, #a07830 50%, #d4a853 70%, #f8e87c 100%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.3);
}

.wheel-inner-shadow {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
  overflow: hidden;
}

@media (min-width: 768px) {
  .wheel-inner-shadow {
    inset: 10px;
  }
}

.wheel-spinning {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
}

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

.wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Prize text styles */
.prize-amount {
  font-size: 20px;
  font-weight: 700;
  fill: #3a3a3a;
}

.prize-label {
  font-size: 11px;
  font-weight: 600;
  fill: #5a5a5a;
  letter-spacing: 1px;
}

.prize-rune-title {
  font-size: 16px;
  font-weight: 700;
  fill: #3a3a3a;
}

.prize-rune-name {
  font-size: 14px;
  font-weight: 600;
  fill: #3a3a3a;
}

.prize-rune-name-small {
  font-size: 12px;
  font-weight: 600;
  fill: #3a3a3a;
}

.prize-rune-title-large {
  font-size: 18px;
  font-weight: 700;
  fill: #3a3a3a;
}

.prize-rune-name-large {
  font-size: 16px;
  font-weight: 600;
  fill: #3a3a3a;
}

/* Blue Gems - Fixed pixel positioning for cross-browser compatibility */
.gem {
  position: absolute;
  width: 8px;
  height: 8px;
  z-index: 20;
  background: radial-gradient(circle at 30% 30%, #c8e8f8, #5eb8e8, #3088b8);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.6);
}

/* Mobile gem positions (240px wheel, radius ~113px) */
.gem-0 { left: calc(50% - 4px); top: calc(50% - 113px - 4px); }
.gem-45 { left: calc(50% + 80px - 4px); top: calc(50% - 80px - 4px); }
.gem-90 { left: calc(50% + 113px - 4px); top: calc(50% - 4px); }
.gem-135 { left: calc(50% + 80px - 4px); top: calc(50% + 80px - 4px); }
.gem-180 { left: calc(50% - 4px); top: calc(50% + 113px - 4px); }
.gem-225 { left: calc(50% - 80px - 4px); top: calc(50% + 80px - 4px); }
.gem-270 { left: calc(50% - 113px - 4px); top: calc(50% - 4px); }
.gem-315 { left: calc(50% - 80px - 4px); top: calc(50% - 80px - 4px); }

@media (min-width: 768px) {
  .gem {
    width: 10px;
    height: 10px;
  }
  /* Desktop gem positions (300px wheel, radius ~140px) */
  .gem-0 { left: calc(50% - 5px); top: calc(50% - 140px - 5px); }
  .gem-45 { left: calc(50% + 99px - 5px); top: calc(50% - 99px - 5px); }
  .gem-90 { left: calc(50% + 140px - 5px); top: calc(50% - 5px); }
  .gem-135 { left: calc(50% + 99px - 5px); top: calc(50% + 99px - 5px); }
  .gem-180 { left: calc(50% - 5px); top: calc(50% + 140px - 5px); }
  .gem-225 { left: calc(50% - 99px - 5px); top: calc(50% + 99px - 5px); }
  .gem-270 { left: calc(50% - 140px - 5px); top: calc(50% - 5px); }
  .gem-315 { left: calc(50% - 99px - 5px); top: calc(50% - 99px - 5px); }
}

/* Spin Button */
.spin-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
  background: linear-gradient(180deg, #f8e87c 0%, #d4a853 50%, #a07830 100%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.4), inset 0 -2px 4px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .spin-button {
    width: 75px;
    height: 75px;
  }
}

.spin-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.spin-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-button:disabled {
  cursor: not-allowed;
}

.spin-button-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fcf0a0 0%, #f0d860 30%, #d4a853 70%, #a07830 100%);
  border: 3px solid #c9a84d;
}

.spin-button-inner span {
  font-size: 0.875rem;
  font-weight: 900;
  color: #7a5a20;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

@media (min-width: 768px) {
  .spin-button-inner span {
    font-size: 1.25rem;
  }
}

/* ========================================
   COST & CURRENCY
   ======================================== */
.cost-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #3a4a60 0%, #4a5a70 50%, #3a4a60 100%);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  border: none;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: filter 0.2s;
}

.cost-button:hover {
  filter: brightness(1.1);
}

.cost-button span {
  font-size: 0.875rem;
  font-weight: 500;
}

.cost-coin {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8d74a 0%, #d4a853 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cost-coin span {
  font-size: 0.625rem;
  font-weight: 700;
  color: #7a5a00;
}

.currency-label {
  color: #5a6070;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.currency-options {
  display: flex;
  gap: 0.75rem;
}

.currency-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .currency-btn {
    width: 4rem;
    height: 4rem;
  }
}

.currency-btn[data-currency="0"] {
  background: linear-gradient(135deg, #d0d8e0 0%, #a0a8b0 100%);
}

.currency-btn[data-currency="1"] {
  background: linear-gradient(135deg, #f8d74a 0%, #d4a853 100%);
}

.currency-btn[data-currency="2"] {
  background: linear-gradient(135deg, #70e8c8 0%, #48c8a8 100%);
}

.currency-btn.selected {
  box-shadow: 0 0 0 2px #5eb8e8, 0 0 0 4px white, 0 3px 10px rgba(0,0,0,0.2);
}

.currency-3k {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3a3a3a;
}

.currency-coin {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8e87c 0%, #c9a84d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #a08030;
}

.currency-coin span {
  font-size: 0.875rem;
  font-weight: 700;
  color: #7a5a00;
}

.currency-gem {
  width: 1.75rem;
  height: 1.75rem;
  color: #106848;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: #1e2433;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-container {
  max-width: 56rem;
  margin: 0 auto;
}

.footer-brand {
  color: #8a8a9a;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-logo {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #d4a853 0%, #a07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo span {
  color: #d4a853;
  -webkit-text-fill-color: #d4a853;
}

.footer-copyright {
  color: #6a6a7a;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-copyright a {
  color: #5eb8e8;
  text-decoration: none;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #5eb8e8;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .dot {
  color: #4a4a5a;
}

.footer-description {
  color: #5a5a6a;
  font-size: 0.625rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
}

.social-btn:hover {
  filter: brightness(1.1);
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.social-btn.discord {
  background-color: #5865F2;
}

.social-btn.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.facebook {
  background-color: #1877F2;
}

/* ========================================
   POPUP MODAL
   ======================================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 40, 80, 0.85) 0%, rgba(5, 10, 25, 0.95) 100%);
  backdrop-filter: blur(8px);
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 235, 59, 0.6);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* Modal */
.popup-modal {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  animation: popupEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupEnter {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
  }
  50% {
    transform: scale(1.02) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-outer-glow {
  position: absolute;
  inset: -2rem;
  border-radius: 60px;
  opacity: 0.4;
  background: radial-gradient(ellipse at center, #4a90c8 0%, #2060a0 30%, transparent 70%);
  filter: blur(30px);
  animation: pulse 3s ease-in-out infinite;
}

.popup-golden-glow {
  position: absolute;
  inset: -1rem;
  border-radius: 50px;
  opacity: 0.3;
  background: radial-gradient(ellipse at center, #f8d74a 0%, #d4a853 40%, transparent 70%);
  filter: blur(20px);
  animation: pulse 2.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.popup-frame {
  position: relative;
}

.popup-border {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8e87c 0%, #d4a853 20%, #8a6820 50%, #d4a853 80%, #f8e87c 100%);
  box-shadow: 0 0 30px rgba(248, 215, 74, 0.4), inset 0 1px 1px rgba(255,255,255,0.5);
}

.popup-panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2a4a 0%, #0d1a30 40%, #081428 100%);
  box-shadow: inset 0 2px 20px rgba(0,0,0,0.5), inset 0 -1px 10px rgba(94, 184, 232, 0.1);
}

/* Corner ornaments */
.corner-ornament {
  position: absolute;
  width: 4rem;
  height: 4rem;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='cg' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23f8e87c'/%3E%3Cstop offset='50%25' stop-color='%23d4a853'/%3E%3Cstop offset='100%25' stop-color='%23a07830'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 20 Q0 0 20 0 L25 0 Q10 0 10 15 L10 25 Q10 10 0 10 Z' fill='url(%23cg)'/%3E%3Ccircle cx='18' cy='18' r='5' fill='url(%23cg)'/%3E%3Ccircle cx='18' cy='18' r='3' fill='%235eb8e8'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
}

.corner-ornament.top-left {
  top: 0;
  left: 0;
}

.corner-ornament.top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.corner-ornament.bottom-left {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.corner-ornament.bottom-right {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}

/* Top ornament */
.top-ornament {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.top-ornament::before {
  content: '';
  display: block;
  width: 5rem;
  height: 2.5rem;
  border-radius: 0 0 2.5rem 2.5rem;
  background: linear-gradient(180deg, #f8e87c 0%, #d4a853 50%, #a07830 100%);
  box-shadow: 0 4px 15px rgba(248, 215, 74, 0.5);
}

.ornament-gem {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a8e0f8, #5eb8e8, #3088b8);
  box-shadow: 0 0 15px #5eb8e8, inset 0 1px 2px rgba(255,255,255,0.6);
}

/* Content */
.popup-content {
  position: relative;
  padding: 3rem 2rem 2rem;
}

/* Sparkles */
.sparkle {
  position: absolute;
  color: #f8d74a;
  animation: sparkle-pulse 1.5s ease-in-out infinite;
}

@keyframes sparkle-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.sparkle.s1 {
  top: 2rem;
  left: 2rem;
  font-size: 14px;
  text-shadow: 0 0 10px #f8d74a;
}

.sparkle.s2 {
  top: 3rem;
  right: 2.5rem;
  font-size: 10px;
  animation-delay: 0.3s;
  text-shadow: 0 0 8px #f8d74a;
}

.sparkle.s3 {
  top: 5rem;
  left: 3rem;
  font-size: 8px;
  animation-delay: 0.6s;
  text-shadow: 0 0 6px #f8d74a;
}

.sparkle.s4 {
  top: 4rem;
  right: 4rem;
  font-size: 12px;
  animation-delay: 0.9s;
  text-shadow: 0 0 8px #f8d74a;
}

/* Reward icon */
.reward-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.reward-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.reward-glow.gold {
  transform: scale(1.5);
  opacity: 0.6;
  background: radial-gradient(circle, #f8d74a 0%, transparent 60%);
  filter: blur(20px);
}

.reward-glow.blue {
  transform: scale(1.25);
  opacity: 0.4;
  background: radial-gradient(circle, #5eb8e8 0%, transparent 50%);
  filter: blur(12px);
  animation-direction: alternate;
}

.reward-ring {
  position: relative;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #f8e87c 0%, #d4a853 30%, #8a6820 60%, #d4a853 100%);
  box-shadow: 0 0 40px rgba(248, 215, 74, 0.7), 0 8px 25px rgba(0,0,0,0.4);
}

.reward-icon-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2a3a5a 0%, #1a2a4a 100%);
}

.reward-icon-inner img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(248, 215, 74, 0.8));
}

.sparkle-ring {
  position: absolute;
  inset: 0;
  width: 8rem;
  height: 8rem;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sparkle-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 6px #fff, 0 0 12px #f8d74a;
  opacity: 0.9;
}

/* Text styles */
.popup-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, #fff8e0 0%, #f8d74a 30%, #d4a853 70%, #a07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.popup-subtitle {
  text-align: center;
  color: #8aa8c8;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.prize-display {
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.prize-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-glow::after {
  content: '';
  width: 12rem;
  height: 3rem;
  opacity: 0.3;
  background: radial-gradient(ellipse at center, #f8d74a 0%, transparent 70%);
  filter: blur(10px);
}

.prize-text {
  position: relative;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fff 0%, #fcf0a0 20%, #f8d74a 50%, #d4a853 80%, #a07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(248, 215, 74, 0.5)) drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Divider */
.popup-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.divider-line {
  height: 2px;
  width: 5rem;
}

.divider-line.left {
  background: linear-gradient(90deg, transparent 0%, #5eb8e8 50%, #d4a853 100%);
}

.divider-line.right {
  background: linear-gradient(90deg, #d4a853 0%, #5eb8e8 50%, transparent 100%);
}

.divider-gem.blue {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c8e8f8, #5eb8e8, #2878a8);
  box-shadow: 0 0 10px #5eb8e8;
}

.divider-gem.gold {
  width: 1rem;
  height: 1rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f8e87c 0%, #d4a853 50%, #a07830 100%);
  box-shadow: 0 0 10px rgba(248, 215, 74, 0.5);
}

/* Claim button */
.claim-button {
  width: 100%;
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.claim-glow {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  background: linear-gradient(90deg, #f8d74a, #5eb8e8, #f8d74a);
  filter: blur(8px);
}

.claim-button:hover .claim-glow {
  opacity: 1;
}

.claim-outer {
  position: relative;
  border-radius: 12px;
  padding: 3px;
  background: linear-gradient(180deg, #f8e87c 0%, #d4a853 30%, #8a6820 70%, #d4a853 100%);
  box-shadow: 0 4px 20px rgba(248, 215, 74, 0.4), 0 8px 30px rgba(0,0,0,0.3);
}

.claim-inner {
  position: relative;
  border-radius: 8px;
  padding: 1rem 2rem;
  overflow: hidden;
  transition: filter 0.2s;
  background: linear-gradient(180deg, #f8e87c 0%, #f0d050 30%, #d4a853 70%, #b08830 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), inset 0 -2px 4px rgba(0,0,0,0.1);
}

.claim-button:hover .claim-inner {
  filter: brightness(1.1);
}

.claim-button:active .claim-inner {
  filter: brightness(0.9);
}

.claim-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
}

.claim-button:hover .claim-shine {
  transform: translateX(100%);
}

.claim-inner span {
  position: relative;
  display: block;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #5a4010;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.close-hint {
  text-align: center;
  color: #4a6080;
  font-size: 0.75rem;
  margin-top: 1.25rem;
  font-weight: 500;
}
