* {
    box-sizing: border-box;
}


/* Site shell */
:root {
    --brand-red: #b91c2b;
    --brand-red-dark: #861522;
    --brand-blue: #344d91;
    --ink: #182033;
    --muted: #667085;
    --surface: #ffffff;
    --line: #e4e7ec;
}

body {
    min-height: 100vh;
    background: #f5f7fb;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    background: linear-gradient(118deg, var(--brand-red-dark), var(--brand-red) 48%, var(--brand-blue));
    box-shadow: 0 5px 18px rgba(24, 32, 51, .15);
}

.site-header__inner,
.site-footer__inner,
.site-footer__bottom {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

.site-header__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.site-brand__mark {
    display: grid;
    min-width: 52px;
    height: 44px;
    padding-inline: 8px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 12px;
    color: #9d1c29;
    font-size: 15px;
    font-weight: 800;
    background: #fff;
    box-shadow: 0 6px 14px rgba(51, 17, 22, .2);
}

.site-brand__text { display: grid; gap: 2px; }
.site-brand__text strong { font-size: 18px; line-height: 1.15; }
.site-brand__text small { color: rgba(255, 255, 255, .78); font-size: 12px; }

.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a {
    padding: 10px 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; background: rgba(255, 255, 255, .15); outline: none; }

.site-nav__label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.site-nav__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .92;
    transition: opacity .18s ease, transform .18s ease;
}

.site-nav__icon-fill {
    fill: currentColor;
    stroke: none;
}

.site-nav a:hover .site-nav__icon,
.site-nav a:focus-visible .site-nav__icon,
.site-nav a.is-active .site-nav__icon {
    opacity: 1;
    transform: translateY(-1px) scale(1.06);
}

.site-container { padding-top: 24px; padding-bottom: 32px; }

.site-footer { margin-top: 24px; color: #dbe1ed; background: #172033; }
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) 1fr 1.25fr;
    gap: 54px;
    padding-block: 46px 36px;
}
.footer-about p { max-width: 380px; margin: 15px 0 0; color: #aeb8ca; font-size: 14px; line-height: 1.7; }
.footer-brand { color: #fff; font-size: 24px; font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.footer-links { display: grid; align-content: start; gap: 11px; }
.footer-links strong { margin-bottom: 3px; color: #fff; font-size: 15px; }
.footer-links a { color: #aeb8ca; font-size: 14px; text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #8793a8;
    font-size: 12px;
}

.content-page {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(24, 32, 51, .07);
}
.site-breadcrumb { margin: 0 0 10px; overflow: hidden; border: 1px solid #d8dee8; border-left: 3px solid var(--brand-red, #a51f2d); border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(31, 47, 74, .05); }
.site-breadcrumb ol { display: flex; align-items: center; margin: 0; padding: 11px 14px; overflow-x: auto; color: #687181; font-size: 13px; list-style: none; scrollbar-width: none; white-space: nowrap; }
.site-breadcrumb ol::-webkit-scrollbar { display: none; }
.site-breadcrumb li { display: flex; flex: 0 0 auto; align-items: center; min-width: 0; }
.site-breadcrumb li + li::before { margin: 0 9px; color: #9aa2af; content: "›"; font-size: 17px; line-height: 1; }
.site-breadcrumb a { color: var(--brand-blue, #344d91); font-weight: 650; text-decoration: none; }
.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible { color: var(--brand-red, #a51f2d); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.site-breadcrumb [aria-current="page"] { display: block; max-width: min(58vw, 480px); overflow: hidden; color: #303744; font-weight: 600; text-overflow: ellipsis; }
.content-page__header { padding: 32px 28px 26px; background: linear-gradient(135deg, #fff7f7, #f4f6ff); }
.content-page__eyebrow { color: var(--brand-red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.content-page__header h1 { margin: 8px 0; color: var(--ink); font-size: clamp(27px, 5vw, 38px); line-height: 1.15; }
.content-page__header p { margin: 0; color: var(--muted); font-size: 13px; }
.content-page__body { padding: 30px 28px 38px; color: #344054; font-size: 16px; line-height: 1.75; }
.content-page__body h2 { margin: 28px 0 8px; color: var(--ink); font-size: 20px; }
.content-page__body h2:first-child { margin-top: 0; }
.content-page__body p { margin: 0 0 16px; }
.contact-card { display: grid; gap: 5px; margin: 22px 0; padding: 20px; border: 1px solid #f1c7cb; border-radius: 12px; color: var(--brand-red-dark); text-decoration: none; background: #fff7f7; }
.contact-card span { color: var(--muted); font-size: 13px; }
.contact-card strong { overflow-wrap: anywhere; font-size: 17px; }

@media (max-width: 760px) {
    .site-header { position: static; }
    .site-header__inner { display: block; padding-top: 12px; }
    .site-brand { width: 100%; }
    .site-nav { margin-top: 11px; overflow-x: auto; scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { flex: 0 0 auto; padding: 10px; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .site-header__inner,
    .site-footer__inner,
    .site-footer__bottom { width: min(100% - 24px, 1120px); }
    .site-container { padding-top: 12px; padding-bottom: 20px; }
    .site-footer { margin-top: 12px; }
    .site-footer__inner { padding-block: 34px 28px; }
    .site-footer__bottom { flex-direction: column; gap: 6px; }
    .content-page { border-right: 0; border-left: 0; border-radius: 0; }
    .site-breadcrumb { margin: 0 8px 8px; border-radius: 6px; }
    .site-breadcrumb ol { padding: 10px 11px; }
    .site-breadcrumb [aria-current="page"] { max-width: 62vw; }
    .content-page__header { padding: 26px 18px 22px; }
    .content-page__body { padding: 24px 18px 30px; font-size: 15px; }
}


html {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #111;
}

body {
    margin: 0;
}

.site-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 10px;
}

.lottery-card {
    border: 1px solid #bdbdbd;
    background: #fff;
}

.lottery-header {
    position: relative;
    padding: 10px 12px 9px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(
            110deg,
            #be2d2d 0%,
            #a93438 38%,
            #35589b 100%
        );
}

.lottery-header h1 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.3;
}

.lottery-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
}

.lottery-breadcrumb a,
.lottery-breadcrumb strong {
    color: #fff600;
    text-decoration: none;
}

.socket-status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.socket-connecting {
    background: #e1a500;
}

.socket-online {
    background: #18894b;
}

.socket-offline {
    background: #b91f2e;
}

.lottery-table-wrapper {
    overflow-x: auto;
}

.result-tools {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 10px 18px;
    padding: 10px 12px;
    border-top: 1px solid #e1e5ec;
    background: #f8fafc;
}

.result-tools__export {
    position: relative;
    min-width: 0;
}

.result-tools__export-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    background: linear-gradient(105deg, #a91f2a, #c73238);
    box-shadow: 0 4px 12px rgba(169, 31, 42, .18);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.result-tools__export-toggle:hover,
.result-tools__export-toggle:focus-visible {
    outline: none;
    background: linear-gradient(105deg, #941924, #b6242e);
    box-shadow: 0 6px 16px rgba(169, 31, 42, .24);
    transform: translateY(-1px);
}

.result-tools__export-toggle > svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.result-tools__export-toggle .result-tools__chevron {
    width: 15px;
    height: 15px;
    margin-left: 1px;
    transition: transform .15s ease;
}

.result-tools__export-toggle[aria-expanded="true"] .result-tools__chevron {
    transform: rotate(180deg);
}

.result-tools__export-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    left: 0;
    width: min(310px, calc(100vw - 34px));
    padding: 6px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(22, 34, 55, .18);
}

.result-tools__export-menu[hidden] {
    display: none;
}

.result-tools__export-menu button {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 6px;
    color: #1d2736;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.result-tools__export-menu button:hover,
.result-tools__export-menu button:focus-visible {
    outline: none;
    background: #f1f5fa;
}

.result-tools__export-menu button + button {
    margin-top: 2px;
}

.result-tools__export-menu button:disabled {
    opacity: .55;
    cursor: wait;
}

.result-tools__export-menu button > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-tools__export-menu .result-tools__menu-title {
    font-size: 13px;
}

.result-tools__export-menu small {
    color: #687385;
    font-size: 11px;
}

.result-tools__menu-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 7px;
    color: #315496;
    background: #edf3ff;
}

.result-tools__menu-icon.is-print {
    color: #a3222c;
    background: #fff0f1;
}

.result-tools__menu-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.result-tools__share {
    display: flex;
    align-items: center;
    gap: 9px;
}

.result-tools__share-label {
    color: #566174;
    font-size: 12px;
    white-space: nowrap;
}

.result-tools__share-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}

.result-share-link:hover,
.result-share-link:focus-visible {
    color: #fff;
    outline: none;
    filter: brightness(.92);
    transform: translateY(-1px);
}

.result-share-link > span,
.result-share-link > svg {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    fill: currentColor;
    font-size: 14px;
    font-style: normal;
}

.result-share-link em {
    font-style: normal;
}

.result-share-link.is-zalo {
    background: #0866ff;
}

.result-share-link.is-messenger {
    background: #4659c7;
}

.result-share-link.is-telegram {
    background: #168ac0;
}

.result-tools__status {
    grid-column: 1 / -1;
    display: none;
    margin: -1px 0 0;
    color: #536174;
    font-size: 12px;
}

.result-tools__status.is-visible {
    display: block;
}

.result-tools__status.is-success {
    color: #137042;
}

.result-tools__status.is-error {
    color: #ad1f2b;
}

.result-tools.is-busy .result-tools__export-toggle {
    opacity: .65;
    pointer-events: none;
}

.result-export-stage {
    position: fixed;
    z-index: -1000;
    top: 0;
    left: -10000px;
    width: 760px;
    background: #fff;
}

.result-export-sheet {
    width: 760px;
    padding: 18px;
    color: #151922;
    background: #fff;
}

.result-export-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid #e0e4ea;
    border-bottom: 0;
    background: #f8fafc;
}

.result-export-brand__mark {
    display: grid;
    width: 48px;
    height: 40px;
    place-items: center;
    border-radius: 6px;
    color: #a91f2a;
    font-size: 15px;
    font-weight: 900;
    background: #fff;
    box-shadow: inset 0 0 0 1px #d9dee7;
}

.result-export-brand__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-export-brand__copy strong {
    color: #202b3a;
    font-size: 17px;
}

.result-export-brand__copy small {
    color: #667185;
    font-size: 11px;
}

.result-export-card {
    border-color: #d6dae2;
}

.result-export-card .lottery-table-wrapper {
    overflow: visible;
}

.result-export-card .lottery-header h1 {
    padding-right: 0;
    font-size: 20px;
}

.result-export-card .lottery-result-table th {
    width: 66px;
    padding: 12px 5px;
    font-size: 15px;
}

.result-export-card .prize-number {
    min-height: 46px;
    padding: 5px;
    font-size: 25px;
}

.result-export-card .g8-row .prize-number,
.result-export-card .special-row .prize-number {
    font-size: 31px;
}

.result-export-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #e0e4ea;
    border-top: 0;
    color: #667185;
    font-size: 11px;
    background: #f8fafc;
}

.result-export-footer strong {
    color: #a91f2a;
    font-size: 12px;
}

.lottery-result-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.lottery-result-table th,
.lottery-result-table td {
    border: 1px solid #d8d2cb;
}

.lottery-result-table th {
    width: 64px;
    padding: 12px 5px;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    background: #fff;
}

.lottery-result-table td {
    padding: 0;
    background: #fff;
}

.prize-values {
    display: grid;
    align-items: center;
    min-height: 46px;
}

.prize-columns-1 {
    grid-template-columns: 1fr;
}

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

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

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

.prize-g4-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.prize-g4-layout .prize-number {
    grid-column: span 3;
}

.prize-g4-layout .prize-number:nth-child(n + 5) {
    grid-column: span 4;
}

.prize-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 5px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.prize-number:nth-child(4n) {
    border-right: 0;
}

.prize-columns-1 .prize-number {
    border-right: 0;
}

.prize-columns-2 .prize-number:nth-child(2n) {
    border-right: 0;
}

.prize-columns-3 .prize-number:nth-child(3n) {
    border-right: 0;
}

.prize-g4-layout .prize-number:nth-child(7) {
    border-right: 0;
}

.g8-row .prize-number {
    color: #f15a00;
    font-size: 31px;
}

.special-row .prize-number {
    color: #ff5800;
    font-size: 31px;
}

.waiting-number {
    color: #999;
    animation: waitingPulse 1s infinite;
}

.number-rolling {
    color: #e53900;
    transform: none;
    animation: none;
}

@keyframes waitingPulse {
    0% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.35;
    }
}

@keyframes rollingPulse {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
}

.number-controls {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 7px 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background:
        linear-gradient(
            90deg,
            #bd2929,
            #3c5897
        );
}

.number-controls label {
    cursor: pointer;
}

.number-controls input {
    margin: 0 3px 0 0;
}

.digit-selector {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
}

.digit-selector button {
    padding: 6px 2px;
    border: 0;
    border-right: 1px solid #d8d8d8;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    background: #fff;
}

.digit-selector button:last-child {
    border-right: 0;
}

.digit-selector button:hover,
.digit-selector button:focus-visible,
.digit-selector button.is-active {
    background: #fff1ad;
    outline: none;
}

.prize-digit {
    display: inline-block;
    border-radius: 3px;
}

.prize-digit.is-highlighted {
    color: #111;
    background: #ffe36e;
    box-shadow: 0 0 0 2px #ffe36e;
}

.head-tail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.draw-recap {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #dce1e8;
    border-left: 3px solid #a51f2d;
    border-radius: 4px;
    color: #303744;
    background: #fff;
}

.draw-recap__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.draw-recap__icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 4px;
    color: #a51f2d;
    background: #fff0f1;
}

.draw-recap__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.draw-recap__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #a51f2d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.draw-recap h2 {
    margin: 0;
    color: #1e2939;
    font-size: 19px;
    line-height: 1.3;
}

.draw-recap__summary {
    margin: 12px 0 0;
    color: #454f5f;
    font-size: 15px;
    line-height: 1.75;
}

.draw-recap__summary a {
    color: #315496;
    font-weight: 600;
    text-decoration: none;
}

.draw-recap__summary a:hover,
.draw-recap__summary a:focus-visible {
    color: #a51f2d;
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.draw-recap__summary strong {
    color: #a51f2d;
    font-weight: 700;
}

.draw-recap__highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 13px;
}

.draw-recap__highlight {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e4e8ee;
    border-radius: 4px;
    background: #f8fafc;
}

.draw-recap__highlight-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
}

.draw-recap__highlight h3 {
    margin: 0;
    color: #273244;
    font-size: 15px;
}

.draw-recap__mini-icon {
    display: grid;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    font-size: 16px;
}

.draw-recap__mini-icon.is-repeat {
    color: #a51f2d;
    background: #ffe9eb;
}

.draw-recap__mini-icon.is-gan {
    color: #315496;
    background: #e9effc;
}

.draw-recap__mini-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.draw-recap__group + .draw-recap__group {
    margin-top: 10px;
}

.draw-recap__label {
    display: block;
    margin-bottom: 6px;
    color: #697487;
    font-size: 13px;
}

.draw-recap__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.draw-recap__chip {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #dce2eb;
    border-radius: 4px;
    color: #3b4658;
    background: #fff;
}

.draw-recap__chip strong {
    color: #a51f2d;
    font-size: 17px;
    line-height: 1;
}

.draw-recap__chip small {
    color: #697487;
    font-size: 12px;
    white-space: nowrap;
}

.draw-recap__chip.is-double {
    border-color: #ead5a5;
    background: #fffaf0;
}

.draw-recap__chip.is-gan strong {
    color: #315496;
}

.draw-recap__empty {
    margin: 0;
    color: #697487;
    font-size: 13px;
    line-height: 1.55;
}

.draw-recap__note {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed #dce1e8;
    color: #747e8f;
    font-size: 12px;
    line-height: 1.55;
}

.head-tail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.head-tail-table th,
.head-tail-table td {
    height: 31px;
    border: 1px solid #d7d0c8;
    padding: 5px 10px;
    font-size: 14px;
}

.head-tail-table thead th {
    text-align: center;
    background:
        linear-gradient(
            #f4f4f4,
            #ddd
        );
}

.head-tail-table tbody th {
    width: 38%;
    color: #ff4f00;
    text-align: center;
}

.head-tail-table tbody td {
    font-weight: 700;
}

.tail-table tbody td {
    text-align: right;
}

.history-section {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #ddd;
    background: #fff;
}

.history-section h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr auto 20px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 10px;
    border-bottom: 1px solid #e1e1e1;
    color: #1d3d77;
    text-decoration: none;
}

.history-item:hover {
    background: #f5f7fb;
}

.history-name {
    font-weight: 700;
}

.history-weekday {
    color: #666;
    font-size: 13px;
}

.history-arrow {
    font-size: 25px;
}

.load-more-button {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #36589a;
}

.load-more-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 600px) {
    .site-container {
        padding: 0;
    }

    .lottery-header h1 {
        padding-right: 0;
        font-size: 16px;
    }

    .socket-status {
        position: static;
        display: inline-block;
        margin-top: 6px;
    }

    .lottery-result-table th {
        width: 60px;
        padding: 10px 3px;
    }

    .prize-number {
        min-height: 43px;
        padding: 4px 2px;
        font-size: 21px;
    }

    .g8-row .prize-number,
    .special-row .prize-number {
        font-size: 27px;
    }

    .head-tail-grid {
        gap: 5px;
    }

    .draw-recap {
        margin-top: 7px;
        padding: 13px 11px;
        border-right: 0;
        border-left-width: 3px;
        border-radius: 0;
    }

    .draw-recap h2 {
        font-size: 17px;
    }

    .draw-recap__summary {
        font-size: 14px;
        line-height: 1.7;
    }

    .draw-recap__highlights {
        grid-template-columns: 1fr;
    }

    .head-tail-table th,
    .head-tail-table td {
        padding: 5px 4px;
        font-size: 13px;
    }

    .history-section {
        margin-top: 8px;
    }

    .result-tools {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 10px;
    }

    .result-tools__export-toggle {
        width: 100%;
    }

    .result-tools__export-menu {
        width: 100%;
    }

    .result-tools__share {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px;
    }

    .result-tools__share-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .result-share-link {
        min-width: 0;
        padding-inline: 7px;
    }

    .result-share-link em {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 390px) {
    .result-tools__share {
        grid-template-columns: 1fr;
    }

    .result-tools__share-label {
        text-align: center;
    }

    .result-share-link em {
        font-size: 11px;
    }
}

/* Expanded previous draw results */
.history-section {
    padding: 0;
    border: 0;
    background: transparent;
}

.history-section > h2 {
    margin: 0 0 14px;
    padding: 16px 18px;
    border-left: 4px solid var(--brand-red, #b91c2b);
    border-radius: 8px;
    color: #182033;
    background: #fff;
    box-shadow: 0 4px 14px rgba(24, 32, 51, .06);
}

.history-section__intro {
    margin: -5px 4px 14px;
    color: #505968;
    font-size: 14px;
    line-height: 1.55;
}

#history-list {
    display: grid;
    gap: 18px;
}

.history-result-card {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(24, 32, 51, .08);
}

.history-result-header h3 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.3;
}

.history-result-date-link:hover,
.history-result-date-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.history-result-date-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 2px;
}

.history-result-card .prize-number {
    cursor: default;
}

.load-more-button {
    min-height: 48px;
    margin-top: 18px;
    border-radius: 9px;
    background: linear-gradient(105deg, #b91c2b, #344d91);
    box-shadow: 0 6px 16px rgba(52, 77, 145, .2);
}

.load-more-button:hover:not(:disabled),
.load-more-button:focus-visible {
    filter: brightness(1.08);
    outline: 3px solid rgba(52, 77, 145, .2);
}

@media (max-width: 600px) {
    .history-section > h2 {
        margin-inline: 10px;
        padding: 13px 14px;
        font-size: 18px;
    }

    .history-section__intro { margin: -3px 14px 12px; }

    #history-list { gap: 12px; }
    .history-result-card { border-right: 0; border-left: 0; border-radius: 0; }
    .history-result-header h3 { font-size: 16px; }
    .load-more-button { width: calc(100% - 20px); margin-inline: 10px; }
}

.history-head-tail-grid {
    padding: 8px 10px 12px;
    background: #f5f7fb;
}

.history-result-card .history-number-controls {
    margin-top: 0;
}

.history-result-card .history-digit-selector {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .history-head-tail-grid {
        padding: 6px 5px 10px;
    }
}

/* Live draw waiting image */
.prize-number.waiting-number {
    opacity: 1;
    color: inherit;
    transform: none;
    animation: none;
}

.prize-number.number-rolling {
    opacity: 1;
    color: #e14c19;
    transform: none;
    animation: none;
    transition: none;
    background: #fff8ee;
}

.wait-gif {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Trial draw */
.site-nav .trial-nav-link {
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .42);
    color: #8f1824;
    background: #fff;
    box-shadow: 0 5px 14px rgba(53, 16, 21, .18);
}

.site-nav .trial-nav-link:hover,
.site-nav .trial-nav-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.trial-card {
    overflow: hidden;
    border: 1px solid #d85a16;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(24, 32, 51, .09);
}

.trial-header {
    padding: 13px 16px;
    text-align: center;
    color: #fff;
    background: linear-gradient(105deg, #bd2a2f, #d65800 58%, #344d91);
}

.trial-header h1 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.trial-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.trial-actions {
    padding: 10px;
    text-align: center;
    background: #fff;
}

.trial-start-button {
    min-width: 116px;
    padding: 10px 22px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(105deg, #d64c00, #b91c2b);
    box-shadow: 0 5px 13px rgba(185, 28, 43, .22);
}

.trial-start-button:hover:not(:disabled),
.trial-start-button:focus-visible {
    filter: brightness(1.08);
    outline: 3px solid rgba(214, 76, 0, .2);
}

.trial-start-button:disabled {
    opacity: .7;
    cursor: wait;
}

.trial-result-table .prize-number {
    transition: color .2s ease;
}

.trial-result-table .trial-revealed {
    animation: none;
}

@keyframes trialReveal {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
}

.trial-number-controls { margin-top: 0; }
.trial-digit-selector { margin-bottom: 0; }
.trial-head-tail-grid {
    padding: 10px;
    border: 1px solid #eadfce;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
}

body.has-trial-recap {
    overflow: hidden;
}

.trial-recap[hidden] {
    display: none;
}

.trial-recap {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    padding: 18px;
    place-items: center;
}

.trial-recap__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 22, 40, .68);
    backdrop-filter: blur(3px);
}

.trial-recap__dialog {
    position: relative;
    width: min(100%, 500px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 13, 29, .34);
    animation: trialRecapIn .24s ease-out both;
}

.trial-recap__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px 11px 17px;
    color: #fff;
    background: linear-gradient(105deg, #b91c2b, #d64c00 62%, #344d91);
}

.trial-recap__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.trial-recap__status svg {
    width: 22px;
    height: 22px;
    padding: 2px;
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    background: rgba(255, 255, 255, .16);
}

.trial-recap__close {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 5px;
    color: #fff;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, .1);
}

.trial-recap__close:hover,
.trial-recap__close:focus-visible {
    background: rgba(255, 255, 255, .22);
    outline: 2px solid rgba(255, 255, 255, .4);
}

.trial-recap__body {
    padding: 22px;
}

.trial-recap__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #b34210;
    font-size: 12px;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.trial-recap__body h2 {
    margin: 0;
    color: #182033;
    font-size: 22px;
    line-height: 1.35;
}

.trial-recap__body > p {
    margin: 10px 0 0;
    color: #4f5867;
    font-size: 15px;
    line-height: 1.65;
}

.trial-recap__body > p strong {
    color: #bd2b25;
    font-size: 17px;
}

.trial-recap__metrics {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 9px;
    margin-top: 17px;
}

.trial-recap__metrics > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #e0e5ef;
    border-radius: 6px;
    background: #f6f8fc;
}

.trial-recap__metrics span {
    color: #657083;
    font-size: 12px;
}

.trial-recap__metrics strong {
    overflow-wrap: anywhere;
    color: #263f7c;
    font-size: 20px;
    line-height: 1.2;
}

.trial-recap__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
}

.trial-recap__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cfd7e6;
    border-radius: 5px;
    color: #2d477f;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    background: #fff;
}

.trial-recap__links a.is-primary {
    border-color: #344d91;
    color: #fff;
    background: #344d91;
}

.trial-recap__links a:hover,
.trial-recap__links a:focus-visible {
    border-color: #b91c2b;
    box-shadow: 0 0 0 3px rgba(185, 28, 43, .1);
    outline: 0;
}

.trial-recap__links svg {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@keyframes trialRecapIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.trial-seo-content {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.trial-guide,
.trial-faq {
    padding: 20px 22px;
    border: 1px solid #d9dee8;
    border-radius: 6px;
    color: #303744;
    background: #fff;
}

.trial-guide {
    border-top: 3px solid #344d91;
}

.trial-guide h2,
.trial-faq h2 {
    margin: 0 0 11px;
    color: #182033;
    font-size: 21px;
    line-height: 1.35;
}

.trial-guide > p {
    margin: 0 0 10px;
    color: #4e5766;
    font-size: 15px;
    line-height: 1.7;
}

.trial-guide > p:last-of-type {
    margin-bottom: 0;
}

.trial-guide a {
    color: #244b9b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.trial-disclaimer {
    display: flex;
    gap: 7px;
    margin-top: 15px;
    padding: 13px 15px;
    border: 1px solid #ead18a;
    border-left: 4px solid #b88713;
    color: #684f0e;
    font-size: 14px;
    line-height: 1.6;
    background: #fffaf0;
}

.trial-disclaimer strong {
    flex: 0 0 auto;
}

.trial-faq {
    border-top: 3px solid #b91c2b;
}

.trial-faq details {
    border-top: 1px solid #e1e4e9;
}

.trial-faq details:last-child {
    border-bottom: 1px solid #e1e4e9;
}

.trial-faq summary {
    padding: 13px 2px;
    color: #293140;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.trial-faq details p {
    margin: 0 2px 14px;
    color: #505968;
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .site-nav .trial-nav-link {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .trial-card { border-right: 0; border-left: 0; border-radius: 0; }
    .trial-header h1 { font-size: 17px; }
    .trial-header p { font-size: 11px; }
    .trial-head-tail-grid { padding: 6px 5px 10px; border-right: 0; border-left: 0; }
    .trial-recap { padding: 0; place-items: end center; }
    .trial-recap__dialog { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 8px 8px 0 0; }
    .trial-recap__body { padding: 19px 16px max(18px, env(safe-area-inset-bottom)); }
    .trial-recap__body h2 { font-size: 20px; }
    .trial-recap__body > p { font-size: 15px; }
    .trial-recap__metrics { margin-top: 14px; }
    .trial-recap__metrics > div { padding: 11px 12px; }
    .trial-recap__metrics strong { font-size: 18px; }
    .trial-recap__links { margin-top: 14px; }
    .trial-recap__links a { padding-inline: 8px; font-size: 13px; }
    .trial-seo-content { gap: 12px; margin-top: 14px; }
    .trial-guide,
    .trial-faq { padding: 17px 15px; border-radius: 4px; }
    .trial-guide h2,
    .trial-faq h2 { font-size: 19px; }
    .trial-guide > p,
    .trial-faq summary { font-size: 15px; }
    .trial-faq details p { font-size: 14px; }
    .trial-disclaimer { display: block; padding: 12px 13px; font-size: 14px; }
    .trial-disclaimer strong { display: block; margin-bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .trial-recap__dialog { animation: none; }
}

/* Quick statistics */
.site-nav .statistics-nav-link {
    border: 1px solid rgba(255, 255, 255, .3);
}

.statistics-page { color: #182033; }
.statistics-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(125deg, #17233c, #344d91 56%, #a7192a);
    box-shadow: 0 12px 30px rgba(24, 32, 51, .16);
}
.statistics-eyebrow { color: #ffd67b; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.statistics-hero h1 { margin: 7px 0 5px; font-size: clamp(25px, 5vw, 36px); }
.statistics-hero p { max-width: 520px; margin: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; }
.statistics-code { display: grid; min-width: 72px; height: 72px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 18px; font-size: 18px; font-weight: 900; background: rgba(255,255,255,.12); }
.statistics-alert { margin-top: 14px; padding: 12px 15px; border: 1px solid #fecaca; border-radius: 9px; color: #991b1b; background: #fef2f2; }
.statistics-page.is-loading { cursor: progress; }
.statistics-page.is-loading .statistics-summary,
.statistics-page.is-loading .statistics-toolbar,
.statistics-page.is-loading [data-stat-grid] { pointer-events: none; opacity: .5; }
.statistics-filter button:disabled { cursor: wait; opacity: .72; }

.statistics-filter {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24,32,51,.05);
}
.statistics-filter label { display: grid; gap: 7px; color: #475467; font-size: 13px; font-weight: 700; }
.statistics-filter input,
.statistics-toolbar input,
.statistics-toolbar select { min-height: 43px; padding: 9px 11px; border: 1px solid #d0d5dd; border-radius: 8px; color: #182033; font: inherit; background: #fff; }
.statistics-filter input:focus,
.statistics-toolbar input:focus,
.statistics-toolbar select:focus { border-color: #344d91; outline: 3px solid rgba(52,77,145,.12); }
.statistics-filter button { min-height: 43px; padding: 9px 18px; border: 0; border-radius: 8px; color: #fff; font-weight: 800; cursor: pointer; background: linear-gradient(105deg,#b91c2b,#344d91); }
 .statistics-filter-hint { grid-column: 1 / -1; margin: -3px 0 0; color: #7a8494; font-size: 11px; }
 .statistics-draws-field select { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d0d5dd; border-radius: 8px; color: #182033; font: inherit; background: #fff; }

.statistics-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.statistics-summary article { display: grid; gap: 5px; min-width: 0; padding: 15px; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; }
.statistics-summary span { overflow: hidden; color: #667085; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.statistics-summary strong { color: #182033; font-size: 23px; }
.statistics-summary small { color: #98a2b3; font-size: 11px; }

.statistics-toolbar { display: grid; grid-template-columns: 1fr 145px 175px; gap: 10px; margin-top: 18px; }
.statistics-tabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.statistics-tabs::-webkit-scrollbar { display: none; }
.statistics-tabs button { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #d0d5dd; border-radius: 20px; color: #475467; font-weight: 700; cursor: pointer; background: #fff; }
.statistics-tabs button.is-active { border-color: #344d91; color: #fff; background: #344d91; }
.statistics-search input,
.statistics-toolbar select { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.statistics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.number-stat-card { overflow: hidden; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(24,32,51,.04); }
.number-stat-card[hidden] { display: none; }
.number-stat-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eef0f3; background: #f8fafc; }
.number-stat-top strong { font-size: 28px; line-height: 1; }
.number-stat-top span { padding: 4px 8px; border-radius: 20px; color: #475467; font-size: 11px; font-weight: 800; background: #e9edf3; }
.status-hot .number-stat-top { background: #fff4f2; }
.status-hot .number-stat-top strong { color: #d92d20; }
.status-hot .number-stat-top span { color: #b42318; background: #fee4e2; }
.status-cold .number-stat-top,
.status-never .number-stat-top { background: #f4f6ff; }
.status-cold .number-stat-top strong,
.status-never .number-stat-top strong { color: #344d91; }
.status-cold .number-stat-top span,
.status-never .number-stat-top span { color: #3538cd; background: #e0e7ff; }
.number-stat-card dl { margin: 0; padding: 8px 14px 12px; }
.number-stat-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #eaecf0; }
.number-stat-card dl div:last-child { border: 0; }
.number-stat-card dt { color: #667085; font-size: 12px; }
.number-stat-card dd { margin: 0; text-align: right; font-size: 12px; font-weight: 800; }
.statistics-empty,
.statistics-no-match { margin-top: 14px; padding: 30px 18px; border: 1px dashed #cbd5e1; border-radius: 12px; text-align: center; color: #667085; background: #fff; }
.statistics-empty { display: grid; gap: 5px; }
.statistics-empty strong { color: #182033; }
.statistics-note { margin-top: 16px; padding: 16px 18px; border-left: 4px solid #d6a12b; border-radius: 8px; color: #694b08; background: #fff8e7; }
.statistics-note p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }

@media (max-width: 760px) {
    .statistics-summary { grid-template-columns: repeat(2,1fr); }
    .statistics-toolbar { grid-template-columns: 1fr 1fr; }
    .statistics-tabs { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .statistics-page { padding-inline: 10px; }
    .statistics-hero { padding: 22px 18px; border-radius: 12px; }
    .statistics-code { display: none; }
    .statistics-filter { grid-template-columns: 1fr 1fr; padding: 12px; }
    .statistics-filter button { grid-column: 1 / -1; }
    .statistics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .statistics-filter { grid-template-columns: 1fr; }
    .statistics-filter button { grid-column: auto; }
    .statistics-toolbar { grid-template-columns: 1fr; }
    .statistics-tabs { grid-column: auto; }
}

/* Minimal header and quick statistics */
.site-header {
    border-bottom: 3px solid #344d91;
    background: #a51f2d;
    box-shadow: none;
}

.site-header__inner {
    min-height: 64px;
}

.site-brand { gap: 10px; }
.site-brand__mark {
    min-width: 48px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    color: #a51f2d;
    font-weight: 600;
    box-shadow: none;
}
.site-brand__text strong { font-size: 17px; font-weight: 600; }
.site-brand__text small { font-weight: 400; }

.site-nav {
    gap: 0;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 4px;
}
.site-nav a,
.site-nav .trial-nav-link,
.site-nav .statistics-nav-link {
    min-height: 38px;
    padding: 9px 15px;
    border: 0;
    border-right: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    box-shadow: none;
}
.site-nav a:last-child { border-right: 0; }
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .trial-nav-link:hover,
.site-nav .trial-nav-link:focus-visible {
    color: #182033;
    background: #fff;
    filter: none;
}
.site-nav a.is-active {
    color: #182033;
    font-weight: 500;
    background: #fff;
}

.statistics-page { color: #252b37; }
.statistics-hero {
    padding: 24px;
    border: 1px solid #d9dde5;
    border-radius: 4px;
    color: #252b37;
    background: #fff;
    box-shadow: none;
}
.statistics-eyebrow {
    color: #a51f2d;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
}
.statistics-hero h1 {
    margin: 6px 0;
    font-size: clamp(24px,5vw,32px);
    font-weight: 600;
}
.statistics-hero p { color: #687080; font-weight: 400; }
.statistics-code {
    min-width: 64px;
    height: 48px;
    border: 1px solid #d9dde5;
    border-radius: 3px;
    color: #344d91;
    font-size: 16px;
    font-weight: 600;
    background: #f7f8fa;
}

.statistics-alert,
.statistics-filter,
.statistics-summary article,
.number-stat-card,
.statistics-empty,
.statistics-no-match,
.statistics-note {
    border-radius: 4px;
    box-shadow: none;
}
.statistics-filter {
    gap: 14px;
    padding: 18px;
    border-color: #d9dde5;
}
.statistics-filter label { color: #4e5665; font-weight: 500; }
.statistics-filter input,
.statistics-toolbar input,
.statistics-toolbar select {
    border-radius: 3px;
    font-weight: 400;
}
.statistics-filter button {
    border-radius: 3px;
    font-weight: 500;
    background: #344d91;
}
.statistics-filter button:hover,
.statistics-filter button:focus-visible { background: #263d78; outline: 2px solid rgba(52,77,145,.16); }

.statistics-summary { gap: 8px; }
.statistics-summary article {
    padding: 14px;
    border-color: #dfe3e9;
}
.statistics-summary strong { font-size: 21px; font-weight: 600; }
.statistics-summary small,
.statistics-summary span { font-weight: 400; }

.statistics-toolbar {
    padding: 12px 0;
    border-top: 1px solid #dfe3e9;
    border-bottom: 1px solid #dfe3e9;
}
.statistics-tabs { gap: 0; }
.statistics-tabs button {
    padding: 9px 12px;
    border-radius: 0;
    font-weight: 400;
    background: transparent;
}
.statistics-tabs button:first-child { border-radius: 3px 0 0 3px; }
.statistics-tabs button:last-child { border-radius: 0 3px 3px 0; }
.statistics-tabs button + button { border-left: 0; }
.statistics-tabs button.is-active { font-weight: 500; background: #344d91; }

.statistics-grid { gap: 8px; }
.number-stat-card { border-color: #dfe3e9; }
.number-stat-top {
    padding: 11px 13px;
    background: #f7f8fa;
}
.number-stat-top strong { font-size: 25px; font-weight: 600; }
.number-stat-top span {
    padding: 3px 7px;
    border-radius: 2px;
    font-weight: 500;
}
.status-hot .number-stat-top,
.status-cold .number-stat-top,
.status-never .number-stat-top { background: #f7f8fa; }
.status-hot .number-stat-top { border-left: 3px solid #c7352a; }
.status-cold .number-stat-top,
.status-never .number-stat-top { border-left: 3px solid #344d91; }
.number-stat-card dl { padding: 7px 13px 10px; }
.number-stat-card dd { font-weight: 500; }
.statistics-note { border-radius: 0 3px 3px 0; }
.statistics-note strong { font-weight: 600; }

@media (max-width: 760px) {
    .site-header__inner { padding-bottom: 10px; }
    .site-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin-top: 10px;
        overflow: visible;
    }
    .site-nav a,
    .site-nav .trial-nav-link,
    .site-nav .statistics-nav-link {
        display: grid;
        width: auto;
        place-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .statistics-hero { padding: 19px 16px; }
    .statistics-filter { padding: 14px; }
    .statistics-page { padding-inline: 8px; }
}

/* Data-led prediction article */
.prediction-page { color: #282d37; }
.prediction-hero { padding: 25px 24px; border: 1px solid #d9dde5; border-top: 3px solid #a51f2d; background: #fff; }
.prediction-label { color: #a51f2d; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.prediction-hero h1 { margin: 7px 0; color: #202632; font-size: clamp(25px,5vw,34px); font-weight: 600; line-height: 1.2; }
.prediction-hero > p { max-width: 650px; margin: 0; color: #626a78; line-height: 1.65; }
.prediction-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #e5e7eb; color: #737b89; font-size: 12px; }
.prediction-meta a { color: #344d91; font-weight: 500; text-decoration: underline; text-decoration-color: #aeb9d4; text-underline-offset: 2px; }
.prediction-meta a:hover,
.prediction-meta a:focus-visible { color: #a51f2d; text-decoration-color: currentColor; }
.prediction-empty { margin-top: 12px; padding: 24px; border: 1px solid #d9dde5; background: #fff; }
.prediction-empty strong { font-weight: 600; }

.prediction-picks { position: relative; margin-top: 12px; overflow: hidden; padding: 22px; border: 1px solid #263f7c; border-top: 4px solid #ef3b3f; color: #fff; background: linear-gradient(125deg,#152852 0%,#263f7c 67%,#344d91 100%); box-shadow: 0 12px 30px rgba(26,45,91,.16); }
.prediction-picks::after { position: absolute; top: -110px; right: -75px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ''; pointer-events: none; }
.prediction-picks__header { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.prediction-picks__eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #ffd9ac; font-size: 13px; letter-spacing: .045em; text-transform: uppercase; }
.prediction-picks__eyebrow svg { width: 18px; height: 18px; fill: #ffb548; stroke: #ffb548; stroke-linejoin: round; }
.prediction-picks h2 { margin: 5px 0 4px; color: #fff; font-size: 23px; font-weight: 600; line-height: 1.3; }
.prediction-picks__header p { max-width: 620px; margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; }
.prediction-picks__date { position: relative; z-index: 1; flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; color: #fff; font-size: 13px; background: rgba(255,255,255,.1); }
.prediction-pick-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 10px; }
.prediction-pick-card { display: grid; gap: 12px; min-width: 0; padding: 16px 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; color: #202632; background: rgba(255,255,255,.97); box-shadow: 0 8px 18px rgba(7,20,47,.13); }
.prediction-pick-card.is-primary { border-color: #ffb2a2; border-left: 4px solid #e43b32; background: linear-gradient(100deg,#fff 0%,#fff5f1 100%); }
.prediction-pick-card.is-pair { border-left: 4px solid #f0a83b; }
.prediction-pick-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prediction-pick-card__heading > span { color: #4e5869; font-size: 14px; }
.prediction-pick-card__heading em { padding: 3px 7px; border-radius: 3px; color: #a53a19; font-size: 12px; font-style: normal; background: #fff0df; }
.prediction-pick-card > strong { color: #c7292e; font-size: 42px; font-weight: 650; letter-spacing: .055em; line-height: 1; }
.prediction-pick-card.is-pair > strong { color: #263f7c; font-size: 34px; }
.prediction-pick-card.is-pair > strong i { color: #a6adba; font-style: normal; font-weight: 400; }
.prediction-pick-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #e4e7ed; color: #606a7a; font-size: 13px; }
.prediction-pick-card__meta b { color: #a51f2d; font-size: 14px; font-weight: 600; }
.prediction-pick-grid .prediction-wide { grid-column: 1 / -1; gap: 10px; border-left: 4px solid #344d91; background: #f8faff; }
.prediction-pick-grid .prediction-wide > strong { color: #263d78; font-size: clamp(19px,3vw,24px); line-height: 1.4; overflow-wrap: anywhere; }

.prediction-rationale { border-top: 3px solid #344d91; }
.prediction-rationale__header { margin-bottom: 14px; }
.prediction-rationale__header > span { color: #a51f2d; font-size: 12px; letter-spacing: .045em; text-transform: uppercase; }
.prediction-rationale__header h2 { margin: 4px 0 7px; }
.prediction-rationale__header p { max-width: 760px; margin: 0; color: #596170; font-size: 14px; line-height: 1.65; }
.prediction-rationale__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.prediction-rationale__grid article { padding: 14px 15px; border: 1px solid #dfe3e9; border-left: 3px solid #a51f2d; background: #fafbfc; }
.prediction-rationale__grid article:nth-child(even) { border-left-color: #344d91; }
.prediction-rationale__grid article > span { color: #747d8c; font-size: 12px; }
.prediction-rationale__grid h3 { margin: 4px 0 6px; color: #263d78; font-size: 17px; font-weight: 600; line-height: 1.35; }
.prediction-rationale__grid p { margin: 0; color: #505968; font-size: 14px; line-height: 1.65; }

.prediction-section { margin-top: 12px; padding: 20px; border: 1px solid #d9dde5; background: #fff; }
.prediction-section h2 { margin: 0 0 9px; color: #202632; font-size: 20px; font-weight: 600; line-height: 1.3; }
.prediction-section > p { margin: 0 0 13px; color: #596170; line-height: 1.7; }
.prediction-memory { border-top: 3px solid #a51f2d; background: linear-gradient(115deg,#fff 0%,#fffafa 100%); }
.prediction-number-list { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
.prediction-number-list > span { display: grid; min-width: 0; justify-items: center; gap: 6px; padding: 11px 8px 9px; border: 1px solid #e0e4ea; border-radius: 5px; text-align: center; background: #fff; box-shadow: 0 4px 12px rgba(32,42,65,.045); }
.prediction-number-list > span.is-top { border-color: #e8b9bd; background: #fff5f5; box-shadow: inset 0 3px #c92b32,0 5px 14px rgba(165,31,45,.08); }
.prediction-number-list strong { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 650; background: #a51f2d; box-shadow: 0 5px 12px rgba(165,31,45,.2); }
.prediction-number-list > span:not(.is-top) strong { color: #344d91; background: #edf2ff; box-shadow: none; }
.prediction-number-list small { color: #596474; font-size: 12px; }
.prediction-source-line { margin-top: 13px !important; padding: 9px 11px; border-left: 3px solid #d2a04c; color: #4f5968 !important; font-size: 13px; background: #fff9ef; }
.prediction-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prediction-data-panel { overflow: hidden; }
.prediction-data-panel.is-frequency { border-top: 3px solid #c92b32; }
.prediction-data-panel.is-overdue { border-top: 3px solid #344d91; }
.prediction-ranking { overflow: hidden; border: 1px solid #dde2e9; border-radius: 5px; background: #fff; }
.prediction-ranking > div { display: grid; grid-template-columns: 30px 50px minmax(0,1fr); align-items: center; gap: 9px; min-height: 43px; padding: 4px 10px; border-bottom: 1px solid #e7e9ed; }
.prediction-ranking > div:last-child { border-bottom: 0; }
.prediction-ranking > div:nth-child(even) { background: #fafbfc; }
.prediction-ranking > div.is-top { border-left: 3px solid #c92b32; background: #fff5f5; }
.prediction-data-panel.is-overdue .prediction-ranking > div.is-top { border-left-color: #344d91; background: #f4f7ff; }
.prediction-ranking > div > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #697382; font-size: 12px; background: #eef1f5; }
.prediction-ranking > div.is-top > span { color: #fff; background: #c92b32; }
.prediction-data-panel.is-overdue .prediction-ranking > div.is-top > span { background: #344d91; }
.prediction-ranking strong { color: #a51f2d; font-size: 19px; font-weight: 650; letter-spacing: .03em; }
.prediction-data-panel.is-overdue .prediction-ranking strong { color: #344d91; }
.prediction-ranking small { color: #505a69; font-size: 13px; text-align: right; }

.prediction-score-section { border-top: 3px solid #263f7c; background: linear-gradient(115deg,#fff 0%,#f8faff 100%); }
.prediction-score-table { overflow-x: auto; border: 1px solid #d6dce6; border-radius: 5px; background: #fff; box-shadow: 0 6px 18px rgba(35,55,98,.06); }
.prediction-score-table > div { display: grid; grid-template-columns: 78px repeat(4,1fr); min-width: 520px; border-bottom: 1px solid #e3e7ed; }
.prediction-score-table > div:last-child { border-bottom: 0; }
.prediction-score-table span,
.prediction-score-table strong { display: grid; min-height: 43px; padding: 10px; place-items: center; text-align: center; font-size: 14px; }
.prediction-score-table > div:not(.prediction-score-head):nth-child(odd) { background: #fafbfc; }
.prediction-score-table > div.is-top { border-left: 3px solid #c92b32; background: #fff6f6 !important; }
.prediction-score-table > div > strong:first-child { color: #a51f2d; font-size: 18px; font-weight: 650; }
.prediction-score-table > div > strong:last-child { color: #344d91; font-size: 16px; font-weight: 650; }
.prediction-score-table > div.is-top > strong:last-child { color: #fff; background: #c92b32; }
.prediction-score-head { color: #fff; background: #263f7c; }
.prediction-score-head span { min-height: 42px; font-weight: 600; }
.prediction-pascal { overflow: hidden; border-top: 3px solid #d95b08; background: linear-gradient(120deg,#fff 0%,#fffaf3 100%); box-shadow: 0 7px 20px rgba(165,79,20,.06); }
.prediction-pascal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prediction-pascal__header h2 { margin-bottom: 0; }
.prediction-pascal__date { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #efd2bd; border-radius: 4px; color: #985027; font-size: 12px; background: #fff8f2; }
.prediction-pascal__triangle { --pascal-node: 34px; display: grid; justify-content: center; gap: 4px; margin-top: 13px; overflow-x: auto; padding: 2px 4px 7px; scrollbar-width: thin; }
.prediction-pascal__row { display: flex; justify-content: center; gap: 4px; min-width: max-content; }
.prediction-pascal__row > span { display: grid; flex: 0 0 var(--pascal-node); width: var(--pascal-node); height: var(--pascal-node); place-items: center; border: 2px solid #e86913; border-radius: 50%; color: #a93600; font-size: 16px; line-height: 1; background: #fff8df; box-shadow: 0 2px 5px rgba(175,70,5,.1); }
.prediction-pascal__row.is-source > span { color: #fff; background: #d95606; }
.prediction-pascal__results { display: grid; justify-items: center; gap: 7px; margin-top: 8px; color: #5c6471; font-size: 13px; }
.prediction-pascal__results > div { display: flex; justify-content: center; gap: 8px; }
.prediction-pascal__results strong { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: #fff; font-size: 20px; background: #d94c00; box-shadow: 0 5px 12px rgba(180,59,0,.18); }
.prediction-pascal__note { margin: 14px 0 0 !important; padding-top: 10px; border-top: 1px dashed #e2d3c8; color: #747c89 !important; font-size: 12px; text-align: center; }
.prediction-pascal__note a { color: #344d91; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prediction-pascal__note a:hover,
.prediction-pascal__note a:focus-visible { color: #a51f2d; }
.prediction-guide { border-left: 3px solid #344d91; }
.prediction-faq details { border-top: 1px solid #e1e4e9; }
.prediction-faq details:last-child { border-bottom: 1px solid #e1e4e9; }
.prediction-faq summary { padding: 12px 0; color: #303744; font-weight: 500; cursor: pointer; }
.prediction-faq details p { margin: 0 0 12px; color: #626a78; line-height: 1.6; }
.prediction-author { margin-top: 12px; overflow: hidden; border: 1px solid #cfd6e3; border-top: 4px solid #344d91; border-radius: 6px; color: #303744; background: #fff; box-shadow: 0 8px 24px rgba(31,49,91,.08); }
.prediction-author__identity { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid #dfe3ea; background: linear-gradient(105deg,#f7f9fd 0%,#fff 72%); }
.prediction-author__mark { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border: 2px solid #a51f2d; border-radius: 6px; color: #a51f2d; font-size: 18px; font-weight: 700; background: #fff; box-shadow: 4px 4px 0 #f0dfe1; }
.prediction-author__identity > div { display: grid; gap: 2px; }
.prediction-author__identity span { color: #a51f2d; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.prediction-author__identity h2 { margin: 0; color: #1f2c49; font-size: 21px; font-weight: 600; line-height: 1.3; }
.prediction-author__identity small { color: #606b7d; font-size: 13px; }
.prediction-author__intro { margin: 0; padding: 17px 20px 4px; color: #4d5767; font-size: 14px; line-height: 1.65; }
.prediction-author__standards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 14px 20px 18px; }
.prediction-author__standards article { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 12px; border: 1px solid #dfe3ea; border-radius: 4px; background: #fafbfc; }
.prediction-author__standards svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: #344d91; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.prediction-author__standards article > div { display: grid; gap: 3px; }
.prediction-author__standards strong { color: #29344b; font-size: 14px; font-weight: 600; line-height: 1.35; }
.prediction-author__standards span { color: #606a79; font-size: 13px; line-height: 1.5; }
.prediction-author__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-top: 1px solid #dfe3ea; color: #5d6777; font-size: 13px; background: #f6f8fb; }
.prediction-author__footer a { color: #344d91; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prediction-author__footer a:hover,
.prediction-author__footer a:focus-visible { color: #a51f2d; }
.prediction-warning { display: flex; gap: 7px; margin-top: 12px; padding: 15px 17px; border: 1px solid #e4c56c; border-left: 4px solid #b88713; color: #5f480c; font-size: 14px; line-height: 1.6; background: #fffaf0; }
.prediction-warning strong { flex: 0 0 auto; font-weight: 600; }

@media (max-width: 760px) {
    .site-nav { grid-template-columns: repeat(3,1fr); }
    .site-nav a,
    .site-nav .trial-nav-link,
    .site-nav .statistics-nav-link { padding-inline: 7px; font-size: 12px; }
    .prediction-columns { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 600px) {
    .prediction-page { padding-inline: 8px; }
    .prediction-hero,
    .prediction-section,
    .prediction-picks { padding: 17px 15px; }
    .prediction-picks__header { display: grid; gap: 10px; margin-bottom: 14px; }
    .prediction-picks__date { justify-self: start; padding: 5px 8px; }
    .prediction-picks h2 { font-size: 21px; }
    .prediction-pick-grid { grid-template-columns: 1fr; }
    .prediction-pick-grid .prediction-wide { grid-column: auto; }
    .prediction-pick-card { padding: 15px; }
    .prediction-pick-card > strong { font-size: 39px; }
    .prediction-pick-card.is-pair > strong { font-size: 30px; }
    .prediction-pick-grid .prediction-wide > strong { font-size: 19px; }
    .prediction-rationale__grid { grid-template-columns: 1fr; }
    .prediction-rationale__header p,
    .prediction-rationale__grid p { font-size: 14px; }
    .prediction-author__identity { padding: 16px 15px; }
    .prediction-author__mark { flex-basis: 46px; width: 46px; height: 46px; }
    .prediction-author__identity h2 { font-size: 19px; }
    .prediction-author__intro { padding: 15px 15px 3px; }
    .prediction-author__standards { grid-template-columns: 1fr; padding: 12px 15px 16px; }
    .prediction-author__footer { display: grid; padding: 12px 15px; }
    .prediction-number-list { grid-template-columns: repeat(2,1fr); }
    .prediction-pascal { padding-inline: 11px; }
    .prediction-pascal__header { align-items: flex-start; }
    .prediction-pascal__date { font-size: 11px; }
    .prediction-pascal__triangle { --pascal-node: clamp(23px, calc((100vw - 70px) / 11), 30px); gap: 3px; margin-inline: -3px; padding-inline: 0; }
    .prediction-pascal__row { gap: 3px; }
    .prediction-pascal__row > span { font-size: clamp(13px, 3.8vw, 15px); }
    .prediction-warning { display: block; }
    .prediction-warning strong { display: block; margin-bottom: 4px; }
}

/* Responsive header navigation */
.site-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 3px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
}
.site-menu-toggle:hover,
.site-menu-toggle:focus-visible { background: rgba(255,255,255,.12); outline: 2px solid rgba(255,255,255,.25); }
.site-menu-toggle__icon { display: grid; gap: 4px; width: 18px; }
.site-menu-toggle__icon i { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.site-menu-toggle.is-open .site-menu-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-menu-toggle.is-open .site-menu-toggle__icon i:nth-child(2) { opacity: 0; }
.site-menu-toggle.is-open .site-menu-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
    .site-header { position: sticky; top: 0; }
    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        gap: 0 12px;
        min-height: 60px;
        padding-block: 8px;
    }
    .site-brand { min-width: 0; width: auto; }
    .site-brand__text { min-width: 0; }
    .site-brand__text strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
    .site-menu-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 8px;
        overflow: hidden;
        border-color: rgba(255,255,255,.34);
        border-radius: 3px;
        background: rgba(83,14,24,.2);
    }
    .site-nav.is-open { display: grid; animation: mobileMenuOpen .18s ease-out; }
    .site-nav a,
    .site-nav .trial-nav-link,
    .site-nav .statistics-nav-link,
    .site-nav .prediction-nav-link {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: space-between;
        padding: 11px 13px;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,.2);
        color: #fff;
        font-size: 14px;
        text-align: left;
        background: transparent;
    }
    .site-nav a::after { content: '›'; color: rgba(255,255,255,.65); font-size: 20px; line-height: 1; }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a.is-active { color: #182033; background: #fff; }
    .site-nav a.is-active::after { color: #344d91; }
    .site-nav__label { justify-content: flex-start; }
    .site-nav__icon { width: 19px; height: 19px; }
}

@keyframes mobileMenuOpen {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
    .site-header__inner { width: calc(100% - 20px); }
    .site-brand__mark { min-width: 43px; height: 36px; font-size: 13px; }
    .site-brand__text small { display: block; font-size: 10px; line-height: 1.2; white-space: normal; }
    .site-menu-toggle { min-width: 44px; padding-inline: 10px; }
    .site-menu-toggle > span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav.is-open { animation: none; }
    .site-menu-toggle__icon i { transition: none; }
}

/* Legal pages and homepage editorial content */
.legal-content { color: #3c4350; }
.legal-lead { margin-bottom: 22px !important; padding: 14px 16px; border-left: 3px solid #344d91; color: #303744; background: #f7f8fa; }
.legal-content h2 { padding-top: 4px; font-size: 19px; font-weight: 600; }
.legal-content p { line-height: 1.75; }
.legal-content ul { margin: 0 0 18px; padding-left: 21px; }
.legal-content li { margin-bottom: 7px; line-height: 1.65; }
.legal-content strong { font-weight: 600; }
.legal-content a { color: #344d91; text-underline-offset: 2px; }
.legal-contact-box { margin-top: 28px; padding: 15px 17px; border: 1px solid #d9dde5; border-left: 3px solid #a51f2d; background: #fafbfc; }
.legal-contact-box strong { font-weight: 600; }
.legal-contact-box p { margin: 4px 0 0; }

.home-seo-article { margin-top: 18px; border: 1px solid #d9dde5; background: #fff; }
.home-seo-header { padding: 22px 24px; border-bottom: 1px solid #d9dde5; border-top: 3px solid #344d91; }
.home-seo-header > span { color: #a51f2d; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.home-seo-title { margin: 6px 0; color: #202632; font-size: 24px; font-weight: 600; line-height: 1.3; }
.home-seo-header p { margin: 0; color: #666e7c; line-height: 1.6; }
.home-seo-content { padding: 4px 24px 24px; color: #424956; }
.home-seo-content section { padding-top: 21px; }
.home-seo-content section + section { margin-top: 5px; border-top: 1px solid #e3e6eb; }
.home-seo-content h2 { margin: 0 0 9px; color: #242a35; font-size: 20px; font-weight: 600; line-height: 1.35; }
.home-seo-content h3 { margin: 17px 0 5px; color: #343b47; font-size: 16px; font-weight: 600; }
.home-seo-content p { margin: 0 0 12px; line-height: 1.75; }
.home-seo-content strong { font-weight: 600; }
.home-feature-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 13px 0; }
.home-feature-links a { display: grid; align-content: start; gap: 6px; padding: 14px; border: 1px solid #d9dde5; color: inherit; text-decoration: none; background: #fafbfc; }
.home-feature-links a:hover,
.home-feature-links a:focus-visible { border-color: #344d91; background: #fff; outline: 2px solid rgba(52,77,145,.1); }
.home-feature-links strong { color: #344d91; font-size: 15px; }
.home-feature-links span { color: #656d7b; font-size: 13px; line-height: 1.55; }
.claim-guide { --claim-blue: #243f88; --claim-red: #a51f2d; --claim-ink: #20283a; }
.claim-guide__header { position: relative; margin-bottom: 14px; padding: 19px 20px 18px; overflow: hidden; border: 1px solid #d9e1f2; border-radius: 12px; background: linear-gradient(135deg,#f4f7ff 0%,#fff 68%); }
.claim-guide__header::after { position: absolute; top: -38px; right: -34px; width: 130px; height: 130px; border: 22px solid rgba(52,77,145,.06); border-radius: 50%; content: ""; pointer-events: none; }
.claim-guide__eyebrow { display: block; margin-bottom: 5px; color: var(--claim-red); font-size: 11px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.home-seo-content .claim-guide__header h2 { position: relative; z-index: 1; margin-bottom: 6px; color: var(--claim-ink); font-size: 22px; }
.home-seo-content .claim-guide__header p { position: relative; z-index: 1; margin: 0; color: #606a7b; font-size: 14px; line-height: 1.55; }
.claim-office { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 13px; align-items: center; margin-bottom: 12px; padding: 16px 17px; border: 1px solid #dce2ec; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(30,42,67,.055); }
.claim-office__pin { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #fff; background: var(--claim-blue); }
.claim-office__pin svg { width: 23px; height: 23px; fill: currentColor; }
.claim-office__body { min-width: 0; }
.claim-office__label { display: block; margin-bottom: 3px; color: #7a8290; font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.claim-office__body > strong { display: block; color: var(--claim-ink); font-size: 16px; line-height: 1.45; }
.home-seo-content .claim-office__body p { margin: 3px 0 0; color: #687181; font-size: 12px; line-height: 1.5; }
.claim-office__status { padding: 6px 9px; border: 1px solid #ead9a8; border-radius: 999px; color: #765a0d; background: #fff9e8; font-size: 11px; font-weight: 600; white-space: nowrap; }
.claim-checklist { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 12px 0 18px; }
.claim-checklist > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 9px; align-items: start; padding: 12px; border: 1px solid #e2e6ed; border-radius: 9px; background: #fafbfc; }
.claim-checklist > div > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: var(--claim-blue); background: #e9eefc; font-size: 12px; font-weight: 700; }
.home-seo-content .claim-checklist p { margin: 0; color: #6b7381; font-size: 11px; line-height: 1.45; }
.claim-checklist p strong { display: block; margin-bottom: 2px; color: #303847; font-size: 13px; }
.prize-structure { overflow: hidden; border: 1px solid #d9dee7; border-radius: 11px; background: #fff; }
.prize-structure__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; border-bottom: 1px solid #dfe4ec; background: #f7f9fc; }
.prize-structure__heading span:first-child { display: block; margin-bottom: 2px; color: #778090; font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.home-seo-content .prize-structure__heading h3 { margin: 0; color: var(--claim-ink); font-size: 17px; }
.prize-structure__ticket { flex: 0 0 auto; padding: 6px 10px; border-radius: 7px; color: #fff; background: var(--claim-red); font-size: 12px; font-weight: 700; }
.prize-table { width: 100%; border-spacing: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prize-table th,
.prize-table td { padding: 10px 17px; border-bottom: 1px solid #edf0f4; text-align: left; }
.prize-table thead th { color: #717a89; background: #fff; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.prize-table tbody th { color: #3b4351; font-size: 13px; font-weight: 600; }
.prize-table tbody td { color: #596272; font-size: 13px; }
.prize-table th:nth-child(2),
.prize-table td:nth-child(2) { width: 90px; text-align: center; }
.prize-table th:last-child,
.prize-table td:last-child { text-align: right; }
.prize-table tbody td:last-child { color: #252e3e; font-weight: 700; }
.prize-table tbody tr:last-child > * { border-bottom: 0; }
.prize-table tbody tr:nth-child(even):not(.is-special) { background: #fbfcfd; }
.prize-table .is-special { background: linear-gradient(90deg,#fff4f4 0%,#fff 80%); }
.prize-table .is-special th,
.prize-table .is-special td:last-child { color: var(--claim-red); }
.prize-table .is-special td:last-child { font-size: 15px; }
.claim-note { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; margin-top: 12px; padding: 14px 15px; border: 1px solid #eadfbd; border-radius: 9px; color: #65562c; background: #fffbef; }
.claim-note__icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #b88713; font-weight: 800; }
.claim-note strong { color: #5c4a19; font-size: 13px; }
.home-seo-content .claim-note ul { margin: 5px 0 0; padding-left: 17px; }
.home-seo-content .claim-note li { margin: 3px 0; font-size: 12px; line-height: 1.55; }
.home-faq details { border-top: 1px solid #e1e4e9; }
.home-faq details:last-child { border-bottom: 1px solid #e1e4e9; }
.home-faq summary { padding: 13px 0; color: #303744; font-weight: 500; cursor: pointer; }
.home-faq details p { margin: 0 0 13px; color: #5e6674; }
.home-seo-notice { display: flex; gap: 7px; margin-top: 22px; padding: 14px 16px; border-left: 3px solid #b88713; color: #664d10; background: #fff9eb; font-size: 13px; line-height: 1.6; }
.home-seo-notice strong { flex: 0 0 auto; }

@media (max-width: 600px) {
    .home-seo-article { border-right: 0; border-left: 0; }
    .home-seo-header { padding: 18px 15px; }
    .home-seo-title { font-size: 21px; }
    .home-seo-content { padding: 2px 15px 20px; }
    .home-feature-links { grid-template-columns: 1fr; }
    .claim-guide__header { padding: 16px; }
    .home-seo-content .claim-guide__header h2 { font-size: 19px; }
    .claim-office { grid-template-columns: 40px minmax(0,1fr); padding: 14px; }
    .claim-office__pin { width: 40px; height: 40px; }
    .claim-office__status { grid-column: 2; justify-self: start; }
    .claim-checklist { grid-template-columns: 1fr; gap: 7px; }
    .claim-checklist > div { padding: 10px 12px; }
    .prize-structure__heading { padding: 13px; }
    .home-seo-content .prize-structure__heading h3 { font-size: 15px; }
    .prize-table th,
    .prize-table td { padding: 9px 11px; }
    .prize-table th:nth-child(2),
    .prize-table td:nth-child(2) { width: 54px; }
    .prize-table thead th { font-size: 9px; }
    .prize-table tbody th,
    .prize-table tbody td { font-size: 12px; }
    .prize-table .is-special td:last-child { font-size: 13px; }
    .claim-note { padding: 12px; }
    .home-seo-notice { display: block; }
    .home-seo-notice strong { display: block; margin-bottom: 3px; }
    .legal-content h2 { font-size: 18px; }
}

/* Compact homepage statistics */
.home-compact-stats {
    margin-top: 16px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe3e9;
    border-top: 3px solid #a51f2d;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30,40,55,.06);
}
.compact-stats-heading {
    margin: 0;
    padding: 13px 14px 10px;
    color: #202632;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
}
.compact-stat-block + .compact-stat-block { margin-top: 5px; }
.compact-stat-block h3 {
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #eadfbd;
    color: #252a33;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    background: #fff6d7;
}
.compact-stat-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    border-left: 1px solid #dfe2e7;
}
.compact-stat-grid > span {
    min-width: 0;
    padding: 5px 6px;
    border-right: 1px solid #dfe2e7;
    border-bottom: 1px solid #dfe2e7;
    color: #333a46;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}
.compact-stat-grid strong { color: #d94600; font-weight: 600; }
.compact-stat-empty { margin: 0; padding: 9px; border: 1px solid #dfe2e7; color: #727986; font-size: 13px; text-align: center; }
.compact-stats-link { display: block; padding: 9px 10px 5px; color: #344d91; font-size: 13px; text-align: right; text-decoration: none; }
.compact-stats-link:hover,
.compact-stats-link:focus-visible { text-decoration: underline; outline: none; }

@media (max-width: 600px) {
    .home-compact-stats { margin-top: 12px; border-right: 0; border-left: 0; }
    .compact-stats-heading { padding: 11px 10px 8px; font-size: 18px; }
    .compact-stat-block h3 { font-size: 14px; }
    .compact-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .compact-stat-grid > span { padding-block: 7px; font-size: 13px; }
    .compact-digit-grid > span { text-align: left; }
}

.compact-stats-filter {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #e4e7ec;
    background: linear-gradient(180deg,#fafbfc 0%,#f4f6f9 100%);
}
.compact-stats-presets { display: grid; grid-template-columns: repeat(4,minmax(62px,1fr)); gap: 3px; min-width: 0; padding: 3px; border: 1px solid #d9dee7; border-radius: 8px; background: #e9edf3; }
.compact-stats-presets button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 6px; color: #4d5665; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; transition: color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease; }
.compact-stats-presets button:hover,.compact-stats-presets button:focus-visible { color: #263d78; background: rgba(255,255,255,.72); outline: none; }
.compact-stats-presets button.is-active { color: #fff; background: #344d91; box-shadow: 0 2px 5px rgba(35,55,112,.22); }
.compact-stats-presets button:active { transform: translateY(1px); }
.compact-stats-presets button:disabled { cursor: wait; opacity: .58; }
.compact-stats-custom { display: grid; grid-template-columns: 86px auto; align-items: stretch; gap: 6px; }
.compact-stats-input-wrap { display: flex; align-items: center; min-height: 44px; overflow: hidden; border: 1px solid #cbd2dc; border-radius: 7px; background: #fff; transition: border-color .15s ease,box-shadow .15s ease; }
.compact-stats-input-wrap:focus-within { border-color: #344d91; box-shadow: 0 0 0 3px rgba(52,77,145,.12); }
.compact-stats-input-wrap input { width: 55px; min-width: 0; height: 42px; padding: 6px 2px 6px 9px; border: 0; color: #242b36; font: inherit; font-weight: 600; text-align: center; background: transparent; outline: none; }
.compact-stats-input-wrap > span { padding-right: 8px; color: #7a8391; font-size: 12px; }
.compact-stats-custom button { min-height: 44px; padding: 7px 13px; border: 0; border-radius: 7px; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: #344d91; box-shadow: 0 2px 5px rgba(35,55,112,.18); transition: background .15s ease,transform .15s ease; }
.compact-stats-custom button:hover,.compact-stats-custom button:focus-visible { background: #263d78; outline: none; }
.compact-stats-custom button:active { transform: translateY(1px); }
.compact-stats-custom button:disabled { cursor: wait; opacity: .65; }
.compact-stats-status { min-height: 0; padding: 0 11px; color: #b42318; font-size: 12px; }
.compact-stats-status:not(:empty) { min-height: 34px; padding: 9px 11px; border-bottom: 1px solid #f1d2cf; background: #fff5f4; }
[data-compact-stats-results] { transition: opacity .15s ease; }
.home-compact-stats.is-loading [data-compact-stats-results] { pointer-events: none; opacity: .48; }
@media (max-width: 720px) { .compact-stats-filter { grid-template-columns: 1fr; gap: 8px; padding: 9px; } .compact-stats-custom { grid-template-columns: minmax(0,1fr) minmax(92px,auto); } .compact-stats-input-wrap input { width: 100%; } }
@media (max-width: 380px) { .compact-stats-presets { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* Monthly draw calendar */
.draw-calendar{position:relative;transition:opacity .15s ease}.draw-calendar{overflow:hidden;border-color:#d8dee8;border-radius:9px;box-shadow:0 3px 12px rgba(31,47,74,.06)}
.draw-calendar__header{display:grid;gap:10px;padding:13px 14px 11px;color:#fff;background:radial-gradient(circle at 100% 0,rgba(255,255,255,.16),transparent 42%),linear-gradient(135deg,#a51f2d 0%,#344d91 100%)}
.draw-calendar__header>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.draw-calendar__header>div>span{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.78}
.draw-calendar__title{margin:0;font-size:16px;font-weight:700}
.draw-calendar__header nav{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:6px}
.draw-calendar__header nav a{display:grid;width:32px;height:30px;place-items:center;border:1px solid rgba(255,255,255,.32);border-radius:7px;color:#fff;font-size:22px;line-height:1;text-decoration:none;background:rgba(255,255,255,.1);transition:background .15s ease,transform .15s ease}
.draw-calendar__header nav a:hover,.draw-calendar__header nav a:focus-visible{background:rgba(255,255,255,.24);transform:translateY(-1px);outline:none}
.draw-calendar__header nav strong{text-align:center;font-size:13px;font-weight:700}
.draw-calendar__weekdays,.draw-calendar__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.draw-calendar__weekdays{padding:8px 9px 4px;color:#737c89;font-size:10px;font-weight:700;text-align:center;background:#f7f8fa}
.draw-calendar__grid{gap:3px;padding:5px 9px 10px;background:#f7f8fa}
.draw-calendar__day{position:relative;display:grid;aspect-ratio:1;min-width:0;place-items:center;border:1px solid transparent;border-radius:8px;color:#49515e;font-size:12px;font-weight:600;text-decoration:none;background:#fff}
.draw-calendar__day.is-outside{color:#b2b7c0;background:transparent;opacity:.55}
.draw-calendar__day.is-scheduled{border-color:#efd79b;color:#815812;background:#fff7dc}
.draw-calendar__day.has-result{border-color:#344d91;color:#fff;font-weight:800;background:#344d91;box-shadow:0 2px 5px rgba(52,77,145,.22)}
.draw-calendar__day.has-result i{position:absolute;right:4px;bottom:3px;width:4px;height:4px;border-radius:50%;background:#ffd66b}
.draw-calendar__day.is-today{box-shadow:0 0 0 2px #fff,0 0 0 4px #a51f2d;z-index:1}
a.draw-calendar__day:hover,a.draw-calendar__day:focus-visible{border-color:#a51f2d;color:#fff;background:#a51f2d;transform:translateY(-1px);outline:none}
.draw-calendar__legend{display:flex;align-items:center;justify-content:center;gap:15px;padding:8px 10px;border-top:1px solid #e6e9ee;color:#68717e;font-size:10px;background:#fff}
.draw-calendar__legend span{display:flex;align-items:center;gap:5px}
.draw-calendar__legend i{width:9px;height:9px;border-radius:3px;border:1px solid #efd79b;background:#fff7dc}
.draw-calendar__legend i.has-result{border-color:#344d91;background:#344d91}
.ticket-modal .draw-calendar{margin-bottom:10px}
.draw-calendar.is-loading{pointer-events:none;opacity:.62}
.draw-calendar.is-loading::after{position:absolute;z-index:3;top:50%;left:50%;width:28px;height:28px;margin:-14px 0 0 -14px;border:3px solid rgba(52,77,145,.2);border-top-color:#344d91;border-radius:50%;content:"";animation:draw-calendar-spin .7s linear infinite}
 draw-calendar-spin{to{transform:rotate(360deg)}}
@media(max-width:380px){.draw-calendar__header{padding-inline:11px}.draw-calendar__grid{gap:2px;padding-inline:7px}.draw-calendar__day{border-radius:6px}}

/* Single draw previous/next navigation */
.draw-period-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 4px}
.draw-period-navigation__link{display:flex;align-items:center;gap:10px;min-height:62px;padding:10px 14px;border:1px solid #d8dee8;border-radius:9px;color:#2e477f;text-decoration:none;background:linear-gradient(180deg,#fff 0%,#f6f8fb 100%);box-shadow:0 2px 8px rgba(31,47,74,.06);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.draw-period-navigation__link>span[aria-hidden="true"]{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border-radius:50%;color:#fff;font-size:18px;background:#344d91}
.draw-period-navigation__link>span:not([aria-hidden]){display:grid;gap:2px;min-width:0}
.draw-period-navigation__link small{color:#747d8a;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.draw-period-navigation__link strong{color:#273d71;font-size:15px;font-variant-numeric:tabular-nums}
.draw-period-navigation__link.is-next{justify-content:flex-end;text-align:right}
a.draw-period-navigation__link:hover,a.draw-period-navigation__link:focus-visible{border-color:#344d91;box-shadow:0 4px 12px rgba(39,61,120,.14);transform:translateY(-1px);outline:none}
.draw-period-navigation__link.is-disabled{cursor:not-allowed;opacity:.48;box-shadow:none}
.draw-period-navigation__link.is-disabled>span[aria-hidden="true"]{background:#8b93a0}
@media(max-width:600px){.draw-period-navigation{gap:8px;margin:11px 8px 3px}.draw-period-navigation__link{min-height:56px;padding:8px 9px;gap:7px}.draw-period-navigation__link>span[aria-hidden="true"]{flex-basis:28px;width:28px;height:28px;font-size:15px}.draw-period-navigation__link small{font-size:10px}.draw-period-navigation__link strong{font-size:13px}}

/* Sidebar tools and regional draw schedule */
.site-shell{display:grid;grid-template-columns:minmax(0,760px) 320px;align-items:start;gap:18px;max-width:1118px}
.site-content{min-width:0}.site-sidebar{position:sticky;top:82px;display:grid;gap:14px;min-width:0}
.sidebar-widget{overflow:hidden;border:1px solid #d7dce4;background:#fff}
.sidebar-widget__title{margin:0;padding:11px 14px;border-bottom:1px solid #e1e4e9;border-left:4px solid #a51f2d;color:#202632;font-size:15px;font-weight:600;background:#f7f8fa}
.ticket-checker__form{display:grid;gap:11px;padding:13px 15px 15px}.ticket-checker__dates{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ticket-checker label{display:grid;gap:5px;min-width:0;color:#515967;font-size:12px}.ticket-checker input{width:100%;min-width:0;height:38px;padding:6px 8px;border:1px solid #cfd5de;border-radius:3px;font:inherit;background:#fff}
.ticket-checker input:focus{border-color:#344d91;outline:2px solid rgba(52,77,145,.13)}.ticket-checker__number input{height:45px;color:#a51f2d;font-size:22px;letter-spacing:.14em;text-align:center}
.ticket-checker__submit{min-height:40px;border:0;border-radius:3px;color:#fff;font:inherit;cursor:pointer;background:#344d91}.ticket-checker__submit:disabled{cursor:wait;opacity:.65}
.ticket-checker__status{padding:0 15px;color:#646c79;font-size:12px}.ticket-checker__status:not(:empty){padding-block:9px;border-top:1px solid #e4e7ec}.ticket-checker__results:not(:empty){border-top:1px solid #e4e7ec}
.ticket-result__summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 15px;background:#f7f8fa}.ticket-result__summary strong{color:#a51f2d;font-size:19px;letter-spacing:.08em}.ticket-result__summary small{color:#737b89;font-size:10px;text-align:right}
.ticket-result__won{padding:8px 15px;color:#17643a;font-size:12px;background:#f2faf5}.ticket-result__item{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:9px 15px;border-bottom:1px solid #e8eaee;color:#303744;text-decoration:none}.ticket-result__item strong{grid-row:span 2;align-self:center;color:#a51f2d}.ticket-result__item small{font-size:11px;color:#737b89}.ticket-result__empty{padding:13px 15px}
.draw-schedule__list{padding:2px 14px 6px}.draw-schedule__row{display:grid;grid-template-columns:64px 1fr;gap:8px;padding:10px 0;border-bottom:1px dashed #d9dde4;font-size:13px;line-height:1.45}.draw-schedule__row:last-child{border-bottom:0}.draw-schedule__row strong{color:#252c38;font-weight:600}.draw-schedule__row span{color:#505866}.draw-schedule__provinces{display:flex;flex-wrap:wrap;gap:0 5px}.draw-schedule__provinces a{color:#344d91;font-weight:600;text-decoration:none}.draw-schedule__provinces a:hover,.draw-schedule__provinces a:focus-visible{color:#a51f2d;text-decoration:underline;outline:none}.draw-schedule__provinces i{color:#9299a5;font-style:normal}
.draw-schedule__row.is-today{margin-inline:-8px;padding-inline:8px;background:#fff8e8}.draw-schedule__row.is-today strong{color:#a51f2d}
.site-header__actions{display:flex;align-items:center;gap:7px}.ticket-search-toggle{display:none;width:42px;height:42px;border:1px solid rgba(255,255,255,.4);border-radius:3px;color:#fff;font-size:24px;cursor:pointer;background:transparent}
.ticket-modal[hidden]{display:none}.ticket-modal{position:fixed;z-index:100;inset:0;display:grid;align-items:end;opacity:0;transition:opacity .16s}.ticket-modal.is-open{opacity:1}.ticket-modal__backdrop{position:absolute;inset:0;background:rgba(15,20,31,.58)}.ticket-modal__dialog{position:relative;overflow:auto;width:100%;max-height:88vh;transform:translateY(16px);background:#f5f7fa;transition:transform .16s}.ticket-modal.is-open .ticket-modal__dialog{transform:none}.ticket-modal__bar{display:flex;align-items:center;justify-content:space-between;padding:9px 15px;background:#fff}.ticket-modal__bar button{width:36px;height:36px;border:0;font-size:26px;background:transparent}.ticket-modal .sidebar-widget{margin:0 10px 10px}.ticket-modal .ticket-checker{margin-top:10px}.ticket-modal .ticket-checker .sidebar-widget__title{display:none}.ticket-modal-open{overflow:hidden}
@media(max-width:900px){.site-shell{display:block;max-width:760px}.site-sidebar{display:none}}
@media(max-width:760px){.ticket-search-toggle{display:block}.site-header__inner{grid-template-columns:minmax(0,1fr) auto}}

/* Next draw countdown */
.next-draw-countdown{display:grid;grid-template-columns:1fr;justify-items:center;gap:8px;text-align:center;margin:10px 14px;padding:10px 14px;overflow:hidden;border:1px solid #ead7bb;border-radius:8px;color:#2e241d;background:radial-gradient(circle at 100% 0,rgba(217,70,0,.12),transparent 38%),linear-gradient(135deg,#fffdf8 0%,#fff5e6 100%);box-shadow:0 6px 18px rgba(91,54,23,.08)}.next-draw-countdown[hidden]{display:none}.next-draw-countdown__intro{display:grid;justify-items:center;width:100%;min-width:0}.next-draw-countdown__eyebrow{display:inline-flex;align-items:center;gap:7px;color:#8f2f14;font-size:13px;font-weight:750}.next-draw-countdown__eyebrow::before{width:8px;height:8px;border-radius:50%;background:#e14c19;box-shadow:0 0 0 4px rgba(225,76,25,.12);content:""}.next-draw-countdown p{margin:3px 0 0;color:#65594f;font-size:12px;font-weight:600}.next-draw-countdown__clock{display:grid;grid-template-columns:repeat(4,minmax(54px,1fr));gap:7px;width:min(100%,390px);margin-inline:auto}.next-draw-countdown__unit{min-width:54px;padding:6px 6px 5px;border:1px solid rgba(163,58,18,.14);border-radius:6px;text-align:center;background:rgba(255,255,255,.88)}.next-draw-countdown__unit strong{display:block;color:#a51f2d;font-size:20px;line-height:1;font-variant-numeric:tabular-nums}.next-draw-countdown__unit span{display:block;margin-top:3px;color:#74685f;font-size:10px;font-weight:600;text-transform:uppercase}@media(max-width:620px){.next-draw-countdown{grid-template-columns:1fr;gap:7px;margin:8px 9px;padding:9px 10px;text-align:center}.next-draw-countdown__clock{gap:5px}.next-draw-countdown__unit{min-width:0;padding-inline:3px}.next-draw-countdown__unit strong{font-size:20px}}

/* Tai Phu network badge */
.taiphu-network {
    width: min(100% - 32px, 1120px);
    margin: 0 auto 22px;
}
.taiphu-network__link {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .08), rgba(185, 28, 43, .22));
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.taiphu-network__link::after {
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    bottom: -105px;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}
.taiphu-network__link:hover,
.taiphu-network__link:focus-visible {
    border-color: rgba(255, 255, 255, .34);
    background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(185, 28, 43, .32));
    transform: translateY(-2px);
    outline: none;
}
.taiphu-network__mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 15px;
    color: var(--brand-red-dark);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.02em;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.taiphu-network__content { display: grid; gap: 2px; min-width: 0; }
.taiphu-network__content small {
    color: #aeb8ca;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.taiphu-network__content strong { color: #fff; font-size: 19px; line-height: 1.25; }
.taiphu-network__content em { color: #bfc8d8; font-size: 12px; font-style: normal; }
.taiphu-network__action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(255, 255, 255, .1);
}
.taiphu-network__action i { font-size: 17px; font-style: normal; transition: transform .2s ease; }
.taiphu-network__link:hover .taiphu-network__action i { transform: translateX(3px); }

@media (max-width: 600px) {
    .taiphu-network { width: min(100% - 24px, 1120px); margin-bottom: 18px; }
    .taiphu-network__link { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 15px; }
    .taiphu-network__mark { width: 46px; height: 46px; border-radius: 13px; }
    .taiphu-network__content strong { font-size: 17px; }
    .taiphu-network__content em { white-space: normal; }
    .taiphu-network__action {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        padding-block: 9px;
    }
}

/* Mobile shortcuts above the next-draw countdown */
.mobile-quick-links {
    display: none;
}

@media (max-width: 760px) {
    .mobile-quick-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 7px 5px 0;
        padding: 7px;
        border: 1px solid #d4d9e2;
        background: #f2f4f7;
    }

    .mobile-quick-links__item {
        display: grid;
        min-width: 0;
        min-height: 58px;
        padding: 7px 4px 6px;
        place-items: center;
        align-content: center;
        gap: 4px;
        border: 1px solid #d5dae3;
        border-top: 3px solid var(--shortcut-color);
        border-radius: 3px;
        color: #273142;
        text-align: center;
        text-decoration: none;
        background: #fff;
        box-shadow: 0 2px 7px rgba(29, 42, 67, .08);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-quick-links__item.is-trial { --shortcut-color: #c52b32; }
    .mobile-quick-links__item.is-statistics { --shortcut-color: #344d91; }
    .mobile-quick-links__item.is-prediction { --shortcut-color: #b46618; }

    .mobile-quick-links__item svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--shortcut-color);
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .mobile-quick-links__item svg circle:not(:first-child) {
        fill: var(--shortcut-color);
        stroke: none;
    }

    .mobile-quick-links__item strong {
        overflow: hidden;
        width: 100%;
        color: #273142;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-quick-links__item:active,
    .mobile-quick-links__item:focus-visible {
        border-color: var(--shortcut-color);
        background: #f8faff;
        outline: 2px solid color-mix(in srgb, var(--shortcut-color) 25%, transparent);
        outline-offset: 1px;
    }

}

/* Mobile navigation calendar and schedule popups */
.mobile-tool-nav-link {
    display: none !important;
}

.mobile-tools-modal[hidden],
.mobile-tools-panel[hidden] {
    display: none;
}

.mobile-tools-modal {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.mobile-tools-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-tools-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 21, 34, .64);
}

.mobile-tools-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: calc(100dvh - 24px);
    margin-inline: auto;
    overflow: auto;
    border-radius: 7px 7px 0 0;
    background: #f2f4f7;
    box-shadow: 0 -12px 36px rgba(14, 22, 38, .24);
    transform: translateY(18px);
    transition: transform .18s ease;
}

.mobile-tools-modal.is-open .mobile-tools-modal__dialog {
    transform: translateY(0);
}

.mobile-tools-modal__header {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    min-height: 52px;
    padding: 7px 10px 7px 15px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d9dee7;
    background: #fff;
}

.mobile-tools-modal__header strong {
    color: #202938;
    font-size: 16px;
    font-weight: 700;
}

.mobile-tools-modal__header button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #d6dce5;
    border-radius: 3px;
    color: #3f4959;
    background: #f7f8fa;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.mobile-tools-modal__body {
    padding: 10px;
}

.mobile-tools-modal .sidebar-widget {
    margin: 0;
    border-color: #d5dae3;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(28, 42, 67, .08);
}

.mobile-tools-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .site-nav .mobile-tool-nav-link {
        display: flex !important;
    }
}

@media (min-width: 761px) {
    .mobile-tools-modal {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-tools-modal,
    .mobile-tools-modal__dialog {
        transition: none;
    }
}

/* Mobile breathing room below the main navigation. */
@media (max-width: 600px) {
    .site-content { margin-top: 8px; }
}

/* Keep the newest live result visible until the next update. */
.prize-number.is-latest-result {
    color: #e88900;
    background: #fff0a8;
    transition: color .2s ease, background-color .2s ease;
}
