/* Dhanvarsha "akash": the day's sky. Flat colours only. */
:root {
  --navy: #12285C; --deep: #0A1A3D; --gold: #D4AF5A; --gold-dk: #B8862E; --gold-lt: #F2DDA4; --ivory: #FBF8F1;
  --sub: #A9B6D8;
  --amber: #D4AF5A; --amber-dk: #B8862E; --amber-lt: #F2DDA4; --on-amber: #12285C; --gold-txt: #7A5A12; --page: #FBF8F1;
  --ink: #0A1A3D; --muted: #46527A; --line: #E2D8BA; --soft: #F4EEDB; --head: #12285C; --accent: #12285C;
  --accent-ink: #0A1A3D; --red: #B3261E; --today: #F2DDA4;
  --fb: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; --fm: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fw: "Cormorant Garamond", Georgia, serif;
  --arc: 56px;
}
body { background: var(--ivory); color: var(--ink); font: 500 1rem/1.5 var(--fb); }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.top a:focus-visible, .sky a:focus-visible, .dlband a:focus-visible, .foot a:focus-visible { outline-color: var(--gold-lt); }
.skip { background: var(--gold-lt); color: var(--deep); }

/* ---------- header (night) ---------- */
.top { background: var(--navy); color: #fff; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding: 10px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-height: 48px; }
.brand img { border-radius: 50%; }
.wordmark { font: italic 700 1.85rem/1 var(--fw); color: var(--gold-lt); }
.slogan { flex: 1 0 100%; font: 500 .84rem/1.3 "Mukta", var(--fb); color: var(--sub); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 800 .95rem var(--fb); text-decoration: none; cursor: pointer; border: 2px solid var(--navy); background: var(--navy); color: #fff; }
.btn small { font: 600 .74rem var(--fb); opacity: .85; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .88rem; }
.btn-dl { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.btn-dl:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.top .ios-note { background: var(--gold-lt); color: var(--deep); margin: 0 0 8px; }

/* ---------- the sky ---------- */
.sky { position: relative; background: var(--deep); color: #fff; padding: 12px 0 14px; overflow: hidden; }
.sky::before { content: ""; position: absolute; left: 6%; top: 10px; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7;
  box-shadow: 40px 30px #fff, 120px 8px #A9B6D8, 210px 44px #fff, 300px 14px #A9B6D8, 380px 60px #fff, 470px 20px #fff, 560px 52px #A9B6D8, 660px 10px #fff, 760px 40px #A9B6D8, 860px 18px #fff, 960px 58px #fff, 1060px 12px #A9B6D8, 1180px 36px #fff, 1280px 8px #A9B6D8; }
.sky > * { position: relative; }
.sky-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sky-head h2 { font: 800 .8rem var(--fb); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
#updated { font: 600 .8rem var(--fb); color: var(--sub); }
.latest { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.latest li { min-width: 0; }
.latest a { display: flex; flex-direction: column; align-items: center; min-height: 44px; padding: 8px 4px 9px; border-radius: 12px; background: var(--navy); border: 1px solid #2a4180; text-decoration: none; color: #fff; text-align: center; }
.latest a:hover { border-color: var(--gold); }
.ln { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .76rem var(--fb); color: var(--sub); }
.lj { font: 800 2rem/1.1 var(--fb); color: var(--gold); font-variant-numeric: tabular-nums; }
.lp { font: 700 .82rem var(--fb); color: #fff; font-variant-numeric: tabular-nums; }
.lp i { font-style: normal; }
.nextup { margin: 10px 0 0; font-size: .9rem; color: var(--sub); }
.nextup b { color: #fff; }
#nextin { color: var(--gold); font-weight: 800; white-space: nowrap; }
.swipe { margin: 8px 16px 0; font-size: .8rem; color: var(--sub); }
.sky-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin-top: 2px; scrollbar-width: thin; scrollbar-color: #2a4180 transparent; }
.sky-in { position: relative; width: 100%; min-width: calc(var(--n) * 46px); height: calc(var(--arc) + 108px); }
.arc { position: absolute; left: 0; right: 0; bottom: 27px; width: 100%; height: var(--arc); overflow: visible; }
.arc path { stroke: #3A5199; stroke-width: 1.5; stroke-dasharray: 3 6; }
.sk { position: absolute; left: calc(var(--x) * 100%); bottom: calc(var(--h) * var(--arc)); transform: translateX(-50%); width: 46px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; }
.sk .sl { font: 800 .9rem/20px var(--fb); height: 20px; color: var(--sub); }
.sk .sg { width: 22px; height: 22px; fill: none; stroke: #7F90C4; stroke-width: 1.4; transition: transform .2s; }
.sk .stm { font: 600 .66rem/16px var(--fb); height: 16px; color: var(--sub); }
.sk[data-state="closed"] .sl { color: var(--gold); }
.sk[data-state="closed"] .sg { fill: var(--gold); stroke: var(--gold); }
.sk[data-state="open"] .sl { color: var(--gold-lt); }
.sk[data-state="open"] .sg { fill: var(--gold-lt); stroke: var(--gold-lt); fill-opacity: .35; }
.sk[data-state="holiday"] .sg { stroke-dasharray: 2 3; }
.sk:hover .sg, .sk:focus-visible .sg { transform: scale(1.3); }
.sk[data-state="closed"] .sg { animation: ak-tw 4.5s ease-in-out infinite; animation-delay: calc(var(--x) * 6s); }
@keyframes ak-tw { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.moon { position: absolute; left: calc(var(--x) * 100%); bottom: calc(var(--h) * var(--arc) + 78px); width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--gold-lt); pointer-events: none; transition: left 1.2s, bottom 1.2s; }
.moon::after { content: ""; position: absolute; left: 7px; top: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--deep); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: .76rem; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.k-closed { background: var(--gold); } .k-open { background: var(--gold-lt); opacity: .6; } .k-wait { border: 1.5px solid #7F90C4; } .k-moon { background: var(--gold-lt); }
/* hover name tooltip (desktop) */
@media (hover: hover) and (min-width: 900px) {
  .sk::after { content: attr(data-n); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--gold-lt); color: var(--deep); font: 700 .74rem var(--fb); padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; z-index: 3; }
  .sk:hover::after, .sk:focus-visible::after { opacity: 1; }
  .sk:hover, .sk:focus-visible { z-index: 4; }
}

/* ---------- results ---------- */
.results { padding-top: 22px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; margin-bottom: 10px; }
.sec-head h2 { font: italic 700 1.9rem/1.15 var(--fw); color: var(--navy); }
.sec-head p { font-size: .88rem; color: var(--muted); font-weight: 600; }
.sess { margin: 18px 0 8px; font: 800 .78rem var(--fb); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-txt); }
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mk { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; scroll-margin-top: 12px; border-left: 5px solid var(--line); }
.mk[data-state="closed"] { border-left-color: var(--gold-dk); }
.mk[data-state="open"] { border-left-color: var(--navy); }
.mk.hit { outline: 3px solid var(--gold); outline-offset: 2px; }
.mk.pop { animation: ak-pop 1.6s; }
@keyframes ak-pop { 0% { background: var(--gold-lt); } 100% { background: #fff; } }
.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk h4 { font: 800 1.08rem/1.25 var(--fb); color: var(--navy); }
.pill { flex: none; font: 800 .68rem var(--fb); text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.mk[data-state="closed"] .pill { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--deep); }
.mk[data-state="open"] .pill { background: var(--navy); color: #fff; }
.mk[data-state="holiday"] .pill { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.mk-time { font-size: .84rem; color: var(--muted); font-weight: 600; margin: 1px 0 6px; }
.mk-res { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trio { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.trio .pn { font: 800 1.3rem/1 var(--fb); color: var(--navy); min-width: 3ch; text-align: center; letter-spacing: .02em; }
.trio .jd { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 6px; border-radius: 50%; background: var(--deep); color: var(--gold); font: 800 1.5rem/1 var(--fb); border: 3px solid var(--gold); }
.mk[data-state="waiting"] .trio, .mk[data-state="holiday"] .trio { opacity: .75; }
.mk[data-state="waiting"] .jd, .mk[data-state="holiday"] .jd { background: #fff; color: var(--muted); border: 2px dashed #9AA3C0; }
.mk[data-state="waiting"] .pn, .mk[data-state="holiday"] .pn { color: var(--muted); }
.mk-links { display: flex; flex-direction: column; align-items: flex-end; }
.mk-links a { display: flex; align-items: center; min-height: 44px; padding: 0 2px 0 10px; font-weight: 800; font-size: .86rem; text-decoration: none; color: var(--navy); }
.mk-links a::after { content: "›"; margin-left: 6px; color: var(--gold-dk); font-size: 1.2rem; }
.mk-links a:hover { text-decoration: underline; }
.mk-prev { margin-top: 2px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Starline / Jackpot ---------- */
.slots { padding-top: 34px; }
.stars { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; border-radius: 12px; border: 1.5px dashed #9AA3C0; background: transparent; color: var(--muted); }
.slt .t { font: 700 .72rem var(--fb); color: var(--muted); white-space: nowrap; }
.slt .sg { width: 20px; height: 20px; fill: none; stroke: #9AA3C0; stroke-width: 1.5; }
.slt b { font: 800 1rem var(--fb); font-variant-numeric: tabular-nums; color: var(--muted); }
.slt.has { background: var(--deep); border: 1.5px solid var(--deep); }
.slt.has .t { color: var(--sub); }
.slt.has .sg { fill: var(--gold); stroke: var(--gold); }
.slt.has b { color: var(--gold); }
.more { margin-top: 12px; font-weight: 800; font-size: .92rem; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- chart index ---------- */
.charts { padding-top: 38px; }
.cl { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.cl li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.cl li > span:first-child { flex: 1; font-weight: 800; color: var(--navy); }
.cl a { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 12px; font-weight: 800; font-size: .88rem; color: var(--navy); text-decoration: none; border-radius: 8px; }
.cl a:hover { background: var(--soft); text-decoration: underline; }

/* ---------- app band ---------- */
.dlband { margin-top: 44px; background: var(--navy); color: #fff; padding: 34px 0 38px; }
.dl-in { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.dl-txt { max-width: 640px; }
.dlband h2 { font: italic 700 2.1rem/1.1 var(--fw); color: var(--gold-lt); margin-bottom: 8px; }
.dlband p { color: #D5DCF0; }
.steps { margin: 14px 0 20px 1.2em; color: #D5DCF0; font-size: .95rem; }
.steps li { margin-bottom: 4px; } .steps b { color: #fff; }
.dl-qr { display: none; text-align: center; }
.dl-qr #qr { width: 160px; height: 160px; padding: 10px; background: #fff; border-radius: 14px; }
.dl-qr p { margin-top: 8px; font-size: .84rem; }

/* ---------- FAQ ---------- */
.faq { padding-top: 40px; padding-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; min-height: 48px; font-weight: 800; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-dk); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 46em; }

/* ---------- footer ---------- */
.foot { margin-top: 40px; background: var(--deep); color: #fff; padding: 30px 0 34px; }
.foot .wordmark { font-size: 2rem; }
.foot .slogan { margin-top: 4px; }
.fl { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 12px; }
.fl a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 700; }
.fine { margin-top: 8px; font-size: .8rem; color: var(--sub); }

/* ---------- shared chart pages in the akash look ---------- */
.top-sub .top-in { padding: 6px 0; flex-wrap: nowrap; }
.top-sub .wordmark { font-size: 1.6rem; }
.chart-page .page { padding: 24px 0 10px; }
.page .crumbs { font-weight: 600; }
.page .crumbs a { color: var(--navy); text-decoration: underline; }
.page h1 { font: italic 700 clamp(2rem, 7vw, 3rem)/1.1 var(--fw); color: var(--navy); }
.page h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.page .lead { color: var(--muted); font-weight: 500; }
.today-strip { background: var(--deep); border: 0; border-radius: 14px; color: #fff; }
.today-strip span { color: var(--sub); }
.today-strip b { color: var(--gold); font-family: var(--fb); font-weight: 800; letter-spacing: .04em; }
.today-strip .btn-sm { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.tabs a { color: var(--muted); }
.tabs a[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold-dk); }
.jump a { color: var(--navy); font-weight: 800; }
.tbl-wrap { border-color: var(--line); background: #fff; }
table.chart thead th { background: var(--navy); color: var(--gold-lt); }
table.chart tbody th { background: var(--soft); color: var(--muted); }
table.chart td.today { box-shadow: inset 0 0 0 2px var(--gold-dk); }
table.chart td.pend, table.chart td.na, table.chart .na { color: #6B6A5C; }
table.chart.panel td b { color: var(--navy); }
table.chart td.red, table.chart td.red b { color: var(--red); }
.chip { color: var(--navy); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--gold-dk); background: var(--soft); }
.page .sec h2 { font: italic 700 1.7rem var(--fw); color: var(--navy); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cl { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .top-in { flex-wrap: nowrap; }
  .slogan { flex: 1 1 auto; text-align: right; order: 2; }
  .btn-dl { order: 3; }
  .top-sub .slogan { display: none; }
}
@media (min-width: 900px) {
  :root { --arc: 100px; }
  .sky { padding: 18px 0 16px; }
  .sky-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 6px 28px; align-items: center; }
  .sky-head { grid-column: 1 / -1; }
  .nextup { grid-column: 1 / -1; margin: 0; }
  .swipe { display: none; }
  .sky-scroll { width: min(1140px, 100% - 32px); margin-inline: auto; overflow: visible; }
  .sky-in { min-width: 0; }
  .sk { width: 54px; }
  .legend { margin-top: 0; }
  .lj { font-size: 2.4rem; }
  .ln { font-size: .86rem; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .mk { padding: 14px 16px; }
  .dl-qr { display: block; }
  .stars { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .cl { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1.6rem; }
  .btn-dl { padding: 0 12px; font-size: .88rem; }
  .btn-dl small { display: none; }
  .lj { font-size: 1.7rem; }
  .trio { gap: 4px; }
  .trio .pn { font-size: 1.15rem; }
  .trio .jd { min-width: 46px; height: 46px; font-size: 1.3rem; }
  .sec-head h2 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .sk .sg, .moon { animation: none !important; transition: none !important; } }
@media (max-width: 639px) {
  .top-in { flex-wrap: wrap; }
  .wordmark { font-size: 1.6rem; }
  .btn-dl small { display: none; }
  .btn-dl { padding: 0 14px; }
  .top-sub .btn-dl { padding: 0 14px; }
  .sky-in { height: calc(var(--arc) + 96px); }
  .swipe { margin-top: 6px; }
}
