/* BG Online landing — theme "heritage". Warm ivory, BG green arches, saffron + gold, stone tablets with
   lamps. FLAT COLOURS ONLY (no gradients); the border motif is a repeating flat SVG pattern. */
:root {
  --ivory: #fbf6ea;
  --stone: #f3ead6;
  --stone-2: #e9dcbf;
  --green: #014d42;
  --green-2: #0b5f52;
  --saffron: #d97a1e;
  --saffron-soft: #fbe6cf;
  --gold: #dbb237;
  --brown: #5b3a12;
  --ink: #2a2117;
  --muted: #776a57;
  --red: #b3261e;
  --line: #e2d4b4;
  --r: 14px;
  --fh: "Marcellus", "Georgia", serif;
  --fb: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 17px/1.55 var(--fb); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.border-motif { height: 12px; background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M12 1l5 5-5 5-5-5z' fill='%23dbb237'/%3E%3Ccircle cx='0' cy='6' r='1.6' fill='%23d97a1e'/%3E%3Ccircle cx='24' cy='6' r='1.6' fill='%23d97a1e'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 24px 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 10px; font: 700 1.02rem var(--fb); text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-saffron { background: var(--saffron); color: #fff; }
.btn-saffron:hover { background: #c56a12; }
.btn-line { background: transparent; color: var(--green); border-color: var(--green); }
.btn-line:hover { background: var(--stone); }
.btn-xl { padding: 13px 24px; }
.btn-sm { padding: 7px 15px; font-size: .92rem; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: var(--ivory); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font: 1.45rem var(--fh); }
.brand b { color: var(--saffron); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--brown); text-decoration: none; padding: 8px 10px; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--saffron); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero: copy + the shrine arch */
.hero { padding: 40px 0 30px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--saffron); font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.hero h1 { font: clamp(2.4rem, 6vw, 4.1rem)/1.05 var(--fh); color: var(--green); }
.saf { color: var(--saffron); }
.slogan { margin: 12px 0 0; font-size: 1.25rem; font-weight: 600; color: var(--brown); }
.slogan b { color: var(--green); }
.lead { color: #4f4535; font-size: 1.06rem; max-width: 34em; margin: 14px 0 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.ios-note { background: var(--saffron-soft); border-radius: 10px; padding: 10px 12px; color: var(--brown); }
.shrine { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.toran { width: 100%; height: 34px; display: block; margin-bottom: -4px; position: relative; z-index: 2; }
.arch { background: var(--green); border-radius: 210px 210px 12px 12px; padding: 16px 16px 0; }
.arch-in { background: var(--ivory); border: 4px solid var(--gold); border-bottom: 0; border-radius: 196px 196px 0 0; padding: 26px 20px 10px; display: grid; place-items: center; min-height: 270px; }
.arch-in img { width: 190px; height: 190px; }
.plinth { background: var(--stone-2); border: 3px solid var(--green); border-top: 6px solid var(--gold); border-radius: 0 0 12px 12px; display: grid; grid-template-columns: repeat(3, 1fr); }
.plinth > span { padding: 10px 6px; text-align: center; border-right: 1px solid var(--line); }
.plinth > span:last-child { border-right: 0; }
.plinth small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.plinth b { font: 1.05rem var(--fh); color: var(--green); white-space: nowrap; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .shrine { max-width: 360px; } .arch-in { min-height: 220px; } .arch-in img { width: 150px; height: 150px; } }
@media (max-width: 420px) { .plinth b { font-size: .9rem; } }

/* ---------- numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 2px solid var(--green); margin-top: 14px; }
.numbers div { text-align: center; padding: 16px 8px; border-right: 1px dashed var(--line); }
.numbers div:last-child { border-right: 0; }
.numbers b { display: block; font: 2rem var(--fh); color: var(--green); }
.numbers span { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 700px) { .numbers { grid-template-columns: repeat(2, 1fr); } .numbers div:nth-child(2) { border-right: 0; } .numbers div:nth-child(-n+2) { border-bottom: 1px dashed var(--line); } }

/* ---------- sections */
.sec { padding: 46px 0 6px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.eyebrow { margin: 0 0 2px; color: var(--saffron); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.eyebrow.light { color: var(--gold); }
.sec h2 { font: clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--fh); color: var(--green); }
.updated { margin: 0; color: var(--muted); font-size: .9rem; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--saffron); padding-bottom: 2px; }
.next-up { margin: 0 0 12px; color: var(--brown); }
.next-up b { color: var(--saffron); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filter button { font: 700 .95rem var(--fb); color: var(--brown); background: var(--stone); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.filter button small { font-weight: 500; color: var(--muted); }
.filter button.on { background: var(--green); color: #fff; border-color: var(--green); }
.filter button.on small { color: #bfe0d8; }
.session { margin-bottom: 26px; }
.session-h { font: 1.3rem var(--fh); color: var(--brown); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.session-h::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.session-h span { color: var(--green); }

/* stone tablets */
.tablets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tablet { background: var(--stone); border: 2px solid var(--line); border-radius: 100px 100px 12px 12px; padding: 18px 14px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tablet:hover { border-color: var(--gold); }
.lamp { width: 40px; height: 30px; }
.lamp .bowl { fill: var(--brown); }
.lamp .base { fill: var(--brown); }
.lamp .flame { fill: var(--stone-2); }
.tablet[data-state="closed"] .flame, .tablet[data-state="open"] .flame { fill: var(--saffron); }
.tablet[data-state="closed"] .lamp, .tablet[data-state="open"] .lamp { filter: drop-shadow(0 0 6px rgba(217, 122, 30, .6)); }
.tablet.lit .lamp { animation: glow 1.2s ease 2; }
@keyframes glow { 50% { transform: scale(1.18); } }
.tablet h4 { font: 1.08rem var(--fh); color: var(--green); }
.ins { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; }
.ins .pn { font-weight: 700; letter-spacing: .08em; color: var(--brown); font-size: 1rem; }
.ins .jd { font: 2.1rem/1 var(--fh); color: var(--green); background: var(--ivory); border: 2px solid var(--gold); border-radius: 10px; padding: 4px 10px; }
.ins .jd.red { color: var(--red); }
.tablet[data-state="waiting"] .ins .jd, .tablet[data-state="holiday"] .ins .jd { color: #b6a98c; }
.st { margin: 2px 0 0; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tablet[data-state="closed"] .st { color: var(--green); }
.tablet[data-state="open"] .st { color: var(--saffron); }
.tablet[data-state="holiday"] .st { color: var(--red); }
.times { margin: 0; font-size: .82rem; color: var(--muted); }
.prev { margin: 0; font-size: .78rem; color: var(--muted); }
.tablet footer { margin-top: 6px; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.tablet footer a { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--saffron); }
.tablet footer a:hover { text-decoration: underline; }
.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { background: var(--saffron); color: #fff; } }
@media (max-width: 560px) {
  .tablets { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tablet { padding: 14px 8px 10px; border-radius: 80px 80px 10px 10px; }
  .tablet h4 { font-size: .92rem; }
  .ins { gap: 4px; }
  .ins .pn { font-size: .78rem; letter-spacing: .03em; }
  .ins .jd { font-size: 1.55rem; padding: 3px 7px; }
  .times { font-size: .72rem; }
}

/* Starline garland + Jackpot windows */
.garland { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; position: relative; }
.bead::before { content: ""; position: absolute; top: 40px; left: -6px; right: -6px; border-top: 2px solid var(--brown); }
.bead { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.bead b { position: relative; z-index: 1; }
.bead b { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); color: var(--muted); border: 3px dashed var(--line); font: .98rem var(--fh); }
.bead.has b { background: var(--saffron); color: #fff; border-color: var(--gold); }
.bead span { font-size: .8rem; font-weight: 700; color: var(--brown); }
.windows { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.win { background: var(--green); border-radius: 48px 48px 8px 8px; padding: 12px 8px 10px; text-align: center; }
.win b { display: block; background: var(--ivory); border-radius: 40px 40px 4px 4px; margin: 0 4px 8px; padding: 12px 0 6px; font: 1.8rem var(--fh); color: var(--green); }
.win.red b { color: var(--red); }
.win:not(.has) b { color: #b6a98c; }
.win span { color: #d4ebe5; font-size: .78rem; font-weight: 700; }

/* install band */
.install { margin-top: 50px; background: var(--green); color: #fff; padding: 44px 0; }
.install-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.install h2 { font: clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--fh); margin-bottom: 18px; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li > span { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--green); font: 700 1.4rem var(--fb); }
.steps b { font-size: 1.08rem; }
.steps p { margin: 2px 0 0; color: #cfe6df; font-size: .96rem; }
.qr-card { background: var(--ivory); color: var(--ink); border-radius: 120px 120px 16px 16px; padding: 34px 22px 22px; text-align: center; border: 4px solid var(--gold); }
.qr { width: 190px; max-width: 100%; aspect-ratio: 1; margin: 0 auto 12px; }
.qr svg { width: 100%; height: 100%; }
.qr-card p { margin: 0; font-size: .94rem; }
@media (max-width: 820px) { .install-in { grid-template-columns: 1fr; } .qr-card { max-width: 340px; } }

/* features, pillars, FAQ */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat > div { background: var(--stone); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.feat .ic { width: 30px; height: 30px; color: var(--saffron); }
.feat h3 { font: 1.15rem var(--fh); color: var(--green); margin: 10px 0 4px; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .feat { grid-template-columns: 1fr; } }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.pillars li { display: flex; align-items: center; gap: 8px; background: var(--stone); border-left: 6px solid var(--green); border-radius: 6px 12px 12px 6px; padding: 8px 10px; }
.pillars span { flex: 1; font-weight: 700; color: var(--brown); }
.pillars a { font-weight: 700; font-size: .84rem; text-decoration: none; color: #fff; background: var(--green); padding: 3px 10px; border-radius: 999px; }
.pillars a + a { background: var(--saffron); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--stone); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; color: var(--green); }
.faq summary::after { content: "❀"; color: var(--saffron); }
.faq p { margin: 0 0 14px; color: #4f4535; }

/* footer + dock */
.foot { margin-top: 54px; background: var(--stone); padding: 0 0 96px; }
.foot .wrap { padding-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; }
.foot p { color: var(--muted); }
.foot-slogan { color: var(--brown) !important; font-weight: 600; }
.foot-h { font: 1.2rem var(--fh); color: var(--green); margin: 0 0 10px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.foot-links a { color: var(--brown); text-decoration: none; font-size: .94rem; }
.foot-links a:hover { color: var(--saffron); }
.fine { font-size: .84rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 14px; background: var(--green); border: 2px solid var(--gold); color: #fff; text-decoration: none; box-shadow: 0 10px 26px rgba(42, 33, 23, .3); }
.dock img { border-radius: 10px; }
.dock span:not(.btn) { flex: 1; line-height: 1.2; }
.dock small { display: block; color: #bfe0d8; font-size: .78rem; }

/* shared chart pages */
.chart-page .page { padding: 26px 0 8px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--saffron); }
.page h1 { font: clamp(1.9rem, 5vw, 2.9rem)/1.1 var(--fh); color: var(--green); }
.page .lead { margin: 10px 0 16px; }
.today-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--green); color: #fff; border-radius: 12px; border-bottom: 4px solid var(--gold); padding: 12px 16px; margin: 0 0 14px; }
.today-strip span { font: 1.05rem var(--fh); color: var(--gold); }
.today-strip b { font: 1.5rem var(--fh); flex: 1; letter-spacing: .04em; }
.today-strip .btn { background: var(--saffron); color: #fff; }
.tabs { display: flex; gap: 8px; margin: 0 0 10px; }
.tabs a { text-decoration: none; font-weight: 700; padding: 7px 16px; border-radius: 999px; color: var(--brown); background: var(--stone); border: 1px solid var(--line); }
.tabs a[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.jump { margin: 0 0 8px; font-size: .92rem; font-weight: 600; }
.tbl-wrap { overflow: auto; max-height: 72vh; border: 3px solid var(--green); border-radius: 12px; background: #fffdf7; }
table.chart { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
table.chart th, table.chart td { border: 1px solid var(--line); padding: 7px 6px; text-align: center; }
table.chart thead th { position: sticky; top: 0; background: var(--green); color: var(--gold); font: 1rem var(--fh); z-index: 1; }
table.chart thead th:first-child, table.chart tbody th { width: 1%; padding-inline: 12px; }
table.chart tbody th { background: var(--stone); font-size: .8rem; white-space: nowrap; text-align: left; font-weight: 700; color: var(--brown); }
table.chart tbody th small { display: block; color: var(--muted); font-weight: 600; }
table.chart.jodi td { font: 1.12rem var(--fh); color: var(--green); }
table.chart.panel td { font-size: .82rem; line-height: 1.15; color: var(--muted); }
table.chart.panel td b { display: block; font: 1.04rem var(--fh); margin: 2px 0; color: var(--green); }
table.chart .pn { display: block; }
table.chart td.red, table.chart td.red b { color: var(--red); }
table.chart td.today { background: var(--saffron-soft); box-shadow: inset 0 0 0 2px var(--saffron); }
table.chart td.pend, table.chart td.na, table.chart .na { color: #c3b597; }
table.chart.slotchart td { font-weight: 700; white-space: nowrap; font-size: .88rem; color: var(--ink); }
.fit table.chart.panel { min-width: 640px; }
.empty { background: var(--stone); padding: 16px; border-radius: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; color: var(--brown); background: var(--stone); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--green); color: var(--green); }
.page .sec { padding-top: 28px; }
.page .sec h2 { font-size: 1.5rem; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
