/* Muse Authentic Festive Lucky Wheel (Christmas Noel & Lunar New Year Tết 2027) */
:root {
  --lw-crimson: #7A161B;
  --lw-ruby: #961D24;
  --lw-pine: #18392B;
  --lw-obsidian: #161210;
  --lw-gold: #D9B679;
  --lw-gold-bright: #F3DFB6;
  --lw-gold-deep: #967035;
  --lw-ivory: #FFFDF9;
}

/* Top-strip & Homepage Festive Trigger */
.lw-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8E1B22 0%, #5E0F14 100%);
  border: 1px solid rgba(243, 223, 182, 0.55);
  color: #FFFDF9 !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.lw-nav-pill:hover {
  border-color: #FFFDF9;
  filter: brightness(1.08);
}

/* Homepage Festive Spotlight Section */
.lw-home-banner {
  position: relative;
  margin: 28px 0 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #1A1210;
  border: 1px solid rgba(217, 182, 121, 0.45);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 250px;
}
.lw-home-banner__copy {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  background: linear-gradient(90deg, #18110F 0%, #261616 82%, rgba(38, 22, 22, 0.85) 100%);
  color: #FFFDF9;
}
.lw-home-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(217, 182, 121, 0.16);
  border: 1px solid rgba(217, 182, 121, 0.5);
  color: var(--lw-gold-bright);
  font-size: 0.74rem;
  font-weight: 600;
}
.lw-home-banner__title {
  margin: 0;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 600;
  line-height: 1.22;
  color: #FFFDF9;
}
.lw-home-banner__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #E7DDD0;
  max-width: 54ch;
}
.lw-home-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.lw-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid #F5E2BC;
  border-radius: 2px;
  background: linear-gradient(135deg, #F0D7A7 0%, #C89E59 100%);
  color: #18120E !important;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.lw-btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.lw-btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.lw-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(243, 223, 182, 0.45);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFDF9 !important;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none !important;
  cursor: pointer;
}
.lw-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}
.lw-home-banner__media {
  position: relative;
  min-height: 220px;
}
.lw-home-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Homepage Popup Modal */
.lw-popup[hidden] {
  display: none !important;
}
.lw-popup {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lw-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 9, 0.74);
  backdrop-filter: blur(4px);
}
.lw-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 12px;
  border: 1.5px solid rgba(217, 182, 121, 0.65);
  background: #1B1311;
  color: #FFFDF9;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
  animation: lwModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lwModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lw-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243, 223, 182, 0.45);
  background: rgba(22, 18, 16, 0.78);
  color: #FFFDF9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lw-popup__close:hover {
  background: var(--lw-crimson);
}

/* Core Wheel Stage Layout (Shared by Popup & Standalone Page) */
.lw-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background:
    radial-gradient(circle at 22% 20%, rgba(150, 29, 36, 0.42) 0%, transparent 55%),
    radial-gradient(circle at 82% 80%, rgba(24, 57, 43, 0.38) 0%, transparent 55%),
    linear-gradient(145deg, #1B1210 0%, #261716 55%, #181311 100%);
  color: #FFFDF9;
  border-radius: 11px;
  overflow: hidden;
}

.lw-stage__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(217, 182, 121, 0.22);
}

.lw-hero-art {
  position: relative;
  height: 186px;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 182, 121, 0.28);
}
.lw-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lw-hero-art__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 18, 16, 0.12) 0%, rgba(27, 18, 16, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 22px;
}
.lw-festive-tag {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(122, 22, 27, 0.9);
  border: 1px solid rgba(243, 223, 182, 0.6);
  color: var(--lw-gold-bright);
  font-size: 0.71rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.lw-hero-art__overlay h2 {
  margin: 0;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.2;
  color: #FFFDF9;
}

.lw-info-pane {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.lw-quota-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.07);
  border: 1px solid rgba(217, 182, 121, 0.32);
  font-size: 0.82rem;
}
.lw-quota-bar strong {
  color: var(--lw-gold-bright);
}

.lw-rules-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.81rem;
  line-height: 1.58;
  color: #E5DBD0;
  display: grid;
  gap: 4px;
}

/* Result / Prize Card (backed by generated Noel-Tet card artwork) */
.lw-prize-card {
  position: relative;
  padding: 15px 16px;
  border-radius: 9px;
  border: 1px solid var(--lw-gold);
  background-color: #3A1216;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.lw-prize-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 13, 13, 0.74);
}
.lw-prize-card__inner {
  position: relative;
  z-index: 1;
}
.lw-prize-card__title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--lw-gold-bright);
  margin: 0 0 4px;
}
.lw-prize-card__desc {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #F5EFE6;
}
.lw-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #FFFDF9;
  color: #161210;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.lw-copy-btn {
  padding: 3px 8px;
  border: 1px solid #967035;
  border-radius: 4px;
  background: #FAF2E1;
  color: #5C4018;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.lw-mini-wallet {
  border-top: 1px solid rgba(217, 182, 121, 0.2);
  padding-top: 10px;
}
.lw-mini-wallet__head {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lw-gold-bright);
  margin-bottom: 6px;
}
.lw-mini-wallet__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lw-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(243, 223, 182, 0.14);
  border: 1px solid rgba(243, 223, 182, 0.4);
  color: #FFFDF9;
  font-size: 0.73rem;
  text-decoration: none !important;
}

/* Right Column: Interactive Wheel Dial */
.lw-stage__right {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lw-wheel-frame {
  position: relative;
  width: 332px;
  height: 332px;
  max-width: calc(100vw - 64px);
  max-height: calc(100vw - 64px);
  border-radius: 50%;
  padding: 11px;
  background: conic-gradient(from 0deg, #F3DFB6, #A87E3B, #F3DFB6, #8F6829, #F3DFB6);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 5px rgba(122, 22, 27, 0.75),
    0 0 0 7px rgba(217, 182, 121, 0.45);
}

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

.lw-wheel-rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
  transition: transform 4.2s cubic-bezier(0.12, 0.86, 0.16, 1);
}

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

.lw-wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3D6 0%, #C89B54 68%, #7E5B23 100%);
  border: 3px solid #1B1210;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1B1210;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-weight: 700;
  line-height: 1.05;
  pointer-events: none;
}
.lw-wheel-hub strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.lw-wheel-hub span {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.6rem;
  font-weight: 700;
}

/* Account & Checkout Voucher Wallet Styles */
.voucher-wallet-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(122, 22, 27, 0.45);
  background: #FFF8F6;
  color: #7A161B;
  font-size: 0.74rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.voucher-wallet-chip:hover {
  background: #7A161B;
  color: #FFFFFF;
}

.voucher-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.voucher-ticket {
  display: flex;
  align-items: stretch;
  border: 1px solid #DEC8A4;
  background: #FFFDF9;
  border-radius: 6px;
  overflow: hidden;
}
.voucher-ticket.is-used {
  opacity: 0.56;
  filter: grayscale(0.6);
}
.voucher-ticket__pct {
  width: 74px;
  background: linear-gradient(145deg, #8E1B22 0%, #5B0F14 100%);
  color: #FFE8B3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.voucher-ticket__body {
  padding: 10px 12px;
  font-size: 0.82rem;
  min-width: 0;
}
.voucher-ticket__code {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  background: #F6EFE2;
  border: 1px dashed #B5925B;
  font-weight: 700;
  font-size: 0.76rem;
  color: #161210;
}
.voucher-ticket__meta {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--color-muted);
}

@media (max-width: 820px) {
  .lw-home-banner {
    grid-template-columns: 1fr;
  }
  .lw-home-banner__media {
    order: -1;
    height: 180px;
  }
  .lw-home-banner__copy {
    padding: 22px 20px;
  }
  .lw-stage {
    grid-template-columns: 1fr;
  }
  .lw-stage__left {
    border-right: 0;
    border-bottom: 1px solid rgba(217, 182, 121, 0.22);
  }
  .lw-stage__right {
    order: -1;
    padding: 24px 16px 18px;
  }
  .lw-wheel-frame {
    width: 288px;
    height: 288px;
  }
  .voucher-wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lw-popup__dialog { animation: none !important; }
  .lw-wheel-rotor { transition-duration: 0.05s !important; }
}
