﻿:root {
  --navy: #001a4c;
  --navy-mid: #00225f;
  --white: #ffffff;
  --ink: #12203a;
  --muted: #5b6b86;
  --line: #d9e3f2;
  --soft: #e8f0fe;
  --red: #d21f2b;
  --blue: #1a57d4;
  --teal: #1a8a5c;
  --green: #1d8a32;
  --orange: #e07a12;
  --purple: #6b2db5;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #f4f7fb;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.site-frame {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  background: var(--white);
}
.site-header:has(.live-time-block) {
  box-sizing: border-box;
  height: 62.16px;
  min-height: 62.16px;
  max-height: 62.16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.site-header:has(.live-time-block) .brand {
  align-items: center;
  gap: 2px;
}
.top-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 12px;
  box-sizing: border-box;
}
.smip-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  min-width: 0;
}
.brand-text h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
  color: #0b2f63;
  animation: starMatkaMove 1.2s ease-in-out infinite alternate;
}
@keyframes starMatkaMove {
  from {
    transform: translateX(-8px);
  }
  to {
    transform: translateX(8px);
  }
}
@keyframes infoPortalMove {
  from {
    transform: translateX(-9px);
  }
  to {
    transform: translateX(9px);
  }
}
.brand-text p {
  margin: 5px 0 0;
  position: relative;
  top: -5px;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #555;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  animation: infoPortalMove 1.5s ease-in-out infinite alternate;
}
body.jodi-page .brand-text p,
body.panel-page .brand-text p {
  top: -10px;
}
@media (max-width: 480px) {
  .top-brand {
    gap: 10px;
    padding: 8px;
  }
  .smip-logo {
    width: 82px;
    height: 82px;
  }
  .brand-text h1 {
    font-size: 28px;
  }
  .brand-text p {
    font-size: 10px;
    letter-spacing: .8px;
  }
}
.brand-mark {
  flex: 0 0 auto;
  width: clamp(28px, 8vw, 48px);
  height: clamp(28px, 8vw, 48px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.site-header:has(.live-time-block) .brand-mark {
  width: 85px;
  height: 85px;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
}
.logo-box {
  width: 100%;
  overflow: hidden;
  padding: 8px 10px;
  box-sizing: border-box;
}
.logo-box img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-header:has(.live-time-block) .logo-box img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transform: none;
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.site-header:has(.live-time-block) .brand-copy {
  align-items: flex-start;
  justify-content: center;
}
.brand-name {
  color: #000d2e;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(16px, 4.8vw, 34px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
}
.brand-tag {
  color: #1a2744;
  font-size: clamp(7px, 2.1vw, 11px);
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}
.live-time-block {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 36%;
  margin-left: auto;
  padding: 3px 5px 4px;
  border: 1px solid #c5d8f0;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  text-align: center;
  transform: scale(0.68);
  transform-origin: right center;
}
.live-time-kicker {
  display: block;
  color: var(--navy);
  font-size: clamp(7px, 2vw, 10px);
  font-weight: 800;
  letter-spacing: .12em;
}
#live-time {
  display: block;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(13px, 3.8vw, 26px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition: opacity .2s ease;
}
#live-time.is-ticking { opacity: .62; }
#live-clock {
  display: block;
  color: var(--muted);
  font-size: clamp(7px, 1.9vw, 10px);
  font-weight: 600;
  line-height: 1.2;
}
.nav-toggle { display: none !important; }

#site-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  background: var(--navy);
  overflow: hidden;
}
#site-nav a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 6px 1px 7px;
  color: var(--white);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(6.5px, 1.85vw, 13px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
#site-nav a.active,
#site-nav a:hover { background: var(--navy-mid); }
.nav-ico { font-size: clamp(9px, 2.4vw, 14px); line-height: 1; }
body.jodi-page #site-nav .nav-ico-live,
body.jodi-page #site-nav .nav-ico-live svg {
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.board-section { padding: 10px 6px 4px; }
.live-result-title {
  width: calc(100% - 16px);
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 10px;
  margin: 10px auto;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  white-space: normal;
  overflow: hidden;
  border-radius: 10px;
  font-family: Barlow, Arial, sans-serif;
  color: #ffffff;
  background: #001a4c;
}
@media (max-width: 480px) {
  .live-result-title {
    width: calc(100% - 16px);
    max-width: 100%;
    box-sizing: border-box;
    font-size: 17px;
    padding: 10px 6px;
    margin-left: auto;
    margin-right: auto;
  }
}
.market-band {
  margin: 12px 0 10px;
  padding: 5px 6px;
  color: var(--white);
  background: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(10px, 2.8vw, 14px);
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
}
.board-section > .market-band:first-of-type { margin-top: 0; }
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1.1vw, 14px);
  margin: 0 0 16px;
}
.market-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(5px, 1.4vw, 12px) clamp(4px, 1.2vw, 12px) clamp(5px, 1.2vw, 10px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(16, 36, 72, .12);
}
.theme-red {
  border-color: #efcfd2;
  background: linear-gradient(180deg, #fff1f1 0%, #ffffff 46%);
}
.theme-blue {
  border-color: #cdd9f4;
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 46%);
}
.market-card.star-featured {
  position: relative;
  box-sizing: border-box;
  isolation: isolate;
  overflow: visible;
  border: 2px solid #D6A62C;
  background:
    linear-gradient(180deg, rgba(214, 166, 44, 0.045) 0%, rgba(255, 255, 255, 0) 32%),
    #ffffff;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px #071D49,
    inset 0 0 16px rgba(214, 166, 44, 0.10),
    0 0 11px rgba(214, 166, 44, 0.42),
    0 6px 14px rgba(7, 29, 73, 0.16);
}
.market-card.star-featured::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid #071D49;
  border-radius: inherit;
  box-sizing: border-box;
  pointer-events: none;
}
.market-card.star-featured h3 {
  font-size: clamp(8.8px, 2.585vw, 19.8px);
  font-weight: 800;
  padding-right: clamp(20px, 6vw, 28px);
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  background-image: none;
}
.market-card.star-featured h3 > span:first-child {
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  background: none;
  background-image: none;
}
.market-card.star-featured h3 > span:first-child::before,
.market-card.star-featured h3 > span:first-child::after {
  content: none;
  display: none;
}
.market-card.star-featured .session-icon::before,
.market-card.star-featured .session-icon::after {
  content: none;
  display: none;
}
.market-card.star-featured .session-icon {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  overflow: visible;
  background: none;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}
.market-card.star-featured .session-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.14) saturate(1.16) brightness(1.07);
}
.market-card.star-featured .star-title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 22px);
  margin: 1px 0 0;
  padding: 0;
  gap: 4px;
  pointer-events: none;
}
.market-card.star-featured .star-title-ornament span:first-child,
.market-card.star-featured .star-title-ornament span:last-child {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 1.5px;
  background: linear-gradient(180deg, #F6D978 0%, #E8C14A 42%, #B8861E 100%);
}
.market-card.star-featured .star-title-ornament span:nth-child(2) {
  flex: 0 0 auto;
  color: #E8C14A;
  background: linear-gradient(180deg, #F8E7A0 0%, #E8C14A 48%, #B8861E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 8px;
  line-height: 1;
}
.market-card.star-featured.star-gold-box {
  animation: goldBorderPulse 1.2s ease-in-out infinite;
}
.market-card.star-featured .session-icon img.gold-star {
  animation: goldStarPulse 1.2s ease-in-out infinite;
}
@keyframes goldStarPulse {
  0%, 100% {
    filter: contrast(1.14) saturate(1.16) brightness(1.07) drop-shadow(0 0 1px rgba(214, 166, 44, 0.35));
  }
  50% {
    filter: contrast(1.14) saturate(1.16) brightness(1.48) drop-shadow(0 0 5px rgba(246, 217, 120, 0.95));
  }
}
@keyframes goldBorderPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px #071D49,
      inset 0 0 16px rgba(214, 166, 44, 0.10),
      0 0 6px rgba(214, 166, 44, 0.28),
      0 6px 14px rgba(7, 29, 73, 0.16);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px #071D49,
      inset 0 0 16px rgba(214, 166, 44, 0.18),
      0 0 18px rgba(232, 193, 74, 0.88),
      0 6px 14px rgba(7, 29, 73, 0.16);
  }
}
.flagship-star {
  display: inline;
  margin-left: .1em;
  font-size: .72em;
  line-height: 1;
  vertical-align: .06em;
}
.market-card.star-featured .jodi-result {
  margin: 1px 0 2px;
  font-size: clamp(24.2px, 7.04vw, 57.2px);
  line-height: .96;
}
.market-card.star-featured .times {
  font-weight: 800;
}
.theme-teal {
  border-color: #cce8d8;
  background: linear-gradient(180deg, #eefaf4 0%, #ffffff 46%);
}
.theme-green {
  border-color: #cde8cf;
  background: linear-gradient(180deg, #eef9ee 0%, #ffffff 46%);
}
.theme-orange {
  border-color: #f3ddc4;
  background: linear-gradient(180deg, #fff4e8 0%, #ffffff 46%);
}
.theme-purple {
  border-color: #e1d2f2;
  background: linear-gradient(180deg, #f4eefb 0%, #ffffff 46%);
}
.market-card h3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 0;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(8px, 2.35vw, 18px);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.session-icon { font-size: clamp(9px, 2.4vw, 16px); flex: 0 0 auto; }
.times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2px;
  margin: 3px 0 4px;
  color: var(--muted);
  font-size: clamp(6px, 1.7vw, 11px);
  font-weight: 700;
  line-height: 1.2;
}
.times span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.times span::before {
  content: "⏱";
  font-size: .9em;
  line-height: 1;
  opacity: .8;
}
.jodi-result {
  margin: 2px 0 4px;
  text-align: center;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(22px, 6.4vw, 52px);
  font-weight: 900;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.panna-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 4px;
}
.panna-row div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 2px 2px;
  min-width: 0;
}
.panna-row div:first-child { border-right: 1px dotted #b7c4d8; }
.panna-row span {
  color: var(--muted);
  font-size: clamp(7px, 1.85vw, 10px);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.1;
}
.panna-row strong {
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(11px, 3.2vw, 22px);
  font-weight: 900;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.panna-row small {
  color: var(--muted);
  font-size: clamp(5.5px, 1.5vw, 10px);
  white-space: nowrap;
}
.updated {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 6px;
  color: #5b6b82;
  font-size: clamp(6.5px, 1.7vw, 11px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.updated::before {
  content: "⏱";
  flex: 0 0 auto;
  font-size: .95em;
  line-height: 1;
  opacity: .85;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3px, .8vw, 8px);
  margin-top: auto;
  align-items: stretch;
}
.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: clamp(20px, 5.4vw, 38px);
  padding: 2px 4px;
  color: var(--white);
  background: var(--navy);
  border-radius: 6px;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(6px, 1.7vw, 12px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .2s ease, filter .2s ease;
}
.card-actions button:active {
  transform: scale(.96);
  filter: brightness(1.18);
}

.theme-red h3, .theme-red .jodi-result, .theme-red .panna-row strong { color: #c94a52; }
.theme-blue h3, .theme-blue .jodi-result, .theme-blue .panna-row strong { color: #3d6fd1; }
.theme-teal h3, .theme-teal .jodi-result, .theme-teal .panna-row strong { color: #2d9a68; }
.theme-green h3, .theme-green .jodi-result, .theme-green .panna-row strong { color: #3d9a4a; }
.theme-orange h3, .theme-orange .jodi-result, .theme-orange .panna-row strong { color: #e08c2e; }
.theme-purple h3, .theme-purple .jodi-result, .theme-purple .panna-row strong { color: #7b4bb8; }

.night-info-card {
  justify-content: space-evenly;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}
.night-info-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding-left: 2px;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(7px, 1.9vw, 12px);
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.2;
  text-align: left;
}
.night-info-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.673em;
  font-size: 1.455em;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 10px);
  padding: 6px 6px 12px;
}
.info-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  min-width: 0;
  padding: clamp(6px, 1.4vw, 14px) clamp(4px, 1vw, 12px);
  border: 1px solid #b9d0f5;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(18px, 5vw, 36px);
  height: clamp(18px, 5vw, 36px);
  color: var(--navy);
  border: 1px solid var(--soft);
  border-radius: 50%;
  background: var(--soft);
  font-size: clamp(10px, 2.6vw, 16px);
}
.info-box h3 {
  margin: 0;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(6.5px, 1.7vw, 13px);
  letter-spacing: 0;
  line-height: 1.15;
}
.info-box p { margin: 0; color: var(--muted); font-size: clamp(6px, 1.55vw, 13px); line-height: 1.25; }

.portal-contact {
  margin: 0 6px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.portal-contact h2 {
  margin: 0;
  padding: 7px 8px;
  color: var(--white);
  background: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(9px, 2.6vw, 14px);
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 6px 14px;
  background: #d9e8ff;
}
.contact-grid div {
  min-width: 0;
  text-align: center;
  color: var(--navy);
}
.contact-grid span {
  display: block;
  font-size: clamp(6px, 1.55vw, 11px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}
.contact-grid strong { display: block; margin-top: 2px; font-size: clamp(7px, 1.8vw, 14px); line-height: 1.2; }
.contact-grid small { display: block; font-size: clamp(7px, 1.6vw, 12px); }
.contact-btn {
  display: block;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 0 auto;
  padding: 10px 22px;
  color: var(--white) !important;
  background: var(--navy);
  border-radius: 4px;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(12px, 2.8vw, 16px);
  font-weight: 800;
  letter-spacing: .06em;
  transform: translateY(-8px);
}

.about-section,
.policy-section { padding: 4px 16px 10px; }
.about-section h2,
.policy-section h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: 16px;
}
.about-section p,
.policy-section p {
  margin: 0;
  color: #1a2740;
  font-size: 15px;
  line-height: 1.7;
}

.legal-block {
  padding: 18px 16px 24px;
  text-align: center;
}
.legal-block p {
  margin: 0 auto;
  max-width: 52em;
  color: #111;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.75;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.footer-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0;
  padding: 14px 4px 8px;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(8px, 2.1vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
}
.footer-links a { padding: 4px 3px; white-space: nowrap; }
.footer-links a:not(:last-child)::after {
  content: "|";
  margin-left: 4px;
  opacity: .7;
}
.copyright {
  margin: 0;
  padding: 8px 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.chart-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chart-toolbar .chart-jump { float: none; margin: 0; cursor: pointer; }
.working-days-note { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.latest-result-card {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.latest-result-card .latest-jodi,
.latest-result-card .latest-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(28px, 8vw, 52px);
  line-height: 1;
}
.latest-result-card .latest-jodi {
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  padding: 10px 18px 8px;
  border: 2px solid var(--navy);
  border-radius: 8px;
}
.latest-result-card p { margin: 0 0 8px; }
.latest-result-card em { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.chart-page-kicker {
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
}
.chart-back,
.chart-jump,
.chart-top-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: Barlow, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
}
.chart-page h1 { margin: 10px 0 8px; font-size: clamp(28px, 8vw, 56px); line-height: .95; color: var(--navy); }
.weekly-panel-chart {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.weekly-panel-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.weekly-panel-table { width: 100%; min-width: 0; }
.weekly-panel-head,
.weekly-panel-row {
  display: grid;
  grid-template-columns: 48px repeat(7, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}
.weekly-panel-head {
  min-height: 40px;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.weekly-panel-head span:first-child,
.date-range {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--navy);
}
.weekly-panel-head span:first-child { text-align: left; padding-left: 6px; }
.weekly-panel-head .day-closed { color: #ffb4bc; }
.weekly-panel-row { border-bottom: 1px solid var(--line); background: var(--white); }
.weekly-panel-row.is-latest-week { background: var(--soft); }
.date-range {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 88px;
  padding: 6px 4px 6px 6px;
  color: var(--white);
  font-family: Barlow, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.weekly-panel-row.is-latest-week .date-range { background: var(--navy-mid); }
.date-range em { font-style: normal; }
.panel-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 5px 3px;
  border-left: 1px solid var(--line);
}
.panel-cell.panel-result { min-height: 112px; align-items: stretch; }
.open-panna,
.close-panna,
.center-jodi,
.cell-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  font-family: Barlow, Arial, sans-serif;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 6px;
}
.open-panna { color: var(--teal); border: 1px solid #b7e4cf; background: #f3fbf7; }
.close-panna { color: var(--orange); border: 1px solid #f3d7b3; background: #fff8ef; }
.center-jodi { color: var(--navy); border: 2px solid var(--navy); background: var(--soft); }
.open-panna,
.close-panna { min-height: 22px; padding: 3px 1px 2px; font-size: clamp(11px, 2.9vw, 14px); }
.center-jodi { min-height: 28px; padding: 4px 1px 3px; font-size: clamp(15px, 4vw, 20px); }
.weekly-panel-chart.is-jodi-chart .center-jodi { min-height: 48px; font-size: clamp(18px, 5vw, 26px); }
.weekly-panel-chart.is-jodi-chart .panel-cell { min-height: 68px; }
.panel-cell.closed-day .cell-status {
  min-height: 42px;
  color: var(--red);
  border: 1px solid #f3b4ba;
  background: #fff4f5;
  font-size: clamp(16px, 4.4vw, 22px);
}
.panel-cell.missing-day .cell-status {
  min-height: 42px;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-size: clamp(16px, 4.4vw, 22px);
}
.cell-day { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chart-empty { padding: 18px; color: var(--muted); }
.chart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
  background: rgba(0, 26, 76, .55);
}
.chart-overlay.is-open { display: flex; }
.chart-overlay-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 12px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.chart-overlay-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.chart-overlay-close {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--white);
  border-radius: 999px;
  background: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}
.chart-overlay .chart-back,
.chart-overlay .chart-jump,
.chart-back,
.chart-jump {
  float: none;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
body.chart-overlay-open { overflow: hidden; }

@media (min-width: 720px) {
  .site-header { padding: 16px 24px; }
  .site-header:has(.live-time-block) {
    height: 98.32px;
    min-height: 98.32px;
    max-height: 98.32px;
    padding: 0 24px;
  }
  .site-header:has(.live-time-block) .brand-mark {
    width: 85px;
    height: 85px;
    max-width: none;
    max-height: none;
  }
  #site-nav {
    justify-content: center;
    gap: 0;
  }
  #site-nav a {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    letter-spacing: .08em;
  }
  .board-section { padding: 22px 24px 10px; }
  .info-section { padding: 8px 24px 22px; }
  .info-box { flex-direction: row; text-align: left; align-items: flex-start; gap: 12px; }
  .portal-contact { margin: 0 24px 24px; }
  .about-section,
  .policy-section,
  .legal-block { padding-left: 24px; padding-right: 24px; }
  .footer-links { font-size: 14px; letter-spacing: .06em; font-weight: 800; }
  .footer-links a { padding: 4px 8px; }
  .footer-links a:not(:last-child)::after { margin-left: 10px; }
  .weekly-panel-head,
  .weekly-panel-row { grid-template-columns: 72px repeat(7, minmax(0, 1fr)); }
  .date-range { min-height: 120px; font-size: 13px; }
  .chart-overlay { padding: 16px; }
  .chart-overlay-panel { padding: 20px 22px 28px; }
}

@media (max-width: 480px) {
  .board-section { padding: 8px 6px 0; }
  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 6px;
  }
  .market-card { padding: 4px 3px 3px; }
  .market-card h3 {
    font-size: clamp(10.5px, 2.9vw, 13px);
    font-weight: 900;
  }
  .market-card.star-featured h3 {
    font-size: clamp(11.55px, 3.19vw, 14.3px);
  }
  .jodi-result {
    margin: 1px 0 2px;
    font-size: clamp(27px, 7.8vw, 36px);
  }
  .market-card.star-featured .jodi-result {
    margin: 0;
    font-size: clamp(29.7px, 8.58vw, 39.6px);
    line-height: .96;
  }
  .panna-row { margin: 0 0 2px; }
  .panna-row div { padding: 1px 1px; }
  .panna-row strong { font-size: clamp(13.5px, 3.8vw, 17px); }
  .panna-row span { font-size: clamp(7px, 1.95vw, 9.5px); }
  .times {
    margin: 2px 0 2px;
    color: #334155;
    font-size: clamp(7.2px, 2vw, 9px);
    font-weight: 700;
  }
  .panna-row small,
  .updated { color: #334155; }
  .updated {
    margin: 1px 0 3px;
    font-size: clamp(7.2px, 1.95vw, 9px);
    font-weight: 700;
  }
  .card-actions { gap: 3px; }
  .card-actions button {
    min-height: 20px;
    padding: 2px 2px;
    font-size: clamp(7.8px, 2.15vw, 10.5px);
  }
  .night-info-card {
    gap: 0;
    overflow: hidden;
  }
  .night-info-item {
    font-size: clamp(7.2px, 2.05vw, 10px);
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.15;
    gap: 5px;
    justify-content: flex-start;
    text-align: left;
  }
  .night-info-item span {
    width: 1.86em;
    font-size: 1.86em;
    line-height: 1;
  }

  .portal-contact { margin: 0 4px 0; }
  .portal-contact h2 {
    padding: 3px 4px;
    font-size: clamp(8px, 2.2vw, 11px);
    line-height: 1.1;
  }
  .contact-grid {
    gap: 0;
    padding: 3px 2px 2px;
  }
  .contact-grid span {
    color: #000c2e;
    font-size: clamp(5.5px, 1.4vw, 8px);
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.05;
  }
  .contact-grid strong {
    margin-top: 0;
    font-size: clamp(6px, 1.5vw, 9px);
    line-height: 1.05;
  }
  .contact-grid small { font-size: clamp(5.5px, 1.4vw, 8px); line-height: 1.05; }
  .contact-btn {
    display: block;
    width: max-content;
    margin: 0 auto 2px;
    padding: 3.5px 9px;
    font-size: clamp(7.8px, 1.93vw, 10.1px);
    transform: none;
  }

  .about-section,
  .policy-section {
    padding: 2px 8px;
    margin: 0;
  }
  .about-section + .policy-section,
  .policy-section + .policy-section {
    margin-top: 4px;
  }
  .about-section h2,
  .policy-section h2 {
    margin: 0 0 1px;
    color: var(--navy);
    font-family: Barlow, Arial, sans-serif;
    font-size: clamp(5.5px, 1.4vw, 8px);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
    text-align: left;
  }
  .about-section h2 { font-weight: 900; }
  .about-section p,
  .policy-section p {
    margin: 0;
    color: var(--navy);
    font-size: clamp(6px, 1.5vw, 9px);
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
  }
  .about-section p { line-height: 1.3; }
  .legal-block { padding: 4px 12px 6px; }
  .legal-block p {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 8px 2px 4px;
    font-size: clamp(7px, 1.85vw, 11px);
    font-weight: 900;
    letter-spacing: .02em;
  }
  .footer-links a {
    padding: 2px 2px;
    font-weight: 900;
  }
  .footer-links a:not(:last-child)::after { margin-left: 3px; }
  .copyright {
    padding: 4px 10px 10px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    font-size: 11px;
    font-weight: 900;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .updated {
    font-size: clamp(5.4px, 1.48vw, 6.8px);
    letter-spacing: -0.04em;
  }
}

.info-page .info-page-main {
  padding: 16px 16px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.info-page .info-page-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 0 16px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  font-family: Barlow, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.info-page .info-page-title {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(22px, 6.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}
.info-page .info-page-copy p,
.info-page .info-page-copy li {
  margin: 0 0 12px;
  color: #1a2740;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}
.info-page .info-page-copy p:last-child,
.info-page .info-page-block:last-child {
  margin-bottom: 0;
}
.info-page .info-page-block {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
}
.info-page .info-page-block h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}
.info-page .info-page-block p {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}
.info-page .info-page-note {
  margin: 18px 0 0;
  color: #1a2740;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
body.chart-site .chart-page {
  padding: 8px 6px 24px;
}
body.jodi-page {
  overflow-x: hidden;
  background: #ffffff;
}
body.jodi-page .site-frame {
  overflow-x: hidden;
  overflow-y: visible;
  height: auto;
  min-height: 100dvh;
}
body.jodi-page .site-header,
body.jodi-page .site-header:has(.live-time-block) {
  overflow: visible;
  position: relative;
  z-index: 2;
  align-items: center;
  height: auto;
  min-height: 102px;
  max-height: none;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
}
body.jodi-page .site-header .brand,
body.jodi-page .site-header .top-brand {
  overflow: visible;
  max-height: none;
  align-items: center;
  min-width: 0;
}
body.jodi-page .top-brand {
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  min-width: 0;
}
body.jodi-page .smip-logo {
  display: block;
  box-sizing: content-box;
  width: 85px;
  height: 85px;
  max-width: 85px;
  max-height: 85px;
  object-fit: contain;
  object-position: center;
  overflow: visible;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
body.jodi-page .live-time-block {
  align-self: center;
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  flex-shrink: 0;
  transform: none;
  max-width: none;
  padding: 2px 4px 3px;
}
body.jodi-page .brand-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
body.jodi-page .brand-text h1.jodi-star-matka {
  animation: none;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.55em;
  margin: 0;
  padding: 0.22em 0 0.18em;
  box-sizing: content-box;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: normal;
  overflow: visible;
  transform: none;
}
body.jodi-page .jodi-star-matka-one,
body.jodi-page .jodi-star-matka-two {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: none;
}
body.jodi-page .jodi-star-matka-one {
  white-space: nowrap;
  letter-spacing: 0;
  animation: jodiStarMatkaOne 2.4s ease-in-out infinite;
}
body.jodi-page .jodi-star-matka-two {
  line-height: 1.15;
  animation: jodiStarMatkaTwo 2.4s ease-in-out infinite;
}
@keyframes jodiStarMatkaOne {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes jodiStarMatkaTwo {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
body.jodi-page #site-nav {
  display: flex;
  position: relative;
  z-index: 1;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}
body.jodi-page #site-nav a {
  flex: 1 1 0;
  width: 0;
  max-width: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body.jodi-page #site-nav a.active {
  margin: 7px 6px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(232, 193, 74, 0.38);
  box-shadow: 0 2px 7px rgba(0, 26, 76, 0.08), 0 1px 2px rgba(232, 193, 74, 0.14);
  border-radius: 8px;
}
body.jodi-page #site-nav a.nav-goto-bottom {
  white-space: normal;
  font-size: 9px;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}
body.jodi-page #site-nav a.nav-goto-bottom .nav-goto-text {
  display: block;
  max-width: 100%;
}
body.jodi-page.chart-site .chart-page {
  padding: 0;
  overflow-x: hidden;
}
.jodi-chart-heading {
  display: grid;
  grid-template-columns: minmax(12px, 1fr) auto auto auto minmax(12px, 1fr);
  align-items: center;
  justify-items: center;
  column-gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
  padding: 2px 10px;
  min-width: 0;
  overflow: hidden;
}
.jodi-gold-line {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 2px;
  justify-self: stretch;
  background: linear-gradient(90deg, transparent, #E8C14A 18%, #D6A62C 82%, transparent);
}
.jodi-gold-star {
  flex: 0 0 auto;
  color: #E8C14A;
  font-size: clamp(14px, 4vw, 20px);
  line-height: 1;
  text-shadow: 0 0 4px rgba(214, 166, 44, .45);
}
.jodi-chart-heading h1 {
  flex: 0 1 auto;
  margin: 0;
  min-width: 0;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(15px, 4.4vw, 28px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.jodi-page .jodi-chart-heading h1 {
  font-size: clamp(15px, 4.4vw, 22px);
  white-space: nowrap;
  overflow-wrap: normal;
}
.jodi-footer-brand {
  margin: 0;
  padding: 14px 12px 0;
  color: #F6D978;
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(11px, 2.8vw, 15px);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}
body.jodi-page .jodi-footer-brand {
  color: #ffffff;
}
.chart-hero-title {
  margin: 12px 8px 14px;
  color: var(--navy);
  font-family: Barlow, Arial, sans-serif;
  font-size: clamp(18px, 5.4vw, 28px);
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.15;
}
.classic-chart {
  border: 1px solid var(--navy);
  border-radius: 0;
  overflow: hidden;
  background: var(--white);
}
.classic-chart .weekly-panel-head,
.classic-chart .weekly-panel-row {
  grid-template-columns: 78px repeat(7, minmax(0, 1fr));
}
.classic-chart .weekly-panel-head {
  min-height: 36px;
  font-size: clamp(8px, 2.1vw, 12px);
  letter-spacing: .04em;
}
.classic-chart .weekly-panel-head span:first-child,
.classic-chart .date-range {
  background: var(--navy);
}
.classic-chart .date-range {
  min-height: 64px;
  padding: 6px 4px;
  align-items: center;
  text-align: center;
  font-size: clamp(8px, 2vw, 11px);
  line-height: 1.25;
}
.classic-chart .date-range b { display: block; font-weight: 800; }
.classic-chart .date-range em { display: block; font-style: normal; opacity: .85; }
.classic-chart .weekly-panel-row { background: var(--white); }
.classic-chart .weekly-panel-row.is-alt { background: #f3f6fb; }
.classic-chart .weekly-panel-row.is-alt .date-range { background: var(--navy-mid); }
body.jodi-page #chart-root,
body.jodi-page .classic-chart,
body.jodi-page .weekly-panel-scroll,
body.jodi-page .weekly-panel-table {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body.jodi-page .weekly-panel-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.jodi-page .classic-chart .weekly-panel-head,
body.jodi-page .classic-chart .weekly-panel-row {
  grid-template-columns: minmax(76px, 1.65fr) repeat(var(--jodi-day-count, 7), minmax(0, 1fr));
}
body.jodi-page .classic-chart .weekly-panel-head span {
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
body.jodi-page .classic-chart .weekly-panel-head span:not(:first-child) {
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: #ffffff;
}
body.jodi-page .classic-chart .weekly-panel-head span:first-child,
body.jodi-page .classic-chart .date-range {
  position: static;
}
body.jodi-page .classic-chart {
  border-color: var(--line);
}
body.jodi-page .classic-chart .date-range {
  background: transparent;
  color: #12203a;
  min-height: 48px;
  font-size: clamp(8px, 2.05vw, 11px);
  font-weight: 800;
}
body.jodi-page .classic-chart .weekly-panel-row.is-alt .date-range {
  background: transparent;
}
body.jodi-page .classic-chart .weekly-panel-head span:first-child {
  background: var(--navy);
  color: #ffffff;
}
body.jodi-page .classic-cell.is-jodi strong {
  color: #111111;
}
body.jodi-page .site-footer {
  width: 100%;
}
.classic-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 4px 2px;
  border-left: 1px solid var(--line);
  font-family: Barlow, Arial, sans-serif;
}
.classic-cell.is-jodi strong {
  color: var(--navy);
  font-size: clamp(14px, 3.8vw, 20px);
  font-weight: 800;
}
.classic-cell.is-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2px;
  min-height: 72px;
}
.classic-panna {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: clamp(8px, 2.1vw, 11px);
  font-weight: 700;
  line-height: 1.15;
}
.classic-jodi {
  color: var(--navy);
  font-size: clamp(15px, 4.2vw, 22px);
  font-weight: 800;
  line-height: 1;
}
.classic-jodi.is-hot { color: var(--red); }
.classic-cell.is-closed span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 2px 6px;
  color: var(--white);
  background: var(--red);
  font-size: clamp(13px, 3.4vw, 18px);
  font-weight: 800;
}
@media (min-width: 720px) {
  body.chart-site .chart-page { padding: 16px 24px 36px; }
  body.jodi-page.chart-site .chart-page { padding: 0; }
  body.jodi-page #site-nav a {
    flex: 1 1 0;
    width: 0;
    flex-direction: column;
  }
  .classic-chart .weekly-panel-head,
  .classic-chart .weekly-panel-row { grid-template-columns: 108px repeat(7, minmax(0, 1fr)); }
  body.jodi-page .classic-chart .weekly-panel-head,
  body.jodi-page .classic-chart .weekly-panel-row {
    grid-template-columns: minmax(96px, 1.65fr) repeat(var(--jodi-day-count, 7), minmax(0, 1fr));
  }
  .classic-chart .date-range { min-height: 84px; font-size: 12px; }
}
@media (min-width: 720px) {
  .info-page .info-page-main {
    padding: 28px 24px 40px;
  }
}
@media (max-width: 719px) {
  body.jodi-page {
    background: var(--navy);
  }
  body.jodi-page .site-frame {
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--navy);
    box-shadow: none;
    overflow-y: visible;
  }
  body.jodi-page .site-header,
  body.jodi-page .site-header:has(.live-time-block) {
    flex: 0 0 auto;
    gap: 10px;
    min-height: 118px;
    padding: 14px 14px;
    overflow: visible;
    background: #ffffff;
  }
  body.jodi-page .top-brand {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 8px 0 0;
    min-width: 0;
  }
  body.jodi-page .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
  }
  body.jodi-page .brand-text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
  }
  body.jodi-page .brand-text h1 {
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  body.jodi-page .brand-text h1.jodi-star-matka {
    white-space: normal;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 2.55em;
    padding: 0.22em 0 0.18em;
    line-height: 1.15;
  }
  body.jodi-page .brand-text p {
    margin-top: 5px;
    font-size: 9.5px;
    letter-spacing: .08em;
    color: #1a2744;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    width: 100%;
  }
  body.jodi-page .smip-logo,
  body.jodi-page img.smip-logo {
    width: 90px;
    height: 90px;
    max-width: 90px;
    max-height: 90px;
    object-fit: contain;
    object-position: center;
    aspect-ratio: 1 / 1;
  }
  body.jodi-page .live-time-block {
    flex: 0 0 auto;
    flex-shrink: 0;
    max-width: none;
    margin-left: auto;
    padding: 3px 5px 4px;
    transform: none;
    border-radius: 4px;
  }
  body.jodi-page .live-time-kicker {
    font-size: 6.5px;
    letter-spacing: .12em;
  }
  body.jodi-page #live-time {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
  }
  body.jodi-page #live-clock {
    font-size: 7.5px;
  }
  body.jodi-page #site-nav {
    flex: 0 0 auto;
    margin-top: 0;
    min-height: 56px;
    overflow: visible;
    align-items: stretch;
  }
  body.jodi-page #site-nav a {
    position: relative;
    z-index: 1;
    min-height: 56px;
    margin: 0;
    padding: 6px 1px 7px;
    gap: 3px;
    font-size: 11px;
    letter-spacing: 0;
    font-weight: 800;
  }
  body.jodi-page #site-nav a:nth-child(3),
  body.jodi-page #site-nav a:nth-child(4) {
    flex: 1.28 1 0;
    width: 0;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
  }
  body.jodi-page #site-nav .nav-ico {
    font-size: 15px;
  }
  body.jodi-page #site-nav a.nav-goto-bottom {
    white-space: normal;
    font-size: 9px;
    line-height: 1.08;
    letter-spacing: 0;
  }
  body.jodi-page #site-nav a.nav-goto-bottom .nav-goto-text {
    display: block;
    max-width: 100%;
  }
  body.jodi-page #site-nav a.active {
    margin: 0;
    padding: 6px 1px 7px;
    color: var(--navy);
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  body.jodi-page #site-nav a.active::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 6.5px;
    right: 9.5px;
    bottom: 6.5px;
    left: 9.5px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(232, 193, 74, 0.4);
    box-shadow: 0 2px 7px rgba(0, 26, 76, 0.09), 0 1px 2px rgba(232, 193, 74, 0.16);
  }
  body.jodi-page #site-nav a.active::after {
    content: "";
    position: absolute;
    left: 15.5px;
    right: 15.5px;
    bottom: 9.5px;
    height: 3px;
    border-radius: 2px;
    background: #E8C14A;
  }
  body.panel-page #site-nav a.active::before {
    right: 3.5px;
    left: 3.5px;
  }
  body.panel-page #site-nav a.active::after {
    left: 14px;
    right: 14px;
  }
  body.jodi-page.chart-site .chart-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0 0 36px;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    min-height: 0;
  }
  body.jodi-page #chart-root {
    flex: 1 0 auto;
  }
  body.jodi-page .jodi-chart-heading {
    margin: 4px 0;
    padding: 2px 14px;
    column-gap: 10px;
  }
  body.jodi-page .jodi-gold-star {
    font-size: 18px;
  }
  body.jodi-page .jodi-chart-heading h1 {
    font-size: 20px;
    letter-spacing: .05em;
    white-space: nowrap;
    font-weight: 800;
  }
  body.jodi-page[data-market="rajdhani-night"] .jodi-chart-heading h1,
  body.jodi-page .chart-page[data-market="rajdhani-night"] .jodi-chart-heading h1 {
    font-size: 15px;
    letter-spacing: .02em;
    white-space: nowrap;
    text-align: center;
    overflow: visible;
  }
  body.jodi-page .classic-chart .weekly-panel-head,
  body.jodi-page .classic-chart .weekly-panel-row {
    grid-template-columns: minmax(86px, 1.7fr) repeat(var(--jodi-day-count, 7), minmax(0, 1fr));
  }
  body.jodi-page .classic-chart .weekly-panel-head {
    min-height: 46px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
  }
  body.jodi-page .classic-chart .weekly-panel-head span:not(:first-child) {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
  body.jodi-page .classic-chart .date-range {
    min-height: 64px;
    padding: 12px 4px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
  }
  body.jodi-page .classic-cell {
    min-height: 64px;
    padding: 8px 2px;
  }
  body.jodi-page .classic-cell.is-jodi strong {
    font-size: 22px;
    font-weight: 800;
    color: #111111;
  }
  body.jodi-page .site-footer {
    flex: 0 0 auto;
    padding-top: 4px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  body.jodi-page .jodi-footer-brand {
    position: relative;
    padding: 32px 16px 12px;
    letter-spacing: .12em;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
  }
  body.jodi-page .jodi-footer-brand::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E8C14A 14%, #D6A62C 86%, transparent);
  }
  body.jodi-page .jodi-footer-brand::after {
    content: "★";
    position: absolute;
    left: 50%;
    top: 4px;
    transform: translateX(-50%);
    padding: 0 12px;
    color: #E8C14A;
    background: var(--navy);
    font-size: 16px;
    line-height: 1;
  }
  body.jodi-page .footer-links {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    row-gap: 0;
    padding: 12px 8px 8px;
    font-size: 9px;
  }
  body.jodi-page .footer-links a {
    padding: 4px 2px;
    white-space: nowrap;
  }
  body.jodi-page .footer-links a:not(:last-child)::after {
    margin-left: 3px;
  }
  body.jodi-page .copyright {
    display: block;
    padding: 8px 8px 16px;
    font-size: 11px;
    white-space: nowrap;
    text-align: center;
  }
}

body.panel-page.chart-site .chart-page {
  overflow-x: hidden;
}
body.panel-page #chart-root,
body.panel-page .classic-chart,
body.panel-page .weekly-panel-scroll,
body.panel-page .weekly-panel-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.panel-page .weekly-panel-scroll {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.panel-page .weekly-panel-table {
  table-layout: fixed;
}
body.panel-page .classic-chart .weekly-panel-head,
body.panel-page .classic-chart .weekly-panel-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.45fr) repeat(var(--panel-day-count, 7), minmax(0, 1fr));
}
body.panel-page .classic-chart .weekly-panel-head {
  font-size: clamp(8px, 2.1vw, 12px);
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
}
body.panel-page .classic-chart .weekly-panel-head span {
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}
body.panel-page .classic-chart .weekly-panel-head span:not(:first-child) {
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: #ffffff;
}
body.panel-page .classic-chart .date-range {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  white-space: normal;
  padding-top: 4px;
  padding-bottom: 4px;
}
body.panel-page .classic-cell {
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 4px;
  align-items: center;
}
body.panel-page .classic-cell.is-panel {
  min-width: 0;
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
  align-items: center;
}
body.panel-page .classic-panna {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}
body.panel-page .classic-panna i {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #111111;
  width: 1ch;
  text-align: center;
}
body.panel-page .classic-jodi {
  min-width: 0;
  color: #111111;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}
@media (max-width: 719px) {
  body.panel-page #chart-root {
    padding-left: 8px;
    padding-right: 8px;
  }
  body.panel-page .classic-chart .weekly-panel-head {
    min-height: 46px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
  }
  body.panel-page .classic-chart .weekly-panel-head span {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
  body.panel-page .classic-chart .weekly-panel-head span:not(:first-child) {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
  body.panel-page .classic-chart .date-range {
    min-height: 0;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 2px;
    padding-right: 2px;
  }
  body.panel-page .classic-cell {
    min-height: 0;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  body.panel-page .classic-cell.is-panel {
    min-height: 0;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 1px;
    padding-right: 1px;
    align-items: center;
  }
}

body.jodi-page,
html:has(body.jodi-page) {
  height: 100%;
  overflow: hidden;
}
body.jodi-page {
  height: 100dvh;
  max-height: 100dvh;
}
body.jodi-page .site-frame {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.jodi-page .site-header,
body.jodi-page #site-nav,
body.jodi-page .jodi-chart-heading {
  flex: 0 0 auto;
}
body.jodi-page.chart-site .chart-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.jodi-page #chart-root {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.jodi-page .classic-chart,
body.jodi-page .weekly-panel-scroll {
  flex: none;
  height: auto;
  min-height: 0;
  overflow: visible;
}
body.jodi-page .weekly-panel-head {
  position: sticky;
  top: 0;
  z-index: 6;
}
body.jodi-page .site-footer {
  position: static;
  flex: none;
}
body.jodi-page .chart-go-top {
  display: block;
  position: static;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 10px auto 12px;
  padding: 8px 18px;
  border: 1px solid #E8C14A;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-family: Barlow, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
body.jodi-page:not(.panel-page) .classic-cell {
  min-height: 40px;
  padding-top: 3px;
  padding-bottom: 3px;
  align-items: center;
}
body.jodi-page:not(.panel-page) .classic-chart .date-range {
  min-height: 40px;
  padding-top: 3px;
  padding-bottom: 3px;
  justify-content: center;
}

/* SMIP: keep panel week-range year visible on mobile */
body.panel-page .classic-chart .date-range {
  min-height: 46px;
  line-height: 1.15;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

/* ===== SMIP KILLER MOBILE UI V1 ===== */

/* Faster / sharper interaction */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
.chart-open,
.market-band-refresh {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Stronger section bars */
.market-band {
  font-weight: 900 !important;
  letter-spacing: .7px;
  box-shadow: 0 2px 7px rgba(0,0,0,.16);
}

/* Cleaner premium cards */
.market-card {
  border-radius: 8px !important;
  box-shadow:
    0 2px 5px rgba(0,0,0,.10),
    0 7px 16px rgba(0,0,0,.06) !important;
  transform: translateZ(0);
  transition:
    transform .10s ease,
    box-shadow .10s ease !important;
}

.market-card:active {
  transform: scale(.985);
}

/* Market names sharper */
.market-card h3 {
  font-weight: 900 !important;
  letter-spacing: .15px;
}

/* Main Jodi result = instant visual focus */
.market-card .jodi-result {
  font-weight: 950 !important;
  line-height: .98 !important;
  letter-spacing: .4px;
  text-shadow: 0 1px 1px rgba(0,0,0,.08);
}

/* Open / Close panna values */
.market-card .panna-row strong {
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Actual result times stay visible but compact */
.market-card .panna-row small {
  font-weight: 700;
  opacity: .82;
}

/* Updated line less visually heavy */
.market-card .updated {
  font-weight: 600;
  opacity: .78;
}

/* Buttons: compact premium tap feel */
.market-card .card-actions {
  gap: 3px !important;
}

.market-card .chart-open {
  border-radius: 7px !important;
  font-weight: 900 !important;
  letter-spacing: -.1px;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  transition:
    transform .08s ease,
    box-shadow .08s ease !important;
}

.market-card .chart-open:active {
  transform: scale(.95);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* LIVE state stronger whenever existing LIVE title is used */
.live-result-title {
  font-weight: 950 !important;
  letter-spacing: .65px;
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* Keep mobile 3-column layout safe */
@media (max-width: 640px) {
  .market-card {
    min-width: 0 !important;
  }

  .market-card h3 {
    line-height: 1.05 !important;
  }

  .market-card .jodi-result {
    font-size: clamp(24px, 7vw, 32px) !important;
  }

  .market-card .panna-row strong {
    font-size: clamp(16px, 4.7vw, 21px) !important;
  }

  .market-card .chart-open {
    min-height: 30px;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
}

/* Respect users who reduce motion */
@media (prefers-reduced-motion: reduce) {
  .market-card,
  .market-card .chart-open {
    transition: none !important;
  }
}

/* ===== END SMIP KILLER MOBILE UI V1 ===== */


/* SMIP_REFRESH_TEXT_V1 */
.market-band-refresh {
  width: auto !important;
  min-width: 58px !important;
  padding: 0 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .25px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.market-band-refresh svg {
  display: none !important;
}

.market-band-refresh-label {
  display: block;
}
/* END SMIP_REFRESH_TEXT_V1 */


/* ===== SMIP_FREE_GUESS_REVEAL_V1 ===== */
.market-card {
  position: relative;
}

.smip-free-guess-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: inherit;
  background: rgba(255,255,255,.97);
  text-align: center;
}

.market-card.smip-guess-open > .smip-free-guess-layer {
  display: flex;
}

.smip-free-guess-title {
  font-size: 11px;
  font-weight: 900;
  color: #173a70;
  letter-spacing: .35px;
}

.smip-free-guess-market {
  font-size: 10px;
  font-weight: 800;
}

.smip-free-guess-label {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 800;
  color: #555;
}

.smip-free-guess-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.smip-free-guess-values span {
  min-width: 19px;
  padding: 2px 3px;
  border: 1px solid rgba(23,58,112,.22);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.smip-free-guess-note {
  margin-top: 2px;
  font-size: 7px;
  line-height: 1.2;
  color: #666;
}

.smip-free-guess-close {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 25px;
  min-height: 25px;
  border: 0;
  border-radius: 50%;
  background: #173a70;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
/* ===== END SMIP_FREE_GUESS_REVEAL_V1 ===== */


/* ===== SMIP_PANNA_BUTTON_V1 ===== */
.market-band {
  position: relative;
}

.market-band-panna {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: auto;
  min-width: 58px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .25px;
  cursor: pointer;
}
/* ===== END SMIP_PANNA_BUTTON_V1 ===== */


/* SMIP_PANNA_LINK_FIX_V1 */
.market-band-panna {
  text-decoration: none !important;
  z-index: 5;
  touch-action: manipulation;
}
/* END SMIP_PANNA_LINK_FIX_V1 */


/* ===== SMIP_MOBILE_UNBREAKABLE_V1 ===== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 719px) {

  .site-frame,
  main,
  #board,
  .board-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .site-header .brand,
  .top-brand,
  .brand-text {
    min-width: 0 !important;
  }

  .top-brand {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 4px !important;
  }

  .smip-logo {
    width: clamp(42px, 14vw, 72px) !important;
    height: auto !important;
    max-width: 100% !important;
  }

  .brand-text h1,
  .brand-name {
    margin: 0 !important;
    font-size: clamp(16px, 5.2vw, 30px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .brand-text p,
  .brand-tag {
    font-size: clamp(6.5px, 2vw, 10px) !important;
    white-space: nowrap !important;
  }

  .live-time-block {
    width: clamp(78px, 24vw, 108px) !important;
    min-width: 0 !important;
    max-width: 28vw !important;
    padding: 3px 4px !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .live-time-kicker {
    font-size: clamp(6px, 1.8vw, 8px) !important;
  }

  #live-time {
    font-size: clamp(10px, 3.1vw, 15px) !important;
    white-space: nowrap !important;
  }

  #live-clock {
    font-size: clamp(6px, 1.7vw, 8px) !important;
    white-space: nowrap !important;
  }

  .market-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(2px, .8vw, 5px) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 3px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .market-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: clamp(3px, .9vw, 6px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .market-card h3 {
    min-width: 0 !important;
    margin: 0 !important;
    font-size: clamp(9px, 3vw, 15px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .market-card .times {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    width: 100% !important;
    font-size: clamp(6px, 1.85vw, 9px) !important;
  }

  .market-card .times span {
    min-width: 0 !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  .market-card .jodi-result {
    font-size: clamp(19px, 7vw, 38px) !important;
    line-height: 1 !important;
  }

  .market-card .panna-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
  }

  .market-card .panna-row > div {
    min-width: 0 !important;
  }

  .market-card .panna-row span {
    font-size: clamp(5.5px, 1.7vw, 9px) !important;
    white-space: nowrap !important;
  }

  .market-card .panna-row strong {
    font-size: clamp(12px, 4.2vw, 22px) !important;
    white-space: nowrap !important;
  }

  .market-card .panna-row small {
    font-size: clamp(5px, 1.55vw, 8px) !important;
    white-space: nowrap !important;
  }

  .market-card .updated {
    font-size: clamp(5px, 1.55vw, 8px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .market-card .card-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
  }

  .market-card .card-actions button {
    width: 100% !important;
    min-width: 0 !important;
    padding: clamp(4px, 1.2vw, 7px) 1px !important;
    font-size: clamp(5.8px, 1.7vw, 9px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .smip-free-guess-layer {
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: clamp(2px, .7vw, 5px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .smip-free-guess-layer > * {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .smip-free-guess-layer span {
    max-width: 100% !important;
    padding: 2px clamp(3px, .8vw, 5px) !important;
    font-size: clamp(8px, 2.6vw, 13px) !important;
    line-height: 1.05 !important;
    box-sizing: border-box !important;
  }
}

/* ===== END SMIP_MOBILE_UNBREAKABLE_V1 ===== */








/* ===== SMIP_GUESS_CARD_FINAL_V3 ===== */

@media (max-width: 719px) {

  .smip-free-guess-layer {
    box-sizing: border-box !important;
    position: absolute !important;
    inset: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    padding: 5px 4px 3px !important;
    gap: 2px !important;

    overflow: hidden !important;
    text-align: center !important;
  }

  /* EXACT NUMBER ROWS */
  .smip-free-guess-layer .smip-free-guess-values {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .smip-free-guess-layer .smip-free-guess-values span {
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: 20px !important;

    margin: 0 !important;
    padding: 0 1px !important;

    font-size: clamp(8px, 2.35vw, 11px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .smip-free-guess-layer .smip-free-guess-label {
    margin: 3px 0 1px !important;
    padding: 0 !important;

    font-size: clamp(7px, 2vw, 9px) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .smip-free-guess-layer .smip-free-guess-note {
    margin: auto 0 0 !important;
    padding: 2px 1px 0 !important;

    width: 100% !important;
    max-width: 100% !important;

    font-size: clamp(5px, 1.45vw, 7px) !important;
    line-height: 1.05 !important;

    white-space: normal !important;
    overflow: hidden !important;
  }
}

@media (max-width: 360px) {

  .smip-free-guess-layer {
    padding: 4px 3px 2px !important;
    gap: 1px !important;
  }

  .smip-free-guess-layer .smip-free-guess-values {
    gap: 2px !important;
  }

  .smip-free-guess-layer .smip-free-guess-values span {
    height: 18px !important;
    font-size: 8px !important;
  }

  .smip-free-guess-layer .smip-free-guess-label {
    margin-top: 2px !important;
    font-size: 7px !important;
  }
}

/* ===== END SMIP_GUESS_CARD_FINAL_V3 ===== */

/* ===== SMIP_GUESS_TOGGLE_FIX_V1 ===== */

/* Default: Guessing बंद */
.market-card > .smip-free-guess-layer {
  display: none !important;
}

/* फक्त tap केलेल्या cardवर Guessing उघडा */
.market-card.smip-guess-open > .smip-free-guess-layer {
  display: flex !important;
}

/* ===== END SMIP_GUESS_TOGGLE_FIX_V1 ===== */

/* ===== SMIP_CHART_PAGE_LOGO_FIX_V1 ===== */
body.jodi-page .smip-logo,
body.panna-page .smip-logo,
body.jodi-page img.smip-logo,
body.panna-page img.smip-logo {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}
/* ===== END SMIP_CHART_PAGE_LOGO_FIX_V1 ===== */











/* ===== SMIP_HEADER_REFERENCE_FINAL_V2 ===== */

/*
  JODI/PANEL = REFERENCE.
  Apply only to HOME + PANNA FAMILY.
  Nothing else on the site is changed.
*/

@media (max-width: 719px) {

  /* HOME + PANNA FAMILY: same brand layout as chart pages */
  body:not(.jodi-page):not(.panna-page) .site-header .top-brand,
  body.panna-page .site-header .top-brand {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 8px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  /* LOGO */
  body:not(.jodi-page):not(.panna-page) .site-header .smip-logo,
  body:not(.jodi-page):not(.panna-page) .site-header img.smip-logo,
  body.panna-page .site-header .smip-logo,
  body.panna-page .site-header img.smip-logo {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* BRAND TEXT AREA */
  body:not(.jodi-page):not(.panna-page) .site-header .brand-text,
  body.panna-page .site-header .brand-text {
    min-width: 0 !important;
    width: 100% !important;
    text-align: center !important;
    overflow: visible !important;
  }

  /* HOME STAR MATKA: stop animation/size changing */
  body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 21px !important;
    line-height: 1 !important;
    text-align: center !important;
    overflow: visible !important;
  }

  body:not(.jodi-page):not(.panna-page) .home-star-matka-one {
    position: static !important;
    display: block !important;
    width: 105px !important;
    margin: 0 auto !important;
    opacity: 1 !important;
    animation: none !important;
    white-space: normal !important;
    line-height: 1 !important;
  }

  body:not(.jodi-page):not(.panna-page) .home-star-matka-two {
    display: none !important;
    animation: none !important;
  }

  /* PANNA FAMILY STAR MATKA */
  body.panna-page .jodi-star-matka {
    display: block !important;
    width: 105px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 21px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  body.panna-page .jodi-star-matka-one {
    display: inline !important;
    white-space: normal !important;
  }

  /* INFORMATION PORTAL: fixed position/size */
  body:not(.jodi-page):not(.panna-page) .site-header .brand-text p,
  body.panna-page .site-header .brand-text p {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 1 !important;
    letter-spacing: .08em !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
}

/* ===== END SMIP_HEADER_REFERENCE_FINAL_V2 ===== */

/* ===== SMIP_LOGO_FULL_VISIBLE_FINAL_V1 ===== */

/* ONLY make the logo fully visible. Nothing else changes. */
.site-header,
.site-header .top-brand,
.site-header .brand,
.site-header .brand-mark,
.site-header .smip-logo-box {
  overflow: visible !important;
}

.site-header .smip-logo,
.site-header img.smip-logo {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  object-fit: contain !important;
  object-position: center !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  clip-path: none !important;
  overflow: visible !important;
}

/* ===== END SMIP_LOGO_FULL_VISIBLE_FINAL_V1 ===== */


/* ===== SMIP_HOME_RESULTS_DOWN_V1 ===== */
body:not(.jodi-page):not(.panna-page) .live-result-title {
  margin-top: 12px !important;
}
/* ===== END SMIP_HOME_RESULTS_DOWN_V1 ===== */

/* ===== SMIP_HOME_BRAND_DOWN_V1 ===== */
body:not(.jodi-page):not(.panna-page) .site-header .top-brand {
  transform: translateY(10px) !important;
}
/* ===== END SMIP_HOME_BRAND_DOWN_V1 ===== */

/* ===== SMIP_STAR_MATKA_ANIMATION_FINAL_V1 ===== */

/* HOME: copy JODI/PANEL STAR MATKA animation only */
body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 2.55em !important;
  margin: 0 !important;
  padding: .22em 0 .18em !important;
  box-sizing: border-box !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  letter-spacing: .01em !important;
  overflow: visible !important;
  transform: none !important;
}

body:not(.jodi-page):not(.panna-page) .home-star-matka-one,
body:not(.jodi-page):not(.panna-page) .home-star-matka-two {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  font: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  transform: none !important;
}

body:not(.jodi-page):not(.panna-page) .home-star-matka-one {
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  animation: jodiStarMatkaOne 2.4s ease-in-out infinite !important;
}

body:not(.jodi-page):not(.panna-page) .home-star-matka-two {
  line-height: 1.15 !important;
  animation: jodiStarMatkaTwo 2.4s ease-in-out infinite !important;
}


/* PANNA FAMILY: same JODI/PANEL STAR MATKA animation only */
body.panna-page .brand-text h1.jodi-star-matka {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 2.55em !important;
  margin: 0 !important;
  padding: .22em 0 .18em !important;
  box-sizing: border-box !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  letter-spacing: .01em !important;
  overflow: visible !important;
  transform: none !important;
}

body.panna-page .jodi-star-matka-one {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  animation: jodiStarMatkaOne 2.4s ease-in-out infinite !important;
}

body.panna-page .jodi-star-matka::after {
  content: "STAR\A MATKA";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  white-space: pre-line;
  text-align: center;
  font: inherit;
  color: inherit;
  line-height: 1.15;
  animation: jodiStarMatkaTwo 2.4s ease-in-out infinite;
}

/* ===== END SMIP_STAR_MATKA_ANIMATION_FINAL_V1 ===== */

/* ===== SMIP_HOME_STAR_MATKA_ANIM_ONLY_V1 ===== */

/* HOME ONLY - STAR MATKA animation */
body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka {
  position: relative !important;
  overflow: visible !important;
  animation: none !important;
}

body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka > .home-star-matka-one,
body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka > .home-star-matka-two {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font: inherit !important;
  color: inherit !important;
  transform: none !important;
}

body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka > .home-star-matka-one {
  flex-direction: row !important;
  white-space: nowrap !important;
  animation: homeStarMatkaOne 2.4s ease-in-out infinite !important;
}

body:not(.jodi-page):not(.panna-page) .site-header h1.home-star-matka > .home-star-matka-two {
  flex-direction: column !important;
  white-space: normal !important;
  line-height: 1.12 !important;
  animation: homeStarMatkaTwo 2.4s ease-in-out infinite !important;
}

/* ===== END SMIP_HOME_STAR_MATKA_ANIM_ONLY_V1 ===== */


/* ===== SMIP_HOME_STAR_NO_OVERLAP_V1 ===== */

@keyframes smipHomeOnlyHorizontal {
  0%, 49.9% { opacity: 1; visibility: visible; }
  50%, 99.9% { opacity: 0; visibility: hidden; }
  100% { opacity: 1; visibility: visible; }
}

@keyframes smipHomeOnlyStacked {
  0%, 49.9% { opacity: 0; visibility: hidden; }
  50%, 99.9% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

body:not(.jodi-page):not(.panna-page)
.site-header h1.home-star-matka > .home-star-matka-one {
  animation: smipHomeOnlyHorizontal 2.4s step-end infinite !important;
}

body:not(.jodi-page):not(.panna-page)
.site-header h1.home-star-matka > .home-star-matka-two {
  animation: smipHomeOnlyStacked 2.4s step-end infinite !important;
}

/* ===== END SMIP_HOME_STAR_NO_OVERLAP_V1 ===== */
