/* Kolkata FF Fotafot: Kolkata street palette. Each bazi keeps one colour everywhere. */
:root {
  --ink: #1E1B4B;          /* night indigo */
  --paper: #FFFDF7;        /* alpana white */
  --yellow: #FFC72C;       /* taxi yellow */
  --red: #D62828;
  --muted: #5B5880;
  --line: #1E1B4B;
  --soft: #F3EFFF;
  --b1: #FF7A00;  /* marigold */
  --b2: #D62828;  /* sindoor */
  --b3: #0F8A5F;  /* tram green */
  --b4: #0077B6;  /* peacock blue */
  --b5: #7B2CBF;  /* purple */
  --b6: #FFC72C;  /* taxi yellow */
  --b7: #C2187A;  /* magenta */
  --b8: #0E9AA7;  /* teal */
  --r: 14px;
  --shadow: 4px 4px 0 var(--ink);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Baloo Da 2", "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500; line-height: 1.55;
}
body.lang-hi { font-family: "Baloo 2", "Baloo Da 2", system-ui, sans-serif; }
a { color: var(--b4); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
:focus-visible { outline: 3px solid var(--b4); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 99; font-weight: 800; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty { background: var(--soft); border: 2px dashed var(--muted); border-radius: var(--r); padding: 18px; text-align: center; font-weight: 700; }

/* Header */
.hdr { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.hdr-in { max-width: 1040px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo-mark { background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 1.25rem; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--b2); transform: rotate(-4deg); }
.logo-txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo-txt b { font-size: 1.3rem; font-weight: 800; }
.logo-txt small { color: var(--yellow); font-weight: 700; font-size: .85rem; }
.hdr-app { background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; max-width: 1040px; margin: 0 auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25); white-space: nowrap; font-size: .95rem; }
.nav a.on, .nav a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.crumbs { font-size: .9rem; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Banners */
.banners { max-width: 1040px; margin: 12px auto; padding: 0 16px; display: grid; gap: 10px; }
.banner img { border-radius: var(--r); border: 3px solid var(--ink); width: 100%; }
main .banners { padding: 0; }

/* Live board: the hero */
.board { margin: 16px 0; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.board-top { background: var(--yellow); border-bottom: 3px solid var(--ink); padding: 14px 16px 10px; text-align: center; }
.board-title { font-size: clamp(1.45rem, 5.5vw, 2.3rem); margin: 0; }
.board-date { margin: 2px 0 0; font-weight: 800; font-size: clamp(1rem, 3.6vw, 1.25rem); display: flex; align-items: center; justify-content: center; gap: 8px; }
.live { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(214,40,40,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(214,40,40,0); } 100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(8, 1fr); gap: 12px; padding: 18px; } }
.t { --c: var(--b1); background: var(--c); color: #fff; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
     display: flex; flex-direction: column; align-items: center; padding: 8px 4px 10px; text-align: center; min-height: 168px; }
.t-name { font-weight: 800; font-size: .85rem; background: rgba(0,0,0,.22); border-radius: 999px; padding: 0 10px; }
.t-patti { font-size: clamp(1.75rem, 8.2vw, 2.6rem); font-weight: 800; letter-spacing: .02em; line-height: 1.1; margin-top: 6px; }
.t-single { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; border: 3px solid var(--ink); margin: 4px 0; }
.t-time { font-size: .8rem; font-weight: 700; margin-top: auto; opacity: .95; }
.t.s-upcoming, .t.s-none { --c: #E9E6F7 !important; color: var(--muted); }
.t.s-upcoming .t-name, .t.s-none .t-name { background: rgba(30,27,75,.1); }
.t.s-upcoming .t-single, .t.s-none .t-single { color: var(--muted); border-color: var(--muted); }
.t.s-pending { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 10px, transparent 10px 20px); }
.t.s-off { filter: saturate(.35); }
.t-wait { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.t.pop { animation: pop .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.6) rotate(-6deg); } 100% { transform: none; } }
.b1 { --c: var(--b1); } .b2 { --c: var(--b2); } .b3 { --c: var(--b3); } .b4 { --c: var(--b4); }
.b5 { --c: var(--b5); } .b6 { --c: var(--b6); } .b7 { --c: var(--b7); } .b8 { --c: var(--b8); }
.t.b6, .tt-c.b6, .month.b6, .tipc2.b6, .luckyday.b6 { color: var(--ink); }
.t.b6 .t-name { background: rgba(30,27,75,.14); }

.board-foot { border-top: 3px dashed var(--ink); padding: 12px 16px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; text-align: center; }
.next, .done { margin: 0; font-weight: 700; font-size: 1.05rem; }
.count { display: inline-block; background: var(--ink); color: var(--yellow); border-radius: 8px; padding: 0 10px; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 4px; }
.btn-refresh, .btn-more { font: inherit; font-weight: 800; font-size: 1.05rem; background: var(--b3); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 8px 20px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.btn-refresh:active, .btn-more:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-more { display: block; margin: 14px auto; background: var(--b5); }

.ticker { display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r); padding: 10px 14px; font-size: .95rem; margin: 0 0 16px; }
.ticker b { background: var(--red); padding: 0 8px; border-radius: 6px; font-size: .85rem; }

/* Lucky / tips duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.duo-c { text-decoration: none; color: #fff; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; }
.duo-c span { font-weight: 700; font-size: .9rem; }
.duo-c b { font-size: 1.8rem; font-weight: 800; line-height: 1.15; }
.duo-c small { font-size: .8rem; opacity: .9; }
.duo-c.lucky { background: var(--b7); }
.duo-c.tipc { background: var(--b4); }
.app-strip { display: flex; align-items: center; gap: 12px; background: var(--b3); color: #fff; text-decoration: none; border: 3px solid var(--ink); border-radius: var(--r); padding: 12px 14px; margin: 16px 0; box-shadow: var(--shadow); }
.app-strip b { display: block; font-size: 1.1rem; }
.app-strip small { font-size: .9rem; }
.app-ico { font-size: 1.8rem; }

/* Old results */
.old { margin: 24px 0; }
.day { margin: 0 0 12px; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; }
.day-h { margin: 0; background: var(--ink); font-size: 1.05rem; padding: 6px 12px; }
.day-h a { color: var(--yellow); text-decoration: none; }
.day-h small { color: #fff; font-weight: 600; margin-left: 6px; }
.day-row { display: grid; grid-template-columns: repeat(8, 1fr); }
.c { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; border-left: 2px solid var(--ink); border-top: 5px solid var(--c); }
.c:first-child { border-left: 0; }
.c b { font-size: clamp(1rem, 4.5vw, 1.5rem); font-weight: 800; letter-spacing: .01em; }
.c span { font-size: clamp(1.1rem, 4.8vw, 1.5rem); font-weight: 800; color: var(--c); line-height: 1.1; }
.c.b6 span { color: #B88700; }
.c.s-none b, .c.s-none span, .c.s-pending b, .c.s-upcoming b { color: #B8B4D6; }
.c.s-off b { color: var(--muted); font-size: .9rem; }

/* Time table */
.tt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 700px) { .tt { grid-template-columns: repeat(8, 1fr); } }
.tt-c { background: var(--c); color: #fff; border: 3px solid var(--ink); border-radius: 12px; text-align: center; padding: 6px 2px; }
.tt-c span { display: block; font-size: .8rem; font-weight: 700; }
.tt-c b { font-size: 1.05rem; }

/* Text content */
section { margin: 24px 0; }
.prose { max-width: 72ch; }
.prose p, .prose li { font-size: 1.05rem; }
.prose a, .link-strong { color: var(--b4); font-weight: 800; }
.page-h { font-size: clamp(1.7rem, 6vw, 2.5rem); margin-top: 16px; }
.lead { font-size: 1.15rem; font-weight: 600; color: var(--muted); max-width: 60ch; }
.article h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-top: 16px; }
.post-img { border-radius: var(--r); border: 3px solid var(--ink); margin: 12px 0; }

.faq details { border: 3px solid var(--ink); border-radius: var(--r); margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 800; font-size: 1.1rem; padding: 10px 14px; cursor: pointer; list-style: none; }
.faq summary::after { content: "+"; float: right; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary { background: var(--yellow); border-bottom: 3px solid var(--ink); }
.faq details[open] summary::after { content: "–"; }
.faq details div { padding: 10px 14px; font-size: 1.05rem; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; font-weight: 800; }
.pager a { background: var(--ink); color: var(--yellow); text-decoration: none; padding: 8px 16px; border-radius: 999px; }

/* Chart */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.month { background: var(--c); color: #fff; text-decoration: none; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; text-align: center; }
.month b { display: block; font-size: 1.4rem; }
.chart-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: var(--r); background: #fff; }
.chart { border-collapse: collapse; width: 100%; min-width: 560px; text-align: center; }
.chart th, .chart td { border: 1px solid #CFCBE8; padding: 4px 2px; }
.chart thead th { background: var(--c, var(--ink)); color: #fff; font-size: 1.05rem; border-color: var(--ink); }
.chart thead th:first-child { background: var(--ink); }
.chart tbody th { background: var(--soft); font-size: .95rem; }
.chart tbody th a { color: var(--ink); text-decoration: none; display: block; }
.chart tbody th small { font-size: .75rem; color: var(--muted); }
.chart td b { display: block; font-size: 1.05rem; font-weight: 800; }
.chart td span { font-weight: 800; color: var(--red); font-size: 1.1rem; }
.chart td.s-none b, .chart td.s-off b { color: #B8B4D6; }

/* Patti list */
.patti { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .patti { grid-template-columns: repeat(5, 1fr); } }
.pcol { margin: 0; border: 3px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; }
.pcol h2 { background: var(--c); color: #fff; margin: 0; padding: 6px; text-align: center; font-size: 1.15rem; }
.pcol.b6 h2 { color: var(--ink); }
.pcol ul { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 6px; text-align: center; }
.pcol li { font-weight: 600; font-size: 1.1rem; }
.pcol li.dbl { font-weight: 800; color: var(--b4); }
.pcol li.tpl { font-weight: 800; color: var(--red); }

/* Tips & lucky */
.tipday h2 { font-size: 1.3rem; }
.tipgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 900px) { .tipgrid { grid-template-columns: repeat(8, 1fr); } }
.tipc2 { background: var(--c); color: #fff; border: 3px solid var(--ink); border-radius: var(--r); text-align: center; padding: 8px 4px; box-shadow: var(--shadow); }
.tipc2 span { font-size: .8rem; font-weight: 700; display: block; }
.tipc2 b { font-size: 1.7rem; display: block; line-height: 1.1; }
.tipc2 small { font-size: .85rem; font-weight: 700; }
.luckyday { background: var(--c); color: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 16px; text-align: center; }
.lucky-big { font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 800; margin: 0; line-height: 1.1; }
.lucky-p { font-size: 1.2rem; margin: 6px 0 0; }

/* App page */
.apphero { text-align: center; background: var(--yellow); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 24px 16px; }
.apphero h1 { font-size: clamp(2rem, 8vw, 3rem); }
.apphero p { font-size: 1.15rem; font-weight: 600; }
.btn-play { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none; padding: 12px 24px; border-radius: 14px; margin: 8px 0 16px; }
.checks { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; text-align: left; }
.checks li { font-weight: 700; padding: 6px 0 6px 32px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--b3); color: #fff; display: grid; place-items: center; font-size: .9rem; }

.posts { display: grid; gap: 12px; }
.post-c { border: 3px solid var(--ink); border-radius: var(--r); padding: 14px; background: #fff; }
.post-c h2 { font-size: 1.25rem; }
.post-c h2 a { color: var(--ink); }
.post-c time { color: var(--muted); font-size: .9rem; font-weight: 700; }

/* Footer */
.ftr { background: var(--ink); color: #DCD8F5; margin-top: 32px; padding: 24px 0 32px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.ftr-links a { color: #fff; font-weight: 700; text-decoration: none; }
.ftr-links a:hover { color: var(--yellow); }
.ftr-note { font-size: .9rem; max-width: 72ch; }
.ftr-note b { color: var(--yellow); }
.ftr-copy { font-size: .85rem; opacity: .8; }

/* Popup banner */
.popup { border: 3px solid var(--ink); border-radius: 18px; padding: 0; max-width: min(92vw, 480px); box-shadow: 6px 6px 0 var(--ink); }
.popup::backdrop { background: rgba(30,27,75,.6); }
.popup img { border-radius: 15px; }
.popup-x { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); font-size: 1.4rem; font-weight: 800; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 380px) {
  .tiles { gap: 7px; padding: 10px; }
  .t { min-height: 150px; }
  .t-single { width: 40px; height: 40px; font-size: 1.5rem; }
  .logo-txt small { display: none; }
}
