*,
*::before,
*::after {
    box-sizing: border-box;

    footer .footer-nav a {
        font-size: 35px;
    }

    margin: 0;
    padding: 0;
}

:root {
    --white: #ffffff;
    --black: #000000;
    --red: #8e0000;
    --dark-panel: rgba(0, 0, 0, 0.34);
    --card-bg: rgba(30, 40, 80, 0.55);
    --border-white: rgba(255, 255, 255, 0.8);
    --ball-gray: #565656;
    --result-gray: #d9d9d9;
    --text-gradient-from: #ffffff;
    --text-gradient-to: #d3d3d3;
    --blue-glow: rgba(75, 165, 255, 0.88);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: var(--white);
    overflow-x: clip;
    width: 100%;
}

/* ─── BACKGROUND ─── */
.bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
}

.bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

/* Mobile BG asset — hidden by default, shown on mobile */
.bg-wrapper .bg-mobile {
    display: none;
}

.bg-wrapper .bg-desktop {
    display: block;
}

@media (min-width: 1400px) and (max-width: 1699px) {
    .content-wrap.content-wrap-home .bg-wrapper .bg-desktop {
        object-position: center 0px;
        ;
    }
}

@media (min-width: 1700px) {
    .content-wrap.content-wrap-home .bg-wrapper .bg-desktop {
        object-position: center -200px;
    }
}

/* @media (min-width: 769px) {
    .content-wrap.content-wrap-home .bg-wrapper {
        bottom: auto;
        height: 100vh;
    }
} */

/* ─── PAGE WRAPPER ─── */
.page {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    overflow-x: clip;
    overflow-y: visible;
}

/* ─── HEADER ─── */
header {
    position: sticky;
    top: 0;
    z-index: 2147483646;
    isolation: isolate;
    overflow: visible;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 90px;
    display: flex;
    align-items: center;
    padding: 0 60px;
    justify-content: space-between;
}

.logo {
    height: 60px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
}

nav a.active::after,
nav a:hover::after {
    content: '';
    display: block;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
}

nav a.active {
    color: var(--black);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-dp {
    position: relative;
    flex-shrink: 0;
    z-index: 2147483646;
}

.language-dp .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.language-dp .dropdown-toggle img,
.language-dp .dropdown-menu img {
    display: block;
    border-radius: 0;
}

.language-chevron {
    font-size: 12px;
}

.language-dp .dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    min-width: 0;
    width: max-content;
    position: fixed;
    top: 78px;
    right: 60px;
    display: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 2147483647;
}

.language-dp.open .dropdown-menu {
    display: block;
}

.language-dp .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.language-dp .dropdown-item:hover {
    background: rgba(142, 0, 0, 0.08);
}

/* ─── HERO ─── */
.hero {
    min-height: 820px;
    display: flex;
    align-items: flex-start;
    padding: 60px 80px 60px 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 3;
    margin-top: 40px;
}

.hero-logo-rect {
    width: auto;
    max-width: 520px;
    height: auto;
    display: block;
}

.hero-tagline {
    font-family: 'K2D', sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: var(--black);
    letter-spacing: 2px;
    margin-top: 22px;
    line-height: 1.3;
}

/* Countdown */
.countdown-label {
    font-family: 'K2D', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--black);
    margin-top: 50px;
    margin-bottom: 12px;
}

.countdown-wrapper {
    background: #d9d9d9;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 14px 18px;
}

.countdown-block {
    background: #565656;
    border-radius: 12px;
    width: 88px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
}

.countdown-block span {
    font-family: 'K2D', sans-serif;
    font-weight: 500;
    font-size: 72px;
    color: var(--white);
    line-height: 1;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
}

.countdown-sep {
    font-family: 'K2D', sans-serif;
    font-weight: 500;
    font-size: 72px;
    color: #565656;
    line-height: 1;
    padding: 0 2px;
    margin-bottom: 8px;
}

/* Hero model + balls */
.hero-model {
    position: absolute;
    right: 180px;
    top: 0;
    height: 780px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.ball {
    position: absolute;
    pointer-events: none;
    object-fit: contain;
}

.ball-1 {
    width: 100px;
    top: 85px;
    right: 635px;
    filter: blur(1px);
    z-index: 2;
}

.ball-2 {
    width: 90px;
    top: 220px;
    right: 40px;
    filter: blur(2px);
    z-index: 2;
}

.ball-3 {
    width: 270px;
    bottom: 90px;
    right: 50px;
    filter: blur(7.5px);
    z-index: 2;
}

/* ─── RESULTS PANEL ─── */
.results-panel {
    background: rgba(0, 0, 0, 0.34);
    border-radius: 70px;
    box-shadow: 0 9px 32px 0 rgba(75, 165, 255, 0.88),
        inset 0 -8px 14px 0 rgba(255, 255, 255, 0.4),
        inset 0 -20px 10px 0 rgba(140, 163, 255, 0.5),
        inset 0 -30px 37px 0 #4469ff;
    margin: 60px auto;
    max-width: 1800px;
    padding: 60px 80px 80px;
    position: relative;
}

/* PRIZE WINNER section */
.prize-winner-title {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(60px, 9vw, 150px);
    background: linear-gradient(to bottom, #fff 50%, #d3d3d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    position: relative;
}

.total-prize-title {
    font-weight: 700;
    font-size: clamp(30px, 5vw, 90px);

}

.total-prize {
    font-weight: 700;
    font-size: clamp(30px, 5vw, 90px);

}

.prize-title-wrap {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.crown-icon {
    width: clamp(36px, 4.6vw, 80px);
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-68%, -42%) rotate(172deg) scaleY(-1);
    pointer-events: none;
}

.prize-date {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--white);
    margin-top: 10px;
    margin-bottom: 40px;
}

.prize-date span {
    color: #d1d1d1;
}

/* Prize cards */
.prize-cards {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.prize-card {
    flex: 1;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: prize-card;
}

.prize-card-bg {
    position: relative;
    width: 100%;
}

.prize-card-bg-img {
    position: static;
    width: 100%;
    height: auto;
    display: block;
}

.prize-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0.28) 100%);
    z-index: 0;
}

.prize-label {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-align: center;
    color: var(--black);
    white-space: nowrap;
    gap: 6px;
    min-height: clamp(50px, 10cqw, 100px);
    padding: 10px 12px;
}

.prize-label .num {
    font-size: clamp(24px, 7.8cqw, 90px);
}

.prize-label .word {
    font-size: clamp(17px, 5.1cqw, 62px);
}

/* Bottom: balls + amount */
.prize-card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 3% 6% 6%;
    background: transparent;
}

.prize-balls {
    display: flex;
    gap: 3%;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ball-circle {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #1a3fd4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(8px, 3cqw, 32px);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

@supports not (font-size: 1cqw) {
    .ball-circle {
        font-size: clamp(10px, 1.8vw, 32px);
    }
}

.prize-amount {
    font-family: 'K2D', sans-serif;
    font-weight: 800;
    font-size: 35px;
    color: var(--black);
    text-align: center;
    white-space: nowrap;
}

@supports not (font-size: 1cqw) {
    .prize-amount {
        font-size: clamp(14px, 1.8vw, 30px);
    }
}

/* PREVIOUS WINNER */
.prev-winner-title {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 70px);
    background: linear-gradient(to bottom, #fff 50%, #d3d3d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 70px;
    margin-bottom: 30px;
}

.prev-header-row {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto 10px;
    padding: 0 40px;
}

.prev-header-row span {
    font-family: 'K2D', sans-serif;
    font-weight: 800;
    font-size: 30px;
    color: var(--white);
}

/* Result rows */
.result-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 950px;
    margin: 0 auto;
}

.result-row {
    border: 3px solid var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 36px;
    position: relative;
    z-index: 2;
}

.result-row-date {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--white);
    min-width: 200px;
}

.result-row-balls {
    display: flex;
    gap: 8px;
}

.result-ball {
    width: 62px;
    height: 62px;
    background: var(--result-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'K2D', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--black);
}

/* SEE MORE button */
.see-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(to right, #146ad7, #c60025);
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 22px 0 #f04bff, inset 0 2px 4px rgba(255, 255, 255, 0.92);
    max-width: 950px;
    margin: 24px auto 0;
    padding: 26px 40px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    position: relative;
    z-index: 2;
}

.see-more-btn:hover {
    opacity: 0.9;
}

.see-more-btn .see-more-text {
    font-family: 'K2D', sans-serif;
    font-weight: 800;
    font-size: 34px;
    color: var(--white);
    letter-spacing: 2px;
}

.see-more-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: none;
}

/* ─── FOOTER ─── */
footer {
    background: var(--white);
    color: var(--black);
    padding: 0;
}

.footer-main {
    padding: 0 80px 30px;
}

.footer-main>tv-ticker-tape {
    display: block;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
}

/* NAV — first row, centered, bordered bottom */
.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px 0 24px;
    border-bottom: 1px solid #ccc;
    width: 100%;
}

.footer-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    border-radius: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.footer-nav a:hover::after {
    transform: scaleX(1);
}

.footer-nav a.active::after {
    transform: scaleX(1);
}

/* BRAND + DESC ROW */
.footer-top {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 24px 0 20px;
    border-bottom: 1px solid #ccc;
}

/* Brand = logo + social icons on same row */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.footer-logo {
    height: 70px;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-social img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
}

.footer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    flex: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 10px;
    font-size: 13px;
    color: #555;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-social {
    display: none;
    align-items: center;
    gap: 10px;
}

.footer-bottom-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom-links a {
    color: #555;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

/* ─── FLOATING BALLS (decorative) ─── */
.floating-ball-left {
    position: absolute;
    left: -20px;
    top: -20px;
    width: 140px;
    pointer-events: none;
    z-index: 5;
}

.floating-ball-bottom-right {
    position: absolute;
    bottom: 40px;
    right: -60px;
    width: 300px;
    pointer-events: none;
    transform: rotate(-63deg);
    filter: blur(8px);
    opacity: 0.8;
    z-index: 0;
}

/* ─── CONTENT WRAP (scopes bg to above footer) ─── */
.content-wrap {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
}

.content-wrap.content-wrap-home {
    padding-bottom: 15px;
}

.content-wrap>section,
.content-wrap>main {
    position: relative;
    z-index: 0;

}


.hero-content {
    animation: fadeInUp 0.7s ease both;
}

.results-panel {
    animation: fadeInUp 0.8s 0.2s ease both;
}

/* Countdown live update */
@keyframes flip {
    0% {
        transform: rotateX(0);
    }

    50% {
        transform: rotateX(-90deg);
    }

    100% {
        transform: rotateX(0);
    }
}

.countdown-block.tick span {
    animation: flip 0.4s ease;
}

/* ─── HAMBURGER MENU (mobile only) ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ─── MOBILE NAV DRAWER ─── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.97);
    z-index: 200;
    flex-direction: column;
    padding: 80px 40px 40px;
    gap: 32px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--black);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 4px;
    border-radius: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    transform: scaleX(1);
}

.mobile-nav-social {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-nav-social img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--black);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
}

.nav-overlay.open {
    display: block;
}

/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Swap background to mobile asset */
    .bg-wrapper .bg-desktop {
        display: none;
    }

    .bg-wrapper .bg-mobile {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center -350px;
    }

    body.history-page-layout .bg-wrapper {
        background: #00479f;
    }

    body.history-page-layout .bg-wrapper .bg-mobile {
        display: none;
    }

    /* Blue gradient fill below the wave */
    .content-wrap {
        background: linear-gradient(to bottom, transparent 0%, transparent 45%, #00479f 55%, #002d67 100%);
    }

    /* About page mobile: disable image backgrounds and use pure linear gradient */
    body.about-page-layout .bg-wrapper .bg-mobile {
        display: none;
    }

    body.about-page-layout .about-page .why-bg {
        display: none;
    }

    body.about-page-layout .content-wrap {
        background: linear-gradient(to bottom, #00479f 0%, #002d67 35%, #000000 100%);
    }

    body.contact-page-layout .content-wrap {
        background: none;
    }

    body.contact-page-layout .bg-wrapper .bg-mobile {
        object-position: center top;
        transform: translateY(50px);
    }

    /* Header */
    header {
        height: 50px;
        padding: 0 20px;
        background: #ffffff;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2147483646;
    }

    header>a {
        display: inline-flex;
        align-items: center;
        height: 100%;
    }

    .logo {
        display: block;
        height: 30px;
    }

    .header-actions {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    header nav {
        display: none;
    }

    .language-dp {
        display: flex !important;
        align-items: center;
    }

    .language-dp .dropdown-toggle {
        width: 26px;
        height: 26px;
        min-width: 26px;
        padding: 0;
        justify-content: center;
        gap: 0;
        line-height: 0;
        display: inline-flex;
        align-items: center;
        border: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .language-dp .dropdown-toggle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
        display: block;
        margin: 0;
    }

    .language-dp .language-label,
    .language-dp .language-chevron {
        display: none;
    }

    .language-dp .dropdown-menu {
        top: 62px;
        right: 16px;
    }

    .hamburger {
        display: flex;
        width: 38px;
        height: 38px;
        padding: 0;
        align-items: center;
        justify-content: center;
        position: static;
        transform: none;
    }

    .mobile-nav {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: unset;
        padding: 20px 20px 30px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    .hero-content {
        max-width: 55%;
        margin-top: 16px;
        z-index: 2;
        position: relative;
    }

    .hero-logo-rect {
        max-width: 220px;
        width: 100%;
    }

    .hero-tagline {
        font-size: 14px;
        letter-spacing: 1px;
        margin-top: 10px;
    }

    .countdown-label {
        font-size: 13px;
        margin-top: 18px;
        margin-bottom: 6px;
    }

    .countdown-wrapper {
        padding: 8px 10px;
        gap: 0;
        width: max-content;
        margin-left: auto;
        margin-right: auto;
    }

    .countdown-block {
        width: 36px;
        height: 54px;
        margin: 0 3px;
        border-radius: 8px;
    }

    .countdown-block span {
        font-size: 30px;
        letter-spacing: 0;
    }

    .countdown-sep {
        font-size: 30px;
        margin-bottom: 4px;
    }

    /* Hero model */
    .hero-model {
        right: -10px;
        top: 0;
        height: 340px;
        z-index: 1;
    }

    /* Hero balls */
    .ball-1 {
        width: 55px;
        top: 16px;
        right: 150px;
    }

    .ball-2 {
        width: 38px;
        top: 80px;
        right: 4px;
    }

    .ball-3 {
        width: 110px;
        bottom: -10px;
        right: 20px;
    }

    /* Results panel */
    .results-panel {
        margin: 20px 12px;
        padding: 30px 16px 40px;
        border-radius: 36px;
    }

    /* Prize winner title */
    .prize-winner-title {
        font-size: clamp(32px, 10vw, 52px);
    }

    .total-prize-title {
        font-weight: 700;
        font-size: clamp(20px, 4vw, 70px);

    }

    .total-prize {
        font-weight: 700;
        font-size: clamp(35px, 5vw, 90px);

    }

    .crown-icon {
        width: clamp(30px, 8vw, 40px);
        left: 0;
    }

    .prize-date {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Prize cards */
    .prize-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 6px;
        align-items: start;
    }

    .prize-card+.prize-card {
        margin-top: 0;
    }

    .prize-card {
        width: 100%;
        border-radius: 12px;
    }

    /* HTML order is 2nd, 1st, 3rd; map to: row1=1st(center), row2=2nd+3rd */
    .prize-cards .prize-card:nth-child(2) {
        grid-row: 1;
        grid-column: 1 / -1;
        max-width: calc((100% - 6px) / 2);
        justify-self: center;
    }

    .prize-cards .prize-card:nth-child(1) {
        grid-row: 2;
        grid-column: 1;
    }

    .prize-cards .prize-card:nth-child(3) {
        grid-row: 2;
        grid-column: 2;
    }

    .crown-icon {
        transform: translate(-62%, -35%) rotate(172deg) scaleY(-1);
    }

    .prize-label {
        top: 4px;
        min-height: clamp(26px, 8cqw, 48px);
        padding: 5px;
    }

    .prize-label .num {
        font-size: clamp(13px, 4.8cqw, 30px);
    }

    .prize-label .word {
        font-size: clamp(9px, 3.2cqw, 20px);
    }

    .prize-card-bottom {
        padding: 10% 5% 5%;
        gap: 0;
    }

    .prize-balls {
        gap: 2%;
    }

    /* Previous winner */
    .prev-winner-title {
        font-size: clamp(22px, 7vw, 38px);
        margin-top: 36px;
        margin-bottom: 16px;
    }

    .prev-header-row {
        padding: 0 10px;
        max-width: 100%;
    }

    .prev-header-row span {
        font-size: 18px;
    }

    /* Result rows */
    .result-rows {
        max-width: 100%;
        gap: 8px;
    }

    .result-row {
        padding: 8px 10px;
        border-radius: 30px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
    }

    .result-row-date {
        font-size: clamp(10px, 3.2vw, 15px);
        min-width: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .result-row-balls {
        flex-shrink: 0;
        gap: 3px;
    }

    .result-ball {
        width: clamp(22px, 6vw, 36px);
        height: clamp(22px, 6vw, 36px);
        font-size: clamp(10px, 3vw, 15px);
        border-radius: 6px;
    }

    /* SEE MORE */
    .see-more-btn {
        padding: 16px 20px;
        margin-top: 16px;
    }

    .see-more-btn .see-more-text {
        font-size: 22px;
    }

    .see-more-arrow {
        width: 40px;
        height: 40px;
        border: 2px solid var(--white);
        background: transparent;
        color: var(--white);
    }

    /* Floating balls */
    .floating-ball-left {
        width: 40px;
        left: -15px;
    }

    .floating-ball-bottom-right {
        width: 130px;
        right: -40px;
        bottom: 18px;
        z-index: 0;
    }

    /* Footer */
    footer {
        font-size: 14px;
    }

    .footer-main {
        padding: 0 16px 20px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-main>tv-ticker-tape {
        order: 1;
        display: block;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 0;
    }

    .footer-nav {
        order: 3;
        gap: 14px;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 0 12px;
        overflow-x: auto;
        border-bottom: none;
    }

    .footer-nav a {
        font-size: 14px !important;
        white-space: nowrap;
    }

    .footer-top {
        display: contents;
    }

    .footer-brand {
        order: 2;
        width: 100%;
        display: block;
        text-align: center;
        margin: 8px 0 2px;
    }

    .footer-logo {
        height: 50px;
        display: block;
        margin: 0 auto;
    }

    .footer-social {
        display: none;
    }

    .footer-desc {
        order: 4;
        font-size: 13px;
        text-align: center;
        width: 100%;
        margin-top: 8px;
    }

    .footer-bottom {
        order: 5;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-bottom-links {
        flex-wrap: nowrap;
        gap: 14px;
        justify-content: center;
        align-items: center;
    }

    .footer-bottom-social {
        display: inline-flex;
    }

    .footer-bottom span {
        text-align: center;
    }
}

@media (max-width: 425px) {
    .hero {
        min-height: unset;
        padding: 20px 20px 30px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    /* Hero model */
    .hero-model {
        right: 10px;
        top: 0;
        height: 250px;
        z-index: 1;
    }

    /* Hero balls */
    .ball-1 {
        width: 30px;
        top: 16px;
        right: 150px;
        filter: blur(0px);
    }

    .ball-2 {
        width: 20px;
        top: 80px;
        right: 4px;
        filter: blur(1px);
    }

    .ball-3 {
        width: 50px;
        bottom: 30px;
        right: 20px;
        filter: blur(1.5px);
    }

    .countdown-block {
        width: 25px;
        height: 35px;
        margin: 0 3px;
        border-radius: 8px;
    }

    .countdown-block span {
        font-size: 25px;
    }

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 22px;
        height: 22px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 13px;
    }

    .prize-label .num {
        font-size: 17px;
    }

    .prize-label .word {
        font-size: 13px;
    }

    .prize-amount {
        font-size: 14px;
    }

    .prize-card-bottom {
        gap: 5px;
        bottom: 0;
    }
}

@media (max-width: 320px) {

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 18px;
        height: 18px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 11px;
    }

    .prize-label .num {
        font-size: 14px;
    }

    .prize-label .word {
        font-size: 12px;
    }

    .prize-amount {
        font-size: 12px;
    }

    .prize-card-bottom {
        gap: 0px;
    }
}

@media (min-width: 425px) and (max-width: 530px) {
    .hero {
        min-height: unset;
        padding: 20px 20px 30px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    /* Hero model */
    .hero-model {
        right: 10px;
        top: 0;
        height: 250px;
        z-index: 1;
    }

    /* Hero balls */
    .ball-1 {
        width: 30px;
        top: 16px;
        right: 150px;
        filter: blur(0px);
    }

    .ball-2 {
        width: 20px;
        top: 80px;
        right: 4px;
        filter: blur(1px);
    }

    .ball-3 {
        width: 50px;
        bottom: 30px;
        right: 20px;
        filter: blur(1.5px);
    }

    .countdown-block {
        width: 30px;
        height: 40px;
        margin: 0 3px;
        border-radius: 8px;
    }

    .countdown-block span {
        font-size: 25px;
    }

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 25px;
        height: 25px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 15px;
    }

    .prize-label .num {
        font-size: 20px;
    }

    .prize-label .word {
        font-size: 16px;
    }

    .prize-amount {
        font-size: 16px;
    }

    .prize-card-bottom {
        gap: 3px;
        bottom: 0;
    }

    .prize-label {
        top: 4px;
        min-height: clamp(26px, 8cqw, 48px);
        padding: 10px 10px;
    }
}

@media (min-width: 531px) and (max-width: 640px) {
    .hero {
        min-height: unset;
        padding: 20px 20px 30px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    /* Hero model */
    .hero-model {
        right: 30px;
        top: 0;
        height: 250px;
        z-index: 1;
    }

    /* Hero balls */
    .ball-1 {
        width: 30px;
        top: 16px;
        right: 180px;
        filter: blur(0px);
    }

    .ball-2 {
        width: 20px;
        top: 80px;
        right: 4px;
        filter: blur(1px);
    }

    .ball-3 {
        width: 50px;
        bottom: 50px;
        right: 20px;
        filter: blur(1.5px);
    }

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 32px;
        height: 32px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 15px;
    }

    .prize-label .num {
        font-size: 28px;
    }

    .prize-label .word {
        font-size: 20px;
    }

    .prize-amount {
        font-size: 16px;
    }

    .prize-card-bottom {
        gap: 6px;
        bottom: 10px;
    }

    .prize-label {
        top: 4px;
        min-height: clamp(26px, 8cqw, 48px);
        padding: 10px 15px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero {
        min-height: unset;
        padding: 20px 20px 30px;
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    /* Hero model */
    .hero-model {
        right: 50px;
        top: 0;
        height: 280px;
        z-index: 1;
    }

    /* Hero balls */
    .ball-1 {
        width: 30px;
        top: 16px;
        right: 200px;
        filter: blur(0px);
    }

    .ball-2 {
        width: 20px;
        top: 80px;
        right: 20px;
        filter: blur(1px);
    }

    .ball-3 {
        width: 50px;
        bottom: 30px;
        right: 45px;
        filter: blur(1.5px);
    }

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 38px;
        height: 38px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 25px;
    }

    .prize-label .num {
        font-size: 35px;
    }

    .prize-label .word {
        font-size: 25px;
    }

    .prize-amount {
        font-size: 25px;
    }

    .prize-card-bottom {
        gap: 5px;
        bottom: 10px;
    }

    .prize-label {
        top: 4px;
        min-height: clamp(26px, 8cqw, 48px);
        padding: 15px 15px;
    }
}

/* ─── TABLET (769px – 1024px) ─── */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Header: Apply mobile styles for tablet view */
    header {
        height: 60px;
        padding: 0 20px;
        background: #ffffff;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2147483646;
    }

    header>a {
        display: inline-flex;
        align-items: center;
        height: 100%;
    }

    .logo {
        display: block;
        height: 40px;
    }

    .header-actions {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    header nav {
        display: none;
    }

    .language-dp {
        display: flex !important;
        align-items: center;
    }

    .language-dp .dropdown-toggle {
        width: 26px;
        height: 26px;
        min-width: 26px;
        padding: 0;
        justify-content: center;
        gap: 0;
        line-height: 0;
        display: inline-flex;
        align-items: center;
        border: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .language-dp .dropdown-toggle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
        display: block;
        margin: 0;
    }

    .language-dp .language-label,
    .language-dp .language-chevron {
        display: none;
    }

    .language-dp .dropdown-menu {
        top: 62px;
        right: 16px;
    }

    .hamburger {
        display: flex;
        width: 38px;
        height: 38px;
        padding: 0;
        align-items: center;
        justify-content: center;
        position: static;
        transform: none;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        padding: 40px 40px;
        min-height: 600px;
    }

    .hero-model {
        height: 560px;
        right: 90px;
    }

    .ball-1 {
        width: 100px;
        top: 60px;
        right: 395px;
        filter: blur(1px);
        z-index: 2;
    }

    .ball-2 {
        width: 65px;
        top: 145px;
        right: 30px;
        filter: blur(2px);
        z-index: 2;
    }

    .ball-3 {
        width: 185px;
        bottom: 65px;
        right: 25px;
        filter: blur(7.5px);
        z-index: 2;
    }

    .hero-content {
        max-width: 500px;
    }

    .hero-logo-rect {
        max-width: 360px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .countdown-block {
        width: 64px;
        height: 96px;
    }

    .countdown-block span {
        font-size: 54px;
    }

    .countdown-sep {
        font-size: 54px;
    }

    .results-panel {
        padding: 40px 40px 60px;
        margin: 40px 20px;
    }

    .prize-cards {
        gap: 14px;
    }

    .crown-icon {
        transform: translate(-64%, -38%) rotate(172deg) scaleY(-1);
    }

    .prize-label {
        min-height: 64px;
    }

    .prize-label .num {
        font-size: clamp(24px, 2.8vw, 29px);
    }

    .prize-label .word {
        font-size: clamp(15px, 1.95vw, 20px);
    }

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: clamp(32px, 3.6vw, 38px);
        height: clamp(32px, 3.6vw, 38px);
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 20px;
    }

    .ball-circle {
        max-width: 42px;
        font-size: 20px;
    }

    .prize-amount {
        font-size: 23px;
    }

    .result-row-date {
        font-size: 20px;
    }

    .result-ball {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    footer .footer-nav a {
        font-size: 25px;
    }
}

@media (min-width: 769px) and (max-width: 930px) {

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: clamp(28px, 3.3vw, 32px);
        height: clamp(28px, 3.3vw, 32px);
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 15px;
    }

    .prize-label .num {
        font-size: clamp(20px, 2.2vw, 24px);
    }

    .prize-label .word {
        font-size: clamp(13px, 1.5vw, 16px);
    }

    .prize-amount {
        font-size: clamp(15px, 1.8vw, 18px);
    }

    .prize-card-bottom {
        gap: 5px;
    }
}

/* ─── DESKTOP (1025px – 1440px) ─── */
@media (min-width: 1025px) and (max-width: 1440px) {

    /* Hero sizing (smaller than full desktop) */
    .hero-content {
        max-width: 600px;
    }

    .hero-logo-rect {
        max-width: 420px;
    }

    .hero-tagline {
        font-size: 24px;
    }

    .countdown-wrapper {
        padding: 18px 24px;
    }

    .countdown-block {
        width: 90px;
        height: 135px;
        margin: 0 8px;
    }

    .countdown-block span {
        font-size: 74px;
    }

    .countdown-sep {
        font-size: 74px;
    }

    .hero-model {
        height: 730px;
        right: 110px;
    }

    .ball-1 {
        width: 100px;
        top: 55px;
        right: 490px;
        filter: blur(1px);
        z-index: 2;
    }

    .ball-2 {
        width: 85px;
        top: 190px;
        right: 28px;
        filter: blur(2px);
        z-index: 2;
    }

    .ball-3 {
        width: 220px;
        bottom: 120px;
        right: 45px;
        filter: blur(7.5px);
        z-index: 2;
    }

    .prize-label {
        top: 20px;
    }

    .prize-card-bottom {
        bottom: 0;
    }

    .prize-amount {
        font-size: 25px;
    }
}

@media (min-width: 1301px) and (max-width: 1440px) {

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 50px;
        height: 50px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 30px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 36px;
        height: 36px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 20px;
    }

    .prize-label .num {
        font-size: 20px;
    }

    .prize-label .word {
        font-size: 18px;
    }

    .prize-card-bottom {
        bottom: 5px;
    }

    .prize-amount {
        font-size: 25px;
    }

    .prize-card-bottom {
        gap: 5px;
        bottom: 0;
    }
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT SHELL (result & contact pages)
═══════════════════════════════════════════════ */
main {
    padding: 40px 60px 60px;
}

/* ─── RESULT HISTORY PAGE ─── */
.history-panel {
    background: rgba(0, 0, 0, 0.34);
    border-radius: 60px;
    box-shadow: 0 9px 32px 0 rgba(75, 165, 255, 0.88),
        inset 0 -8px 14px 0 rgba(255, 255, 255, 0.4),
        inset 0 -20px 10px 0 rgba(140, 163, 255, 0.5),
        inset 0 -30px 37px 0 #4469ff;
    padding: 40px 50px 50px;
    position: relative;
    overflow: visible !important;
}

.filters {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 36px;
    flex-wrap: wrap;
    position: relative;
    /* ADD THIS */
    z-index: 10000;
}

.filter-select {
    position: relative;
}

.filter-select select {
    appearance: none;
    -webkit-appearance: none;
    background: #d9d9d9;
    border: none;
    border-radius: 15px;
    padding: 16px 52px 16px 52px;
    /* keep equal padding */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--black);
    cursor: pointer;
    min-width: 200px;
    text-align: center;
    text-align-last: center;
    direction: ltr;
    unicode-bidi: bidi-override;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), inset 0 4px 4px rgba(255, 255, 255, 0.25);
}

.filter-select select option {
    text-align: center;
    direction: ltr;
}

.filter-select select:focus {
    outline: none;
}

.filter-select::after {
    content: '▼';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--black);
    pointer-events: none;
}

.filter-btn {
    background: linear-gradient(to right, #146ad7, #c60025);
    border: none;
    border-radius: 15px;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s;
}

.filter-btn:hover {
    opacity: 0.9;
}

/* Custom dropdown replaces native select */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10000;
}

.custom-select-trigger {
    background: #d9d9d9;
    border: none;
    border-radius: 15px;
    padding: 10px 70px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #000;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), inset 0 4px 4px rgba(255, 255, 255, 0.25);
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* ADD THIS */
    gap: 0;
    /* remove gap */
}

/* Remove the JS-appended chevron span and use CSS ::after instead */
.custom-select-trigger::after {
    content: '▼';
    font-size: 16px;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.custom-select-options {
    display: none;
    position: fixed;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #d9d9d9;
    border-radius: 15px;
    overflow: hidden;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.custom-select-options.portal-open {
    display: block;
}

.custom-select-option {
    padding: 12px 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    transition: background 0.15s;
}

.custom-select-option:hover {
    background: rgba(0, 0, 0, 0.1);
}

.custom-select-option.selected {
    background: #006bff;
    color: #fff;
}

/* Hide the real select but keep it in the DOM for form submission */
.custom-select-wrapper select {
    /* display: none; */
}

@media (max-width: 768px) {
    .custom-select-trigger {
        font-size: 14px;
        padding: 5px 40px;
        min-width: 90px;
        border-radius: 10px;
    }

    .custom-select-option {
        font-size: 14px;
        padding: 8px 12px;
    }
}

.history-intro {
    display: none;
    text-align: center;
    margin: 6px auto 24px;
    max-width: 980px;
}

.history-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 4.8vw, 72px);
    line-height: 1.05;
    letter-spacing: 1px;
    color: var(--white);
}

.history-description {
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.25vw, 21px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1.6fr;
    padding: 0 20px 16px;
    gap: 0;
}

.table-header span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--white);
    text-align: center;
}

.table-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1.6fr;
    align-items: center;
    background: #0c59c2;
    border-radius: 50px;
    padding: 0 20px;
    height: 70px;
    gap: 0;
    transition: background-color 0.2s ease;
}

.history-row:hover,
.history-row:focus-within {
    background: #c2400c;
}

.history-row:hover .row-no,
.history-row:hover .row-date,
.history-row:hover .row-day,
.history-row:hover .lottery-ball .ball-num,
.history-row:focus-within .row-no,
.history-row:focus-within .row-date,
.history-row:focus-within .row-day,
.history-row:focus-within .lottery-ball .ball-num {
    color: var(--white);
}

.history-row>* {
    text-align: center;
}

.row-no {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 26px;
    color: var(--white);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--white);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-day {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--white);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-balls {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.lottery-ball {
    width: 45px;
    height: 45px;
    position: relative;
    flex-shrink: 0;
}

.lottery-ball img {
    width: 100%;
    height: 100%;
    display: block;
}

.history-row:hover .lottery-ball img,
.history-row:focus-within .lottery-ball img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(88%) saturate(2560%) hue-rotate(346deg) brightness(86%) contrast(95%);
}

.lottery-ball .ball-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'K2D', sans-serif;
    font-weight: 800;
    font-size: 25px;
    color: var(--black);
}

/* History pagination */
.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 30px;
}

.history-pagination-track {
    background: #d9d9d9;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 4px 10px;
    gap: 0;
}

.page-btn {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--black);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: none;
    transition: background 0.15s;
}

.page-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background: #006bff;
    color: var(--white);
    box-shadow: 0 0 14px 5px rgba(0, 107, 255, 0.46);
}

.page-arrow-btn {
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: #d9d9d9;
    margin: 0 4px;
    font-size: 30px;
    color: var(--black);
    text-decoration: none;
    transition: background 0.15s;
    line-height: 1;
}

.page-arrow-btn:hover {
    background: #c0c0c0;
}

.page-arrow-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ─── CONTACT PAGE ─── */
.contact-panel {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    min-height: 640px;
    position: relative;
    overflow: visible;
}

.contact-girl {
    display: none;
}

.contact-info {
    margin-left: 44%;
    padding: 60px 60px 60px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(60px, 7vw, 140px);
    color: var(--white);
    white-space: nowrap;
    line-height: 1.02;
    margin-bottom: 30px;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-item--full {
    grid-column: 1;
    grid-row: 2;
}

.contact-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-icon svg path,
.contact-icon svg circle {
    stroke: var(--white);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-text .label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 1.7vw, 24px);
    line-height: 1.15;
    color: var(--white);
}

.contact-text .value {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.contact-socials {
    display: flex;
    gap: 16px;
    margin-top: 0;
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    align-self: end;
}

.contact-socials img {
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
}

.contact-socials img:hover {
    transform: scale(1.08);
}

@media (min-width: 769px) {
    body.contact-page-layout .bg-wrapper .bg-desktop {
        transform: translateY(90px);
    }

    .contact-item-email {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-item-phone {
        grid-column: 2;
        grid-row: 1;
    }

    .contact-item-location {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .contact-socials {
        grid-column: 1;
        grid-row: 3;
        justify-content: flex-start;
        align-self: start;
        margin-top: 8px;
    }
}

/* ─── ABOUT PAGE ─── */
.about-page {
    color: var(--black);
}

.about-hero {
    text-align: center;
    padding: 60px 80px 40px;
    position: relative;
    z-index: 1;
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(60px, 10vw, 140px);
    line-height: 1;
    margin-bottom: 24px;
}

.about-title .blue {
    color: #0047a0;
}

.about-title .black {
    color: var(--black);
}

.about-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 30px);
    color: var(--black);
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.why-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.why-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 797px;
    padding: 60px 80px;
    gap: 150px;
}

.why-phone {
    flex: 0 0 38%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-content {
    flex: 1;
    min-width: 0;
}

.why-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 100px);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 40px;
    white-space: nowrap;
}

.why-title .white,
.why-title .blue {
    color: var(--white);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .icon-bg {
    position: absolute;
    inset: -16%;
    width: calc(100% + 32%);
    height: calc(100% + 32%);
    object-fit: contain;
    opacity: 0.9;
}

.feature-icon .icon-fg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.feature-text {
    flex: 1;
}

.feature-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 1.8vw, 30px);
    color: #78bbff;
    margin-bottom: 6px;
}

.feature-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 25px);
    color: var(--white);
    line-height: 1.5;
}

/* ─── RESPONSIVE OVERRIDES — HISTORY & CONTACT ─── */
@media (max-width: 768px) {
    main {
        padding: 16px 10px 30px;
    }

    /* History */
    .history-panel {
        --history-mobile-grid: 34px minmax(82px, 0.9fr) 52px minmax(148px, 1.9fr);
        background: #0d2f6e;
        border-radius: 28px;
        padding: 20px 12px 30px;
        border: 1px solid rgba(133, 196, 255, 0.55);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .history-intro {
        display: block;
        margin: 35px auto 30px;
        padding: 0 8px;
        max-width: 100%;
    }

    .history-title {
        font-size: clamp(24px, 8vw, 40px);
        letter-spacing: 0.6px;
    }

    .history-description {
        margin-top: 8px;
        font-size: clamp(11px, 3.4vw, 14px);
        line-height: 1.45;
    }

    .filters {
        gap: 10px;
    }

    .filter-select select {
        font-size: 15px;
        padding: 10px 36px;
        min-width: 110px;
        border-radius: 10px;
    }

    .filter-select::after {
        font-size: 12px;
        right: 12px;
    }

    .filter-btn {
        font-size: 15px;
        padding: 10px 20px;
        border-radius: 10px;
    }

    .table-header {
        grid-template-columns: var(--history-mobile-grid);
        padding: 0 8px 10px;
    }

    .table-header span {
        font-size: 10px;
        white-space: nowrap;
    }

    .history-row {
        grid-template-columns: var(--history-mobile-grid);
        border-radius: 28px;
        height: 35px;
        padding: 0 8px;
    }

    .row-no {
        font-size: 12px;
    }

    .row-date {
        font-size: 10px;
    }

    .row-day {
        font-size: 10px;
    }

    .row-balls {
        gap: 1px;
        padding: 0 1px;
    }

    .lottery-ball {
        width: 26px;
        height: 26px;
    }

    .lottery-ball .ball-num {
        font-size: 15px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .page-btn.active {
        box-shadow: 0 0 0 1px rgba(186, 222, 255, 0.85);
    }

    .page-arrow-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
        border-radius: 50%;
        flex: 0 0 auto;
    }

    .history-pagination-track {
        padding: 3px 6px;
        max-width: calc(100vw - 130px);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .history-pagination-track::-webkit-scrollbar {
        display: none;
    }

    .page-btn {
        flex: 0 0 auto;
    }

    /* Contact */
    .contact-panel {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        flex-direction: column;
        min-height: 0;
        height: auto;
        overflow: visible;
        align-items: stretch;
    }

    .contact-panel::before {
        content: '';
        display: block;
        height: clamp(280px, 90vw, 760px);
    }

    .contact-girl {
        display: none;
    }

    .contact-info {
        margin-left: 0;
        padding: 28px 20px 32px;
        background: rgba(217, 217, 217, 0.15);
        border-radius: 36px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65), inset 0 4px 4px rgba(255, 255, 255, 0.25);
        margin: 44px 12px 0;
    }

    .contact-title {
        font-size: clamp(34px, 10vw, 56px);
        color: var(--black);
        line-height: 1.06;
        margin-bottom: 20px;
        white-space: normal;
        text-align: center;
    }

    .contact-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 8px;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .contact-item--full {
        grid-column: 1;
        grid-row: 2;
    }

    /* inside your existing @media (max-width: 768px) block */
    .contact-item {
        gap: 12px;
        align-items: center;
        /* was missing — centers icon with the text */
        min-width: 0;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 3px;
        /* optical centering with the label line */
    }

    .contact-icon svg rect {
        display: none;
    }

    .contact-text {
        min-width: 0;
    }

    .contact-text .label {
        font-size: clamp(11px, 3vw, 15px);
        line-height: 1.2;
        color: var(--black);
    }

    .contact-text .value {
        font-size: 1.5vw;
        line-height: 1.3;
        color: #333;
        word-break: break-word;
    }

    .contact-icon svg path,
    .contact-icon svg circle {
        stroke: var(--black);
    }

    .contact-socials {
        margin-top: 0;
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
        align-self: end;
        gap: 8px;
    }

    .contact-socials img {
        width: 38px;
        height: 38px;
    }

    /* About */
    .about-hero {
        padding: 40px 24px 30px;
    }

    .about-title {
        font-size: clamp(48px, 15vw, 80px);
    }

    .about-title .blue {
        color: #78bbff;
    }

    .about-title .black {
        color: var(--white);
    }

    .about-subtitle {
        font-size: clamp(16px, 4.5vw, 24px);
        color: var(--white);
    }

    .why-inner {
        flex-direction: column;
        min-height: unset;
        padding: 30px 20px 40px;
        gap: 30px;
        align-items: stretch;
    }

    .why-phone {
        display: none;
    }

    .why-title {
        font-size: 9vw;
        white-space: normal;
        margin-bottom: 24px;
    }

    .why-title .white {
        color: var(--white);
    }

    .why-title .blue {
        color: #78bbff;
    }

    .feature-list {
        gap: 16px;
    }

    .feature-item {
        border: 2px solid #78bbff;
        border-radius: 36px;
        padding: 24px 20px;
        gap: 16px;
        align-items: flex-start;
        background: rgba(255, 255, 255, 0.03);
    }

    .feature-icon {
        width: 52px;
        height: 52px;
    }

    .feature-icon .icon-fg {
        width: 25px;
        height: 25px;
    }

    .feature-name {
        font-size: clamp(15px, 4vw, 22px);
    }

    .feature-desc {
        font-size: clamp(14px, 3.5vw, 18px);
    }
}

@media (max-width: 520px) {
    .contact-text .value {
        font-size: 2.2vw;
        line-height: 1.3;
        color: #333;
        word-break: break-word;
    }
}

/* ── Fix gap: force single column at ≤425px ── */
@media (max-width: 425px) {
    .contact-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 8px;
        max-width: 100%;
    }

    .contact-item-email {
        grid-column: 1;
        grid-row: 1;
    }

    .contact-item-location {
        grid-column: 2;
        grid-row: 1;
    }

    .contact-item--full {
        grid-column: 1;
        grid-row: 2;
    }

    .contact-socials {
        margin-left: 10px;
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
        align-self: center;
        gap: 6px;
    }

    .contact-item.contact-item-location {
        gap: 0;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        gap: 3px;
        min-width: 0;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        margin-top: 0;
    }

    .contact-text {
        min-width: 0;
        overflow: hidden;
    }

    .contact-text .label {
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-text .value {
        font-size: 10px;
        line-height: 1.3;
        word-break: break-all;
    }

    .contact-socials img {
        width: 28px;
        height: 28px;
    }

    .contact-info {
        padding: 28px 10px 32px;
    }

    .footer-nav a {
        font-size: 11px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    /* History */
    .history-panel {
        padding: 30px 30px 40px;
    }

    .filter-select select {
        font-size: 18px;
    }

    .table-header {
        grid-template-columns: 62px 1fr 1fr 1.6fr;
    }

    .table-header span {
        font-size: 20px;
    }

    .history-row {
        grid-template-columns: 62px 1fr 1fr 1.6fr;
        height: 60px;
    }

    .row-no,
    .row-date,
    .row-day {
        font-size: 16px;
    }

    .lottery-ball {
        width: 36px;
        height: 36px;
    }

    .lottery-ball .ball-num {
        font-size: 18px;
    }

    /* Contact */
    .contact-panel {
        min-height: 520px;
    }

    .contact-title {
        font-size: clamp(40px, 6vw, 80px);
        margin-bottom: 28px;
    }

    .contact-details {
        gap: 22px 30px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
    }

    .contact-socials img {
        width: 56px;
        height: 56px;
    }

    /* About */
    .about-hero {
        padding: 50px 40px 30px;
    }

    .why-inner {
        padding: 50px 40px;
        gap: 40px;
        min-height: 600px;
    }

    .why-title {
        font-size: clamp(32px, 4vw, 60px);
    }
}

@media (min-width: 1441px) {

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 55px;
        height: 55px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 30px;
    }

    .prize-label .num {
        font-size: 45px;
    }

    .prize-label .word {
        font-size: 30px;
    }

    .prize-label {
        min-height: clamp(60px, 10cqw, 110px);
        padding: 30px 12px;
    }

    .prize-card-bottom {
        gap: 5px;
        bottom: 0;
    }
}

@media (min-width: 1601px) {

    .prize-balls .lottery-ball,
    .result-row-balls .lottery-ball {
        width: 65px;
        height: 65px;
    }

    .prize-balls .lottery-ball .ball-num,
    .result-row-balls .lottery-ball .ball-num {
        font-size: 35px;
    }

    .prize-label .num {
        font-size: 50px;
    }

    .prize-label .word {
        font-size: 40px;
    }

    .prize-label {
        min-height: clamp(60px, 10cqw, 110px);
        padding: 35px 12px;
    }

    .prize-card-bottom {
        gap: 0;
        bottom: 10px;
    }
}
