/* Durga Online landing — design "simha": "Gold Night", the app's login screen as a website.
   Deep violet-black page, raised violet surfaces, gold accents and thin gold rings around the logo; temple-arch
   tops on the live panel, Starline slots and QR plate; shield-bottomed Jackpot tiles. Flat colours only (no
   gradients, no glass). Yatra One = the name and display headings (Latin); Mukta = body and ALL Devanagari
   (lang="hi": never tracked, uppercased or slanted). Contrast: white 16.8, #CFC3E6 10.1, #A99CC4 6.6, gold 9.7,
   red #FF8A8A 7.4 on #22163D; ink #241238 on gold 10.0. Motion uses transform/opacity; base.css stops all of it
   for prefers-reduced-motion and every element is visible without JS. */
:root {
  color-scheme: dark;
  --bg: #170E2B; --s1: #22163D; --s2: #1F1538; --s3: #2C1E4E; --st: #5A4A80; --st2: #3A2C5C;
  --gold: #E2C268; --gold-dk: #C9A94F; --gold-lt: #F3DE8A; --pu: #5F3090; --pu-dk: #3E1D63;
  --tx: #FFFFFF; --mu: #CFC3E6; --hi: #A99CC4; --gink: #241238; --rd: #FF8A8A;
  /* base.css variables (shared chart pages) */
  --amber: #E2C268; --amber-dk: #E2C268; --amber-lt: #F3DE8A; --on-amber: #241238; --page: #170E2B;
  --ink: #FFFFFF; --muted: #CFC3E6; --line: #3A2C5C; --soft: #1F1538; --head: #2C1E4E; --accent: #E2C268;
  --accent-ink: #241238; --red: #FF8A8A; --today: #3E1D63;
  --fb: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fm: "Mukta", ui-monospace, "SF Mono", Menlo, monospace;
  --fw: "Yatra One", "Mukta", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--tx); font: 400 16px/1.6 var(--fb); overflow-x: clip; }
a { color: var(--gold); }
/* Devanagari: Mukta, natural spacing, upright, never uppercased. */
:lang(hi) { font-family: "Mukta", system-ui, sans-serif; letter-spacing: 0 !important; text-transform: none !important; font-style: normal !important; }
.sm-slogan { font-family: "Mukta", system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-style: normal; }
.tnum, .sm-res, .sm-lp-res, .sm-next-cd, .sm-tt, .sm-tk-r, .sm-clock { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; font: 700 1rem/1.2 var(--fb); border-radius: 12px; padding: 12px 22px; border: 0; cursor: pointer; text-align: center; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .95rem; border-radius: 10px; }
.btn.big { min-height: 56px; padding: 14px 26px; font-size: 1.06rem; }
.sm-btn-gold { background: var(--gold); color: var(--gink); }
.sm-btn-gold:hover { background: var(--gold-lt); }
.sm-btn-gold:active { background: var(--gold-dk); }
.sm-btn-line { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.sm-btn-line:hover { background: var(--s3); }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold-lt); outline-offset: 3px; }
.skip { background: var(--gold); color: var(--gink); font-weight: 700; }
.ios-note { background: var(--pu-dk); color: var(--tx); border: 1px solid var(--st); }
.flash { animation: smflash 1.6s; }
@keyframes smflash { 0% { background: #5F4A2A; } 100% { background: transparent; } }

/* Live pill: a gold dot that pings */
.sm-live { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font: 700 .76rem/1 var(--fb); letter-spacing: .14em; text-transform: uppercase; flex: none; }
.sm-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.sm-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: smping 1.8s var(--ease) infinite; }
@keyframes smping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }

/* State chips (cards carry data-state; the hero chip carries its own) */
.sm-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font: 700 .78rem/1.2 var(--fb); white-space: nowrap; border: 1px solid transparent; }
[data-state="closed"] .sm-chip, .sm-chip[data-state="closed"] { background: var(--gold); color: var(--gink); }
[data-state="open"] .sm-chip, .sm-chip[data-state="open"] { background: var(--pu); color: var(--tx); border-color: #8D6BC0; }
[data-state="waiting"] .sm-chip, .sm-chip[data-state="waiting"] { background: transparent; color: var(--mu); border-color: var(--st); }
[data-state="holiday"] .sm-chip, .sm-chip[data-state="holiday"] { background: var(--st2); color: var(--mu); }

/* Gold rule with a centre diamond */
.sm-rule { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px auto 8px; width: 150px; }
.sm-rule i { flex: 1; height: 1px; background: var(--gold-dk); }
.sm-rule svg { width: 10px; height: 10px; fill: var(--gold); flex: none; }
.sm-rule.wide { width: auto; margin: 22px 0; }

/* ---------- top bar ---------- */
.sm-top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--st2); }
.sm-top-in { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.sm-brand { display: flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none; min-width: 0; min-height: 44px; }
.sm-brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); flex: none; }
.sm-brand span { display: flex; flex-direction: column; min-width: 0; }
.sm-brand b { font: 400 1.35rem/1.15 var(--fw); color: var(--gold); white-space: nowrap; }
.sm-brand .sm-slogan { font: 600 .8rem/1.5 "Mukta", sans-serif; color: var(--mu); white-space: nowrap; }
.sm-nav { display: flex; gap: 2px; margin-left: auto; }
.sm-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx); text-decoration: none; font: 600 1rem var(--fb); padding: 0 14px; border-radius: 10px; position: relative; }
.sm-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.sm-nav a:hover { color: var(--gold); }
.sm-nav a:hover::after { transform: scaleX(1); }
.sm-top .btn { flex: none; }

/* ---------- latest-results ribbon ---------- */
.sm-tick { display: flex; align-items: stretch; background: var(--s2); border-bottom: 1px solid var(--st2); overflow: hidden; }
.sm-tick-k { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 max(16px, calc((100% - 1140px) / 2)); background: var(--s1); border-right: 1px solid var(--st2); flex: none; position: relative; z-index: 1; }
.sm-tick-l { font: 700 .8rem var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--mu); }
.sm-tick-in { flex: 1; min-width: 0; overflow: hidden; }
.sm-tick-track { list-style: none; display: flex; width: max-content; }
.sm-tick-track li { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-right: 1px solid var(--st2); white-space: nowrap; font-size: .9rem; }
.sm-tick-track li b { font-weight: 600; color: var(--tx); }
.sm-tk-r { font: 700 1rem var(--fb); color: var(--gold-lt); letter-spacing: .04em; }
.sm-tk-b { font: 700 .66rem/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; color: var(--mu); box-shadow: inset 0 0 0 1px var(--st); }
.sm-tk-b.cl { background: var(--gold); color: var(--gink); box-shadow: none; }
.sm-tk-b.op { background: var(--pu); color: var(--tx); box-shadow: none; }
.sm-tick-track li.new { animation: smnew 1.4s var(--ease); }
@keyframes smnew { from { background: var(--pu-dk); } }
@media (prefers-reduced-motion: no-preference) {
  .sm-tick.run .sm-tick-track { animation: smtick var(--dur, 50s) linear infinite; }
  .sm-tick.run:hover .sm-tick-track, .sm-tick.run:focus-within .sm-tick-track { animation-play-state: paused; }
}
@keyframes smtick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sm-tick-in { overflow-x: auto; scrollbar-width: none; } }

/* ---------- hero ---------- */
.sm-hero { position: relative; overflow: hidden; overflow: clip; padding: 34px 0 56px; }
.sm-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.sm-hero-c { position: relative; text-align: center; min-width: 0; }
.sm-mark { position: relative; width: 232px; height: 232px; margin: 24px auto 26px; }
.sm-rings { position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; max-width: none; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.sm-rings circle { fill: none; stroke: var(--gold); }
.sm-rings .r4 { stroke-opacity: .12; stroke-width: 1.2; }
.sm-rings .r3 { stroke-opacity: .2; stroke-width: 1.2; }
.sm-rings .r2 { stroke-opacity: .42; stroke-width: 1.5; stroke-dasharray: 2 9; }
.sm-rings .jw { fill: var(--gold); fill-opacity: .7; }
.sm-rings .spin { transform-origin: 300px 300px; }
@media (prefers-reduced-motion: no-preference) { .sm-rings .spin { animation: smspin 140s linear infinite; } }
@keyframes smspin { to { transform: rotate(360deg); } }
.sm-logo-w { position: relative; z-index: 1; display: block; width: 232px; height: 232px; border-radius: 50%; padding: 7px; background: var(--bg); border: 2px solid var(--gold); }
.sm-logo { width: 100%; height: 100%; border-radius: 50%; }
.sm-date { position: relative; display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 12px; color: var(--mu); font-size: .95rem; margin-bottom: 4px; }
.sm-hero h1 { position: relative; font-weight: 400; }
.sm-word { display: block; font: 400 clamp(2.6rem, 8.5vw, 4.2rem)/1.15 var(--fw); color: var(--gold); }
.sm-h1s { display: block; margin-top: 4px; font: 600 .86rem/1.4 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.sm-slogan-hero { position: relative; margin-top: 12px; font: 700 1.4rem/1.6 "Mukta", sans-serif; color: var(--gold-lt); }
.sm-lede { position: relative; margin: 10px auto 0; max-width: 32em; color: var(--mu); }
.sm-cta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.sm-meta { position: relative; margin-top: 12px; color: var(--hi); font-size: .9rem; }
.sm-hero .ios-note { position: relative; max-width: 30em; margin-inline: auto; }

/* Live panel: a temple-arch frame */
.sm-panel { position: relative; z-index: 1; background: var(--s1); border: 1px solid var(--st); border-radius: 50% 50% 20px 20px / 76px 76px 20px 20px; outline: 1px solid #6B5A3A; outline-offset: -9px; padding: 52px 22px 20px; min-width: 0; }
.sm-panel::before { content: ""; position: absolute; left: 50%; top: 18px; width: 10px; height: 10px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.sm-panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; text-align: center; }
.sm-panel-top b { font: 700 .82rem var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--tx); }
.sm-clock { color: var(--tx); font-weight: 600; font-size: .92rem; }
.sm-clock small { color: var(--hi); font-weight: 700; font-size: .72rem; letter-spacing: .1em; }
.sm-lp { text-align: center; margin-top: 14px; }
.sm-lp.swap .sm-lp-name, .sm-lp.swap .sm-lp-res { animation: smswap .5s var(--ease); }
@keyframes smswap { from { opacity: 0; transform: translateY(8px); } }
.sm-lp-tag { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; color: var(--hi); font-size: .88rem; }
.sm-lp-name { margin-top: 6px; font: 800 clamp(1.3rem, 4.6vw, 1.7rem)/1.25 var(--fb); color: var(--tx); overflow-wrap: anywhere; }
.sm-lp.just .sm-lp-name::after { content: "Just in"; margin-left: 8px; vertical-align: 3px; font: 700 .7rem var(--fb); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--gold); color: var(--gink); }
.sm-lp-res { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 12px; }
.sm-lp-res small { display: block; font: 700 .7rem/1.4 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }
.sm-lp-p b { display: block; font: 700 clamp(1.4rem, 5.6vw, 1.75rem)/1.2 var(--fb); color: var(--tx); letter-spacing: .06em; }
.sm-lp-j { background: var(--bg); border: 2px solid var(--gold); border-radius: 40px 40px 12px 12px; padding: 8px 18px 6px; }
.sm-lp-j b { display: block; font: 800 clamp(2.4rem, 9vw, 3rem)/1.05 var(--fb); color: var(--gold); letter-spacing: .04em; }
.sm-lp-j.red b { color: var(--rd); }
.sm-pager { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.sm-pager button { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sm-pager i { display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--st); transition: width .3s var(--ease), background-color .3s; }
.sm-pager button[aria-current] i { width: 20px; background: var(--gold); }
.sm-next { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; margin-top: 12px; background: var(--s2); border: 1px solid var(--st2); border-radius: 14px; padding: 10px 14px; text-align: left; }
.sm-next-k { grid-row: span 2; display: flex; align-items: center; gap: 6px; font: 700 .72rem/1.3 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--hi); max-width: 7.5em; }
.sm-next-k .ic { color: var(--gold); }
.sm-next-cd { font: 800 1.7rem/1.15 var(--fb); color: var(--gold-lt); letter-spacing: .04em; }
.sm-next-cd.due { color: var(--rd); }
.sm-next-n { color: var(--mu); font-size: .88rem; line-height: 1.4; }
.sm-recent { list-style: none; margin-top: 8px; }
.sm-recent a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-top: 1px solid var(--st2); color: var(--tx); text-decoration: none; font-size: .95rem; }
.sm-recent a:hover span { color: var(--gold); }
.sm-recent b { color: var(--gold-lt); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* Entrance (no-preference only; JS-off sees everything) */
@media (prefers-reduced-motion: no-preference) {
  .js .e1, .js .e2, .js .e3, .js .e4 { animation: smup .8s var(--ease) both; }
  .js .e2 { animation-delay: .12s; } .js .e3 { animation-delay: .24s; } .js .e4 { animation-delay: .36s; }
}
@keyframes smup { from { opacity: 0; transform: translateY(16px); } }

/* ---------- today in numbers ---------- */
.sm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sm-stat { background: var(--s1); border: 1px solid var(--st2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-stat-k { font: 700 .74rem/1.4 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
.sm-stat b { font: 800 2rem/1.15 var(--fb); color: var(--tx); }
.sm-stat b small { font-size: 1rem; font-weight: 600; color: var(--hi); }
.sm-stat-s { font-size: .86rem; color: var(--mu); line-height: 1.4; }
.sm-bar { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: var(--st2); overflow: hidden; }
.sm-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); border-radius: 3px; transition: width 1.1s var(--ease); }

/* ---------- sections ---------- */
.sm-sec { padding: 60px 0; }
.sm-band { background: var(--s2); border-block: 1px solid var(--st2); }
.sm-head { text-align: center; margin-bottom: 24px; }
.sm-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font: 700 .8rem/1.4 var(--fb); letter-spacing: .14em; text-transform: uppercase; }
.sm-head h2, .sm-app h2 { font: 400 clamp(1.9rem, 5.4vw, 2.6rem)/1.2 var(--fw); color: var(--tx); }
.sm-upd { display: inline-block; margin-top: 6px; color: var(--hi); font-size: .9rem; border-radius: 6px; padding: 0 6px; }
.sm-head-a { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 18px; margin-top: 6px; color: var(--mu); }
.sm-head-a b { color: var(--tx); }
.sm-head-a a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.sm-head-a a:hover { text-decoration: underline; }

/* filters */
.sm-filters { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.sm-seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sm-seg button { min-height: 44px; padding: 6px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--st); color: var(--mu); font: 600 .95rem var(--fb); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sm-seg button:hover { border-color: var(--gold); color: var(--tx); }
.sm-seg button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gink); }
.sm-seg button b { font-size: .78rem; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--st2); color: var(--tx); }
.sm-seg button[aria-pressed="true"] b { background: var(--gink); color: var(--gold); }
.sm-none { text-align: center; color: var(--mu); margin: 10px 0 20px; }
.sm-none button { min-height: 44px; margin-left: 6px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gold); background: none; color: var(--gold); font-weight: 700; cursor: pointer; }

/* market cards */
.sm-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.sm-card { position: relative; background: var(--s1); border: 1px solid var(--st2); border-top: 3px solid var(--st); border-radius: 18px; padding: 14px 16px 16px; min-width: 0; display: flex; flex-direction: column; }
.sm-card[data-state="closed"] { border-top-color: var(--gold); }
.sm-card[data-state="open"] { border-top-color: #8D6BC0; }
.sm-card[data-state="holiday"] { background: var(--s2); }
.sm-card.lit { animation: smlit 1.4s var(--ease); }
@keyframes smlit { 0% { box-shadow: 0 0 0 0 #E2C268; } 100% { box-shadow: 0 0 0 16px rgba(226, 194, 104, 0); } }
.sm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sm-sess { font: 700 .74rem/1.4 var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
.sm-card h3 { margin-top: 4px; font: 700 1.2rem/1.25 var(--fb); }
.sm-card h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx); text-decoration: none; }
.sm-card h3 a:hover { color: var(--gold); }
.sm-times { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--hi); font-size: .88rem; }
.sm-times b { color: var(--mu); font-weight: 600; }
.sm-res { display: flex; align-items: center; justify-content: center; margin: 12px 0 4px; background: var(--bg); border: 1px solid var(--st2); border-radius: 14px; padding: 8px 6px; }
.sm-res .pn { font: 700 1.4rem/1.3 var(--fb); color: var(--mu); letter-spacing: .08em; padding: 0 10px; }
.sm-res .jd { font: 800 2.3rem/1.15 var(--fb); color: var(--gold); letter-spacing: .04em; padding: 0 14px; border-inline: 1px solid var(--st2); }
.sm-res .jd.red { color: var(--rd); }
[data-state="waiting"] .sm-res .jd, [data-state="holiday"] .sm-res .jd { color: var(--hi); }
[data-state="waiting"] .sm-res .pn, [data-state="holiday"] .sm-res .pn { color: var(--hi); }
.sm-due { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--gold-lt); font-size: .9rem; }
.sm-due b { color: var(--tx); }
.sm-l7 { margin-top: 6px; border-top: 1px solid var(--st2); }
.sm-l7 summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; }
.sm-l7 summary::-webkit-details-marker { display: none; }
.sm-form { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sm-fk { font: 700 .72rem var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--hi); white-space: nowrap; }
.sm-fl { display: flex; gap: 4px; }
.sm-fl span { font: 700 .86rem/1 var(--fb); padding: 5px 5px 4px; border-radius: 6px; background: var(--s2); border: 1px solid var(--st2); color: var(--tx); }
.sm-fl span.red { color: var(--rd); }
.sm-l7-k { margin-left: auto; color: var(--mu); font-size: .85rem; white-space: nowrap; }
.sm-l7 summary i, .sm-faq summary i { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.sm-l7[open] summary i, .sm-faq details[open] summary i { transform: rotate(225deg); }
.sm-l7 table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 4px; }
.sm-l7 th, .sm-l7 td { padding: 6px 4px; border-bottom: 1px solid var(--st2); text-align: center; }
.sm-l7 thead th { font: 700 .7rem var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--hi); }
.sm-l7 tbody th { text-align: left; color: var(--mu); font-weight: 600; white-space: nowrap; }
.sm-l7 td { color: var(--mu); }
.sm-l7 td b { color: var(--gold); }
.sm-l7 tr.red td b { color: var(--rd); }
.sm-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.sm-links a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1px solid var(--st); border-radius: 10px; color: var(--tx); text-decoration: none; font-weight: 600; font-size: .92rem; }
.sm-links a .ic { color: var(--gold); }
.sm-links a:hover { border-color: var(--gold); color: var(--gold); }

/* Starline: day bar + arch slots */
.sm-day { display: flex; align-items: center; gap: 12px; color: var(--hi); font-size: .86rem; margin: 0 auto 18px; max-width: 760px; }
.sm-day-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--st2); overflow: hidden; }
.sm-day-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); transition: width 1.1s var(--ease); }
.sm-slots { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sm-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--s1); border: 1px solid var(--st2); border-radius: 50% 50% 12px 12px / 32px 32px 12px 12px; padding: 16px 4px 10px; min-width: 0; }
.sm-slot-t { color: var(--mu); font-weight: 600; font-size: .86rem; }
.sm-ank { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px dashed var(--st); color: var(--gold); font: 800 1.35rem/1 var(--fb); }
.sm-slot.has .sm-ank { border: 2px solid var(--gold); }
.sm-slot b { font: 700 .98rem/1.3 var(--fb); color: var(--tx); letter-spacing: .03em; }
.sm-slot:not(.has) b { color: var(--hi); }
.sm-slot small { font: 700 .7rem/1.3 var(--fb); letter-spacing: .06em; text-transform: uppercase; color: var(--hi); }
.sm-slot.next { border-color: var(--gold); }
.sm-slot.next small { color: var(--gold); }
.sm-slot.lit, .sm-jt.lit { animation: smlit 1.4s var(--ease); }

/* Jackpot: shield-bottomed tiles */
.sm-jgrid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sm-jt { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--s1); border: 1px solid var(--st2); border-radius: 14px 14px 50% 50% / 14px 14px 28px 28px; padding: 12px 4px 22px; text-align: center; min-width: 0; }
.sm-jt-t { color: var(--mu); font-weight: 600; font-size: .86rem; }
.sm-jt b { font: 800 1.9rem/1.2 var(--fb); color: var(--gold); letter-spacing: .04em; }
.sm-jt:not(.has) b { color: var(--hi); }
.sm-jt.red b { color: var(--rd); }
.sm-jt small { font: 700 .7rem/1.3 var(--fb); letter-spacing: .06em; text-transform: uppercase; color: var(--hi); }

/* ---------- app band ---------- */
.sm-app { background: var(--s2); border-block: 1px solid var(--st2); }
.sm-app-in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; align-items: center; }
.sm-app-c .sm-rule { margin-left: 0; }
.sm-app-l { margin-top: 10px; max-width: 36em; color: var(--mu); }
.sm-steps { list-style: none; display: grid; gap: 12px; margin: 20px 0 24px; }
.sm-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--mu); }
.sm-steps strong { color: var(--tx); }
.sm-shield { position: relative; flex: none; width: 34px; height: 38px; display: grid; place-items: center; }
.sm-shield svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--s1); stroke: var(--gold); stroke-width: 1.4; }
.sm-shield b { position: relative; font: 800 1rem/1 var(--fb); color: var(--gold); margin-top: -2px; }
.sm-app .btn.big { white-space: normal; }
.sm-app .ios-note { max-width: 32em; }
.sm-app-s { margin-top: 16px; color: var(--hi); font-size: .9rem; }
.sm-app-s b { color: var(--tx); }
.sm-qr-arch { justify-self: center; width: min(280px, 100%); text-align: center; background: var(--s1); border: 1px solid var(--st); border-radius: 50% 50% 18px 18px / 92px 92px 18px 18px; outline: 1px solid #6B5A3A; outline-offset: -9px; padding: 34px 26px 22px; }
.sm-qr-arch img { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.sm-qr { width: 176px; height: 176px; margin: 16px auto 10px; background: #fff; border-radius: 12px; padding: 12px; }
.sm-qr svg { display: block; width: 100%; height: 100%; }
.sm-qr-arch p { color: var(--mu); font-weight: 600; font-size: .9rem; }

/* ---------- charts index ---------- */
.sm-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.sm-quick a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; background: var(--s1); border: 1px solid var(--st2); border-radius: 16px; color: var(--tx); text-decoration: none; }
.sm-quick a > .ic { color: var(--gold); width: 1.4em; height: 1.4em; }
.sm-quick a > .ic:last-child { margin-left: auto; width: 1.1em; height: 1.1em; }
.sm-quick span { display: flex; flex-direction: column; min-width: 0; }
.sm-quick b { font-weight: 700; }
.sm-quick small { color: var(--hi); font-size: .86rem; }
.sm-quick a:hover { border-color: var(--gold); }
.sm-table { background: var(--s1); border: 1px solid var(--st2); border-radius: 16px; overflow: hidden; }
.sm-table ol { list-style: none; }
.sm-tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px 160px; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--st2); }
.sm-th { border-top: 0; background: var(--s3); font: 700 .74rem var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--mu); min-height: 40px; }
.sm-no { color: var(--hi); font-weight: 700; }
.sm-tn b { display: block; font-weight: 600; color: var(--tx); }
.sm-tn small { color: var(--hi); font-size: .84rem; }
.sm-tt { font: 700 1.06rem var(--fb); color: var(--gold-lt); letter-spacing: .05em; white-space: nowrap; border-radius: 6px; }
.sm-tr[data-state="waiting"] .sm-tt, .sm-tr[data-state="holiday"] .sm-tt { color: var(--hi); }
.sm-tl { display: flex; gap: 6px; }
.sm-tl a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--st); border-radius: 10px; color: var(--tx); text-decoration: none; font-weight: 600; font-size: .92rem; }
.sm-tl a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- FAQ ---------- */
.sm-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.sm-faq details { background: var(--s1); border: 1px solid var(--st2); border-radius: 14px; }
.sm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 10px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.sm-faq summary::-webkit-details-marker { display: none; }
.sm-faq details p { padding: 0 18px 16px; color: var(--mu); }
.sm-faq-s { padding-bottom: 72px; }

/* ---------- footer ---------- */
.sm-foot { background: var(--s2); border-top: 1px solid var(--st2); padding: 40px 0 32px; }
.sm-foot-t { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.sm-foot-b { display: flex; align-items: center; gap: 12px; }
.sm-foot-b img { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.sm-foot-b span { display: flex; flex-direction: column; }
.sm-foot-b b { font: 400 1.6rem/1.2 var(--fw); color: var(--gold); }
.sm-foot-b .sm-slogan { color: var(--mu); font: 600 .95rem/1.6 "Mukta", sans-serif; }
.sm-foot-l { list-style: none; display: flex; flex-wrap: wrap; gap: 0 4px; }
.sm-foot-l a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--mu); text-decoration: none; font-size: .92rem; border-radius: 8px; }
.sm-foot-l a:hover { color: var(--gold); }
.sm-fine { margin-top: 16px; color: var(--hi); font-size: .86rem; }

/* mobile download dock */
.sm-dock { display: none; }

/* ---------- shared effects (fx.css) on the dark page ---------- */
.s7-toast { background: var(--s1); color: var(--tx); border: 1px solid var(--st); border-left: 5px solid var(--gold); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.s7-toast span { color: var(--gold-lt); font-family: var(--fb); }
.s7-busy .s7-sk::after { background: rgba(226, 194, 104, .12); }
@media (prefers-reduced-motion: reduce) { .s7-busy .s7-sk::after { background: rgba(226, 194, 104, .08); } }

/* ---------- shared chart pages ---------- */
.chart-page .page { padding: 26px 0 24px; }
.page .crumbs { color: var(--hi); }
.page .crumbs a { display: inline-block; padding: 11px 2px; color: var(--gold); }
.page h1 { color: var(--gold); }
.page .lead { color: var(--mu); }
.page .lead a { color: var(--gold); }
.chart-page .today-strip { background: var(--s1); border: 1px solid var(--st); border-radius: 16px; padding: 10px 16px; }
.chart-page .today-strip span { color: var(--mu); font: 700 .8rem var(--fb); letter-spacing: .1em; text-transform: uppercase; }
.chart-page .today-strip[data-state="open"] span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 7px; vertical-align: 1px; }
.chart-page .today-strip b { color: var(--gold-lt); font: 800 clamp(1.35rem, 5vw, 1.8rem) var(--fb); letter-spacing: .06em; }
.chart-page .btn-sm { background: var(--gold); color: var(--gink); }
.chart-page .btn-sm:hover { background: var(--gold-lt); }
.chart-page .tabs { display: inline-flex; gap: 4px; border: 1px solid var(--st2); background: var(--s2); border-radius: 12px; padding: 4px; }
.chart-page .tabs a { display: inline-flex; align-items: center; min-height: 44px; border: 0; margin: 0; border-radius: 9px; padding: 0 18px; color: var(--mu); font: 700 .95rem var(--fb); }
.chart-page .tabs a[aria-selected="true"] { background: var(--gold); color: var(--gink); }
.page .jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); }
.tbl-wrap { background: var(--s2); border-color: var(--st2); border-radius: 14px; }
table.chart { color: var(--tx); }
table.chart th, table.chart td { border-color: var(--st2); }
table.chart thead th { background: var(--s3); color: var(--mu); font-family: var(--fb); }
table.chart tbody th { background: var(--s1); color: var(--mu); font-family: var(--fb); font-size: .8rem; }
table.chart.jodi td { font: 700 1.15rem var(--fb); letter-spacing: .04em; }
table.chart.panel td { color: var(--mu); }
table.chart.panel td .pn { font-family: var(--fb); font-size: .86rem; }
table.chart.panel td b { font-family: var(--fb); font-size: 1.25rem; color: var(--tx); }
table.chart.slotchart td { font-family: var(--fb); font-size: .95rem; letter-spacing: .02em; }
table.chart td.red, table.chart td.red b { color: var(--rd); }
table.chart td.today { background: var(--pu-dk); box-shadow: inset 0 0 0 2px var(--gold); }
table.chart td.pend, table.chart td.na, table.chart .na { color: var(--hi); }
.chart-page table.chart tbody tr:hover td { background: var(--s1); }
.chips { gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; background: var(--s1); border-color: var(--st2); color: var(--tx); padding: 6px 14px; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.page .sec h2 { color: var(--tx); }
.empty { background: var(--s1); color: var(--mu); }
@media (min-width: 641px) { .chart-page .tbl-wrap { max-height: min(78vh, 900px); overflow: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sm-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sm-panel { width: min(520px, 100%); margin: 0 auto; }
  .sm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sm-app-in { grid-template-columns: minmax(0, 1fr); }
  .sm-qr-arch { display: none; }
}
@media (max-width: 760px) {
  .sm-top-in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 8px; }
  .sm-top-dl { margin-left: auto; }
  .sm-nav { order: 3; width: 100%; margin: 6px 0 0; border-top: 1px solid var(--st2); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .sm-nav a { justify-content: center; padding: 0 4px; font-size: .95rem; }
  .sm-nav a::after { left: 30%; right: 30%; }
  .sm-tr { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 14px; }
  .sm-th, .sm-no { display: none; }
  .sm-tl { grid-column: 1 / -1; }
  body.sm { padding-bottom: 72px; }
  .sm-dock { display: flex; align-items: center; gap: 10px; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--s1); border-top: 1px solid var(--gold-dk); color: var(--tx); text-decoration: none; }
  .sm-dock img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
  .sm-dock > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .sm-dock b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sm-dock small { color: var(--hi); font-size: .8rem; }
  .sm-dock .btn { margin-left: auto; flex: none; }
}
@media (max-width: 640px) {
  .sm-sec { padding: 46px 0; }
  .sm-hero { padding: 20px 0 44px; }
  .sm-mark { width: 172px; height: 172px; margin: 26px auto 26px; }
  .sm-logo-w { width: 172px; height: 172px; padding: 6px; }
  .sm-rings { width: 480px; height: 480px; }
  .sm-cta .btn { flex: 1 1 100%; }
  .sm-panel { padding: 46px 14px 16px; border-radius: 50% 50% 18px 18px / 60px 60px 18px 18px; }
  .sm-panel::before { top: 16px; }
  .sm-lp-res { gap: 8px; }
  .sm-lp-j { padding: 6px 12px 4px; }
  .sm-stat { padding: 12px 14px; }
  .sm-stat b { font-size: 1.7rem; }
  .sm-res .pn { font-size: 1.25rem; padding: 0 8px; }
  .sm-res .jd { font-size: 2.1rem; padding: 0 12px; }
  .sm-app .btn.big { width: 100%; }
  .sm-foot-t .btn { width: 100%; }
  /* chart pages */
  .chart-page .tabs { display: flex; }
  .chart-page .tabs a { flex: 1; justify-content: center; }
  .chart-page .tbl-wrap.fit { border-radius: 0; border-inline: 0; }
  table.chart.jodi td { font-size: 1rem; letter-spacing: .02em; }
  table.chart tbody th { font-size: .68rem; }
  table.chart.panel td .pn { font-size: .68rem; line-height: 1.06; }
  table.chart.panel td b { font-size: .98rem; }
  /* Starline / Jackpot record: one card per day instead of a wide sideways table */
  .chart-page .tbl-wrap:has(.slotchart) { overflow: visible; background: none; border: 0; }
  .chart-page table.slotchart, .chart-page table.slotchart tbody { display: block; width: 100%; }
  .chart-page table.slotchart thead { display: none; }
  .chart-page table.slotchart tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--s1); border: 1px solid var(--st2); border-radius: 14px; padding: 8px; margin-bottom: 8px; }
  .chart-page table.slotchart tbody th { grid-column: 1 / -1; position: static; display: flex; justify-content: space-between; align-items: baseline; background: none; border: 0; padding: 0 2px 2px; width: auto; font: 700 .9rem var(--fb); color: var(--tx); }
  .chart-page table.slotchart tbody th small { display: inline; font: 600 .76rem var(--fb); color: var(--hi); }
  .chart-page table.slotchart td { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; border-radius: 8px; background: var(--s2); padding: 4px 1px 5px; font-size: .84rem; letter-spacing: 0; min-width: 0; white-space: nowrap; }
  .chart-page table.slotchart td::before { content: attr(data-t); font: 600 .62rem/1.2 var(--fb); color: var(--hi); letter-spacing: 0; }
  .chart-page table.slotchart tbody tr:hover td { background: var(--s2); }
}
@media (max-width: 380px) {
  .sm-brand b { font-size: 1.2rem; }
  .sm-brand .sm-slogan { font-size: .74rem; }
  .sm-top-dl { padding: 8px 12px; }
  .sm-stat-s { font-size: .8rem; }
  .sm-lp-p b { font-size: 1.3rem; }
  .sm-res .pn { font-size: 1.12rem; padding: 0 6px; }
  .sm-res .jd { font-size: 1.9rem; padding: 0 10px; }
  .sm-slots, .sm-jgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sm-fl span { font-size: .8rem; padding: 4px 4px 3px; }
  table.chart.panel td .pn { font-size: .6rem; }
  table.chart.panel td b { font-size: .86rem; margin: 0 1px; }
  table.chart.jodi td { font-size: .94rem; }
  .chart-page table.slotchart tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 200% page zoom on a phone (~195px CSS viewport): reflow, never overlap */
@media (max-width: 300px) {
  .sm-brand .sm-slogan { display: none; }
  .sm-top-dl span { display: none; }
  .sm-word { font-size: 2.1rem; }
  .sm-lp-res { flex-wrap: wrap; }
  .sm-stats { grid-template-columns: minmax(0, 1fr); }
  .sm-next { grid-template-columns: minmax(0, 1fr); }
  .sm-next-k { grid-row: auto; max-width: none; }
  .sm-res .pn { font-size: .95rem; padding: 0 4px; }
  .sm-res .jd { font-size: 1.5rem; padding: 0 6px; }
  .sm-links { grid-template-columns: minmax(0, 1fr); }
  .sm-slots, .sm-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-form .sm-fl { display: none; }
  .sm-nav a { font-size: .8rem; }
  .sm-tick-l { display: none; }
  .chart-page table.slotchart tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
