/* ==========================================================================
   SATTA KING NO.1 LIVE - single page result portal
   Mobile first. No sidebar, no dashboard grid, no app navigation.

   TYPOGRAPHY SYSTEM (centralized)
   Every font-family / size / weight / line-height / tracking in this file
   resolves through the tokens declared in :root. Component rules never
   declare raw font sizes unless the size is a documented step token.
   ========================================================================== */

:root {
    /* ---------- color ---------- */
    --ink:        #101418;
    --ink-soft:   #3c4650;
    --ink-mute:   #6b7883;
    --line:       #d7dde3;
    --line-soft:  #e9edf1;
    --paper:      #ffffff;
    --ground:     #f2f4f6;
    --brand:      #101418;
    --accent:     #f5b301;
    --live:       #c62828;
    --live-bg:    #fdecec;
    --next:       #0b5ea8;
    --next-bg:    #e8f1fb;
    --upcoming:   #6b7883;
    --upcoming-bg:#eef1f4;
    --done:       #1c7a45;
    --done-bg:    #e7f5ec;

    /* ---------- layout ---------- */
    --gap-section: 22px;
    --gap-row:     8px;
    --radius:      6px;
    --radius-sm:   4px;
    --shadow:      0 1px 2px rgba(16, 20, 24, .07);

    /* ---------- font families ---------- */
    --font-primary:   "Hind", "Noto Sans Devanagari", Arial, sans-serif;
    --font-secondary: Arial, Helvetica, sans-serif;

    /* ---------- font size scale (rem = 16px root) ---------- */
    --font-size-xs:      0.75rem;    /* 12 - metadata, helper, badges      */
    --font-size-th:      0.8125rem;  /* 13 - table headers, timestamps     */
    --font-size-sm:      0.875rem;   /* 14 - compact body, links, tables   */
    --font-size-sm-plus: 0.9375rem;  /* 15 - answers, long body copy       */
    --font-size-md:      1rem;       /* 16 - body, form controls           */
    --font-size-lg:      1.125rem;   /* 18 - market names, h3 desktop      */
    --font-size-xl:      1.25rem;    /* 20 - h2 mobile floor               */
    --font-size-2xl:     1.5rem;     /* 24 - result numbers, h2 desktop    */
    --font-size-3xl:     1.875rem;   /* 30 - result numbers desktop        */

    /* ---------- font weights ---------- */
    --weight-regular:  400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;

    /* ---------- line heights ---------- */
    --line-tight:   1.2;
    --line-heading: 1.3;
    --line-normal:  1.5;
    --line-body:    1.6;
    --line-relaxed: 1.7;

    /* ---------- letter spacing ---------- */
    --tracking-tight:  -0.01em;
    --tracking-normal:  0;
    --tracking-wide:    0.03em;
    --tracking-wider:   0.05em;

    /* ---------- heading scale (responsive, mobile first) ---------- */
    --h1-size: clamp(1.375rem, 2.5vw + 1rem, 2rem);      /* 22 -> 32px */
    --h2-size: clamp(1.25rem, 1.5vw + 0.875rem, 1.5rem); /* 20 -> 24px */
    --h3-size: clamp(1.0625rem, 1vw + 0.75rem, 1.3125rem); /* 17 -> 21px */

    /* ---------- component type steps ---------- */
    --type-market-name: var(--font-size-md);   /* 16 mobile -> 18 desktop */
    --type-result:      clamp(1.25rem, 3vw + 0.75rem, 1.75rem); /* 20 -> 28px */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    /* Never allow page level horizontal scrolling. */
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    font-weight: var(--weight-regular);
    line-height: var(--line-body);
    letter-spacing: var(--tracking-normal);
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; display: block; }

a {
    color: var(--next);
    text-decoration: none;
    font-weight: var(--weight-semibold);
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    margin: 0;
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    overflow-wrap: break-word;
}
h1 { font-size: var(--h1-size); line-height: var(--line-tight); }
h2 { font-size: var(--h2-size); line-height: var(--line-heading); }
h3 { font-size: var(--h3-size); line-height: 1.35; font-weight: var(--weight-semibold); }
h4 { font-size: var(--font-size-md); line-height: var(--line-normal); font-weight: var(--weight-semibold); }

p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

/* Keyboard focus is always visible. */
:focus-visible {
    outline: 2px solid var(--next);
    outline-offset: 2px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: #fff; padding: 10px 16px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
}
.skip-link:focus { left: 0; }

/* Single centered content wrapper - never touches the screen edges. */
.container {
    width: calc(100% - 16px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Long informational copy stays comfortable to read. */
.prose,
.notice__text,
.disclaimer__text,
.faq__a { max-width: 78ch; }

/* ---------- CMS pages (page.php) ---------- */
.page-content { line-height: 1.75; color: var(--ink); }
.page-content p { margin: 0 0 14px; }
.page-content h2 { margin: 24px 0 10px; font-size: 1.15rem; color: var(--brand); }
.page-content h3 { margin: 18px 0 8px; font-size: 1.02rem; color: var(--brand); }
.page-content ul,
.page-content ol { margin: 0 0 14px; padding-left: 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: #0b5ea8; text-decoration: underline; }
.page-content a:hover { color: var(--brand); }
.page-content strong,
.page-content b { color: var(--brand); }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.page-content blockquote {
    margin: 0 0 14px; padding: 10px 14px;
    background: var(--ground); border-left: 3px solid var(--accent);
}

/* ---------- Header (logo / name only) ---------- */
.site-header {
    background: var(--brand);
    color: #fff;
    border-bottom: 3px solid var(--accent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    color: inherit;
    min-width: 0;
}
.brand__logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.brand__logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(70vw, 340px);
    object-fit: contain;
}
.brand__name--hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.brand__mark {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 24px;
    flex: 0 0 auto;
}
.brand__mark span {
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.brand__mark span:nth-child(2) { width: 75%; background: #fff; }
.brand__mark span:nth-child(3) { width: 50%; background: #fff; }

.brand__text { display: flex; flex-direction: column; min-width: 0; }

/* Wordmark: an intentional exception to the page H1 scale so the header
   bar stays a compact logo lockup. Page level headings keep --h1-size. */
.brand__name {
    margin: 0;
    font-size: clamp(1.375rem, 1vw + 1.1rem, 1.625rem);   /* 22 -> 26 */
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    letter-spacing: var(--tracking-tight);
}
.brand__name a {
    color: #fff;
    font-weight: var(--weight-bold);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    max-width: 100%;
}
.brand__name a:hover { color: var(--accent); text-decoration: none; }

.brand__latin {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: #b8c2cc;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    line-height: var(--line-normal);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.site-header__tools { display: flex; align-items: center; gap: 8px; }

.refresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    background: #1d242c;
    border: 1px solid #2b333c;
    border-radius: 12px;
    padding: 4px 10px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: var(--line-normal);
}
.refresh-pill[hidden] { display: none; }

/* ---------- Sections ---------- */
.section { margin-bottom: var(--gap-section); }

/* Top of the page: compact, never a blank region. */
.section--notice { padding-top: 10px; }

@media (min-width: 600px) {
    .section--notice { padding-top: 20px; }
}

.section__title {
    font-size: var(--h2-size);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-tight);
    padding: 9px 12px;
    margin-bottom: 8px;
    background: var(--brand);
    color: #fff;
    border-left: 5px solid var(--accent);
    border-radius: var(--radius-sm);
}
.section__title--flush { margin-bottom: 0; }

.subheading {
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    line-height: 1.35;
    letter-spacing: var(--tracking-tight);
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand);
}

.empty {
    padding: 16px 12px;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--ink-mute);
    font-size: var(--font-size-sm);
    line-height: var(--line-normal);
    text-align: center;
}
.empty--inline {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.upcoming-panel__title {
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    margin: 0 0 6px;
}
.upcoming-panel__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}
.upcoming-panel__item {
    font-size: var(--font-size-sm);
    color: var(--ink-soft);
}
.upcoming-panel__item a { color: var(--ink); font-weight: var(--weight-semibold); }

/* ---------- Section 01: notice ---------- */
.notice {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.notice__text {
    font-size: var(--font-size-sm-plus);
    font-weight: var(--weight-regular);
    color: var(--ink-soft);
    line-height: var(--line-relaxed);
}
.notice__tag {
    display: inline-block;
    background: var(--brand);
    color: var(--accent);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: 1px;
}
.notice__meta {
    margin-top: 6px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
    line-height: var(--line-normal);
}

.notice__list {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
    display: grid;
    gap: 5px;
}
.notice__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: var(--font-size-sm);
    line-height: var(--line-normal);
}
.notice__dot {
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex: 0 0 auto;
}
.notice__item-title { font-weight: var(--weight-semibold); color: var(--ink); }
.notice__item-body  { color: var(--ink-mute); }

/* ---------- Section 02: media ---------- */
.media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: calc(300px * 16 / 9);
    margin-inline: auto;
    background: var(--brand);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}
.media__player { width: 100%; height: 100%; object-fit: contain; background: #000; }

.media__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    padding: 12px;
    background:
        repeating-linear-gradient(
            135deg,
            #141920 0 12px,
            #10141a 12px 24px
        );
    color: #d7dde3;
}
.media__icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: var(--font-size-md);
    padding-left: 3px;
}
.media__label { font-size: var(--font-size-sm); font-weight: var(--weight-semibold); }
.media__hint  { font-size: var(--font-size-xs); color: #8b97a3; }

/* ---------- Compact cards ---------- */
.cards {
    display: grid;
    gap: var(--gap-row);
}
.cards--tight { gap: 6px; }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--upcoming);
    border-radius: var(--radius);
    padding: 8px 10px;
    box-shadow: var(--shadow);
}
.card.is-live     { border-left-color: var(--live); }
.card.is-next     { border-left-color: var(--next); }
.card.is-upcoming { border-left-color: var(--upcoming); }
.card.is-done     { border-left-color: var(--done); }

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}
.card__time {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
    line-height: var(--line-normal);
}

.card__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}
.card__name {
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: var(--tracking-normal);
    overflow-wrap: break-word;
}
.card__name:hover { color: var(--next); text-decoration: none; }

.card__values {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 5px;
    border-top: 1px dashed var(--line-soft);
}
.card__value  { display: flex; align-items: baseline; gap: 4px; }
.card__value em {
    font-style: normal;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
}
.card__value strong {
    font-size: var(--font-size-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    font-variant-numeric: tabular-nums;
    letter-spacing: var(--tracking-normal);
}
.card__value--prev strong { color: var(--ink-mute); font-size: var(--font-size-md); }

.card__foot {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line-soft);
    text-align: right;
}

/* ---------- Status labels ---------- */
.badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    line-height: var(--line-normal);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    background: var(--upcoming-bg);
    color: var(--upcoming);
}
.badge.is-live     { background: var(--live-bg);     color: var(--live); }
.badge.is-next     { background: var(--next-bg);     color: var(--next); }
.badge.is-upcoming { background: var(--upcoming-bg); color: var(--upcoming); }
.badge.is-done     { background: var(--done-bg);     color: var(--done); }

.value {
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-bold);
    font-size: var(--font-size-md);
    line-height: var(--line-normal);
}
.value--current { color: var(--ink); }
.value--previous {
    color: var(--ink-mute);
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-sm);
}

/* ---------- Status groups ---------- */
.group {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 10px;
}
.group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--line);
}
.group.is-live     .group__head { border-bottom-color: var(--live); }
.group.is-next     .group__head { border-bottom-color: var(--next); }
.group.is-upcoming .group__head { border-bottom-color: var(--upcoming); }
.group.is-done     .group__head { border-bottom-color: var(--done); }

.group__label {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}
.group.is-live     .group__label { color: var(--live); }
.group.is-next     .group__label { color: var(--next); }
.group.is-upcoming .group__label { color: var(--upcoming); }
.group.is-done     .group__label { color: var(--done); }

.group__desc {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
}

/* ---------- Data tables ---------- */
.table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.data-table {
    min-width: 100%;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.data-table thead { display: none; }

.data-table tbody tr {
    display: block;
    border-bottom: 1px solid var(--line-soft);
    padding: 9px 10px;
}
.data-table tbody tr:last-child { border-bottom: 0; }

.data-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 3px 0;
    text-align: right;
    font-weight: var(--weight-regular);
}
.data-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    text-align: left;
}
.data-table td > * { text-align: right; }

.row__cell--name { align-items: center; }
.row__cell--name::before { align-self: center; }
.row__link {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    line-height: 1.35;
    color: var(--ink);
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.row__link:hover { color: var(--next); text-decoration: none; }

.row__cell--action { padding-top: 5px; }

.row__history {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--next);
    border: 1px solid var(--line);
    background: var(--ground);
    padding: 3px 9px;
    border-radius: 3px;
}
.row__history:hover {
    background: var(--next);
    border-color: var(--next);
    color: #fff;
    text-decoration: none;
}

/* ---------- Category groups ---------- */
.cat-group {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.cat-group__title {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    line-height: var(--line-heading);
    background: var(--brand);
    color: #fff;
    padding: 8px 12px;
    border-bottom: 2px solid var(--accent);
}

.cat-list { display: block; }

.cat-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line-soft);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}
.cat-row:last-child { border-bottom: 0; }
.cat-row:nth-child(even) { background: #fafbfc; }

.cat-row__name {
    font-weight: var(--weight-bold);
    color: var(--ink);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    min-width: 0;
    overflow-wrap: break-word;
}
.cat-row__name:hover { color: var(--next); text-decoration: none; }

.cat-row__time  { color: var(--ink-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-row__value {
    font-weight: var(--weight-bold);
    font-size: var(--font-size-sm-plus);
    font-variant-numeric: tabular-nums;
    min-width: 26px;
    text-align: right;
}

/* ---------- Chart controls ---------- */
.chart-controls {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
}
.chart-controls__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 110px; }
.field__label {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: var(--line-normal);
    color: var(--ink-mute);
}
.field__input {
    width: 100%;
    font-family: inherit;
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    line-height: var(--line-normal);
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    min-height: 42px;
}
.field__input::placeholder {
    font-size: var(--font-size-sm);
    color: var(--ink-mute);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    letter-spacing: var(--tracking-normal);
    padding: 11px 18px;
    min-height: 42px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { background: #232b34; border-color: #232b34; text-decoration: none; }

.btn--ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    padding: 10px 14px;
}
.btn--ghost:hover { background: var(--ground); color: var(--ink); border-color: var(--ink-mute); }

/* Compact secondary control: smaller than the primary button but never
   below the 13px readability floor. */
.btn--small {
    padding: 8px 12px;
    min-height: 36px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-semibold);
}

.chart-controls__fields .btn { flex: 1 1 100%; }

.chart-controls__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}
.chart-controls__nav .btn {
    flex: 0 1 auto;
    font-size: var(--font-size-th);
    min-height: 42px;
    padding: 8px 12px;
    background: var(--next);
    border-color: var(--next);
    color: #fff;
}
.chart-controls__nav .btn:hover {
    background: #094d8a;
    border-color: #094d8a;
    color: #fff;
    text-decoration: none;
}
.chart-controls__current {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    text-align: center;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}
.chart-controls__note {
    margin-top: 8px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    text-align: center;
    line-height: var(--line-normal);
}

/* Narrow phones: month label gets its own line and both navigation
   buttons share the next one, so the row never forces page scrolling. */
@media (max-width: 399px) {
    .chart-controls__nav { flex-wrap: wrap; row-gap: 8px; }
    .chart-controls__current { flex: 1 0 100%; order: -1; }
    .chart-controls__nav .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 9px 6px;
        gap: 4px;
    }
}

/* Only this wrapper scrolls horizontally. */
.chart-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.chart-table-wrapper:focus-visible { outline: 2px solid var(--next); outline-offset: 2px; }

.chart-table {
    min-width: 420px;
    font-size: var(--font-size-th);
    font-variant-numeric: tabular-nums;
}

.chart-table th, .chart-table td {
    border: 1px solid var(--line-soft);
    padding: 6px 7px;
    text-align: center;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.chart-table thead th {
    position: sticky;
    top: 0;
    background: var(--brand);
    color: #fff;
    font-size: var(--font-size-th);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    z-index: 1;
}
.chart-table__date {
    background: var(--ground);
    font-weight: var(--weight-bold);
    color: var(--ink);
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 52px;
}
.chart-table thead .chart-table__date { background: var(--brand); color: var(--accent); z-index: 3; }
.chart-table tbody tr:nth-child(even) td { background: #fafbfc; }
.chart-table tbody tr:nth-child(even) .chart-table__date { background: var(--ground); }
.chart-table td.is-empty  { color: var(--ink-mute); font-weight: var(--weight-medium); }
.chart-table td.is-filled { color: var(--ink); font-weight: var(--weight-bold); }

.chart-note {
    margin-top: 8px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: var(--line-normal);
    text-align: center;
    max-width: 78ch;
    margin-inline: auto;
}

/* ---------- History / archive ---------- */
.focus-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
}
.focus-bar strong {
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    letter-spacing: var(--tracking-tight);
}
.focus-bar__group {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}
.focus-bar__actions { display: flex; flex-wrap: wrap; gap: 6px; }

.archive { display: grid; gap: 8px; }

.archive__year {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.archive__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    background: var(--brand);
    color: #fff;
}
.archive__summary::-webkit-details-marker { display: none; }
.archive__summary .archive__count { margin-left: auto; }
.archive__chev {
    margin-left: 8px;
    color: var(--accent);
    font-size: var(--font-size-lg);
    transition: transform .15s ease;
}
.archive__year[open] > .archive__summary .archive__chev { transform: rotate(180deg); }

.archive__year-label {
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--line-tight);
    font-variant-numeric: tabular-nums;
}
.archive__count { font-size: var(--font-size-xs); font-weight: var(--weight-medium); color: #b8c2cc; }

.archive__months {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1px;
    background: var(--line-soft);
    padding: 1px;
}
.archive__month { background: var(--paper); }
.archive__link {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    color: var(--ink);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}
.archive__link:hover { background: var(--next-bg); text-decoration: none; }
.archive__month-name  { font-weight: var(--weight-bold); }
.archive__month-count { font-size: var(--font-size-xs); font-weight: var(--weight-medium); color: var(--ink-mute); }

.history-recent { margin-top: 4px; }
.history-recent .subheading { margin-top: 0; }

.data-table--history td:first-child { font-weight: var(--weight-semibold); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }

.faq__item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    cursor: pointer;
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
    line-height: 1.4;
    color: var(--ink);
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: #fafbfc; }

.faq__mark {
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    flex: 0 0 auto;
    font-size: var(--font-size-md);
    color: var(--ink-mute);
    transition: transform .15s ease;
}
.faq__item[open] .faq__mark { transform: rotate(180deg); color: var(--live); }

.faq__a {
    padding: 10px 12px 12px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-regular);
    color: var(--ink-soft);
    line-height: var(--line-relaxed);
    border-top: 1px dashed var(--line-soft);
}

/* ---------- Disclaimer ---------- */
.disclaimer {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 12px;
}
/* Label styled heading: the disclaimer must stay present but secondary. */
.disclaimer__title {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: 7px;
}
.disclaimer__text {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-regular);
    color: var(--ink-soft);
    line-height: var(--line-body);
}
.disclaimer__note {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: var(--line-normal);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand);
    color: #c8d0d8;
    padding: 18px 0 22px;
    margin-top: 26px;
}
.site-footer__name {
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    color: #fff;
    margin-bottom: 4px;
    text-align: center;
}
.site-footer__tagline {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    line-height: 1.3;
    color: #c8d0d8;
    margin-bottom: 12px;
    text-align: center;
}
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2b333c;
}
.site-footer__links a {
    color: var(--accent);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    padding: 4px 2px;
}
.site-footer__links a:hover {
    text-decoration: underline;
}
.site-footer__copy {
    font-size: var(--font-size-th);
    font-weight: var(--weight-regular);
    color: #8b97a3;
    line-height: var(--line-relaxed);
    text-align: center;
}

/* ---------- Footer client reviews (auto slider) ---------- */
.footer-reviews {
    --spv: 1;
    padding: 2px 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #2b333c;
}
.footer-reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
    margin-bottom: 12px;
}
.footer-reviews__intro { flex: 1 1 220px; min-width: 0; }
.footer-reviews__eyebrow {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--accent);
    line-height: var(--line-normal);
}
.footer-reviews__title {
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    color: #fff;
    line-height: var(--line-tight);
    margin-top: 2px;
}
.footer-reviews__sub {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-regular);
    color: #8b97a3;
    line-height: var(--line-normal);
    margin-top: 3px;
}
.footer-reviews__score { display: flex; align-items: center; gap: 9px; }
.footer-reviews__score-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--weight-bold);
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.footer-reviews__score-meta { display: flex; flex-direction: column; gap: 3px; }
.footer-reviews__score-count {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: #8b97a3;
}
.footer-reviews__pause {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 11px;
    background: #171d24;
    border: 1px solid #2b333c;
    border-radius: var(--radius-sm);
    color: #c8d0d8;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    cursor: pointer;
}
.footer-reviews__pause:hover,
.footer-reviews__pause:focus-visible { border-color: var(--accent); color: #fff; }
.footer-reviews__pause .icon { width: 13px; height: 13px; }

/* Stacked grid - also the no-JS and reduced-motion fallback, kept compact
   by reflowing to as many columns as the width allows. */
.footer-reviews__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-reviews__viewport { overflow-x: hidden; max-width: 100%; }

.review-card {
    background: #171d24;
    border: 1px solid #2b333c;
    border-radius: var(--radius);
    padding: 12px;
    min-width: 0;
}
.review-card__top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.review-card__rating {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.review-card__rating span { color: #8b97a3; font-weight: var(--weight-medium); }
.review-card__lang {
    margin-left: auto;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    background: rgba(245, 179, 1, .12);
    border: 1px solid rgba(245, 179, 1, .32);
    padding: 1px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.review-card__text {
    margin: 9px 0 11px;
    font-size: var(--font-size-sm-plus);
    font-weight: var(--weight-regular);
    line-height: var(--line-body);
    color: #dde3e9;
}
.review-card__by { display: flex; align-items: center; gap: 9px; }
.review-card__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--brand);
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    line-height: 1;
}
.review-card__who { display: flex; flex-direction: column; min-width: 0; }
.review-card__name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    color: #fff;
    line-height: 1.3;
    overflow-wrap: break-word;
}
.review-card__meta {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: #8b97a3;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Star rating: grey base row + accent row clipped to the exact score. */
.stars { position: relative; display: inline-block; line-height: 0; }
.stars__layer { display: inline-flex; gap: 2px; color: #4a5560; }
.stars__layer .icon { width: 15px; height: 15px; }
.stars__layer--fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: var(--accent);
    white-space: nowrap;
}
.stars__layer--fill .icon { flex: 0 0 auto; }

.footer-reviews__dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.footer-reviews__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #3a444e;
    cursor: pointer;
}
.footer-reviews__dot:hover,
.footer-reviews__dot:focus-visible { background: #6b7883; }
.footer-reviews__dot[aria-current="true"] { background: var(--accent); transform: scale(1.3); }

/* JS active: single row, horizontally sliding. Flex stretch keeps every
   card the same height, so full review text is never clipped.
   Basis subtracts the row gap so spv cards + gaps fill exactly 100%. */
.footer-reviews.is-slider .footer-reviews__track {
    display: flex;
    align-items: stretch;
    transition: transform .45s ease;
}
.footer-reviews.is-slider .review-card {
    flex: 0 0 calc((100% - (var(--spv) - 1) * 10px) / var(--spv));
}

@media (min-width: 600px) {
    .footer-reviews { --spv: 2; }
}
@media (min-width: 900px) {
    .footer-reviews { --spv: 3; }
}

/* ---------- Footer chart form ---------- */
.chart-form {
    background: #161b21;
    border: 1px solid #2b333c;
    border-radius: var(--radius);
    padding: 14px 12px;
    margin-bottom: 14px;
}
.chart-form__title {
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.35;
    letter-spacing: var(--tracking-tight);
    color: #fff;
    margin-bottom: 10px;
}
.chart-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
}
.chart-form__row .field__input {
    background: #0f1317;
    border-color: #39424c;
    color: #fff;
}
.chart-form__row .btn--go { background: var(--next); border-color: var(--next); color: #fff; }
.chart-form__row .btn--go:hover { background: #094d8a; border-color: #094d8a; color: #fff; }

/* ==========================================================================
   Quick result board
   ========================================================================== */

.board-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.board-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 10px;
}
.board-search__input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: inherit;
    font-size: var(--font-size-md);
    font-weight: var(--weight-medium);
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    padding: 6px 2px;
    min-height: 32px;
}
.board-search__input::placeholder {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-regular);
    color: var(--ink-mute);
}
.board-search__count {
    flex: 0 0 auto;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--ink-mute);
    background: var(--ground);
    border-radius: 10px;
    padding: 3px 9px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.board-search__count.is-filtering { background: var(--next-bg); color: var(--next); }

.board-wrap { border: 0; background: transparent; }

.board {
    width: 100%;
    table-layout: fixed;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.board__title th {
    background: var(--brand);
    color: #fff;
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    letter-spacing: var(--tracking-tight);
    text-align: center;
    padding: 9px 8px;
}

.board__head th {
    background: #1d242c;
    color: #fff;
    font-size: var(--font-size-th);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    text-align: center;
    padding: 7px 4px;
    border-top: 3px solid #00c853;
    border-bottom: 2px solid var(--accent);
}
.board__head th .board__col-day {
    display: block;
    font-size: var(--font-size-sm-plus);
    font-weight: var(--weight-semibold);
    line-height: 1.3;
    letter-spacing: var(--tracking-normal);
    text-transform: none;
    white-space: nowrap;
    color: #fff;
}
.board__head th .board__col-sub {
    display: none;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    text-transform: none;
    letter-spacing: var(--tracking-normal);
    font-variant-numeric: tabular-nums;
}
.board__col-game { text-align: left !important; padding-left: 12px !important; }
.board__head th.board__col-game {
    text-transform: none;
    font-size: var(--font-size-md);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-normal);
}
.board__head th.board__col-num { width: 74px; text-align: right; padding: 8px 8px 8px 2px; }

.board__section td {
    background: #f1f1f1;
    border-left: 6px solid var(--live);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 9px 12px;
}
.board__section-label {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    line-height: var(--line-heading);
    color: var(--live);
    text-transform: uppercase;
}
.board__section-note {
    display: inline-block;
    margin-left: 8px;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
}
.board__section.is-next td      { border-left-color: var(--next); }
.board__section.is-next .board__section-label { color: var(--next); }
.board__section.is-upcoming td  { border-left-color: var(--upcoming); }
.board__section.is-upcoming .board__section-label { color: var(--upcoming); }
.board__section.is-completed td { border-left-color: var(--done); }
.board__section.is-completed .board__section-label { color: var(--done); }

/* Live extras stay hidden on phones so the reference list look is kept. */
.live-dot,
.board__live-count { display: none; }

@keyframes live-ping {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); }
    70%  { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.board__row { border-bottom: 1px solid var(--line-soft); }
.board__row:last-child { border-bottom: 0; }
.board__row:nth-child(odd):not(.board__section) { background: #fafbfc; }

.board__game {
    padding: 8px 10px 8px 12px;
    vertical-align: middle;
    min-width: 0;
}

/* Market / game name - primary information. */
.board__name {
    display: block;
    font-size: var(--type-market-name);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    letter-spacing: var(--tracking-normal);
    text-transform: uppercase;
    color: var(--ink);
    overflow-wrap: break-word;
    word-break: normal;
}

/* Scheduled time - secondary to the market name. */
.board__time {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    line-height: 1.4;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
}

.board__link {
    display: inline-block;
    margin-top: 4px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-semibold);
    line-height: 1.3;
    color: var(--next);
    border: 1px solid var(--line);
    background: var(--ground);
    border-radius: 3px;
    padding: 2px 8px;
}
.board__link:hover { background: var(--next); border-color: var(--next); color: #fff; text-decoration: none; }

.board__num {
    text-align: right;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    padding: 7px 12px 7px 4px;
}
.board__num--prev {
    color: var(--ink-mute);
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-sm);
    line-height: var(--line-normal);
}
.board__num--today {
    font-weight: var(--weight-bold);
    font-size: var(--type-result);
    line-height: var(--line-tight);
    color: var(--ink);
}
.board__num--today.is-published { color: var(--ink); }
.board__num--today.is-pending   { color: var(--ink-mute); }

.board__row.is-highlight .board__name { color: var(--ink); }
.board__row.is-highlight {
    background: linear-gradient(90deg, #FFD000 0%, #FFD000 80%, #F59E0B 100%);
}
.board__row.is-highlight:nth-child(odd) {
    background: linear-gradient(90deg, #FFD000 0%, #FFD000 80%, #F59E0B 100%);
}
.board__row.is-highlight .board__time { color: #3a2f00; }

.board__row.is-filtered-out { display: none; }
.board__section.is-filtered-out { display: none; }

.board-note {
    margin-top: 9px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: var(--line-normal);
    text-align: center;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 12px;
}

/* ---------- Advanced board: search tools, group headers, game cards ---------- */
.board-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 999px;
    padding: 6px 8px 6px 16px;
    margin-bottom: 10px;
    box-shadow: 0 6px 18px rgba(16,20,24,.08);
    transition: box-shadow .2s, border-color .2s;
}
.board-tools:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245,179,1,.25), 0 8px 22px rgba(16,20,24,.12);
}
.board-tools__input {
    flex: 1 1 auto;
    min-width: 0;
    font-family: inherit;
    font-size: var(--font-size-md);
    color: var(--ink);
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 4px 8px 26px;
    min-height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7883' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cline x1='11' y1='11' x2='15' y2='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 2px center;
}
.board-tools__input::placeholder { color: var(--ink-mute); }
.board-tools__count {
    flex: 0 0 auto;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    color: #fff;
    background: var(--ink);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}
.board-tools__count.is-filtering { background: var(--next); }
.board-tools__clear {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: var(--font-size-th);
    font-weight: var(--weight-bold);
    color: #fff;
    background: var(--live);
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    min-height: 40px;
    cursor: pointer;
}

.board-dates {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: #3a3a3a;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: #fff;
}
.board-dates__label { flex: 1 1 auto; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: #fff; }
.board-dates__day { font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.board-dates__day--today { color: #fff; font-weight: var(--weight-bold); }

.board-group { margin-bottom: 12px; }
.board-group:last-child { margin-bottom: 0; }
.board-group.is-filtered-out { display: none; }

.board-group__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid #d9e2ec;
    border-left: 4px solid var(--next);
    color: var(--ink);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    line-height: var(--line-normal);
}
.board-group--live .board-group__head {
    border-left-color: #ff2d2d;
    background: linear-gradient(90deg, rgba(255,45,45,.08), #fff 55%);
    border-color: rgba(255,45,45,.45);
    border-left-width: 5px;
    box-shadow: 0 2px 10px rgba(255,45,45,.12);
}
.board-group--live .board-group__label {
    color: #fff;
    background: linear-gradient(135deg, #ff4d4d, #d90f0f);
    padding: 3px 12px;
    border-radius: 999px;
    letter-spacing: var(--tracking-wide);
    box-shadow: 0 2px 8px rgba(255,45,45,.45);
    animation: live-blink 1s ease-in-out infinite;
}
.board-group--next .board-group__head      { border-left-color: var(--next); }
.board-group--next .board-group__label     { color: var(--next); }
.board-group--upcoming .board-group__head  { border-left-color: var(--upcoming); }
.board-group--upcoming .board-group__label { color: var(--upcoming); }
.board-group--completed .board-group__head { border-left-color: var(--done); }
.board-group--completed .board-group__label{ color: var(--done); }
.board-group__note { flex: 1 1 auto; color: var(--ink-soft); font-weight: var(--weight-regular); text-transform: none; letter-spacing: 0; }
.board-group__head .live-btn { margin-left: auto; padding: 4px 12px; font-size: 0.78rem; }
.board-group__head .live-dot { background: var(--live); }
.board-group__head .live-dot {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff6b6b, #e01010);
    flex: 0 0 auto;
    box-shadow: 0 0 6px rgba(255, 45, 45, .8), 0 0 0 0 rgba(255, 45, 45, .55);
    animation: live-dot-ping 1.2s ease-out infinite, live-blink .9s ease-in-out infinite;
}
@keyframes live-dot-ping {
    0%   { box-shadow: 0 0 6px rgba(255, 45, 45, .8), 0 0 0 0 rgba(255, 45, 45, .55); }
    70%  { box-shadow: 0 0 6px rgba(255, 45, 45, .8), 0 0 0 12px rgba(255, 45, 45, 0); }
    100% { box-shadow: 0 0 6px rgba(255, 45, 45, .8), 0 0 0 0 rgba(255, 45, 45, 0); }
}
.board-group__count {
    font-variant-numeric: tabular-nums;
    background: var(--next);
    color: #fff;
    border-radius: 999px;
    padding: 0 9px;
    line-height: 1.7;
}
.board-group--live .board-group__count {
    background: linear-gradient(135deg, #ff4d4d, #d90f0f);
    box-shadow: 0 2px 8px rgba(255,45,45,.45);
}
.board-group--upcoming .board-group__count { background: var(--upcoming); }
.board-group--completed .board-group__count { background: var(--done); }
.board-group__note {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    text-transform: none;
    letter-spacing: var(--tracking-normal);
}

.board-fastbar {
    background: #1f9d74;
    color: #fff;
    text-align: center;
    font-weight: var(--weight-bold);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
}

.board-cards { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 600px) {
    .board-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .board-cards { grid-template-columns: repeat(3, 1fr); }
}

.board-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-left-width: 5px;
    border-radius: var(--radius);
    padding: 10px 12px;
    min-width: 0;
}
/* Only the 8 chart games (is-highlight) get the yellow card. */
.board-cards .board-card.board__row { background: #fff; }
.board-cards .board-card.board__row.is-highlight {
    background: linear-gradient(90deg, #FFD000 0%, #FFD000 80%, #F59E0B 100%);
    border-color: #EAB308;
    border-left-color: #F59E0B;
}
.board-card--live      { border-left-color: var(--live); }
.board-card--next      { border-left-color: var(--next); }
.board-card--upcoming  { border-left-color: var(--upcoming); }
.board-card--completed { border-left-color: var(--done); }
article.board-card.is-filtered-out { display: none; }

.board-card__main { min-width: 0; flex: 1 1 auto; }
.board-card__name {
    display: block;
    font-size: var(--font-size-md);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    color: var(--ink);
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.board-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin-top: 2px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: #3a2f00;
}
.board-card__link { color: var(--next); font-weight: var(--weight-semibold); }
.board-card__values {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}
.board-card__val { font-weight: 500; line-height: 1.1; }
.board-card__val--prev { font-size: 2.25rem; color: #000000; font-weight: 500; }
.board-card__val--today { font-size: 2.25rem; color: #000000; font-weight: 500; }
.board-card__val--today.is-pending { color: #000000; }
.board-card__val.is-xx { font-size: 2.025rem; }

/* One-minute "update soon" pulse on cards (class toggled by result-ui.js). */
.board-card.is-upcoming-highlight { animation: ui-soon-pulse 1.4s ease-in-out infinite; }
.board-card.is-upcoming-highlight .board-card__name { color: var(--ui-warning-ink); }
.board-card.is-upcoming-highlight .board__flag { display: inline-block; }

/* --------------------------------------------------------------------------
   Board on phones - matches the reference result list:
   "Results | 4th | 5th" bar, plain red group labels (notes hidden),
   time + inline Record Chart link, big right aligned numbers.
   -------------------------------------------------------------------------- */
@media (max-width: 599px) {
    .board__section td,
    .board__section.is-next td,
    .board__section.is-upcoming td,
    .board__section.is-completed td {
        background: var(--paper);
        border-left-color: var(--live);
        padding: 8px 12px;
    }
    .board__section-label,
    .board__section.is-next .board__section-label,
    .board__section.is-upcoming .board__section-label,
    .board__section.is-completed .board__section-label {
        color: var(--live);
        font-size: var(--font-size-sm);
    }
    .board__section-note { display: none; }

    .board__game { padding: 8px 4px 9px 12px; }
    .board__name { font-size: var(--font-size-md); }
    .board__time {
        display: inline;
        font-size: var(--font-size-xs);
        font-weight: var(--weight-regular);
        color: var(--ink-mute);
    }
    .board__link {
        display: inline;
        margin: 0 0 0 6px;
        padding: 0;
        border: 0;
        background: none;
        border-radius: 0;
        font-size: var(--font-size-xs);
        font-weight: var(--weight-semibold);
        color: var(--live);
    }
    .board__link:hover {
        background: none;
        border-color: transparent;
        color: var(--live);
        text-decoration: underline;
    }

    .board__num { padding: 8px 12px 8px 4px; }
    .board__num--prev {
        color: var(--ink);
        font-size: var(--font-size-lg);
        font-weight: var(--weight-bold);
        line-height: 1.15;
    }
    .board__num--today { font-size: var(--type-result); line-height: 1.1; }
    .board__num--today.is-pending { color: #9aa4ad; }
}

/* ==========================================================================
   Record page
   ========================================================================== */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: var(--line-normal);
    margin-bottom: 9px;
}
.crumbs a { color: var(--next); font-weight: var(--weight-semibold); }

.record-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 10px;
}
.record-head__main { flex: 1 1 240px; min-width: 0; }
.record-head__brand {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--ink-mute);
    line-height: var(--line-normal);
}
.record-head__title {
    font-size: var(--h1-size);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    letter-spacing: var(--tracking-tight);
}
/* Page label under the market name - never the raw SEO title string. */
.record-head__kicker {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 9px;
    background: var(--brand);
    color: var(--accent);
    border-radius: 3px;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    line-height: var(--line-normal);
}
.record-head__meta {
    display: block;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: var(--line-normal);
    margin-top: 3px;
}
.record-head .last-updated {
    justify-content: flex-start;
    text-align: left;
    margin-top: 8px;
}
.record-score { display: flex; gap: 8px; }
.record-score__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ground);
}
.record-score__cell em {
    font-style: normal;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}
.record-score__cell strong {
    font-size: var(--font-size-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    font-variant-numeric: tabular-nums;
}
.record-score__cell--today { background: #fff6f6; border-color: #f3c9c9; }
.record-score__cell--today strong { color: var(--live); }

.data-table--record td:first-child { font-weight: var(--weight-semibold); }
.data-table--record tr.is-future { opacity: .6; }

.record-recent { margin-top: 12px; }
.record-recent .subheading { margin-top: 0; }

/* Neutral "information not available" cell - never a fabricated value. */
.record-na {
    display: inline-block;
    font-size: var(--font-size-th);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: var(--line-normal);
    overflow-wrap: break-word;
}

/* ---------- Informational summary ---------- */
.record-summary { margin-top: 16px; }
.record-summary__text {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-regular);
    color: var(--ink-soft);
    line-height: var(--line-relaxed);
    max-width: 78ch;
}

.record-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.record-stats__item {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 9px 10px;
}
.record-stats__item--done { border-left-color: var(--done); }
.record-stats__item--pending { border-left-color: var(--live); }
.record-stats__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-semibold);
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: var(--line-normal);
}
.record-stats__value {
    display: block;
    margin-top: 2px;
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    overflow-wrap: break-word;
}
.record-stats__value--text { font-size: var(--font-size-sm-plus); }
@media (max-width: 767px) {
    .record-stats__item:last-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
    .record-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Related record pages ---------- */
.record-related { margin-top: 16px; }
.record-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.record-related__card {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 100%;
    min-height: 56px;
    padding: 10px 11px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    color: var(--ink);
}
.record-related__card:hover {
    background: var(--next-bg);
    border-color: var(--next);
    border-left-color: var(--accent);
    text-decoration: none;
}
.record-related__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ground);
    color: var(--next);
}
.record-related__icon .icon { width: 17px; height: 17px; }
.record-related__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.record-related__name {
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    overflow-wrap: break-word;
}
.record-related__note {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: 1.35;
    overflow-wrap: break-word;
}

/* ---------- Compact record chart (preview + disclosure) ---------- */
#record-chart, #latest-results { scroll-margin-top: 8px; }
.chart-count {
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    line-height: var(--line-normal);
    margin: 2px 0 8px;
}
.chart-toggle { text-align: center; margin: 10px 0 2px; }
.chart-toggle .btn { min-height: 42px; }
.chart-toggle--small { margin-top: 8px; }

/* Slightly denser record rows - desktop table padding is untouched. */
.data-table--record tbody tr { padding-top: 7px; padding-bottom: 7px; }

/* Suggestion card arrow + sub-group heading. */
.record-related__body { flex: 1 1 auto; }
.record-related__go {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--ink-mute);
}
.record-related__go .icon { width: 15px; height: 15px; }
.record-related__sub {
    font-size: var(--font-size-sm-plus);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    margin: 12px 0 6px;
}

/* ==========================================================================
   Floating controls
   ========================================================================== */

.float-tools {
    position: fixed;
    right: 10px;
    bottom: 14px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.float-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(16, 20, 24, .18);
    text-decoration: none;
    position: relative;
    padding: 0;
}
.float-btn:hover { text-decoration: none; }

.float-btn--refresh {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    background-image: conic-gradient(var(--accent) calc(var(--progress, 0) * 1%), #2b333c 0);
}
.float-btn--refresh::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--brand);
    z-index: 0;
}
.float-btn__label { position: relative; z-index: 1; color: var(--accent); }
.float-btn--top {
    background: var(--accent);
    border-color: var(--accent);
    color: #101418;
    font-size: var(--font-size-lg);
    line-height: 1;
}

.section--board { margin-top: 4px; }

/* ==========================================================================
   Advanced UI pass - SVG icons, alert bars, month picker, gold form,
   floats and the desktop layer. Every icon inherits text color.
   ========================================================================== */

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    vertical-align: -0.18em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.btn__icon { font-size: 1.05em; }
.refresh-pill__icon { font-size: var(--font-size-sm); }
.section__title-icon { font-size: 1.1em; color: var(--accent); flex: 0 0 auto; }

/* Header section nav - desktop only, mobile keeps the plain brand bar. */
.site-nav { display: none; }

/* Notice alert bars. */
.alertbar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-th);
    font-weight: var(--weight-semibold);
    line-height: var(--line-normal);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-bottom: 6px;
}
.alertbar > span { min-width: 0; overflow-wrap: break-word; }
.alertbar__icon { font-size: var(--font-size-md); margin-top: 1px; }
.alertbar--warn { background: var(--live); }
.alertbar--ok   { background: var(--done); }

/* Red zone bar under the board date title. */
.board__zone th {
    background: var(--live);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    font-style: italic;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    text-align: center;
    padding: 5px 8px;
}

/* Board search icons. */
.board-search__icon { color: var(--ink-mute); font-size: var(--font-size-lg); }
.board-search__clear {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-mute);
    font-size: var(--font-size-md);
    cursor: pointer;
    padding: 0;
}
.board-search__clear:hover { background: var(--ground); color: var(--ink); }
.board-search__clear[hidden] { display: none; }

/* Board summary strip - desktop only. */
.board-stats {
    display: none;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.board-stats__item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.board-stats__item--live { border-left-color: var(--live); }
.board-stats__item--done { border-left-color: var(--done); }
.board-stats__icon { grid-row: span 2; font-size: 1.6rem; color: var(--ink-mute); }
.board-stats__item--live .board-stats__icon { color: var(--live); }
.board-stats__item--done .board-stats__icon { color: var(--done); }
.board-stats__num {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.board-stats__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-medium);
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: var(--line-normal);
}

/* Month / year quick picker. */
.months__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-tight);
    color: var(--ink);
    text-align: center;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.months__title-icon { color: var(--live); font-size: var(--font-size-lg); }
.months__years {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}
.months__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    letter-spacing: var(--tracking-normal);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    min-height: 38px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.chip:hover { text-decoration: none; filter: brightness(1.08); }
.chip--year { background: var(--live); padding: 7px 12px; min-height: 36px; }
.chip--month { background: #1c7a45; }
.chip--month.chip--alt { background: #0b5ea8; }
.chip.is-active { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Monthly chart title bar + header colors. */
.section--chart .section__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #7f1d1d;
    border-left-color: var(--accent);
    text-align: center;
}
.section--chart .chart-table thead th { background: #e8821e; color: #fff; }
.section--chart .chart-table thead .chart-table__date { background: var(--live); color: #fff; }

/* Footer chart form - gold strip. */
.chart-form {
    background: #ffd400;
    border: 1px solid #e3b800;
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}
.chart-form__title {
    color: #101418;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-bold);
    text-align: center;
    margin-bottom: 8px;
    max-width: none;
}
.chart-form__row .field__input { background: #fff; border-color: #c9a100; color: var(--ink); }

/* Advanced combined chart block - featured card, green title, month nav,
   yellow picker. Everything stays inside the centered container. */
.combo-spot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    background: #ffd400;
    border: 1px solid #e3b800;
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 10px;
}
.combo-spot__name {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    line-height: 1.25;
    color: var(--ink);
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.combo-spot__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    font-size: var(--font-size-sm);
    font-weight: var(--weight-medium);
    color: #3a2f00;
}
.combo-spot__link { color: var(--next); font-weight: var(--weight-semibold); }
.combo-spot__values {
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-variant-numeric: tabular-nums;
}
.combo-spot__val {
    font-size: var(--font-size-3xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    color: var(--ink);
}
.combo-spot__val--prev { color: #3a2f00; }

.combo-promo {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    padding: 10px 12px;
    margin-bottom: 10px;
}
.combo-promo__title {
    display: block;
    color: var(--live);
    font-size: var(--font-size-lg);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-normal);
    line-height: var(--line-heading);
}
.combo-promo__sub { color: var(--next); font-weight: var(--weight-semibold); }

.combo-title {
    background: #1f9d74;
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
    font-size: clamp(1.0625rem, 1vw + 0.85rem, 1.375rem);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-normal);
    padding: 12px;
    margin: 0 0 8px;
    overflow-wrap: break-word;
}

.section--chart .combo-table tbody th.chart-table__date { color: var(--live); background: #fff; }
.section--chart .combo-table tbody tr:nth-child(even) td { background: #fff; }
.section--chart .combo-table tbody tr.is-today td,
.section--chart .combo-table tbody tr.is-today th.chart-table__date { background: #fff3c4; }

.combo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0 4px;
}
.combo-nav__btn {
    flex: 1 1 0;
    background: var(--next);
    border-color: var(--next);
    color: #fff;
    font-size: var(--font-size-sm);
    min-height: 40px;
    padding: 9px 10px;
}
.combo-nav__btn:hover { background: #094d8a; border-color: #094d8a; color: #fff; text-decoration: none; }
.combo-nav__current {
    flex: 0 0 auto;
    font-size: var(--font-size-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--line-tight);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.combo-picker {
    background: #ffd400;
    border: 1px solid #e3b800;
    border-radius: var(--radius);
    padding: 14px 12px;
    margin-top: 10px;
    text-align: center;
}
.combo-picker__text {
    font-size: var(--font-size-sm-plus);
    font-weight: var(--weight-bold);
    line-height: var(--line-heading);
    color: #3a2f00;
    margin-bottom: 10px;
}
.combo-picker__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.combo-picker__row .field { flex: 1 1 140px; max-width: 220px; text-align: left; }
.combo-picker__row .field__input { background: #fff; border-color: #c9a100; color: var(--ink); }
.combo-picker__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.combo-picker .btn--refresh { background: #fff; border-color: #fff; color: var(--live); }

/* Advanced combo chart grid - gradients, zebra, hover, today marker. */
.section--chart .chart-table-wrapper { box-shadow: 0 2px 10px rgba(16, 20, 24, .12); }
.section--chart .combo-table thead th {
    background: linear-gradient(180deg, #f0903a 0%, #e8821e 100%);
    border-color: #cf6f14;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.section--chart .combo-table thead .chart-table__date {
    background: linear-gradient(180deg, #d32f2f 0%, #b02323 100%);
    border-color: #8f1a1a;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}
.section--chart .combo-table tbody tr:nth-child(odd) td,
.section--chart .combo-table tbody tr:nth-child(odd) th.chart-table__date { background: #f4f8fb; }
.section--chart .combo-table tbody tr:hover td,
.section--chart .combo-table tbody tr:hover th.chart-table__date { background: #e8f1fb; }
.section--chart .combo-table tbody tr.is-today th.chart-table__date {
    background: var(--accent);
    color: #101418;
}
.section--chart .combo-table td.is-filled {
    background: #eaf4fd;
    color: #0b3f7d;
}

/* Floating buttons. */
.float-btn .icon { font-size: 1.25rem; }
.float-btn--refresh {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}
.float-btn--refresh .icon { position: relative; z-index: 1; color: var(--accent); font-size: 1rem; }
.float-btn__label { font-size: var(--font-size-xs); }
.float-btn--wa { background: #25d366; border-color: #25d366; }
.float-btn__wa-icon.icon { width: 26px; height: 26px; }

/* ==========================================================================
   Breakpoints - wider container and real table layout, still no sidebar.
   ========================================================================== */

@media (min-width: 480px) {
    .container { padding: 0 14px; }
    .card__values { gap: 16px; }
    .chart-controls__fields .btn { flex: 0 0 auto; }
}

@media (min-width: 600px) {
    :root { --gap-section: 26px; }

    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards--tight { grid-template-columns: repeat(2, 1fr); }

    /* Long list becomes a real 6 column table. */
    .data-table thead { display: table-header-group; }
    .data-table tbody tr {
        display: table-row;
        padding: 0;
    }
    .data-table td {
        display: table-cell;
        padding: 7px 9px;
        text-align: left;
        vertical-align: middle;
        border-bottom: 1px solid var(--line-soft);
    }
    .data-table td::before { display: none; }
    .data-table td > * { text-align: left; }
    .data-table thead th {
        background: var(--brand);
        color: #fff;
        font-size: var(--font-size-th);
        font-weight: var(--weight-bold);
        line-height: var(--line-heading);
        text-transform: uppercase;
        letter-spacing: var(--tracking-wide);
        padding: 8px 9px;
        text-align: left;
        white-space: nowrap;
    }
    .data-table tbody tr:nth-child(even) { background: #fafbfc; }
    .data-table tbody tr:hover { background: var(--next-bg); }
    .row__cell--name { width: 30%; }
    .row__cell--time, .row__cell--status { width: 12%; white-space: nowrap; }
    .row__cell--action { width: 11%; white-space: nowrap; padding-top: 7px; }
    .row__cell--value { width: 10%; white-space: nowrap; }

    /* Board toolbar sits on one line. */
    .board-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .board-search { min-width: 300px; max-width: 380px; }

    .board__head th.board__col-num { width: 92px; }
    .board__head th .board__col-sub { display: block; }
    .board__name { font-size: var(--font-size-lg); }
    .board__num--today { font-size: var(--type-result); }
    .board__num--prev { font-size: var(--font-size-sm-plus); }
    .board__section td { padding: 10px 14px; }
    .board__section-label { font-size: var(--font-size-md); }

    /* Advanced LIVE header - gradient bar, pulsing dot, count pill.
       Higher specificity wins over result-ui.css (loaded later).
       Sizes are +20% over the standard 17px section label. */
    table.board tr.board__section.is-live td {
        background: linear-gradient(90deg, #8f1a1a 0%, #d32f2f 60%, #e53935 100%);
        border-top: 1px solid #7f1d1d;
        border-bottom: 1px solid #7f1d1d;
        border-left: 7px solid #7f1d1d;
        box-shadow: 0 2px 12px rgba(198, 40, 40, .4), inset 0 -2px 0 var(--accent);
        padding: 12px 17px;
    }
    table.board tr.board__section.is-live .board__section-label {
        color: #fff;
        font-size: 1.275rem;
        letter-spacing: var(--tracking-wide);
    }
    table.board tr.board__section.is-live .board__section-note {
        color: #ffdada;
        font-size: 0.9rem;
    }
    .live-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #fff;
        margin-right: 9px;
        vertical-align: 1px;
        animation: live-ping 1.6s ease-out infinite;
    }
    .board__live-count {
        display: inline-block;
        margin-left: 9px;
        padding: 3px 12px;
        border: 1px solid rgba(255, 255, 255, .55);
        border-radius: 999px;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        font-size: 0.9rem;
        font-weight: var(--weight-bold);
        letter-spacing: var(--tracking-wide);
        font-variant-numeric: tabular-nums;
        vertical-align: 2px;
    }


    .chart-table { font-size: var(--font-size-sm); }
    .faq__a { font-size: var(--font-size-sm-plus); }
    .notice__text { font-size: var(--font-size-md); }
}

@media (min-width: 768px) {
    .container { padding: 0 18px; }

    .cards { grid-template-columns: repeat(3, 1fr); }
    .cards--tight { grid-template-columns: repeat(2, 1fr); }

    .group { padding: 10px; }
    .chart-table { min-width: 100%; }
    .archive__months { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

    .board__game { padding: 9px 12px 9px 16px; }
    .board__link { font-size: var(--font-size-sm); padding: 3px 10px; }

    .faq__q { font-size: var(--font-size-lg); }
    .record-head__title { line-height: var(--line-tight); }
    .record-score__cell strong { font-size: var(--font-size-3xl); }
    .board__num--today { line-height: 1; }
}

.live-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px; border: none;
    background: #1f9d74; color: #fff;
    font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide);
    animation: live-blink 1s ease-in-out infinite;
}
.live-btn__dot {
    width: 10px; height: 10px; border-radius: 50%; background: #fff;
    animation: live-ping 1.6s ease-out infinite;
}
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (min-width: 1024px) {
    :root { --gap-section: 30px; }

    .cards { grid-template-columns: repeat(4, 1fr); }
    .cards--tight { grid-template-columns: repeat(3, 1fr); }

    .cat-row { grid-template-columns: 1fr 90px 60px 110px; gap: 14px; }

    .chart-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }
    .chart-controls__fields { flex: 0 0 auto; }
    .field { flex: 0 0 auto; min-width: 150px; }
    .chart-controls__nav { margin-top: 0; padding-top: 0; border-top: 0; flex: 1 1 320px; justify-content: flex-end; gap: 14px; }
    .chart-controls__note { margin-top: 0; text-align: right; }

    .chart-table th, .chart-table td { padding: 7px 11px; font-size: var(--font-size-sm-plus); }
    .chart-table thead th { font-size: var(--font-size-th); }

    .chart-form {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 14px 16px;
    }
    .chart-form__title { margin-bottom: 0; max-width: 46ch; font-size: var(--font-size-md); text-align: left; }
    .chart-form__row { display: flex; gap: 8px; }
    .chart-form__row .field__input { min-width: 150px; }

    /* Desktop advanced layer. */
    .site-nav { display: flex; align-items: center; gap: 2px; }
    .site-nav a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #cfd6dd;
        font-size: var(--font-size-sm);
        font-weight: var(--weight-semibold);
        line-height: var(--line-normal);
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        white-space: nowrap;
    }
    .site-nav a:hover { color: var(--accent); background: #1d242c; text-decoration: none; }
    .site-nav__icon { font-size: var(--font-size-md); }

    .board-stats { display: grid; }
    .board tbody tr.board__row:hover { background: #eef4fa; }
    .board__head th.board__col-num { width: 110px; }

    .months__grid { grid-template-columns: repeat(6, 1fr); }
    .chip { font-size: var(--font-size-th); min-height: 42px; }

    .faq { grid-template-columns: 1fr 1fr; align-items: start; }

    .alertbar { font-size: var(--font-size-sm); padding: 9px 12px; }
}

@media (min-width: 1366px) {
    .cards--tight { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 600px) {
    .container { width: calc(100% - 24px); }
}

@media (min-width: 1440px) {
    .container { max-width: 1100px; }
    .cards { grid-template-columns: repeat(5, 1fr); }
}

/* Narrow phones: keep body copy at the 15px readability floor. */
@media (max-width: 480px) {
    .brand__logo img { height: 42px; max-width: 62vw; }
}
@media (max-width: 360px) {
    body { font-size: var(--font-size-sm-plus); }
    .brand__name { font-size: 1.375rem; }
    .brand__logo img { height: 36px; max-width: 58vw; }
    .chart-form__row { grid-template-columns: 1fr 1fr; }
    .chart-form__row .btn { grid-column: 1 / -1; }
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Print: keep it a readable document. */
@media print {
    html, body { overflow-x: visible; background: #fff; }
    .site-header, .site-footer, .chart-controls, .skip-link,
    .float-tools, .board-search { display: none; }
    .chart-table-wrapper, .table-wrap { overflow: visible; border: 1px solid #999; }
    body { font-size: 12pt; }
    .board__name { font-size: 12pt; }
    .board__num--today { font-size: 16pt; }
}
