:root {
    --ink: #14161c;
    --ink-2: #3b3f4a;
    --muted: #6b7280;
    --bg: #f5f6fa;
    --card: #ffffff;
    --line: #e7e8ee;
    --brand: #e11d2e;
    --brand-dark: #b3121f;
    --gold: #ffc61a;
    --gold-soft: #fff6d6;
    --gold-line: #f3d77a;
    --link: #1d4ed8;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); line-height: 1.25; text-align: center; margin: 22px auto 16px; max-width: 900px; letter-spacing: -.01em; }
h2 { font-size: clamp(1.1rem, 2.6vw, 1.35rem); line-height: 1.3; letter-spacing: -.005em; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: radial-gradient(ellipse at top, #2a2d36, var(--ink) 70%); text-align: center; padding: 18px 16px 14px; }
.logo { color: var(--gold); font-size: clamp(2rem, 7vw, 3rem); font-weight: 900; letter-spacing: 3px; text-decoration: none; text-shadow: 0 2px 0 var(--brand-dark); }
.logo span { color: #fff; }
.tagline { color: #a9adb8; margin: 4px 0 0; font-size: .88rem; }
.main-nav { display: flex; justify-content: center; gap: 2px; background: var(--brand); padding: 6px 8px; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.15); overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 7px 12px; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.18); }
.marquee { background: var(--gold); overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .9rem; padding: 6px 0; color: var(--ink); }
.marquee span { display: inline-block; padding-left: 100%; animation: scroll 30s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; padding-left: 16px; white-space: normal; } }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.page-meta { text-align: center; font-size: .84rem; color: var(--muted); margin: -6px 0 16px; }

/* ---------- Headline + board ---------- */
.headline-result { display: grid; gap: 2px; justify-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--brand); padding: 16px; margin: 0 auto 18px; max-width: 380px; }
.hl-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.hl-game { font-size: 1.35rem; font-weight: 800; }
.hl-num { font-size: 3.6rem; font-weight: 900; color: var(--brand); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hl-date { font-size: .85rem; color: var(--muted); }

.wa-cta { text-align: center; background: linear-gradient(135deg, #0b3d2c, #075e54); border: 2px solid #25D366; border-radius: var(--radius); padding: 18px 16px; margin: 14px auto; max-width: 700px; box-shadow: var(--shadow); }
.wa-cta-title { color: #ffd60a; font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.wa-cta-sub { color: #d8f3e6; font-size: .92rem; margin: 0; }
.wa-btn { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff !important; padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid #fff; box-shadow: 0 4px 15px rgba(37, 211, 102, .4); animation: wa-pulse 2s infinite; margin: 14px 0 4px; }
.wa-btn svg { width: 24px; height: 24px; flex: none; }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-btn { animation: none; } }

.board { background: var(--ink); border-radius: var(--radius); padding: 16px; margin: 14px 0 20px; box-shadow: var(--shadow); }
.board-title { color: var(--gold); text-align: center; margin: 0 0 14px; font-size: 1.1rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.game-box { display: grid; justify-items: center; gap: 2px; background: #fff; border-radius: 12px; padding: 12px 8px; text-decoration: none; color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; border-bottom: 3px solid var(--gold); }
.game-box:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.game-name { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.game-time { font-size: .76rem; color: var(--muted); background: var(--bg); padding: 1px 8px; border-radius: 999px; }
.game-nums { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.55rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.game-nums .old { color: #9aa0ab; }
.game-nums .arrow { font-size: .9rem; color: #c3c7cf; }
.game-nums .new { color: var(--brand); }

.intro { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 20px; border-left: 4px solid var(--gold); }

/* ---------- Charts ---------- */
.table-title { background: var(--ink); color: var(--gold); text-align: center; margin: 26px 0 0; padding: 12px; border-radius: var(--radius) var(--radius) 0 0; font-size: 1.1rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
table.chart { width: 100%; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.chart th, .chart td { border-bottom: 1px solid var(--line); padding: 9px 8px; white-space: nowrap; }
.chart thead th { background: var(--gold); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 0; }
.chart thead th a { color: var(--ink); text-decoration: none; }
.chart tbody th { color: var(--ink-2); font-weight: 600; font-size: .9rem; background: #fafbfc; }
.chart tbody td { font-weight: 800; font-size: 1.05rem; }
.chart tbody tr:hover td, .chart tbody tr:hover th { background: var(--gold-soft); }
.chart tr.today td, .chart tr.today th { background: #fff0f1; }
.chart td.big { font-size: 1.35rem; color: var(--brand); }
.chart.year td { min-width: 46px; }
.chart.year td + td, .chart.year th + td { border-left: 1px solid var(--line); }
.wait { color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.na { color: #c9ccd3; font-weight: 400; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; }
.btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; font-size: .92rem; box-shadow: 0 2px 6px rgba(225,29,46,.3); }
.btn:hover { background: var(--brand-dark); }

/* ---------- Article ---------- */
.seo-content { display: grid; gap: 16px; margin: 28px 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 22px 16px; }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; }
.card h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: linear-gradient(var(--brand), var(--gold)); flex: none; }
.card p { color: var(--ink-2); margin: 10px 0; }
.card .note { font-size: .86rem; color: var(--muted); background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.card ul { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.card ul li { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--ink-2); font-size: .94rem; }
.card ul li a { font-weight: 700; text-decoration: none; }
.card ul li a:hover { text-decoration: underline; }
.card ul.related li { padding: 0; }
.card ul.related li a { display: block; padding: 9px 12px; }
.card ul.related li:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.time-table { border-collapse: separate; border-spacing: 0; width: 100%; max-width: 620px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 12px 0; font-size: .94rem; }
.time-table th, .time-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.time-table tr:last-child td { border-bottom: 0; }
.time-table th { background: var(--gold-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.time-table a { font-weight: 700; text-decoration: none; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.glossary div { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 10px; padding: 10px 12px; }
.glossary dt { font-weight: 800; }
.glossary dd { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: #fff; transition: border-color .15s; }
.faq details[open] { border-color: var(--gold-line); background: #fffdf6; }
.faq summary { font-weight: 700; cursor: pointer; padding: 12px 44px 12px 14px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 800; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 14px 14px; color: var(--ink-2); }
.page-text { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 22px; margin-bottom: 24px; }

/* ---------- Archive ---------- */
.archive { background: #fff; border-top: 1px solid var(--line); padding: 32px 0 24px; margin-top: 32px; }
.archive-head { text-align: center; margin-bottom: 18px; }
.archive-head h2 { margin: 0 0 4px; font-size: 1.4rem; }
.archive-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.arch-card { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; background: var(--bg); overflow: hidden; }
.arch-card[open] { background: #fff; box-shadow: var(--shadow); }
.arch-card summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 800; }
.arch-card summary::-webkit-details-marker { display: none; }
.arch-card summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
.arch-card[open] summary::after { transform: rotate(180deg); }
.arch-title { flex: 1; }
.arch-count { font-size: .76rem; font-weight: 700; color: var(--ink-2); background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 2px 10px; border-radius: 999px; }
.arch-body { padding: 4px 18px 16px; }
.arch-main { display: inline-block; margin: 2px 0 10px; font-weight: 700; text-decoration: none; }
.arch-year { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.yr-label { font-weight: 800; color: var(--ink); text-decoration: none; background: var(--ink); color: var(--gold); text-align: center; border-radius: 8px; padding: 4px 0; font-size: .85rem; }
a.yr-label:hover { background: var(--brand); color: #fff; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.months a { text-align: center; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px 0; }
.months a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9adb8; text-align: center; padding: 26px 16px; font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--gold); }
.disclaimer { max-width: 780px; margin: 0 auto 10px; line-height: 1.6; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .main-nav { justify-content: flex-start; }
    .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .board { padding: 12px; }
    .board-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .game-nums { font-size: 1.3rem; }
    .chart th, .chart td { padding: 7px 5px; }
    .card { padding: 4px 16px 14px; }
    .arch-year { grid-template-columns: 1fr; gap: 6px; }
    .yr-label { justify-self: start; padding: 3px 12px; }
}
.narrow { max-width: 680px; margin: 0 auto; }
