/* ==========================================================================
   Neon Pulse — animated dark theme.
   Every motion rule is disabled under prefers-reduced-motion at the bottom.
   ========================================================================== */

:root {
    --bg: #06060d;
    --ink: #0d0d18;
    --card: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .1);
    --text: #eef0f8;
    --dim: #9aa0b8;
    --cyan: #22d3ee;
    --violet: #a855f7;
    --pink: #f472b6;
    --lime: #a3e635;
    --amber: #fbbf24;
    --red: #fb5f5f;
    --wa: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    position: relative;
    min-height: 100vh;
    padding-bottom: 30px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }

.wrap { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------- aurora canvas */

/* Two oversized blurred gradients drifting behind everything. */
.aurora {
    position: fixed;
    inset: -30%;
    z-index: 0;
    background:
        radial-gradient(38% 44% at 20% 25%, rgba(168, 85, 247, .40), transparent 60%),
        radial-gradient(34% 40% at 78% 20%, rgba(34, 211, 238, .34), transparent 60%),
        radial-gradient(40% 44% at 60% 85%, rgba(244, 114, 182, .30), transparent 60%);
    filter: blur(30px);
    animation: auroraDrift 22s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(3%, -3%, 0) scale(1.12); }
    100% { transform: translate3d(-3%, 3%, 0) scale(1.05); }
}

/* Slow-floating dots for depth. */
.orbs { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.orb {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: .35;
    filter: blur(1px);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    from { transform: translateY(110vh) scale(.6); opacity: 0; }
    10%  { opacity: .5; }
    90%  { opacity: .5; }
    to   { transform: translateY(-12vh) scale(1.25); opacity: 0; }
}

/* ------------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(6, 6, 13, .72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.3px; }

/* Rotating conic ring around the logo mark. */
.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--ink);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
    animation: spin 4s linear infinite;
    z-index: -1;
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); }

.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }

.nav-links a {
    position: relative;
    padding: 7px 13px;
    border-radius: 9px;
    color: var(--dim);
    font-size: 14px;
    font-weight: 600;
    transition: color .2s, background .2s;
}

.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, .07); color: #fff; }

/* Underline that grows from the centre on hover. */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width .25s ease;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }

/* ------------------------------------------------------------- live strip */

.ticker { position: relative; z-index: 2; padding: 9px 0; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: inline-flex; gap: 34px; white-space: nowrap; animation: marquee 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dim); }
.ticker-item b { color: #fff; }
.ticker-item .val { color: var(--lime); font-weight: 800; }
.ticker-item .val.wait { display: inline-flex; color: var(--amber); }

/* --------------------------------------------------------------- hero */

.hero { position: relative; z-index: 2; padding: 54px 16px 40px; text-align: center; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Pulsing "live" dot with an expanding halo. */
.live-dot { position: relative; width: 8px; height: 8px; background: var(--lime); border-radius: 50%; }

.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--lime);
    border-radius: 50%;
    animation: halo 1.8s ease-out infinite;
}

@keyframes halo {
    0%   { transform: scale(.6); opacity: .9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.hero-hindi { margin: 16px 0 6px; color: var(--dim); font-size: 15px; font-weight: 600; }

.hero-game {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 6s linear infinite;
}

@keyframes sheen { to { background-position: 300% center; } }

.hero-number {
    position: relative;
    margin: 6px 0 4px;
    font-size: 104px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    color: #fff;
    text-shadow: 0 0 26px rgba(34, 211, 238, .55), 0 0 70px rgba(168, 85, 247, .45);
    animation: glowPulse 2.6s ease-in-out infinite;
}

/* Halo sitting behind the headline number. Width is capped rather than fixed
   so it can never push the page wider than a narrow phone viewport. */
.hero-number::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: 100%;
    max-width: 360px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(50% 50% at 50% 50%, rgba(34, 211, 238, .20), transparent 70%);
    pointer-events: none;
}

@keyframes glowPulse {
    50% { text-shadow: 0 0 40px rgba(34, 211, 238, .85), 0 0 100px rgba(168, 85, 247, .65); }
}

/* Headline slot when nothing is declared: the same sweeping clock the cards
   use, scaled up. No word stands in for the number. */
.hero-wait {
    display: inline-flex;
    margin: 10px 0 2px;
    color: var(--amber);
    filter: drop-shadow(0 0 14px rgba(251, 191, 36, .5));
    animation: waitBreathe 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------- countdown */

.countdown { margin-top: 22px; }
.countdown-label { margin-bottom: 10px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.countdown-boxes { display: inline-flex; gap: 10px; }

.cd-box {
    min-width: 74px;
    padding: 12px 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.cd-num { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit { margin-top: 4px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Each second tick briefly flashes the seconds box. */
.cd-box.tick .cd-num { animation: tickFlash .45s ease; }
@keyframes tickFlash { 0% { color: var(--cyan); transform: scale(1.18); } 100% { color: inherit; transform: scale(1); } }

/* How much of the gap between the last result and the next one has passed. */
.cd-bar {
    width: 268px;
    max-width: 100%;
    height: 5px;
    margin: 16px auto 0;
    background: rgba(255, 255, 255, .09);
    border-radius: 999px;
    overflow: hidden;
}

.cd-bar i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(168, 85, 247, .7);
    transition: width 1s linear;
}

/* ------------------------------------------------------------- sections */

.section { position: relative; z-index: 2; margin-bottom: 46px; }
.section-head { margin-bottom: 18px; text-align: center; }

/* Gradient rule under each heading ties the sections together. */
.section-head h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.section-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 58px;
    height: 3px;
    margin-left: -29px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    border-radius: 3px;
}

.section-head p { margin-top: 2px; color: var(--dim); font-size: 14px; }

/* Scroll reveal — .reveal starts hidden, JS adds .in when it scrolls in. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }






/* ------------------------------------------------------------ game cards */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.game {
    position: relative;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.game:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, .55); box-shadow: 0 16px 40px rgba(168, 85, 247, .22); }

/* Thin accent along the top edge that widens and brightens on hover. */
.game::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
    opacity: .4;
    transition: opacity .3s ease, left .4s ease, right .4s ease;
}

.game:hover::before { left: 6%; right: 6%; opacity: 1; }

/* Cards still waiting lean amber, declared ones lean cyan. */
.game.is-wait::before { background: linear-gradient(90deg, transparent, var(--amber), #f97316, transparent); }
.game.is-wait:hover { border-color: rgba(251, 191, 36, .5); box-shadow: 0 16px 40px rgba(251, 191, 36, .18); }

/* Light sweep that crosses the card on hover. */
.game::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
    transform: skewX(-18deg);
    transition: left .7s ease;
}

.game:hover::after { left: 130%; }

.game-name { font-size: 19px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.game-time { margin-bottom: 12px; color: var(--dim); font-size: 12px; font-weight: 600; }

.game-num {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.game-prev { margin-top: 8px; color: var(--dim); font-size: 12px; }
.game-prev b { color: var(--text); }

/* Pending marker: a real clock whose hand sweeps, so "time nahi hua" reads
   instantly. Replaces the old pill and the half-ring spinner. */
.wait-ico {
    display: inline-flex;
    color: var(--amber);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, .45));
    animation: waitBreathe 2.4s ease-in-out infinite;
}

@keyframes waitBreathe {
    50% { filter: drop-shadow(0 0 16px rgba(251, 191, 36, .85)); }
}

.w-ring { opacity: .3; }

/* Dashed outer ring turning the other way adds depth without extra markup. */
.w-tick {
    opacity: .55;
    stroke-dasharray: 1.6 5.2;
    transform-origin: 12px 12px;
    animation: ringTurn 9s linear infinite reverse;
}

@keyframes ringTurn { to { transform: rotate(360deg); } }

.w-hand {
    transform-origin: 12px 12px;
    animation: handSweep 2.6s cubic-bezier(.5, 0, .5, 1) infinite;
}

/* Steps forward like a real second hand instead of gliding. */
@keyframes handSweep {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.w-pin { opacity: .9; }

/* Same hand animation, smaller, inside the ticker. */
.ticker-item .val.wait .w-hand { animation: handSweep 2.6s cubic-bezier(.5, 0, .5, 1) infinite; }

.game-link { display: inline-block; margin-top: 12px; color: var(--dim); font-size: 12px; font-weight: 600; transition: color .2s; }
.game-link:hover { color: var(--cyan); }

/* ------------------------------------------------------------- panels */

.panel { padding: 26px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; text-align: center; backdrop-filter: blur(8px); }
.panel h3 { margin-bottom: 4px; font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.panel .rate { margin-bottom: 16px; color: var(--amber); font-size: 13px; font-weight: 700; }

.panel-list { list-style: none; max-width: 360px; margin: 0 auto; }
.panel-list li { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 14px; font-weight: 600; }
.panel-list li i { flex: 1; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.panel-list li span:last-child { color: var(--cyan); }
.panel .note { margin-top: 14px; color: var(--dim); font-size: 12px; }

.cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cta:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(168, 85, 247, .4); }
.cta.wa { background: linear-gradient(135deg, #25d366, #13a34a); }
.cta.tg { background: linear-gradient(135deg, #38bdf8, #2563eb); margin-left: 8px; }

/* ---------------------------------------------------------------- faq */

.faq-item { margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    background: none;
    border: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}

.faq-q:hover { background: rgba(255, 255, 255, .05); }
.faq-ico { flex: 0 0 auto; color: var(--cyan); font-size: 20px; transition: transform .3s ease; }
.faq-item.open .faq-ico { transform: rotate(135deg); }

/* Height transition gives a smooth expand instead of a jump. */
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 18px 15px; color: var(--dim); font-size: 14px; }

/* --------------------------------------------------------------- about */

.about p { margin-bottom: 12px; color: var(--dim); }

/* -------------------------------------------------------------- footer */

.footer { position: relative; z-index: 2; padding: 34px 16px; border-top: 1px solid var(--line); text-align: center; }
.footer-name { margin-bottom: 8px; font-size: 20px; font-weight: 800; background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer p { max-width: 760px; margin: 0 auto 8px; color: var(--dim); font-size: 13px; word-break: break-word; }
.footer .legal { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }

/* ------------------------------------------------------- floating button */

.fab {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--wa);
    border-radius: 50%;
    box-shadow: 0 8px 26px rgba(37, 211, 102, .45);
    color: #fff;
    animation: bob 2.8s ease-in-out infinite;
}

@keyframes bob { 50% { transform: translateY(-7px); } }

.fab::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--wa);
    border-radius: 50%;
    animation: halo 2.2s ease-out infinite;
}

/* ---------------------------------------------------------- chart page */

.chart-wrap { position: relative; z-index: 2; max-width: 1100px; margin: 26px auto; padding: 0 16px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.filters select, .filters input { padding: 10px 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 14px; }
.btn { display: inline-block; padding: 10px 20px; background: linear-gradient(135deg, var(--cyan), var(--violet)); border: 0; border-radius: 10px; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }

.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.chart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chart-table th, .chart-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.chart-table thead th { background: rgba(0, 0, 0, .35); color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.chart-table .date-col { color: var(--violet); font-weight: 800; }
.chart-table tbody tr { transition: background .2s; }
.chart-table tbody tr:hover { background: rgba(255, 255, 255, .05); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 640px) {
    .hero { padding: 36px 16px 30px; }
    .hero-number { font-size: 66px; letter-spacing: -2px; }
    .hero-game { font-size: 22px; letter-spacing: 2px; }
    .cd-box { min-width: 62px; padding: 10px 6px; }
    .cd-num { font-size: 22px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .game-num { font-size: 34px; }
    .nav { flex-wrap: wrap; }
    .nav-links { width: 100%; margin-left: 0; justify-content: center; }
}

/* Motion is decorative here — strip all of it when the OS asks. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal { opacity: 1; transform: none; }
    .faq-a { transition: none; }
}

/* Hindi content sections */
.info-wrap { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto 46px; padding: 0 16px; }
.info-h { margin-bottom: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.4px; text-align: center; }

.recent-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.recent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.recent-table th, .recent-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.recent-table thead th { background: rgba(0,0,0,.35); color: var(--cyan); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.recent-table tbody tr { transition: background .2s; }
.recent-table tbody tr:hover { background: rgba(255,255,255,.05); }
.rt-date { color: var(--violet); font-weight: 800; }
.rt-dash { color: #4a4f66; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 20px 0; }
.step { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: center; backdrop-filter: blur(8px); transition: transform .25s ease, border-color .25s ease; }
.step:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.5); }
.step-ico { display: block; font-size: 26px; }
.step b { display: block; margin: 6px 0 3px; font-size: 15px; }
.step span { color: var(--dim); font-size: 13px; }

.info-block { margin-bottom: 14px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(8px); }
.info-block h3 { margin-bottom: 10px; font-size: 18px; font-weight: 800; color: var(--cyan); }
.info-block p { margin-bottom: 10px; color: var(--dim); font-size: 14px; }
.info-block p:last-child { margin-bottom: 0; }
