:root {
  /* ========================================================
     EMERALD & GOLD LUXURY CASINO PALETTE
     ======================================================== */
  --bg-deep: #03140e;
  --bg-emerald: #062217;
  --bg-emerald-surface: #0a3526;
  --bg-emerald-light: #0f4a35;
  --bg-gradient: radial-gradient(circle at 50% 15%, #0c3e2d 0%, #052016 55%, #02110b 100%);

  /* Gold metallic & accents */
  --gold-primary: #d4af37;
  --gold-light: #fbe285;
  --gold-lighter: #fff3b0;
  --gold-dark: #aa7c1e;
  --gold-metallic: linear-gradient(135deg, #fbe285 0%, #dfb743 45%, #b38728 85%, #fbe285 100%);
  --gold-glow: rgba(212, 175, 55, 0.45);
  --gold-border: rgba(212, 175, 55, 0.6);

  /* Emerald accents & states */
  --emerald-accent: #10b981;
  --emerald-bright: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.35);

  /* General tokens */
  --card: #082d20;
  --card-border: rgba(212, 175, 55, 0.35);
  --text-main: #f5fbf7;
  --text-gold: #fbe285;
  --text-muted: #9dc4b4;
  --live: #10b981;
  --glass: rgba(8, 42, 30, 0.75);
}

/* Base Body */
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
}

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Bootstrap Theme Overrides for Emerald & Gold */
.bg-primary {
  background: var(--gold-metallic) !important;
  color: #041c13 !important;
  border-color: var(--gold-light) !important;
}

.btn-primary {
  background: var(--gold-metallic) !important;
  color: #041c13 !important;
  border: 1px solid #fff2a6 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #fff2a6 0%, #e2be4b 50%, #b8861d 100%) !important;
  color: #041c13 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6) !important;
}

/* Card Overrides */
.card {
  background: linear-gradient(145deg, #072a1d 0%, #041b12 100%);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
}

/* Ticker / Top Marquee */
.ticker {
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(90deg, #03140e 0%, #093928 50%, #03140e 100%);
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.ticker span {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.ticker strong {
  color: #ffffff;
  text-shadow: 0 0 10px var(--gold-glow);
}

@keyframes slide {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Luxury Casino Banner */
.banner {
  background: linear-gradient(135deg, #0a3d2b 0%, #135d40 50%, #0a3d2b 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 4rem;
  padding: 1.25rem 2rem;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
}

.time-chip {
  background: #083324;
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  padding: .45rem .75rem;
  font-weight: 600;
  font-size: .95rem;
}

.time-ribbon .chip-wrap {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Balls / Chips */
.ball {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e8edea 70%, #9cb3a8 100%);
  color: #041c13;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), 0 4px 14px rgba(0, 0, 0, .45);
  border: 2px solid var(--gold-primary);
}

.ball.red {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffe8ea 70%, #e11d48 100%);
  color: #881337;
  border-color: #f43f5e;
}

.ball.black {
  background: radial-gradient(circle at 35% 35%, #3a4742 0%, #1a221f 70%, #070908 100%);
  color: #fbe285;
  border-color: var(--gold-primary);
}

.ball.sm {
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

.mini-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #f5fbf7;
  font-size: .7rem;
  padding: .25rem .45rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.divider {
  height: 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
  opacity: .8;
}

/* Side Widgets (Current Time / Today / Next Result Time) */
.side-widget {
  background: linear-gradient(145deg, #083324 0%, #0d4833 100%);
  border: 2px solid rgba(212, 175, 55, 0.55);
  color: #f5fbf7;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.side-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(212, 175, 55, 0.25);
  border-color: var(--gold-light);
}

.side-label {
  color: var(--gold-light);
  letter-spacing: .5px;
  font-size: 2.85rem;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Home action bar */
.home-jodi-btn,
.py-3.bg-warning.home-jodi-btn {
  background: linear-gradient(90deg, #052419 0%, #0c4732 50%, #052419 100%) !important;
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Board Wrap (Result / Time Table Container) */
.board-wrap {
  background: linear-gradient(145deg, #06281b 0%, #0a3d2b 50%, #052418 100%);
  padding: 24px;
  border-radius: 20px;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(16, 185, 129, 0.15), 0 0 25px rgba(212, 175, 55, 0.25);
}

.board-title {
  background: var(--gold-metallic);
  color: #041c13;
  border: 3px solid #ffffff;
  font-weight: 900;
  letter-spacing: .5px;
  border-radius: 14px;
  padding: 8px 18px;
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-size: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.table.board {
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  border-color: var(--gold-primary);
}

.board thead th {
  background: linear-gradient(180deg, #0d4632 0%, #072a1d 100%);
  color: var(--gold-light);
  border: 4px solid var(--gold-primary) !important;
  border-radius: 10px;
  text-align: center;
  font-weight: 900;
  line-height: 1.5;
  padding: 6px 8px;
  min-width: 87px;
  font-size: 70px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.first-col {
  background: linear-gradient(135deg, #0f4d38 0%, #072c1e 100%) !important;
  color: var(--gold-light) !important;
  font-weight: 800;
  text-align: center;
  border: 4px solid var(--gold-primary) !important;
  border-radius: unset !important;
  width: 110px;
  position: sticky;
  left: 0;
  z-index: 999;
  font-size: 66px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.board tbody td {
  background: rgba(6, 36, 25, 0.85);
  border: 3px solid rgba(212, 175, 55, 0.45) !important;
  text-align: center;
  padding: 10px 6px;
  font-size: 68px;
  font-weight: 700;
  color: #ffffff;
}

/* ========================================================
   5 TIME GROUPS ZIGZAG BACKGROUND COLORS FOR RESULT TD
   (Group 1: 09:00-11:00, Group 2: 11:30-13:30, 
    Group 3: 14:00-16:00, Group 4: 16:30-18:30, Group 5: 19:00-21:00)
   ======================================================== */
.board tbody td.res-td {
  font-size: 68px;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  transition: background 0.25s ease;
}

/* Group 1 (09:00 AM - 11:00 AM) — Gold / Amber */
.board tbody td.time-grp-1.zg-even {
  background: linear-gradient(145deg, #3d2503 0%, #5e3905 100%) !important;
}

.board tbody td.time-grp-1.zg-odd {
  background: linear-gradient(145deg, #4d2f04 0%, #704306 100%) !important;
}

.board thead th.time-grp-th-1 {
  border-top: 7px solid #f59e0b !important;
}

/* Group 2 (11:30 AM - 01:30 PM) — Deep Casino Emerald Green */
.board tbody td.time-grp-2.zg-even {
  background: linear-gradient(145deg, #052c1d 0%, #0a442d 100%) !important;
}

.board tbody td.time-grp-2.zg-odd {
  background: linear-gradient(145deg, #073825 0%, #0d5438 100%) !important;
}

.board thead th.time-grp-th-2 {
  border-top: 7px solid #10b981 !important;
}

/* Group 3 (02:00 PM - 04:00 PM) — Deep Cyan / Ocean Teal */
.board tbody td.time-grp-3.zg-even {
  background: linear-gradient(145deg, #062832 0%, #0a3d4c 100%) !important;
}

.board tbody td.time-grp-3.zg-odd {
  background: linear-gradient(145deg, #083442 0%, #0d4d61 100%) !important;
}

.board thead th.time-grp-th-3 {
  border-top: 7px solid #06b6d4 !important;
}

/* Group 4 (04:30 PM - 06:30 PM) — Royal Ruby / Crimson Wine */
.board tbody td.time-grp-4.zg-even {
  background: linear-gradient(145deg, #380712 0%, #540c1c 100%) !important;
}

.board tbody td.time-grp-4.zg-odd {
  background: linear-gradient(145deg, #460917 0%, #660e22 100%) !important;
}

.board thead th.time-grp-th-4 {
  border-top: 7px solid #f43f5e !important;
}

/* Group 5 (07:00 PM - 09:00 PM) — Imperial Royal Violet / Purple */
.board tbody td.time-grp-5.zg-even {
  background: linear-gradient(145deg, #27093e 0%, #3d105e 100%) !important;
}

.board tbody td.time-grp-5.zg-odd {
  background: linear-gradient(145deg, #320c4f 0%, #4b1473 100%) !important;
}

.board thead th.time-grp-th-5 {
  border-top: 7px solid #c084fc !important;
}

/* Jodi Row Distinctive Styling */
.board tbody td.res-td.row-jodi {
  font-weight: 800;
  letter-spacing: 1px;
}

/* Round Pills inside Board */
.pills {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-metallic);
  color: #041c13;
  border: 2px solid #ffffff;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  margin: 1px auto;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.title {
  text-transform: capitalize;
}

.fs-5 {
  font-size: 2.25rem !important;
}

/* Analog Clock */
.analog-clock {
  position: relative;
  width: 180px;
  aspect-ratio: 1;
  margin: auto;
  border: 6px solid var(--gold-primary);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .45), inset 0 2px 8px rgba(0, 0, 0, .15);
}

.analog-clock .hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 6px;
}

.analog-clock .hand.hour {
  width: 6px;
  height: 27%;
  background: #041c13;
}

.analog-clock .hand.minute {
  width: 4px;
  height: 36%;
  background: #041c13;
}

.analog-clock .hand.second {
  width: 2px;
  height: 40%;
  background: #d4af37;
}

.analog-clock .center-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #041c13;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(212, 175, 55, 0.6);
}

.analog-clock .number {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #041c13;
}

.analog-clock .number span {
  position: absolute;
  transform: translate(-50%, -50%);
}

.enquiry-info {
  font-family: sans-serif, system-ui;
  padding: 13px;
}

@media (max-width: 992px) {
  .analog-clock {
    width: 150px;
  }
}

/* Video Block */
.video-wrap {
  position: relative;
  width: 100%;
  height: 70%;
  overflow: hidden;
  background: #000;
  border: 3px solid var(--gold-primary);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

video,
.non-video {
  width: 100%;
  height: 630px;
  object-fit: cover;
}

#video {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Non-video state */
.non-video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  /* margin-bottom: 10px; */
  position: relative;
  min-height: 100px;
}

/* Emerald & Gold Theme Casino Animation */
.non-video.party-mode {
  /* background: linear-gradient(135deg, #03140e 0%, #072a1e 25%, #0f4f39 50%, #d4af37 75%, #072a1e 100%); */
  background: url(bhutan.jpeg?q=80&w=1600&auto=format&fit=crop) center center / cover fixed;
  /* background-size: 300% 300%; */
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  border: 3px solid var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.3);
  animation:
    emeraldShimmer 7s ease infinite,
    bounce-entrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes emeraldShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Confetti particles */
.non-video.party-mode::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow:
    -60px -70px 0 2px #d4af37,
    60px -50px 0 1px #34d399,
    40px -80px 0 3px #fbe285,
    -40px -90px 0 2px #10b981,
    0px -100px 0 1px #fff3b0,
    -80px -40px 0 2px #d4af37,
    80px -30px 0 1px #10b981;
  animation: confetti-explode-top 1.2s ease-out infinite;
  opacity: 0;
  z-index: -1;
}

.non-video.party-mode::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow:
    -50px 60px 0 2px #fbe285,
    50px 50px 0 1px #d4af37,
    30px 70px 0 3px #34d399,
    -30px 80px 0 2px #10b981,
    0px 90px 0 1px #fff3b0,
    -70px 40px 0 2px #fbe285,
    70px 30px 0 1px #d4af37;
  animation: confetti-explode-bottom 1.2s ease-out infinite;
  opacity: 0;
  z-index: -1;
}

@keyframes bounce-entrance {
  0% {
    transform: scale(0.3) translateY(100px);
    opacity: 0;
  }

  50% {
    transform: scale(1.05) translateY(-15px);
    opacity: 1;
  }

  75% {
    transform: scale(0.98) translateY(8px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes confetti-explode-top {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5) translateY(-30px);
    opacity: 0;
  }
}

@keyframes confetti-explode-bottom {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5) translateY(30px);
    opacity: 0;
  }
}

.non-video h2,
.lottery-animate-name {
  font-weight: bold;
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  font-size: clamp(2.2rem, 9.5vw, 100px);
  color: var(--bg-deep);
  display: inline-block;
  transform-origin: center center;
  will-change: transform;
  text-shadow: 0 2px 0 #e6e2dc,
    0 4px 0 #785512,
    0 6px 12px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(212, 175, 55, 0.5);
  animation: scaleSmallToBig 2s ease-in-out infinite alternate;
}

@keyframes scaleSmallToBig {
  0% {
    transform: scale(0.72);
    opacity: 0.85;
    text-shadow: 0 2px 0 #e6e2dc,
      0 4px 0 #785512,
      0 6px 12px rgba(0, 0, 0, 0.6),
      0 0 15px rgba(212, 175, 55, 0.4);
  }

  100% {
    transform: scale(1.18);
    opacity: 1;
    text-shadow: 0 3px 0 #fff8d6,
      0 6px 0 #a3751a,
      0 10px 22px rgba(0, 0, 0, 0.85),
      0 0 35px rgba(251, 226, 133, 0.95),
      0 0 55px rgba(212, 175, 55, 0.75);
  }
}

/* Calendar Date Input - Luxury Golden Theme */
.calender_date {
  font-size: 30px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--gold-metallic) !important;
  color: #041c13 !important;
  border: 2px solid #fff2a6 !important;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  accent-color: #d4af37;
  color-scheme: light;
  transition: all 0.25s ease;
}

.calender_date:focus,
.calender_date:hover {
  background: linear-gradient(135deg, #fff2a6 0%, #e2be4b 50%, #b8861d 100%) !important;
  color: #041c13 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.7) !important;
  outline: none;
}

/* Native Calendar Picker Icon */
.calender_date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: brightness(0.18);
  font-size: 1.4rem;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.calender_date::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.15);
  filter: brightness(0);
}

/* Attractive Live Update Button */
.btn-live-update {
  position: relative;
  top: -126px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(8, 42, 30, 0.95) 0%, rgba(4, 20, 14, 0.98) 100%);
  color: var(--gold-light) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 2.50rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 34px;
  border-radius: 50px;
  border: 2px solid var(--gold-primary);
  box-shadow:
    0 0 25px rgba(212, 175, 55, 0.5),
    0 8px 25px rgba(0, 0, 0, 0.5),
    inset 0 0 14px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  text-decoration: none;
  animation: liveBtnGlow 2.5s ease-in-out infinite alternate;
}

.btn-live-update:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--gold-light);
  box-shadow:
    0 0 35px rgba(212, 175, 55, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 18px rgba(212, 175, 55, 0.45);
  color: #ffffff !important;
}

.btn-live-update:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-live-update::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg,
      transparent,
      rgba(251, 226, 133, 0.45),
      transparent);
  transform: rotate(25deg);
  animation: liveBtnShimmer 3.5s infinite;
}

@keyframes liveBtnShimmer {
  0% {
    left: -75%;
  }

  30%,
  100% {
    left: 135%;
  }
}

@keyframes liveBtnGlow {
  0% {
    box-shadow:
      0 0 18px rgba(212, 175, 55, 0.4),
      0 6px 18px rgba(0, 0, 0, 0.4),
      inset 0 0 10px rgba(212, 175, 55, 0.2);
  }

  100% {
    box-shadow:
      0 0 34px rgba(212, 175, 55, 0.8),
      0 8px 26px rgba(0, 0, 0, 0.5),
      inset 0 0 18px rgba(212, 175, 55, 0.4);
  }
}

.live-pulse-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.live-pulse-dot .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--gold-primary);
  opacity: 0.85;
  animation: livePulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.live-pulse-dot .dot-core {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light);
}

@keyframes livePulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.95;
  }

  70% {
    transform: scale(2.5);
    opacity: 0;
  }

  100% {
    transform: scale(2.7);
    opacity: 0;
  }
}

.live-btn-text {
  position: relative;
  z-index: 1;
}

/* Pre-play overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(3, 20, 14, 0.75), rgba(6, 34, 23, 0.85));
  padding: 24px;
}

.play-overlay h1 {
  font-weight: 700;
  color: var(--gold-light);
}

.btn-play {
  font-size: 1.125rem;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--gold-metallic) !important;
  color: #041c13 !important;
  font-weight: 700;
  border: 1px solid #fff;
}

/* HUD overlay */
.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-inner {
  position: relative;
  height: 100%;
  padding: 16px;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.22);
  border: 1.5px solid var(--emerald-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--emerald-accent);
  position: relative;
}

.dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--emerald-accent);
  opacity: .6;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.6);
    opacity: .7;
  }

  80% {
    transform: scale(1.25);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  border-radius: 999px;
  padding: 1px 0px;
}

.watermark {
  position: absolute;
  right: 16px;
  bottom: 90px;
  font-weight: 700;
  letter-spacing: .5px;
  opacity: .9;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 42, 30, 0.7);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.lower-third {
  position: absolute;
  left: 16px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(680px, 92vw);
}

.title {
  font-size: 1.075rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
}

.subtitle {
  font-size: .95rem;
  color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 10px;
}

.shadow-smooth {
  box-shadow: 0 8px 40px rgba(0, 0, 0, .45);
}

/* ========================================================
   SECTION 1: LUCKY DRAW RESULTS
   ======================================================== */
.results-container {
  background: linear-gradient(145deg, #052419 0%, #0a3d2b 100%);
  padding: 24px;
  margin-bottom: 8px;
  border-radius: 18px;
  margin-top: 35px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 175, 55, 0.2);
}

.results-container .result-wrap {
  background-color: #03180f;
  border: 2px solid rgba(212, 175, 55, 0.55);
  padding: 18px;
  border-radius: 12px;
}

.badge-lucky {
  background: var(--gold-metallic);
  color: #041c13;
  border: 3px solid #ffffff;
  padding: 8px 24px;
  font-weight: 900;
  border-radius: 12px;
  font-size: 73px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.badge-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border: 3px solid var(--gold-light);
  padding: 17px 24px;
  font-weight: bold;
  font-size: 45px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.badge-whatsapp a {
  color: #ffffff !important;
  text-decoration: none;
}

.draw-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.draw-table td {
  border: 2px solid var(--gold-primary);
  text-align: center;
  padding: 12px 6px;
  min-width: 340px;
  background: rgba(8, 42, 30, 0.75);
}

.line-time,
.line-name {
  color: var(--gold-light);
  font-size: 42px;
  font-weight: 900;
  display: block;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.line-digit {
  color: #ffffff;
  font-size: 81px;
  font-weight: 900;
  display: block;
  text-shadow: 0 0 18px rgba(251, 226, 133, 0.6);
}

/* ========================================================
   SECTION 2: PRIZE MONEY TABLE
   ======================================================== */
.prize-container {
  background: linear-gradient(145deg, #052419 0%, #0a3d2b 100%);
  padding: 24px;
  border: 2px solid var(--gold-primary);
  border-radius: 18px;
  margin-top: 35px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(212, 175, 55, 0.2);
}

.prize-container h3 {
  font-size: 3rem;
  text-align: center;
  color: var(--gold-light) !important;
}

.header-box {
  background: var(--gold-metallic);
  color: #041c13;
  padding: 15px;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  border: 2px solid #ffffff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.ticket-box {
  background: linear-gradient(145deg, #072a1d 0%, #0e4833 100%);
  color: var(--gold-light);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

.money-box {
  background: linear-gradient(145deg, #0c3e2c 0%, #166447 100%);
  color: #ffffff;
  border: 1.5px solid var(--gold-primary);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(251, 226, 133, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Disclaimer section */
.disclaimer-card {
  background: linear-gradient(145deg, #052419 0%, #083324 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
}

.disclaimer-card h1 {
  color: var(--gold-light) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.highlight-box {
  background: linear-gradient(145deg, #03170e 0%, #062a1c 100%);
  border-left: 6px solid var(--gold-primary);
  padding: 35px;
  border-radius: 10px;
  color: #e2ece7;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ========================================================
   NAVIGATION & RESULTS CUSTOM STYLING
   ======================================================== */
.custom-emerald-navbar {
  background: linear-gradient(90deg, #03140e 0%, #093c2a 50%, #03140e 100%) !important;
  border-bottom: 2px solid var(--gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.custom-emerald-navbar .nav-link {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light) !important;
  transition: all 0.25s ease;
}

.custom-emerald-navbar .nav-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(251, 226, 133, 0.85);
}

@media (max-width: 992px) {
  .banner {
    border-radius: 2rem;
    padding: 1rem;
  }

  .ball {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}