/* jodigrid — Matka Fun premium design 39. Manrope + IBM Plex Mono. White page, cream hero band. */
:root {
  --ink: #2E1235; --deep: #5B2266; --pur: #8A4296; --lil: #F6EEF8; --lil2: #EFE3F1; --cream: #FFFAF3;
  --line: #EADFEA; --muted: #6B5872; --org: #F57C1F; --yel: #FFC93C; --redc: #C62828;
  /* base.css variables for the shared chart pages */
  --muted: #6B5872; --soft: #F6EEF8; --head: #fff; --accent: #8A4296; --accent-ink: #fff; --red: #C62828; --today: #FFF1E3;
  --amber-dk: #F57C1F; --on-amber: #2E1235; --page: #fff;
  --fb: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --fm: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; --fw: "Manrope", system-ui, sans-serif;
}
html { scroll-padding-top: 76px; }
body { background: #fff; color: var(--ink); font-family: var(--fb); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.jg-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--pur); outline-offset: 3px; border-radius: 8px; }

/* ---------- top bar ---------- */
.jg-top { position: sticky; top: 0; z-index: 30; background: rgba(255,250,243,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jg-top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.jg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; color: var(--deep); letter-spacing: -.01em; }
.jg-brand img { border-radius: 50%; }
.jg-nav { display: flex; align-items: center; gap: 4px; }
.jg-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 999px; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.jg-nav a:hover { background: var(--lil); }
.jg-nav .jg-pill-btn { background: var(--pur); color: #fff; font-weight: 700; padding-inline: 18px; margin-left: 6px; }
.jg-nav .jg-pill-btn:hover { background: var(--deep); }
@media (max-width: 560px) { .jg-hide-s { display: none !important; } }

/* ---------- hero ---------- */
.jg-hero { background: var(--cream); border-bottom: 1px solid var(--line); overflow: hidden; }
.jg-hero-in { display: grid; gap: 26px; padding: 30px 0 34px; align-items: center; }
.jg-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; color: var(--deep); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 12px; }
.jg-live { width: 9px; height: 9px; border-radius: 50%; background: var(--org); box-shadow: 0 0 0 0 rgba(245,124,31,.5); animation: jgpulse 2s infinite; }
@keyframes jgpulse { 70% { box-shadow: 0 0 0 8px rgba(245,124,31,0); } 100% { box-shadow: 0 0 0 0 rgba(245,124,31,0); } }
.jg-hero h1 { margin: 16px 0 12px; font-weight: 800; font-size: clamp(2.1rem, 8.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; color: var(--deep); }
.jg-hero h1 em { font-style: normal; color: var(--pur); }
.jg-slogan { font-weight: 700; color: var(--pur); font-size: 1.02rem; line-height: 1.4; max-width: 30em; }
.jg-lead { margin-top: 8px; color: var(--muted); max-width: 32em; }
.jg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.jg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--pur); transition: background .2s, color .2s, transform .2s; }
.jg-btn .ic { width: 1.2em; height: 1.2em; }
.jg-btn-fill { background: var(--pur); color: #fff; }
.jg-btn-fill:hover { background: var(--deep); border-color: var(--deep); transform: translateY(-1px); }
.jg-btn-line { background: #fff; color: var(--deep); border-color: var(--deep); }
.jg-btn-line:hover { background: var(--lil); }
.jg-meta { font-size: .88rem; color: var(--muted); font-weight: 500; }
.ios-note { background: #FDECEA; color: #7A1C14; }

.jg-art-wrap { position: relative; max-width: 470px; width: 100%; margin-inline: auto; }
.jg-art { display: block; width: 100%; height: auto; overflow: visible; }
.jg-chip { position: absolute; right: 2%; bottom: 3%; display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px 8px 12px; font-size: .78rem; font-weight: 700; box-shadow: 0 8px 22px rgba(46,18,53,.22); }
.jg-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--yel); }
.jg-chip span { opacity: .75; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.jg-chip b { font: 700 .98rem var(--fm); letter-spacing: .01em; }
.jg-cell { transform-box: fill-box; transform-origin: center; animation: jgpop .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i) * 45ms + .15s); }
@keyframes jgpop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
.jg-fl { transform-box: fill-box; transform-origin: center; animation: jgfloat 6s ease-in-out infinite; }
.jg-fl2 { animation-duration: 7.5s; animation-delay: -2s; } .jg-fl3 { animation-duration: 5s; animation-delay: -1s; }
@keyframes jgfloat { 50% { transform: translateY(-7px) rotate(4deg); } }
.jg-dot { animation: jgblink 1.6s infinite; } @keyframes jgblink { 50% { opacity: .3; } }
.jg-sun { opacity: .95; }

/* ---------- sections ---------- */
.jg-sec { padding: 40px 0 8px; }
.jg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.jg-head h2 { font-size: clamp(1.55rem, 5.5vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; color: var(--deep); line-height: 1.15; }
.jg-head p { color: var(--muted); font-weight: 600; font-size: .92rem; }
.jg-grid { display: grid; gap: 16px; }

/* ---------- result card ---------- */
.jg-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 1px 2px rgba(46,18,53,.05), 0 10px 26px -14px rgba(91,34,102,.22); display: flex; flex-direction: column; gap: 14px; transition: transform .2s, box-shadow .2s; }
.jg-card:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(46,18,53,.05), 0 16px 32px -14px rgba(91,34,102,.3); }
.jg-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jg-card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.jg-time { margin-top: 3px; color: var(--muted); font-weight: 600; font-size: .84rem; }
.jg-st { flex: none; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--lil); color: var(--deep); white-space: nowrap; }
.jg-card[data-state="closed"] .jg-st { background: var(--deep); color: #fff; }
.jg-card[data-state="open"] .jg-st { background: #fff; color: #C2410C; box-shadow: inset 0 0 0 1.5px var(--org); }
.jg-card[data-state="holiday"] .jg-st { background: #EEF0F5; color: #55607A; }
.jg-res { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; background: var(--lil); border-radius: 16px; padding: 12px 10px 11px; font-family: var(--fm); font-variant-numeric: tabular-nums; }
.jg-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.jg-lab { font: 700 .62rem var(--fb); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.jg-pn { font-weight: 600; font-size: 1.32rem; letter-spacing: .04em; color: var(--ink); }
.jg-jodi { background: #fff; border-radius: 12px; padding: 5px 18px 4px; box-shadow: 0 1px 0 var(--lil2), inset 0 0 0 1.5px var(--lil2); }
.jg-jodi b { font-weight: 700; font-size: 2.55rem; line-height: 1.05; color: var(--deep); letter-spacing: .02em; }
.jg-res.is-red .jg-jodi b { color: var(--redc); }
.jg-card[data-state="waiting"] .jg-res b, .jg-card[data-state="waiting"] .jg-pn, .jg-card[data-state="holiday"] .jg-res b, .jg-card[data-state="holiday"] .jg-pn { color: #B9A9BF; }
.jg-card[data-state="open"] .jg-pn[data-c] { color: #B9A9BF; }
.jg-trail { display: flex; flex-direction: column; gap: 7px; }
.jg-cap { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jg-trail ul { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.jg-trail li { text-align: center; font: 600 .86rem var(--fm); padding: 6px 0; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--deep); font-variant-numeric: tabular-nums; }
.jg-trail li:last-child:not(.na) { background: var(--lil2); border-color: var(--lil2); }
.jg-trail li.red { color: var(--redc); background: #FDF1F0; border-color: #F6D6D3; }
.jg-trail li.na { grid-column: 1 / -1; background: var(--lil); border-color: transparent; color: var(--muted); font: 600 .82rem var(--fb); }
.jg-act { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; margin-top: auto; }
.jg-go { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: .94rem; transition: background .2s, color .2s; }
.jg-go .ic { width: 1.05em; height: 1.05em; transition: transform .2s; }
.jg-go:hover .ic { transform: translateX(3px); }
.jg-go1 { background: var(--pur); color: #fff; }
.jg-go1:hover { background: var(--deep); }
.jg-go2 { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 2px var(--lil2); }
.jg-go2:hover { background: var(--lil); }
.flash { animation: none; }
.jg-res .flash, [data-j].flash { animation: jgin .5s both; }
@keyframes jgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Starline / Jackpot ---------- */
.jg-slots .jg-wrap { background: var(--lil); border-radius: 28px; padding: 26px 18px 18px; width: min(1160px, 100% - 32px); }
.jg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.jg-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.jg-tile span { font-size: .76rem; font-weight: 700; color: var(--muted); }
.jg-tile b { font: 700 1.2rem var(--fm); color: #B9A9BF; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.jg-tile.has b { color: var(--deep); } .jg-tile.has { border-color: var(--lil2); box-shadow: inset 3px 0 0 var(--pur); }
.jg-tile.red b { color: var(--redc); }
.jg-more { margin-top: 14px; }
.jg-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--deep); text-decoration: none; min-height: 44px; }
.jg-more a:hover { color: var(--pur); } .jg-more .ic { width: 1.05em; }

/* ---------- download ---------- */
.jg-dl { display: grid; gap: 24px; border: 1px solid var(--line); border-radius: 28px; padding: 26px 20px; background: var(--cream); }
.jg-dl h2 { font-size: clamp(1.55rem, 5.5vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; color: var(--deep); line-height: 1.15; }
.jg-dl-copy > p { margin: 8px 0 18px; color: var(--muted); font-weight: 500; }
.jg-steps { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.jg-steps li { display: flex; gap: 14px; align-items: flex-start; }
.jg-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 12px; background: var(--deep); color: #fff; display: grid; place-items: center; font: 700 .95rem var(--fm); }
.jg-steps b { font-weight: 800; } .jg-steps p { color: var(--muted); font-size: .94rem; }
.jg-qr { display: none; text-align: center; }
.jg-qr #qr { width: 176px; margin: 0 auto 10px; background: #fff; padding: 14px; border-radius: 20px; border: 1px solid var(--line); }
.jg-qr p { font-size: .84rem; font-weight: 600; color: var(--muted); }

/* ---------- faq ---------- */
.jg-faq { padding-bottom: 48px; }
.jg-faq-list { display: grid; gap: 10px; max-width: 820px; }
.jg-faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.jg-faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 700; position: relative; min-height: 52px; }
.jg-faq summary::-webkit-details-marker { display: none; }
.jg-faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--pur); border-bottom: 2.5px solid var(--pur); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.jg-faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.jg-faq details[open] { background: var(--lil); border-color: var(--lil2); }
.jg-faq details p { padding: 0 18px 18px; color: var(--muted); }

/* ---------- footer ---------- */
.jg-foot { border-top: 1px solid var(--line); background: var(--cream); margin-top: 24px; }
.jg-foot-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 26px 0 32px; }
.jg-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.jg-foot nav a { text-decoration: none; font-weight: 600; color: var(--muted); font-size: .94rem; min-height: 44px; display: inline-flex; align-items: center; }
.jg-foot nav a:hover { color: var(--deep); }

/* ---------- shared chart pages ---------- */
.chart-page .page { padding-top: 30px; padding-bottom: 20px; }
.page .crumbs a { color: var(--pur); }
.page h1 { font-family: var(--fb); font-weight: 800; letter-spacing: -.03em; color: var(--deep); }
.page .lead { color: var(--muted); }
.today-strip { background: var(--lil); border-color: var(--lil2); border-radius: 18px; padding: 12px 16px; }
.today-strip b { color: var(--deep); }
.btn, .btn-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--pur); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--deep); }
.tabs a { border-radius: 10px 10px 0 0; } .tabs a[aria-selected="true"] { color: var(--deep); }
.tbl-wrap { border-radius: 18px; border-color: var(--line); }
table.chart thead th { background: #fff; }
table.chart td.today { box-shadow: inset 0 0 0 2px var(--org); }
.chip { border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; font-family: var(--fb); }
.chip:hover { border-color: var(--pur); color: var(--deep); }
.page .sec h2 { font-family: var(--fb); font-weight: 800; letter-spacing: -.02em; color: var(--deep); }
.chart-page .jg-foot { margin-top: 40px; }

/* ---------- widths ---------- */
@media (min-width: 640px) {
  .jg-grid { grid-template-columns: repeat(2, 1fr); }
  .jg-dl { padding: 34px; }
}
@media (min-width: 900px) {
  .jg-hero-in { grid-template-columns: 1.02fr .98fr; gap: 40px; padding: 64px 0 70px; }
  .jg-hero h1 { font-size: clamp(3rem, 4.6vw, 4.2rem); }
  .jg-sec { padding-top: 64px; }
  .jg-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .jg-slots .jg-wrap { padding: 36px 34px 26px; }
  .jg-dl { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 46px 54px; gap: 50px; }
  .jg-qr { display: block; }
}
@media (max-width: 380px) {
  .jg-card { padding: 16px 14px 14px; } .jg-jodi b { font-size: 2.25rem; } .jg-pn { font-size: 1.15rem; }
  .jg-btn { padding: 0 18px; } .jg-trail li { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .jg-live, .jg-fl, .jg-dot, .jg-cell { animation: none !important; } .jg-card:hover { transform: none; } }
/* review fix 20 Nov: DM Mono / Red Hat Mono draw a SLASHED zero (jodi "00" read as ØØ) -> IBM Plex Mono */
