:root {
  --navy: #06274a;
  --blue: #063d79;
  --bright: #0878e8;
  --gold: #ffd34d;
  --gold2: #ff9d00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: #031f3c;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.dashboard {
  width: 100%;
  max-width: 1165px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 8px 18px 14px;
  background: var(--navy);
  background-image: radial-gradient(ellipse at 50% 35%, #073b6c 0%, #062b51 48%, #042344 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================================================
   Header & Brand Logo (Golden Win Play Official Logo)
   ========================================================= */
header {
  text-align: center;
  margin: 0 auto 4px;
  padding: 2px 0 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  line-height: 1;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
  user-select: none;
}

.brand-logo:hover {
  transform: scale(1.015);
  filter: drop-shadow(0 6px 20px rgba(245, 158, 11, 0.65));
}

.tagline {
  display: block !important;
  width: 100%;
  letter-spacing: clamp(0.18em, 0.45vw, 0.38em);
  font-weight: 900;
  font-size: clamp(0.72rem, 1.4vw, 1.05rem);
  text-align: center;
  margin: 6px auto 4px !important;
  padding: 0;
  color: #ffd747 !important;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.55);
  position: relative;
  z-index: 5;
}

/* =========================================================
   Info Bar (All 4 in One Sleek Horizontal Row)
   ========================================================= */
.info-bar {
  border: 2px solid #1495ff;
  border-radius: 15px;
  background: rgba(1, 29, 61, 0.65);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  padding: 8px 6px;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 2px 4px;
  border-right: 1px solid rgba(200, 216, 239, 0.45);
}

.info-item:last-child {
  border-right: 0;
}

/* Colorful & Animated Icon Circles */
.icon-circle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
  user-select: none;
}

.icon-circle:hover {
  transform: scale(1.1) translateY(-2px);
}

.icon-circle svg,
.icon-circle i {
  width: 20px;
  height: 20px;
  stroke-width: 2.3px;
  display: block;
}

/* 1. Next Draw Clock Icon: Electric Azure */
.icon-circle.icon-clock {
  background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
  border: 2px solid #38d9ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-circle.icon-clock svg,
.icon-circle.icon-clock i {
  animation: clockTickSway 2.5s infinite ease-in-out;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
}

@keyframes clockTickSway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-10deg);
  }

  60% {
    transform: rotate(6deg);
  }

  80% {
    transform: rotate(0deg);
  }
}

/* 2. Today Date Icon: Vivid Mint Emerald */
.icon-circle.icon-calendar {
  background: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  border: 2px solid #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-circle.icon-calendar svg,
.icon-circle.icon-calendar i {
  animation: calendarBounce 2.8s infinite ease-in-out;
  transform-origin: center bottom;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
}

@keyframes calendarBounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  15% {
    transform: translateY(-3px) scale(1.12);
  }

  30% {
    transform: translateY(1px) scale(0.96);
  }

  45% {
    transform: translateY(-2px) scale(1.05);
  }

  60% {
    transform: translateY(0) scale(1);
  }
}

/* 3. Now Time Icon: Hot Magenta & Violet */
.icon-circle.icon-timer {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-circle.icon-timer svg,
.icon-circle.icon-timer i {
  animation: timerPulse 1.6s infinite ease-in-out;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
}

@keyframes timerPulse {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.16);
  }

  40% {
    transform: scale(0.94);
  }

  55% {
    transform: scale(1.08);
  }

  70% {
    transform: scale(1);
  }
}

/* 4. Time To Draw Icon: Radiant Amber Flame */
.icon-circle.icon-hourglass {
  background: linear-gradient(135deg, #ff9900 0%, #ff3366 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.icon-circle.icon-hourglass svg,
.icon-circle.icon-hourglass i {
  animation: hourglassFlip 3.5s infinite ease-in-out;
  transform-origin: center;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
}

@keyframes hourglassFlip {

  0%,
  40% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  90%,
  100% {
    transform: rotate(180deg);
  }
}

.info-text {
  min-width: 0;
}

.info-label {
  font-size: clamp(0.48rem, 1.1vw, 0.85rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #d5e6fb;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.info-value {
  font-size: clamp(0.68rem, 1.5vw, 1.35rem);
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  color: #ffffff;
  line-height: 1.15;
}

#countdown {
  color: #ffd747;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

#now-time {
  font-variant-numeric: tabular-nums;
}

#next-draw-time {
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Live Badge & Back Button
   ========================================================= */
.live-wrap {
  text-align: center;
  margin-top: 5px;
}

.live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 4px;
  padding: 4px 22px;
  border-radius: 30px;
  background: linear-gradient(#ff4242, #d50000);
  border: 2px solid #ff7b7b;
  font-size: clamp(0.95rem, 2.2vw, 1.8rem);
  font-weight: 1000;
  line-height: 1.1;
  box-shadow: 0 0 14px #ff1717;
  letter-spacing: 0.03em;
  animation: liveGlow 1.8s infinite ease-in-out;
}

.live-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 8px #ffffff;
  animation: liveBlink 1s infinite ease-in-out;
  transform-origin: center;
}

.live-waves {
  color: #ff2222;
  font-weight: 900;
  font-size: 1.3em;
  vertical-align: middle;
  margin: 0 6px;
  line-height: 0.9;
  display: inline-block;
  animation: liveWavePulse 1.4s infinite ease-in-out;
}

@keyframes liveBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #ffffff, 0 0 14px rgba(255, 255, 255, 0.9);
  }

  50% {
    opacity: 0.2;
    transform: scale(0.72);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
  }
}

@keyframes liveGlow {

  0%,
  100% {
    box-shadow: 0 0 14px #ff1717, 0 0 24px rgba(255, 23, 23, 0.45);
  }

  50% {
    box-shadow: 0 0 8px #ff1717, 0 0 12px rgba(255, 23, 23, 0.2);
  }
}

@keyframes liveWavePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.92);
  }
}

.back-button {
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 6px 24px;
  border: 2px solid #dcecff;
  border-radius: 30px;
  color: white;
  font-weight: 800;
  font-size: clamp(0.78rem, 1.5vw, 1.1rem);
  background: #06294c;
  box-shadow: 0 0 0 1px #168be8, 0 0 12px rgba(22, 139, 232, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  user-select: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.back-button:hover {
  background: #0b4b86;
  box-shadow: 0 0 0 1px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.55);
}

.back-button:active {
  transform: scale(0.97);
}

.back-button svg,
.back-button i {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
  animation: refreshSpinIdle 5s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.back-button:hover svg,
.back-button:hover i {
  animation: refreshSpinFast 0.8s infinite linear;
}

@keyframes refreshSpinIdle {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(180deg);
  }

  30% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes refreshSpinFast {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Result Cards Grid (4 Columns Exactly Matching Design)
   ========================================================= */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 16px) clamp(5px, 1.2vw, 14px);
  margin: 2px 0 6px;
}

.result-card {
  min-width: 0;
  border: clamp(2px, 0.3vw, 3px) solid #ffc43d;
  border-radius: clamp(10px, 1.8vw, 20px);
  padding: clamp(2.5px, 0.5vw, 5px);
  background: linear-gradient(100deg, #fff5bc, #b87911 9%, #ffdc64 18%, #fff4bc 25%, #d28a12 50%, #fff0a3 74%, #c27a08 91%, #fff2ad);
  box-shadow: 0 2.5px 0 #704700, inset 0 0 0 1.5px #fff6c6;
  display: flex;
  flex-direction: column;
}

.result-head {
  min-height: clamp(36px, 6.8vw, 74px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: clamp(1.25rem, 3.8vw, 3.8rem);
  font-weight: 1000;
  line-height: 1;
  border: clamp(1.5px, 0.3vw, 3px) solid #e9f1ff;
  border-radius: clamp(8px, 1.3vw, 14px) clamp(8px, 1.3vw, 14px) clamp(5px, 0.9vw, 9px) clamp(5px, 0.9vw, 9px);
  background: linear-gradient(140deg, #061f40, #0b4d91 48%, #052448);
  text-shadow: 0 2px 2px #00142c;
  clip-path: polygon(10% 0, 90% 0, 100% 28%, 100% 76%, 91% 100%, 9% 100%, 0 76%, 0 28%);
}

:root {
  --slot-height: clamp(48px, 6.5vw, 80px);
  --slot-pad-y: clamp(3px, 0.5vw, 6px);
  --slot-reel-height: calc(var(--slot-height) - (var(--slot-pad-y) * 2));
  --slot-reel-width: calc(var(--slot-reel-height) * 0.67);
}

.result-window {
  box-sizing: border-box !important;
  height: var(--slot-height) !important;
  min-height: var(--slot-height) !important;
  max-height: var(--slot-height) !important;
  margin-top: clamp(2.5px, 0.4vw, 4px);
  border: clamp(2.5px, 0.4vw, 5px) ridge #c6d8e8;
  border-radius: clamp(3px, 0.5vw, 5px) clamp(3px, 0.5vw, 5px) clamp(7px, 1.1vw, 12px) clamp(7px, 1.1vw, 12px);
  background: linear-gradient(#e8f2fb 0%, #ffffff 25%, #ffffff 76%, #dbe8f2 100%);
  box-shadow: inset 0 0 clamp(6px, 1vw, 12px) #b9c7d2;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden !important;
  position: relative !important;
  padding-top: var(--slot-pad-y) !important;
  padding-bottom: var(--slot-pad-y) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  gap: 0 !important;
  user-select: none;
}

/* Card Slot Machine Mini Reels (Both Digit 1 & Digit 2 sit tightly side-by-side with no space) */
.card-mini-reel {
  width: var(--slot-reel-width) !important;
  max-width: 50% !important;
  height: var(--slot-reel-height) !important;
  overflow: hidden !important;
  display: inline-block !important;
  position: relative !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.card-mini-reel .slotMachineContainer {
  width: 100% !important;
  will-change: transform;
}

.card-mini-reel .slot {
  width: 100% !important;
  height: var(--slot-reel-height) !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Center cards 9 (68) and 10 (69) in row 3 */
.result-card:nth-child(9) {
  grid-column: 2;
}

.result-card:nth-child(10) {
  grid-column: 3;
}

/* 2-Minute Pre-Draw Pulsing Glow on Active Drawing Cards */
@keyframes cardDrawGlow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8), 0 2.5px 0 #704700, inset 0 0 0 1.5px #ffe57f;
    border-color: #ffd700;
  }

  50% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.9), 0 2.5px 0 #704700, inset 0 0 0 1.5px #ff9999;
    border-color: #ff4d4d;
  }
}

.result-card.is-drawing {
  animation: cardDrawGlow 1.2s infinite ease-in-out !important;
}

/* Result Reveal Pop Animation */
@keyframes resultPopAnim {
  0% {
    transform: scale(0.85);
    filter: brightness(1.3);
  }

  50% {
    transform: scale(1.08);
    filter: brightness(1.15);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.result-pop {
  animation: resultPopAnim 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   Winning Numbers Ticker (Strictly One Line No Break)
   ========================================================= */
.ticker {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  margin-top: 6px;
  padding: clamp(6px, 0.8vw, 10px) clamp(10px, 1.4vw, 20px);
  min-height: auto;
  border: 2px solid #1495ff;
  border-radius: clamp(12px, 1.8vw, 18px);
  background: rgba(1, 29, 61, 0.65);
  overflow: hidden;
}

/* Animated Golden Trophy */
.trophy {
  width: clamp(32px, 4.2vw, 48px);
  height: clamp(32px, 4.2vw, 48px);
  flex: 0 0 clamp(32px, 4.2vw, 48px);
  display: grid;
  place-items: center;
  border: 2px solid #ffd700;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 140, 0, 0.16) 100%);
  color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.65), inset 0 0 6px rgba(255, 215, 0, 0.3);
  animation: trophyGlow 2.4s infinite ease-in-out;
  transition: transform 0.25s ease;
  user-select: none;
}

.trophy:hover {
  transform: scale(1.12) rotate(6deg);
}

.trophy svg,
.trophy i {
  width: clamp(16px, 2.2vw, 26px);
  height: clamp(16px, 2.2vw, 26px);
  color: #ffe066;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.85));
  animation: trophyWiggle 2.8s infinite ease-in-out;
  transform-origin: center bottom;
}

@keyframes trophyGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.55), inset 0 0 6px rgba(255, 215, 0, 0.25);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.85), inset 0 0 10px rgba(255, 215, 0, 0.5);
  }
}

@keyframes trophyWiggle {

  0%,
  70%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  75% {
    transform: rotate(-12deg) scale(1.12);
  }

  82% {
    transform: rotate(10deg) scale(1.12);
  }

  90% {
    transform: rotate(-6deg) scale(1.05);
  }
}

.winning-numbers {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: clamp(0.55rem, 1.3vw, 1.35rem);
  font-weight: 1000;
  letter-spacing: clamp(0.01em, 0.03vw, 0.03em);
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1.2;
  color: #ffffff;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.winning-numbers::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   Next Draw Section Badge
   ========================================================= */
.next-draw {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1.5vw, 16px);
  width: max-content;
  max-width: 100%;
  margin: 6px auto 6px;
  padding: clamp(5px, 0.8vw, 8px) clamp(14px, 2.2vw, 24px);
  border: 2px solid #1495ff;
  border-radius: clamp(12px, 1.8vw, 18px);
  background: rgba(1, 29, 61, 0.65);
}

.next-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.next-draw .next-clock-badge {
  width: clamp(28px, 3.8vw, 44px);
  height: clamp(28px, 3.8vw, 44px);
  flex: 0 0 clamp(28px, 3.8vw, 44px);
  background: linear-gradient(135deg, #00d2ff 0%, #0066ff 100%);
  border: 2px solid #38d9ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.65);
}

.next-draw .next-clock-badge svg,
.next-draw .next-clock-badge i {
  width: clamp(15px, 2vw, 24px);
  height: clamp(15px, 2vw, 24px);
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
  animation: clockTickSway 2.5s infinite ease-in-out;
}

.next-divider {
  width: 1px;
  height: clamp(22px, 3vw, 36px);
  background: #9bb6d2;
}

.next-label {
  font-size: clamp(0.52rem, 1vw, 0.72rem);
  font-weight: 700;
  white-space: nowrap;
  color: #d5e6fb;
  letter-spacing: 0.03em;
  text-align: center;
  width: 100%;
}

.next-time {
  font-size: clamp(0.92rem, 1.8vw, 1.3rem);
  font-weight: 900;
  white-space: nowrap;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  text-align: center;
  color: #dbeaff;
  font-size: clamp(0.48rem, 1vw, 0.76rem);
  line-height: 1.35;
  margin-top: auto;
  padding: 4px 4px 2px;
}

footer p {
  margin: 2px 0;
}

/* =========================================================
   Mobile Viewport Fine-Tuning (Under 720px)
   ========================================================= */
@media (max-width: 720px) {
  .dashboard {
    padding: 6px 8px 10px;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .brand-logo {
    width: 100% !important;
    max-width: min(100%, 540px) !important;
    margin: 0 auto !important;
  }

  .tagline {
    font-size: clamp(0.65rem, 2.6vw, 0.82rem) !important;
    letter-spacing: 0.2em !important;
    margin: 4px auto 3px !important;
  }

  /* Responsive 2x2 Grid for Mobile Info Bar */
  .info-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px 8px !important;
    padding: 7px 8px !important;
    margin-top: 8px !important;
    border-radius: 14px !important;
    border: 1.5px solid #1495ff !important;
    background: rgba(1, 29, 61, 0.75) !important;
    box-shadow: 0 4px 14px rgba(0, 15, 35, 0.5);
  }

  .info-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 6px 7px !important;
    border: 1px solid rgba(20, 149, 255, 0.35) !important;
    border-radius: 10px !important;
    background: rgba(4, 35, 71, 0.6) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
    min-width: 0 !important;
  }

  .info-item:last-child {
    border-right: 1px solid rgba(20, 149, 255, 0.35) !important;
  }

  .icon-circle {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    border-radius: 50% !important;
  }

  .icon-circle svg,
  .icon-circle i {
    width: 15px !important;
    height: 15px !important;
  }

  .info-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-align: left !important;
  }

  .info-label {
    font-size: clamp(0.52rem, 2.1vw, 0.65rem) !important;
    font-weight: 700 !important;
    color: #b7d5f8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .info-value {
    font-size: clamp(0.78rem, 2.9vw, 0.95rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .live {
    padding: 3px 16px;
    margin: 3px auto;
  }

  .back-button {
    padding: 4px 18px;
    margin-bottom: 6px;
  }

  .numbers {
    gap: 6px 5px;
    margin: 2px 0 5px;
  }

  .result-card {
    border-radius: 11px;
    padding: 2.5px;
  }

  .result-head {
    border-radius: 7px 7px 5px 5px;
  }

  .result-window {
    border-radius: 3px 3px 7px 7px;
  }

  .ticker {
    margin-top: 5px;
    padding: 5px 10px;
    border-width: 1.5px;
    border-radius: 12px;
  }

  .next-draw {
    margin: 4px auto 4px;
    padding: 4px 14px;
    border-width: 1.5px;
    border-radius: 12px;
  }
}

/* Extra small screens (iPhone SE, under 360px) */
@media (max-width: 360px) {
  .dashboard {
    padding: 6px 5px 8px !important;
  }

  .info-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 6px 5px !important;
    gap: 6px 5px !important;
  }

  .info-item {
    gap: 6px !important;
    padding: 5px 6px !important;
    border-radius: 8px !important;
  }

  .icon-circle {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }

  .icon-circle svg,
  .icon-circle i {
    width: 13px !important;
    height: 13px !important;
  }

  .info-label {
    font-size: 0.52rem !important;
  }

  .info-value {
    font-size: 0.78rem !important;
  }

  .numbers {
    gap: 5px 4px !important;
  }
}

/* Fallback: Ensure modal never overflows or shows when hidden */
#back-result-modal.hidden {
  display: none !important;
}