:root {
    --ink: #081525;
    --ink-soft: #10253a;
    --panel: #ffffff;
    --panel-muted: #f4f7f9;
    --line: #dce5ea;
    --text: #162636;
    --muted: #667687;
    --green: #10b981;
    --green-dark: #08785a;
    --green-soft: #dff8ef;
    --gold: #f5c451;
    --red: #e34d59;
    --red-soft: #fff0f1;
    --blue: #2878c8;
    --shadow: 0 22px 60px rgba(8, 21, 37, 0.10);
    --shadow-sm: 0 8px 24px rgba(8, 21, 37, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #edf3f5;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 1000;
    transform: translateY(-160%); padding: 10px 14px; border-radius: 10px;
    background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(8, 21, 37, 0.96);
    color: #fff;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(5, 15, 28, 0.18);
}
.header-shell {
    min-height: 82px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: #fff; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-copy small { color: #9fb1c2; margin-top: 4px; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    color: #c4d0dc; font-weight: 700; font-size: 0.9rem;
    padding: 10px 14px; border-radius: 999px; transition: 160ms ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.09); }
.main-nav .nav-admin { color: var(--ink); background: var(--green); }
.main-nav .nav-admin:hover { color: var(--ink); background: #35d39e; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); }
.menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; border-radius: 4px; }
.weekday-bar { border-top: 1px solid rgba(255,255,255,.08); background: #0d1d2f; }
.weekday-scroll { display: flex; align-items: center; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.weekday-scroll::-webkit-scrollbar { display: none; }
.weekday-scroll a { flex: 0 0 auto; padding: 10px 18px; color: #9eb0c1; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.weekday-scroll a:hover { color: var(--green); }
.site-notice { background: #fff8df; border-bottom: 1px solid #f1df9e; }
.site-notice .container { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.site-notice p { margin: 0; color: #6a5513; font-size: 0.88rem; font-weight: 650; text-align: center; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(245,196,81,.2); }

.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 18% 10%, rgba(16,185,129,.23), transparent 27%),
        radial-gradient(circle at 86% 38%, rgba(245,196,81,.15), transparent 22%),
        linear-gradient(135deg, #07121f 0%, #0e2639 100%);
    color: #fff;
    padding: 82px 0 134px;
}
.hero::after {
    content: ""; position: absolute; inset: auto -10% -160px 20%; height: 240px;
    background: rgba(255,255,255,.045); transform: rotate(-7deg); border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 4px; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(2.6rem, 5.4vw, 5.4rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--green); }
.hero-copy { max-width: 660px; margin: 25px 0 0; color: #b8c7d5; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px;
    background: var(--green); color: var(--ink); font-weight: 850; font-size: .92rem;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,185,129,.24); }
.btn-secondary { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.14); }
.btn-secondary:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: #f5f8fa; box-shadow: none; }
.btn-danger { background: var(--red); color: #fff; }
.hero-stat-card {
    position: relative; min-height: 295px; padding: 30px; border: 1px solid rgba(255,255,255,.11);
    border-radius: var(--radius-xl); background: rgba(255,255,255,.065); box-shadow: 0 30px 80px rgba(0,0,0,.16); backdrop-filter: blur(18px);
}
.hero-stat-card::before { content: ""; position: absolute; width: 92px; height: 92px; right: -20px; top: -20px; border-radius: 50%; background: rgba(16,185,129,.14); }
.hero-stat-label { color: #9fb0c1; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.hero-stat-value { margin-top: 10px; font-size: 3.5rem; font-weight: 900; letter-spacing: -.06em; color: #fff; }
.hero-stat-line { margin: 22px 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat-list { display: grid; gap: 13px; }
.hero-stat-list div { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #b8c7d5; font-size: .92rem; }
.hero-stat-list strong { color: #fff; }

.latest-wrap { position: relative; z-index: 3; margin-top: -82px; padding-bottom: 70px; }
.result-shell { overflow: hidden; border-radius: var(--radius-xl); background: var(--panel); box-shadow: var(--shadow); border: 1px solid rgba(220,229,234,.8); }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 28px 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfcfd); }
.result-head h2 { margin: 4px 0 0; color: var(--ink); font-size: clamp(1.35rem, 2.7vw, 2.15rem); letter-spacing: -.035em; }
.result-kicker { margin: 0; color: var(--green-dark); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.badge-published { background: var(--green-soft); color: var(--green-dark); }
.badge-scheduled { background: #eef3f7; color: #556779; }
.badge-live { background: var(--red-soft); color: #b62937; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(227,77,89,.42); } 50% { box-shadow: 0 0 0 7px rgba(227,77,89,0); } }
.meta-chip { padding: 7px 11px; border-radius: 999px; background: #f3f6f8; color: var(--muted); font-size: .8rem; font-weight: 750; }
.prize-feature { display: grid; grid-template-columns: 1fr .8fr; gap: 0; border-bottom: 1px solid var(--line); }
.prize-primary { padding: 46px 32px; background: linear-gradient(135deg, #eafbf5 0%, #f8fffc 100%); text-align: center; }
.prize-secondary-grid { display: grid; grid-template-columns: 1fr 1fr; }
.prize-secondary { display: grid; place-content: center; min-height: 100%; padding: 34px 24px; text-align: center; border-left: 1px solid var(--line); }
.prize-secondary + .prize-secondary { border-left: 1px solid var(--line); }
.prize-label { margin: 0 0 18px; color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.number-balls { display: flex; justify-content: center; flex-wrap: nowrap; gap: clamp(7px, 1.3vw, 14px); }
.number-ball {
    width: clamp(52px, 7.3vw, 80px); aspect-ratio: 1; display: grid; place-items: center;
    border-radius: 50%; background: var(--ink); color: #fff; border: 5px solid #fff;
    box-shadow: 0 8px 0 rgba(8,21,37,.14), 0 12px 22px rgba(8,21,37,.16);
    font-size: clamp(1.55rem, 4vw, 2.75rem); font-weight: 900; line-height: 1;
}
.prize-secondary .number-ball { width: clamp(43px, 5.6vw, 60px); border-width: 4px; font-size: clamp(1.2rem, 2.7vw, 1.8rem); }
.number-ball.gold { background: var(--gold); color: var(--ink); }
.number-ball.green { background: var(--green); color: var(--ink); }
.result-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.result-group { padding: 32px; }
.result-group + .result-group { border-left: 1px solid var(--line); }
.result-group h3 { margin: 0 0 18px; color: var(--ink); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.number-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.number-tile { display: grid; place-items: center; min-height: 50px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; color: var(--ink); font-size: 1.05rem; font-weight: 900; letter-spacing: .12em; }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; border-top: 1px solid var(--line); background: #f8fafb; }
.result-foot p { margin: 0; color: var(--muted); font-size: .86rem; }
.text-link { color: var(--green-dark); font-weight: 850; }
.text-link:hover { text-decoration: underline; }

.section { padding: 78px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.section-head h2 { margin: 4px 0 0; color: var(--ink); font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.05em; }
.section-head p { max-width: 600px; margin: 0; color: var(--muted); }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #aebdcc; }
.draw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.draw-card { display: flex; flex-direction: column; min-height: 265px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform 170ms ease, box-shadow 170ms ease; }
.draw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(8,21,37,.12); }
.draw-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.draw-card-date { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.draw-card h3 { margin: 5px 0 0; color: var(--ink); font-size: 1.3rem; letter-spacing: -.03em; }
.draw-card-prize { margin: 28px 0 24px; }
.draw-card-prize span { display: block; color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.draw-card-prize strong { display: block; margin-top: 5px; color: var(--ink); font-size: 2.5rem; line-height: 1; letter-spacing: .17em; }
.draw-card .text-link { margin-top: auto; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: rgba(255,255,255,.055); }
.info-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; background: rgba(16,185,129,.14); color: var(--green); font-weight: 900; }
.info-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.info-card p { margin: 0; color: #aebdcc; font-size: .93rem; }
.empty-state { padding: 56px 24px; border: 1px dashed #c7d2da; border-radius: var(--radius-lg); background: rgba(255,255,255,.65); text-align: center; }
.empty-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: var(--green-soft); color: var(--green-dark); font-size: 1.6rem; font-weight: 900; }
.empty-state h2, .empty-state h3 { margin: 0; color: var(--ink); }
.empty-state p { max-width: 560px; margin: 10px auto 22px; color: var(--muted); }

.page-hero { padding: 70px 0; background: linear-gradient(135deg, #07121f, #10283c); color: #fff; }
.page-hero .eyebrow { margin-bottom: 13px; }
.page-hero h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.055em; }
.page-hero p { max-width: 690px; margin: 20px 0 0; color: #b7c6d4; font-size: 1.05rem; }
.filter-card { margin-top: -34px; position: relative; z-index: 2; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.filter-form { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 14px; align-items: end; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: #344657; font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.form-control { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cfd9df; border-radius: 12px; background: #fff; color: var(--ink); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.history-layout { display: grid; gap: 18px; }
.history-row { display: grid; grid-template-columns: 1.2fr .72fr .72fr .72fr auto; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(8,21,37,.055); }
.history-date span { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.history-date strong { display: block; color: var(--ink); font-size: 1.05rem; }
.history-prize span { display: block; color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.history-prize strong { color: var(--ink); font-size: 1.3rem; letter-spacing: .12em; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 800; }
.pagination .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .45; }

.detail-section { padding: 56px 0 82px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.breadcrumbs a:hover { color: var(--green-dark); }
.detail-note { margin-top: 20px; padding: 17px 19px; border-left: 4px solid var(--gold); border-radius: 10px; background: #fff8df; color: #6a5513; }
.prose { max-width: 820px; }
.prose h2 { margin: 35px 0 12px; color: var(--ink); font-size: 1.65rem; letter-spacing: -.03em; }
.prose p, .prose li { color: #4f6172; }
.prose ul { padding-left: 20px; }
.disclaimer-box { margin-top: 34px; padding: 24px; border: 1px solid #f0d485; border-radius: var(--radius-lg); background: #fff9e8; }
.disclaimer-box h2 { margin-top: 0; font-size: 1.25rem; }

.site-footer { background: #06101c; color: #b3c0cd; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 60px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { max-width: 460px; margin: 0; font-size: .9rem; }
.site-footer h2 { margin: 0 0 16px; color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .11em; }
.footer-links { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; font-size: .9rem; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: .78rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-stat-card { display: none; }
    .prize-feature { grid-template-columns: 1fr; }
    .prize-secondary-grid { border-top: 1px solid var(--line); }
    .prize-secondary:first-child { border-left: 0; }
    .draw-cards, .info-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-form { grid-template-columns: 1fr 1fr; }
    .filter-form .btn { width: 100%; }
    .history-row { grid-template-columns: 1.3fr repeat(3, .7fr); }
    .history-row > :last-child { grid-column: 1 / -1; }
    .history-row > :last-child .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1.3fr .7fr; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 28px, var(--container)); }
    .header-shell { min-height: 72px; }
    .brand-copy small { display: none; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch;
        padding: 20px; background: #081525; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 40px rgba(0,0,0,.2);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 13px 15px; border-radius: 12px; }
    .weekday-scroll { justify-content: flex-start; }
    .weekday-scroll a { padding-inline: 14px; }
    .hero { padding: 65px 0 118px; }
    .hero h1 { font-size: clamp(2.55rem, 14vw, 4.1rem); }
    .latest-wrap { margin-top: -68px; }
    .result-head { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
    .result-meta { justify-content: flex-start; }
    .prize-primary { padding: 38px 14px; }
    .prize-secondary { padding: 28px 10px; }
    .result-groups { grid-template-columns: 1fr; }
    .result-group { padding: 25px 20px; }
    .result-group + .result-group { border-left: 0; border-top: 1px solid var(--line); }
    .number-grid { grid-template-columns: repeat(2, 1fr); }
    .number-grid .number-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .result-foot { align-items: flex-start; flex-direction: column; padding: 18px 20px; }
    .section { padding: 60px 0; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .draw-cards, .info-grid { grid-template-columns: 1fr; }
    .filter-card { padding: 18px; }
    .filter-form { grid-template-columns: 1fr; }
    .history-row { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
    .history-date { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .history-row .history-prize:nth-of-type(4) { grid-column: 1 / -1; }
    .history-row > :last-child { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-grid > :last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 420px) {
    .number-ball { width: 48px; border-width: 4px; }
    .prize-secondary .number-ball { width: 38px; border-width: 3px; }
    .history-row { grid-template-columns: 1fr; }
    .history-date, .history-row .history-prize:nth-of-type(4), .history-row > :last-child { grid-column: auto; }
}
.header-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: 170px;
    object-fit: contain;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 220px;
}
@media (max-width: 768px) {
    .header-logo {
        height: 48px;
        max-width: 145px;
    }

    .brand {
        min-width: auto;
    }
}
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    width: auto;
}

.footer-main-logo {
    display: block;
    width: 220px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 768px) {
    .footer-main-logo {
        width: 190px;
        max-height: 78px;
    }
}