* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #e8e8e8;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* HEADER */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    width: min(1170px, calc(100% - 30px));
    min-height: 85px;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 45px;
}


.logo {
    width: 135px;
    text-align: center;
    color: #5c3714;
    flex-shrink: 0;
}

.logo-main {
    font-size: 23px;
    font-weight: 900;
    color: #be7a19;

    text-shadow:
        1px 1px #42290c;
}

.logo span {
    font-size: 8px;
    letter-spacing: 1px;
}


.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex: 1;
}

.main-nav a {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #df252d;
}


.account-links {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}

.account-links a {
    color: #0068e9;
    font-size: 13px;
}


.menu-btn {
    display: none;

    border: 0;
    background: transparent;

    font-size: 26px;
    cursor: pointer;
}


/* PAGE */

.page {
    padding-bottom: 30px;
}

.content-layout {
    width: min(1170px, calc(100% - 30px));
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 2.05fr)
        minmax(280px, 1fr);

    gap: 20px;

    background: #fff;
    padding: 10px;
}


.main-column {
    min-width: 0;
}


/* DAY TAB */

.day-tabs {
    height: 65px;

    display: grid;
    grid-template-columns: repeat(8, 1fr);

    margin-bottom: 20px;

    border: 1px solid #e2e2e2;
}

.day-tabs button {
    border: 0;
    border-right: 1px solid #ddd;

    background: #fff;
    color: #e02028;

    cursor: pointer;
    font-size: 13px;
}

.day-tabs button:last-child {
    border-right: 0;
}

.day-tabs button.active {
    background: #df252d;
    color: #fff;
}


/* LOTTERY */

.lottery-card {
    background: #fff;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .08);

    padding-bottom: 10px;
}


.lottery-header {
    min-height: 95px;

    background:
        linear-gradient(
            135deg,
            #e61f2b,
            #dc2930
        );

    color: #fff;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 15px;
}

.lottery-header strong {
    font-size: 21px;
    margin-bottom: 10px;
}

.lottery-header span {
    font-size: 21px;
    letter-spacing: .3px;
}


.number-boxes {
    display: flex;
    justify-content: center;

    gap: 10px;

    padding: 12px 15px 5px;
}

.number-boxes div {
    width: 59px;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #333;
    border-radius: 5px;

    color: #333;

    font-size: 55px;
    font-weight: 800;

    line-height: 1;
}


.today-date {
    text-align: center;

    color: #202b3c;

    font-size: 23px;
    font-weight: 700;

    padding: 18px 10px;
}


.table-scroll {
    width: 100%;
    overflow-x: auto;
}


.current-result-table {
    width: 90%;
    min-width: 500px;

    margin: 0 auto 10px;

    border-collapse: collapse;
    table-layout: fixed;
}

.current-result-table td {
    width: 50%;

    border: 1px solid #333;

    background: #fafafa;

    color: #444;

    text-align: center;

    padding: 14px;

    font-size: 20px;
}

.current-result-table td:last-child {
    font-weight: 600;
}


/* BIG AD */

.main-ad {
    min-height: 260px;

    margin-top: 15px;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #fff;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 40%,
            #fff6db,
            transparent 22%
        ),
        radial-gradient(
            circle at 95% 0,
            #ffe6e7,
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #ff5275,
            #ff9cae 50%,
            #ffd6cb
        );
}

.ad-text {
    display: flex;
    flex-direction: column;

    position: relative;
    z-index: 2;
}

.ad-text small {
    font-family: cursive;
    font-size: 30px;
}

.ad-text strong {
    font-size: 35px;
    margin-top: 5px;
}

.ad-text > span {
    font-size: 23px;
    font-weight: 700;
}

.ad-text div {
    margin-top: 12px;
    font-size: 15px;
}

.ad-text b {
    font-size: 30px;
    color: #fff600;
}


.ad-circle {
    width: 170px;
    height: 170px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #fff,
            #ffb7bd
        );

    color: #ed3f60;

    font-size: 31px;
    font-weight: 900;

    transform: rotate(-10deg);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .15);
}


/* HISTORY */

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


.history-table {
    width: 100%;
    min-width: 680px;

    border-collapse: collapse;
    table-layout: fixed;
}

.history-table th,
.history-table td {
    border: 1px solid #333;

    text-align: center;

    padding: 11px 6px;
}

.history-table th {
    background: #df252d;
    color: #fff;

    font-size: 14px;
    line-height: 1.7;
}

.history-table td {
    background: #fff;
    color: #222;

    font-size: 14px;
}

.history-table tbody tr:hover td {
    background: #fff8f8;
}


/* SIDEBAR */

.sidebar {
    min-width: 0;
}


.side-box {
    background: #fff;

    margin-bottom: 14px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .06);
}


.side-title {
    background: #df252d;
    color: #fff;

    padding: 11px 13px;

    font-size: 14px;
}


.side-box > a {
    display: block;

    padding: 8px 14px;

    color: #003eaa;

    font-size: 14px;
}

.side-box > a:hover {
    background: #f6f6f6;
    color: #e1222a;
}


/* PHONE AD */

.phone-ad {
    height: 360px;

    margin-bottom: 15px;

    background:
        radial-gradient(
            circle at 85% 15%,
            #182851,
            transparent 35%
        ),
        #030303;

    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;

    padding: 18px;

    overflow: hidden;
}

.phone-ad-top {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
}

.phone-shape {
    width: 135px;
    height: 190px;

    margin: 5px 0 0 auto;

    border-radius: 18px;

    transform: rotate(-19deg);

    background:
        linear-gradient(
            140deg,
            #35456b,
            #060b18 60%,
            #566c9e
        );

    box-shadow:
        0 0 25px rgba(59, 100, 255, .5);
}

.phone-ad strong {
    font-size: 21px;
}

.phone-ad span {
    font-size: 13px;
}

.phone-ad h3 {
    margin: 17px 0 8px;
}

.phone-ad button {
    background: #fff;
    color: #111;

    border: 0;
    border-radius: 20px;

    padding: 8px 25px;

    font-weight: 700;
}


/* BOTTOM AD */

.bottom-ad {
    min-height: 180px;

    background:
        linear-gradient(
            135deg,
            #fff0f2,
            #ffd0d9
        );

    padding: 25px 15px;

    display: flex;
    flex-direction: column;

    color: #d84a64;
}

.bottom-ad small {
    font-size: 10px;
}

.bottom-ad strong {
    margin-top: 12px;

    font-size: 20px;
}

.bottom-ad span {
    margin-top: 15px;

    width: max-content;

    background: #ff6682;
    color: #fff;

    padding: 5px 10px;

    border-radius: 3px;

    font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .main-nav {
        display: none;
    }

    .account-links {
        margin-left: auto;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

}


@media (max-width: 700px) {

    .header-inner {
        min-height: 70px;
        gap: 10px;
    }

    .account-links {
        display: none;
    }

    .menu-btn {
        display: block;
        margin-left: auto;
    }

    .main-nav.open {
        display: flex;

        position: absolute;

        left: 0;
        right: 0;
        top: 70px;

        z-index: 999;

        flex-direction: column;

        align-items: flex-start;

        background: #fff;

        padding: 20px;

        box-shadow:
            0 10px 20px rgba(0, 0, 0, .15);
    }


    .content-layout {
        width: 100%;
        padding: 8px;
    }


    .day-tabs {
        overflow-x: auto;
        display: flex;
    }

    .day-tabs button {
        flex: 0 0 95px;
    }


    .lottery-header strong {
        font-size: 18px;
    }

    .lottery-header span {
        font-size: 16px;
    }


    .number-boxes {
        gap: 6px;
    }

    .number-boxes div {
        width: 49px;
        height: 67px;

        font-size: 45px;
    }


    .today-date {
        font-size: 20px;
    }


    .main-ad {
        min-height: 190px;
        padding: 20px;
    }

    .ad-text small {
        font-size: 22px;
    }

    .ad-text strong {
        font-size: 25px;
    }

    .ad-text > span {
        font-size: 16px;
    }

    .ad-circle {
        width: 100px;
        height: 100px;

        font-size: 19px;
    }

}


@media (max-width: 420px) {

    .number-boxes div {
        width: 45px;
        height: 62px;

        font-size: 40px;
    }

    .main-ad {
        min-height: 160px;
    }

    .ad-circle {
        display: none;
    }

}
