:root {
  --frame: #ff2f92;
  --page: #ead7b3;
  --card: #f4e7cd;
  --yellow: #ffd400;
  --datebg: #f8efdd;
  --row: #ffe3c4;
  --red: #e00000;
  --ink: #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: #1d1dc4; }

.frame {
  max-width: 1180px;
  margin: 16px auto;
  border: 3px solid var(--frame);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 6px 24px rgba(90, 0, 60, 0.12);
  overflow: hidden;
}

header.brand {
  padding: 24px 12px 14px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -40%, rgba(255, 216, 112, 0.35), rgba(255, 216, 112, 0) 62%),
    linear-gradient(160deg, #3b0021 0%, #7a0044 48%, #3b0021 100%);
  border-bottom: 3px solid #e5b84c;
}

.logowrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
}

.deco {
  color: #efc65c;
  font-size: clamp(12px, 2.2vw, 20px);
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 216, 112, 0.7);
}

.logo {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 6.4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #ffd76b;
  background: linear-gradient(180deg, #fff8d8 0%, #ffdf8a 42%, #d79f22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(40, 0, 20, 0.55)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.tagline {
  margin: 16px auto 0;
  max-width: 94%;
  background: linear-gradient(180deg, #ffe9a8 0%, #e9bb54 100%);
  color: #4a0026;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-top: 1px solid rgba(60, 20, 0, 0.35);
  border-bottom: 1px solid rgba(60, 20, 0, 0.35);
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.wrap { padding: 14px; }

.welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--row);
  border: 1px solid #ff4d4d;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.welcomeimg {
  width: 86px;
  height: 64px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  background: #4b0d2a;
  aspect-ratio: 4 / 3;
  content-visibility: auto;
}
.welcometext {
  flex: 1;
  text-align: center;
  padding-right: 98px;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(13px, 2.4vw, 17px);
  color: var(--ink);
  letter-spacing: 0.3px;
}

.todaybar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fbf3e1;
  border: 1px solid #ddc49c;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #6b3b1f;
  margin-bottom: 14px;
}
.live { color: #0a7d2e; letter-spacing: 0.5px; }

.market-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.market {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--row);
  border: 1px solid #ff4d4d;
  border-radius: 8px;
  padding: 14px;
  min-height: 96px;
}
.market.featured { background: #ffff00; border-color: #e0c000; }

.minfo { flex: 1; text-align: center; min-width: 0; }
.mname {
  display: inline-block;
  font-size: clamp(17px, 3.4vw, 24px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #1d1dc4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mname:hover { text-decoration: underline; }
.mresult {
  color: var(--red);
  font-weight: 700;
  font-size: clamp(17px, 3vw, 23px);
  letter-spacing: 2px;
  margin-top: 3px;
}
.mresult.holiday { color: #8a4b00; font-size: clamp(14px, 2.4vw, 17px); letter-spacing: 0.5px; }
.mresult.waiting { color: #777; font-weight: 400; font-size: 14px; letter-spacing: 0.3px; }
.mresult.last { color: #7a2b2b; opacity: 0.82; font-size: clamp(15px, 2.5vw, 20px); }
.mresult.soon { color: #b45309; }
.mresult .hiddenjodi {
  color: #b45309;
  background: #fef3c7;
  border: 1px dashed #d97706;
  border-radius: 4px;
  padding: 0 5px;
  letter-spacing: 1px;
}
.mstatus { color: #6b4a1f; font-size: 12px; font-weight: 700; margin-top: 2px; letter-spacing: 0.2px; }
.mstatus.comingsoon {
  color: #b45309;
  animation: pulseline 1.8s ease-in-out infinite;
}
@keyframes pulseline {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .mstatus.comingsoon { animation: none; }
}
.mtime { color: #222; font-size: 13px; margin-top: 3px; }

.mtag {
  display: inline-block;
  margin-left: 6px;
  background: #3b0021;
  color: #ffd76b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.pill {
  flex: 0 0 auto;
  min-width: 66px;
  text-align: center;
  background: linear-gradient(180deg, #5b4bd6, #3b2fae);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 13px;
  text-decoration: none;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.28);
  user-select: none;
}
.pill:hover { filter: brightness(1.1); }
.pill:active { transform: translateY(1px); }

.emptybox {
  background: #fbf3e1;
  border: 1px dashed #d8a5c0;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  color: #666;
}
.emptybox h2 { margin: 0 0 8px; color: #8a1d5a; }

.chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.btn-bottom {
  display: inline-block;
  background: linear-gradient(180deg, #ff8a3d, #e85d00);
  border: 2px solid #a63f00;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 11px 28px;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 0 #a63f00, 0 8px 14px rgba(0, 0, 0, 0.25);
}
.btn-bottom:active { transform: translateY(3px); box-shadow: 0 1px 0 #a63f00; }

.tablewrap {
  overflow-x: auto;
  border: 2px solid #555;
  border-radius: 6px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table.chart { border-collapse: collapse; width: 100%; min-width: 780px; table-layout: fixed; }
table.chart th, table.chart td { border: 1px solid #6f9ed6; padding: 6px 3px; text-align: center; }

tr.chart-title th {
  background: linear-gradient(180deg, #14356f, #0b2247);
  color: #fff;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 12px 6px;
  border-color: #0b2247;
}

thead tr.days th,
tr.days th {
  background: var(--yellow);
  color: #000;
  font-size: clamp(17px, 2.8vw, 22px);
  font-weight: 700;
  padding: 12px 0;
  border-color: #c9a400;
}

th.datecol, td.datecol {
  background: #fffcef;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  width: 132px;
  color: #000;
}
td.datecol span { display: block; font-weight: 700; color: #333; font-size: 12px; }

tbody tr:nth-child(odd) td:not(.datecol) { background: #fff; }
tbody tr:nth-child(even) td:not(.datecol) { background: #fffdf6; }

table.chart tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
}

.pcell { display: flex; align-items: center; justify-content: space-evenly; gap: 7px; }
.panna {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-weight: 700;
  font-size: 14px;
  color: #000;
}
.jodinum { color: var(--red); font-weight: 700; font-size: 23px; min-width: 38px; }
.jodinum.bk { color: #000; }
.holi { color: #666; font-weight: 700; font-size: 14px; line-height: 1.3; }
.empty { color: #bbb; }

.jodi-table { min-width: 640px; }
.jodi-table th, .jodi-table td { padding: 10px 2px; text-align: center; }
.jodi-table td { font-size: 18px; font-weight: 700; }
.jodinum2 { color: var(--red); font-weight: 700; font-size: 19px; }
.jodiblack { color: #000; font-weight: 700; font-size: 19px; }
.jodi-table .holi { font-size: 17px; }

.switchlinks { text-align: center; margin: 12px 0 2px; font-size: 13px; font-weight: 700; }

.chartnote {
  margin: 14px 0 0;
  background: #fdf6e6;
  border: 1px solid #e3cfae;
  border-radius: 8px;
  padding: 13px 16px;
}
.chartnote h2 {
  margin: 0 0 7px;
  font-size: 15px;
  color: #7a0044;
  text-transform: capitalize;
}
.chartnote p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #3a2b1e;
}
.chartnote p:last-child { margin-bottom: 0; }
.chartnote a { color: #a0136f; font-weight: 700; }
.chartnote .mono { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 12px; }

.bottomlink { text-align: center; margin: 14px 0 4px; }
.bottomlink a {
  display: inline-block;
  background: #fbf3e1;
  border: 2px solid #333;
  border-radius: 999px;
  padding: 7px 22px;
  font-weight: 700;
  font-size: 13px;
  color: #222;
  text-decoration: none;
}

.latest-list { display: grid; gap: 10px; margin-top: 14px; }
.latest-row { min-height: 84px; padding: 12px; }
.latest-row .mname { font-size: clamp(15px, 2.8vw, 20px); }
.latest-row .mresult { font-size: clamp(15px, 2.6vw, 20px); }

.foot {
  border-top: 2px solid #ffd1e6;
  background: #f1e3c8;
  padding: 12px 14px;
  text-align: center;
  font-size: 12px;
  color: #6a4a35;
}
.foot p { margin: 4px 0; }
.footlinks a { color: #a0136f; font-weight: 700; text-decoration: none; }
.footcopy { margin-top: 10px !important; }

.seobox {
  background: #fbe9d2;
  border: 1px solid #e0b98c;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.85;
  color: #8a2b1a;
  text-align: justify;
  margin-bottom: 10px;
}

.faqbox {
  background: #fdf6e6;
  border: 1px solid #e3cfae;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 14px 0 10px;
  text-align: left;
}
.faqbox h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #7a0044;
  text-align: center;
}
.faqitem { margin-bottom: 11px; }
.faqitem:last-child { margin-bottom: 0; }
.faqitem h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #8a1d5a;
  line-height: 1.45;
}
.faqitem p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #3a2b1e;
}

.disclaimerbox {
  background: #fbe9d2;
  border: 1px solid #e0b98c;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #8a2b1a;
}
.disclaimerbox .dhead {
  text-align: center;
  font-weight: 700;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.disclaimerbox p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.75;
  text-align: justify;
}

/* legal / content pages */
.legalpage {
  max-width: 880px;
  background: #fffaf0;
  border: 1px solid #e0c9a8;
  border-radius: 10px;
  padding: 20px 22px;
  color: #2a2118;
}
.legalhead {
  margin: 0 0 4px;
  font-size: 25px;
  color: #7a0044;
  letter-spacing: -0.01em;
}
.legalmeta { margin: 0 0 16px; font-size: 12px; color: #8a6a4a; font-weight: 700; }
.legalpage h2 { margin: 20px 0 7px; font-size: 16px; color: #8a1d5a; }
.legalpage p, .legalpage li { font-size: 14px; line-height: 1.75; margin: 0 0 10px; }
.legalpage ul { margin: 0 0 12px; padding-left: 20px; }
.legalpage a { color: #a0136f; font-weight: 700; }
.legalbtn {
  display: inline-block;
  background: linear-gradient(180deg, #1db954, #0d8a3c);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}
.legalback { margin-top: 22px !important; font-size: 13px !important; }

.floaters {
  position: fixed;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50;
}
.floatbtn {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.floatbtn.purple { background: linear-gradient(180deg, #7b1fa2, #4a0d66); }
.floatbtn.green { background: linear-gradient(180deg, #1db954, #0d8a3c); }
.floatbtn.home { background: linear-gradient(180deg, #ff6a3d, #cf3d0d); }
.floatbtn:active { transform: translateY(1px); }

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .frame { margin: 8px auto; border-width: 2px; border-radius: 10px; }
  .wrap { padding: 10px; }
  header.brand { padding: 16px 8px 10px; }
  .tagline { margin-top: 10px; padding: 6px 8px; letter-spacing: 0.8px; }

  .welcome { padding: 7px 9px; gap: 9px; }
  .welcomeimg { width: 64px; height: 48px; }
  .welcometext { font-size: 12.5px; text-align: center; padding-right: 73px; }

  .todaybar { font-size: 12px; padding: 8px 10px; margin-bottom: 10px; }

  .market { padding: 10px 7px; gap: 5px; min-height: 84px; border-radius: 7px; }
  .market-list, .latest-list { gap: 8px; }
  .pill { min-width: 48px; padding: 7px 8px; font-size: 11.5px; border-width: 1.5px; }
  .mname { font-size: 16px; }
  .mresult { font-size: 16px; letter-spacing: 1.2px; }
  .mresult.last { font-size: 15px; }
  .mstatus { font-size: 10.5px; }
  .mtime { font-size: 11px; }
  .mtag { font-size: 9px; padding: 1px 5px; margin-left: 4px; }
  .latest-row { min-height: 68px; padding: 9px 7px; }
  .latest-row .mname { font-size: 14px; }
  .latest-row .mresult { font-size: 15px; }

  /* charts fit the screen instead of forcing a wide scroll */
  .tablewrap { border-width: 2px; }
  table.chart { min-width: 0; width: 100%; table-layout: fixed; }
  table.chart th, table.chart td { padding: 4px 1px; border-width: 1px; }
  tr.chart-title th { font-size: 15px; padding: 9px 4px; letter-spacing: 0.3px; }
  thead tr.days th,
  tr.days th { font-size: 12.5px; padding: 8px 0; }

  th.datecol, td.datecol { width: 58px; font-size: 9.5px; line-height: 1.3; padding: 4px 0; }
  td.datecol span { font-size: 8.5px; }

  .pcell { gap: 3px; padding: 1px 0; }
  .panna { font-size: 10.5px; line-height: 1.12; letter-spacing: 0.2px; padding: 0 1px; }
  .jodinum { font-size: 15px; min-width: 20px; letter-spacing: 0.3px; }
  .holi { font-size: 9.5px; line-height: 1.1; }
  .empty { font-size: 11px; }

  .jodi-table { min-width: 0; }
  .jodi-table th, .jodi-table td { padding: 7px 1px; }
  .jodi-table td, .jodinum2, .jodiblack { font-size: 13px; }
  .jodinum2, .jodiblack { font-size: 14px; }
  .jodi-table .holi { font-size: 12px; }

  .btn-bottom { font-size: 14px; padding: 9px 20px; border-radius: 6px; }
  .chart-head { margin-bottom: 8px; }
  .switchlinks { font-size: 12px; margin: 10px 0 2px; }
  .bottomlink a { font-size: 12px; padding: 6px 18px; }

  .foot { padding: 10px; font-size: 11px; }
  .seobox { font-size: 11px; line-height: 1.7; padding: 8px 10px; text-align: left; }
  .faqbox { padding: 11px 12px; }
  .faqbox h2 { font-size: 14px; }
  .faqitem h3 { font-size: 12px; }
  .faqitem p { font-size: 11.5px; line-height: 1.6; }
  .disclaimerbox { padding: 9px 11px; }
  .disclaimerbox .dhead { font-size: 13px; }
  .disclaimerbox p { font-size: 10.5px; line-height: 1.65; text-align: left; }
  .footlinks { line-height: 1.9; }

  .legalpage { padding: 14px 13px; border-radius: 8px; }
  .legalhead { font-size: 20px; }
  .legalpage h2 { font-size: 14.5px; margin: 16px 0 6px; }
  .legalpage p, .legalpage li { font-size: 13px; line-height: 1.65; }

  .chartnote { padding: 10px 11px; }
  .chartnote h2 { font-size: 13px; }
  .chartnote p { font-size: 11.5px; line-height: 1.6; }

  .floaters { right: 8px; bottom: 8px; gap: 6px; }
  .floatbtn { font-size: 10.5px; padding: 8px 12px; border-width: 1.5px; }
}

@media (max-width: 420px) {
  .wrap { padding: 8px; }
  .logo { font-size: 25px; }
  .deco { font-size: 11px; }
  .tagline { font-size: 10px; letter-spacing: 0.5px; }
  .welcomeimg { width: 54px; height: 41px; }
  .welcometext { font-size: 11.5px; padding-right: 63px; }
  .market { min-height: 76px; padding: 9px 5px; }
  .pill { min-width: 42px; padding: 6px 6px; font-size: 10.5px; }
  .mname { font-size: 14px; }
  .mresult { font-size: 14px; letter-spacing: 1px; }
  .mresult.last { font-size: 13px; }
  .mstatus { font-size: 9.5px; }
  .panna { font-size: 10px; line-height: 1.1; }
  .jodinum { font-size: 14px; min-width: 18px; }
  th.datecol, td.datecol { width: 52px; font-size: 9px; }
  td.datecol span { font-size: 8px; }
  thead tr.days th, tr.days th { font-size: 11px; }
  .jodi-table td { font-size: 12px; }
  .jodinum2, .jodiblack { font-size: 12.5px; }
  .footlinks { font-size: 10.5px; }
}
