/* ==========================================================================
   Yellow / black result-board theme
   Shared by index.php and chart.php.
   ========================================================================== */

:root {
    --yellow: #ffd400;
    --yellow-dk: #e5bd00;
    --black: #000000;
    --ink: #111111;
    --red: #e00000;
    --wa: #25d366;
    --line: #000000;
}

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

body {
    padding-bottom: 24px;
    background: #ffffff;
    color: var(--ink);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-text-size-adjust: 100%;
}

a { color: #0033cc; }

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

.topnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background: var(--black);
    padding: 12px 10px;
}

.nav-pill {
    flex: 1 1 150px;
    max-width: 260px;
    padding: 9px 14px;
    background: var(--yellow);
    border: 2px solid var(--yellow-dk);
    border-radius: 999px;
    color: var(--black);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none;
}

.nav-pill:hover,
.nav-pill.active { background: #ffffff; }

/* ------------------------------------------------------------- brand bar */

.brand-bar {
    background: var(--yellow);
    padding: 16px 12px;
    text-align: center;
}

.brand-bar h1 {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--black);
    word-break: break-word;
}

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

.hero-strip {
    background: var(--black);
    color: #ffffff;
    padding: 22px 12px 26px;
    text-align: center;
}

.hero-hindi {
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: bold;
}

.hero-game {
    font-size: 27px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-number {
    margin-top: 8px;
    font-size: 40px;
    font-weight: bold;
    color: var(--yellow);
}

.hero-number.is-wait {
    font-size: 26px;
    animation: waitFlash 1.1s ease-in-out infinite;
}

/* Flashes between two colours rather than toggling visibility, so the
   label stays readable at every point in the cycle. */
@keyframes waitFlash {
    0%, 100% { color: var(--red); }
    50%      { color: #ff8c00; }
}

@keyframes waitPulse {
    0%, 100% { background: var(--red); }
    50%      { background: #ff8c00; }
}

/* ---------------------------------------------------------- notice strip */

.notice-strip {
    padding: 10px 12px;
    background: #ffffff;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .3px;
    text-align: center;
}

.notice-strip a { color: var(--red); text-decoration: underline; }

/* ---------------------------------------------------------- contact band */

.contact-band {
    padding: 16px 12px 20px;
    background: var(--yellow);
    border-bottom: 3px solid var(--red);
    text-align: center;
}

.contact-title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
}

.contact-title span { font-size: 12px; font-weight: normal; }

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 12px;
    background: var(--wa);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.chat-btn + .chat-btn { margin-left: 10px; }
.chat-btn-tg { background: #29a9eb; }

.chat-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.chat-text strong { font-size: 15px; }
.chat-text em { font-size: 11px; font-style: normal; opacity: .9; }

/* ----------------------------------------------------------- khaiwal box */

.khaiwal-box {
    max-width: 620px;
    margin: 18px auto;
    padding: 14px 16px 18px;
    background: #fffdf2;
    border: 3px solid var(--black);
    border-radius: 10px;
    text-align: center;
}

.khaiwal-top { font-size: 12px; font-weight: bold; }

.khaiwal-name {
    margin: 6px 0 12px;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: .5px;
    color: var(--red);
}

.khaiwal-list { list-style: none; }

.khaiwal-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    font-size: 14px;
    font-weight: bold;
}

/* Dotted leader between the game name and its time. */
.khaiwal-list li i {
    flex: 1;
    border-bottom: 2px dotted #999999;
}

.khaiwal-rate {
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: bold;
}

.khaiwal-note { font-size: 11px; font-weight: bold; color: #444444; }

/* ------------------------------------------------------------- spotlight */

.spotlight {
    padding: 14px 12px 18px;
    background: var(--yellow);
    border-top: 3px solid var(--black);
    border-bottom: 3px solid var(--black);
    text-align: center;
}

.spotlight h3 { font-size: 22px; font-weight: bold; letter-spacing: 1px; }
.spotlight-time { margin: 2px 0 10px; font-size: 13px; font-weight: bold; }

.spotlight-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 26px;
    font-weight: bold;
}

.sp-prev { color: var(--black); }
.sp-arrow { color: var(--red); font-size: 20px; }
.sp-today { color: var(--red); }

/* ------------------------------------------------------------ wait badge */

.wait-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--red);
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: waitPulse 1.1s ease-in-out infinite;
}

/* Pending marker inside the result table — an icon reads faster than the word
   repeated on every row. The word stays in the hero and spotlight. */
.wait-ico { display: inline-flex; color: var(--red); animation: flipGlass 2.4s ease-in-out infinite; }

@keyframes flipGlass {
    0%, 45%   { transform: rotate(0deg); }
    55%, 100% { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wait-badge, .hero-number.is-wait, .wait-ico { animation: none; }
}

/* ---------------------------------------------------------- result table */

.result-wrap { max-width: 900px; margin: 20px auto; padding: 0 10px; }

.result-table {
    width: 100%;
    border-collapse: collapse;
    border: 3px solid var(--line);
}

.result-table th {
    padding: 10px 6px;
    background: var(--black);
    border: 2px solid var(--line);
    color: #ffffff;
    font-size: 14px;
}

.result-table td {
    padding: 10px 6px;
    border: 2px solid var(--line);
    text-align: center;
    vertical-align: middle;
}

.cell-name { width: 44%; background: var(--yellow); }

.g-name {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--black);
}

.g-time { display: block; font-size: 13px; font-weight: bold; color: #333333; }

.cell-prev { font-size: 22px; font-weight: bold; }
.cell-today { width: 28%; }
.today-num { font-size: 22px; font-weight: bold; color: var(--red); }

.btn-block {
    display: block;
    max-width: 420px;
    margin: 16px auto 0;
    padding: 12px;
    background: var(--black);
    border: 3px solid var(--yellow);
    border-radius: 8px;
    color: var(--yellow);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none;
}

.btn-block:hover { background: var(--yellow); color: var(--black); }

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

.section-heading {
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: bold;
    color: var(--black);
    text-align: center;
}

.faq-section { max-width: 760px; margin: 26px auto; padding: 0 12px; }

.faq-item {
    margin-bottom: 8px;
    border: 2px solid var(--black);
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: var(--yellow);
    border: 0;
    color: var(--black);
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}

.faq-icon { font-size: 18px; font-style: normal; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    display: none;
    padding: 11px 14px;
    background: #ffffff;
    border-top: 2px solid var(--black);
    font-size: 14px;
}

.faq-item.open .faq-answer { display: block; }

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

.site-footer {
    padding: 22px 16px;
    background: var(--black);
    color: #ffffff;
    text-align: center;
}

.footer-name { margin-bottom: 10px; font-size: 20px; font-weight: bold; color: var(--yellow); }

.footer-desc,
.footer-text {
    max-width: 780px;
    margin: 0 auto 10px;
    font-size: 13px;
    color: #e8e8e8;
    word-break: break-word;
}

.footer-legal {
    max-width: 780px;
    margin: 14px auto 0;
    padding-top: 12px;
    border-top: 1px solid #444444;
    font-size: 12px;
    color: #bbbbbb;
}

/* ---------------------------------------------------------- floating bar */







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

.chart-wrap { max-width: 1100px; margin: 20px auto; padding: 0 12px; }

.back-link { margin-bottom: 14px; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--yellow);
    border: 3px solid var(--black);
    border-radius: 8px;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 10px;
    background: #ffffff;
    border: 2px solid var(--black);
    border-radius: 6px;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
}

.btn-chart {
    display: inline-block;
    padding: 9px 18px;
    background: var(--black);
    border: 2px solid var(--black);
    border-radius: 6px;
    color: var(--yellow);
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.btn-chart:hover { background: #ffffff; color: var(--black); }

.table-scroll { overflow-x: auto; border: 3px solid var(--black); }

.chart-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.chart-table th,
.chart-table td {
    padding: 9px 8px;
    border: 2px solid var(--black);
    text-align: center;
    white-space: nowrap;
}

.chart-table thead th { background: var(--black); color: #ffffff; }
.chart-table .date-col { background: var(--yellow); font-weight: bold; }
.chart-table tbody td { background: #ffffff; font-weight: bold; }
.chart-table tbody tr:nth-child(even) td { background: #fff8d6; }
.chart-table tbody tr:nth-child(even) td.date-col { background: var(--yellow-dk); }

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

@media (max-width: 640px) {
    .brand-bar h1 { font-size: 23px; }
    .hero-hindi { font-size: 15px; }
    .hero-game { font-size: 21px; }
    .hero-number { font-size: 32px; }
    .nav-pill { flex: 1 1 40%; padding: 8px 6px; font-size: 12px; }
    .g-name { font-size: 18px; }
    .cell-prev, .today-num { font-size: 19px; }
    .spotlight h3 { font-size: 18px; }
    .spotlight-row { font-size: 22px; }
    .khaiwal-list li { font-size: 13px; }
}

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

.about-section { max-width: 800px; margin: 26px auto; padding: 18px 16px; background: #fffdf2; border: 3px solid var(--black); border-radius: 10px; }
.about-section p { margin-bottom: 10px; font-size: 14px; }
.about-section p:last-child { margin-bottom: 0; }

/* Floating WhatsApp button (replaces the old bottom action bar). */
.float-wa {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    color: #ffffff;
}

/* ------------------------------------------------- Hindi content sections */

.info-wrap { max-width: 900px; margin: 26px auto; padding: 0 12px; }
.info-h { margin-bottom: 12px; font-size: 20px; font-weight: bold; text-align: center; }

.recent-scroll { overflow-x: auto; border: 3px solid var(--black); }
.recent-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #ffffff; }
.recent-table th, .recent-table td { padding: 8px 10px; border: 1px solid var(--black); text-align: center; white-space: nowrap; font-weight: bold; }
.recent-table thead th { background: var(--black); color: var(--yellow); }
.rt-date { background: var(--yellow); }
.rt-dash { color: #999999; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0; }
.step { padding: 14px; background: var(--yellow); border: 3px solid var(--black); border-radius: 10px; text-align: center; }
.step-ico { display: block; font-size: 24px; }
.step b { display: block; margin: 4px 0 2px; font-size: 15px; }
.step span { font-size: 12px; }

.info-block { margin-bottom: 14px; padding: 16px; background: #fffdf2; border: 3px solid var(--black); border-radius: 10px; }
.info-block h3 { margin-bottom: 8px; font-size: 17px; }
.info-block p { margin-bottom: 8px; font-size: 14px; }
.info-block p:last-child { margin-bottom: 0; }
