:root {
    --color-green-dark: #063b25;
    --color-green: #087f4b;
    --color-green-light: #0fa968;

    --color-gold: #d9ad45;
    --color-gold-light: #f1d27a;

    --color-white: #ffffff;
    --color-bg: #f5f8f6;
    --color-surface: #ffffff;

    --color-text: #17231d;
    --color-text-soft: #68756e;
    --color-border: #e2e9e5;

    --shadow-sm: 0 4px 14px rgba(6, 59, 37, 0.06);
    --shadow-md: 0 12px 32px rgba(6, 59, 37, 0.09);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --container-width: 1180px;

    --section-padding: 80px;
}


/* =========================
   BASE
========================= */

body {
    background: var(--color-bg);
    color: var(--color-text);
}

.site-wrapper {
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================
   CONTAINER
========================= */

.hero-container,
.countdown-container,
.latest-result-container,
.statistics-container,
.history-container,
.footer-container,
.topbar-inner {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-left: auto;
    margin-right: auto;
}


/* =========================
   SECTION SPACING
========================= */

.hero-section,
.countdown-section,
.latest-result-section,
.statistics-section,
.history-section {
    position: relative;
}

.latest-result-section,
.statistics-section,
.history-section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
    max-width: 680px;
    margin-bottom: 38px;
}

.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--color-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2 {
    color: var(--color-green-dark);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p {
    margin-top: 12px;

    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   GENERIC CARD
========================= */

.stat-card,
.latest-result-card,
.hero-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}


/* =========================
   ANCHOR OFFSET
========================= */

#latest-result,
#statistics,
#result-history {
    scroll-margin-top: 90px;
}


/* =========================
   FOCUS
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(15, 169, 104, 0.25);
    outline-offset: 3px;
}


/* =========================
   SELECTION
========================= */

::selection {
    background: var(--color-green);
    color: var(--color-white);
}


/* =========================
   RESPONSIVE BASE
========================= */

@media (max-width: 768px) {

    :root {
        --section-padding: 60px;
    }

    .hero-container,
    .countdown-container,
    .latest-result-container,
    .statistics-container,
    .history-container,
    .footer-container,
    .topbar-inner {
        width: min(
            calc(100% - 28px),
            var(--container-width)
        );
    }

    .section-heading {
        margin-bottom: 28px;
    }

}