* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans Lao", Arial, sans-serif;
    background: #f4f0e7;
    color: #17243a;
}

a {
    color: inherit;
}

.site-header {
    background: #fffdf7;
    border-top: 5px solid #c09a45;
}

.header-inner {
    width: calc(100% - 40px);
    max-width: 1280px;
    min-height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-symbol {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c3a55e;
    background: #17345d;
    color: #e5c875;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.logo-text strong {
    display: block;
    color: #17345d;
    font-size: 22px;
    font-weight: 800;
}

.logo-text span {
    display: block;
    margin-top: 3px;
    color: #a98b4c;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.header-draw {
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-left: 1px solid #ded5c3;
}

.header-draw-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c39a3e;
    box-shadow: 0 0 0 5px rgba(195, 154, 62, 0.14);
}

.header-draw small {
    display: block;
    color: #9c927e;
    font-size: 9px;
}

.header-draw strong {
    display: block;
    color: #17345d;
    font-size: 14px;
}

.navigation {
    background: #142b4c;
}

.navigation-inner {
    width: calc(100% - 40px);
    max-width: 1280px;
    min-height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.navigation a {
    position: relative;
    min-height: 54px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    color: #d9dfeb;
    text-decoration: none;
    font-size: 13px;
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 3px;
    background: #d4ad52;
    transition: 0.2s;
}

.navigation a:hover,
.navigation a.active {
    color: #ffffff;
}

.navigation a:hover::after,
.navigation a.active::after {
    left: 25px;
    right: 25px;
}

.announcement {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        #102747 0%,
        #193b67 55%,
        #102747 100%
    );
}

.announcement::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(
            45deg,
            #ffffff 1px,
            transparent 1px
        ),
        linear-gradient(
            -45deg,
            #ffffff 1px,
            transparent 1px
        );
    background-size: 45px 45px;
}

.announcement-decoration {
    position: absolute;
    border: 1px solid rgba(216, 181, 95, 0.2);
    transform: rotate(45deg);
}

.decoration-left {
    width: 240px;
    height: 240px;
    left: -150px;
    top: -110px;
}

.decoration-right {
    width: 300px;
    height: 300px;
    right: -150px;
    bottom: -190px;
}

.announcement-inner {
    position: relative;
    z-index: 2;
    width: calc(100% - 40px);
    max-width: 1280px;
    min-height: 290px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.announcement-label {
    margin-bottom: 8px;
    color: #d9b967;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 4px;
}

.announcement h1 {
    margin: 0;
    color: #ffffff;
    font-size: 39px;
    line-height: 1.4;
    font-weight: 500;
}

.announcement h1 strong {
    color: #e2c474;
    font-weight: 800;
}

.announcement p {
    margin: 8px 0 18px;
    color: rgba(255, 255, 255, 0.57);
    font-size: 12px;
}

.announcement-time {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(222, 190, 111, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: #d5dbea;
    font-size: 10px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dfbd65;
    box-shadow: 0 0 0 4px rgba(223, 189, 101, 0.11);
}

.announcement-time strong {
    color: #e4c56f;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.page-container {
    width: calc(100% - 30px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 35px 0 60px;
}

.today-result {
    border: 1px solid #ddd4c1;
    background: #fffdf8;
    box-shadow: 0 10px 30px rgba(32, 47, 68, 0.05);
}

.result-heading {
    min-height: 85px;
    padding: 17px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4dccd;
}

.heading-small {
    display: block;
    color: #b18f43;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.result-heading h2,
.history-heading h2 {
    margin: 3px 0 0;
    color: #17345d;
    font-size: 19px;
}

.result-date {
    padding: 8px 14px;
    border: 1px solid #e1d7c4;
    background: #faf6ed;
    color: #887d69;
    font-size: 10px;
}

.grand-prize {
    padding: 35px 20px 30px;
    text-align: center;
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.92),
            rgba(255, 255, 255, 0.92)
        ),
        repeating-linear-gradient(
            45deg,
            #d7c7a2 0,
            #d7c7a2 1px,
            transparent 1px,
            transparent 10px
        );
}

.grand-prize-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}

.grand-prize-top > span {
    width: 55px;
    height: 1px;
    background: #c3a153;
}

.grand-prize-top strong {
    color: #17345d;
    font-size: 17px;
}

.grand-prize-subtitle {
    margin-top: 4px;
    color: #a29887;
    font-size: 9px;
}

.number-board {
    width: 560px;
    max-width: 100%;
    margin: 23px auto 0;
    padding: 8px;
    border: 1px solid #c9a95d;
    background: #f9f4e8;
}

.number-board-inner {
    padding: 12px;
    border: 1px solid #17345d;
    background: #ffffff;
}

#prize5-display {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17345d;
    font-family: "Courier New", monospace;
    font-size: 67px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 25px;
    text-indent: 25px;
    background:
        linear-gradient(
            to right,
            transparent 19.8%,
            #e1d9c9 19.8%,
            #e1d9c9 20%,
            transparent 20%,
            transparent 39.8%,
            #e1d9c9 39.8%,
            #e1d9c9 40%,
            transparent 40%,
            transparent 59.8%,
            #e1d9c9 59.8%,
            #e1d9c9 60%,
            transparent 60%,
            transparent 79.8%,
            #e1d9c9 79.8%,
            #e1d9c9 80%,
            transparent 80%
        );
}

.grand-prize-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #958a77;
    font-size: 9px;
}

.status-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c09b46;
}

.secondary-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #ddd4c3;
}

.secondary-item {
    min-height: 145px;
    padding: 20px;
    border-right: 1px solid #ddd4c3;
}

.secondary-item:last-child {
    border-right: 0;
}

.secondary-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-index {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c7a85c;
    color: #a68439;
    font-family: Georgia, serif;
    font-size: 15px;
}

.secondary-title small {
    display: block;
    color: #b1a58f;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.secondary-title strong {
    display: block;
    margin-top: 2px;
    color: #576276;
    font-size: 10px;
}

.secondary-number {
    margin-top: 15px;
    color: #17345d;
    font-family: Georgia, serif;
    font-size: 29px;
    font-weight: 700;
    text-align: center;
}

.schedule-section {
    margin-top: 25px;
    min-height: 150px;
    display: grid;
    grid-template-columns: 1fr 230px 1fr;
    border: 1px solid #dcd3c1;
    background: #fffdf8;
}

.schedule-left,
.schedule-right {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-small {
    color: #ad8b40;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2px;
}

.schedule-left h2 {
    margin: 5px 0;
    color: #17345d;
    font-size: 17px;
}

.schedule-left p {
    max-width: 500px;
    margin: 0;
    color: #9a907f;
    font-size: 9px;
    line-height: 1.8;
}

.schedule-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #17345d;
    color: #ffffff;
}

.schedule-center small {
    color: #d1b45f;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.schedule-center strong {
    margin: 4px 0;
    color: #f0d078;
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1;
}

.schedule-center span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
}

.schedule-right {
    align-items: center;
}

.schedule-status {
    display: flex;
    align-items: center;
    gap: 11px;
}

.schedule-status > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c6a14c;
    box-shadow: 0 0 0 6px rgba(198, 161, 76, 0.12);
}

.schedule-status small {
    display: block;
    color: #ad9e83;
    font-family: Arial, sans-serif;
    font-size: 7px;
}

.schedule-status strong {
    display: block;
    margin-top: 2px;
    color: #17345d;
    font-size: 11px;
}

.history-section {
    margin-top: 25px;
    border: 1px solid #ddd4c2;
    background: #fffdf8;
}

.history-heading {
    min-height: 90px;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-badge {
    padding: 7px 12px;
    border: 1px solid #d8cbaF;
    color: #8f8068;
    font-size: 9px;
}

.history-guide {
    display: grid;
    grid-template-columns:
        1.2fr
        1fr
        1fr
        1fr
        1.5fr;
    background: #17345d;
}

.history-guide > div {
    padding: 13px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.history-guide > div:last-child {
    border-right: 0;
}

.history-guide span {
    color: #d6b760;
    font-family: Arial, sans-serif;
    font-size: 7px;
}

.history-guide p {
    margin: 0;
    color: #ffffff;
    font-size: 9px;
}

#history-container {
    width: 100%;
    overflow-x: auto;
}

#history-list {
    min-width: 680px;
}

.history-card {
    display: grid;
    grid-template-columns:
        1.2fr
        1fr
        1fr
        1fr
        1.5fr;
    border-bottom: 1px solid #e2dacb;
}

.history-card:last-child {
    border-bottom: 0;
}

.history-card:hover {
    background: #fbf7ef;
}

.history-date,
.history-prize,
.history-double {
    min-height: 78px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e2dacb;
}

.history-double {
    border-right: 0;
    gap: 12px;
}

.history-date {
    color: #807561;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.history-prize {
    color: #17345d;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

.history-prize.main {
    color: #ad8733;
    font-size: 21px;
}

.double-number {
    min-width: 55px;
    text-align: center;
}

.double-number small {
    display: block;
    margin-bottom: 3px;
    color: #aa9d88;
    font-size: 7px;
}

.double-number strong {
    color: #17345d;
    font-family: Georgia, serif;
    font-size: 18px;
}

.double-divider {
    width: 1px;
    height: 30px;
    background: #ded5c4;
}

.history-loading,
.history-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #958a77;
    font-size: 11px;
}

.information-section {
    margin-top: 25px;
    padding: 30px;
    display: grid;
    grid-template-columns: 75px 1fr 160px;
    align-items: center;
    gap: 20px;
    background: #e9e0cf;
    border-left: 5px solid #17345d;
}

.information-number {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ad8c43;
    background: #f5eddd;
    color: #17345d;
    font-family: Georgia, serif;
    font-size: 27px;
}

.information-content > span {
    color: #a0813b;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2px;
}

.information-content h2 {
    margin: 4px 0;
    color: #17345d;
    font-size: 17px;
}

.information-content p {
    max-width: 700px;
    margin: 0;
    color: #8b806d;
    font-size: 9px;
    line-height: 1.8;
}

.information-time {
    padding-left: 25px;
    border-left: 1px solid #cfc2aa;
}

.information-time small {
    display: block;
    color: #a18755;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.information-time strong {
    display: block;
    color: #17345d;
    font-family: Georgia, serif;
    font-size: 31px;
}

.footer {
    background: #10243f;
    border-top: 4px solid #c09b48;
}

.footer-inner {
    width: calc(100% - 40px);
    max-width: 1280px;
    min-height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-inner strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
}

.footer-inner span {
    display: block;
    margin-top: 2px;
    color: #c8aa5c;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.footer-inner p {
    color: #8594aa;
    font-size: 9px;
}

@media (max-width: 900px) {
    .secondary-results {
        grid-template-columns: 1fr 1fr;
    }

    .secondary-item:nth-child(2) {
        border-right: 0;
    }

    .secondary-item:nth-child(1),
    .secondary-item:nth-child(2) {
        border-bottom: 1px solid #ddd4c3;
    }

    .schedule-section {
        grid-template-columns: 1fr 190px;
    }

    .schedule-right {
        grid-column: 1 / -1;
        min-height: 80px;
        border-top: 1px solid #ddd4c3;
    }
}

@media (max-width: 650px) {
    .header-inner {
        width: calc(100% - 24px);
        min-height: 80px;
    }

    .logo-symbol {
        width: 47px;
        height: 47px;
        font-size: 15px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .logo-text span,
    .header-draw {
        display: none;
    }

    .navigation {
        overflow-x: auto;
    }

    .navigation-inner {
        width: max-content;
        min-width: 100%;
    }

    .navigation a {
        flex-shrink: 0;
        padding: 0 18px;
    }

    .announcement-inner {
        min-height: 235px;
    }

    .announcement h1 {
        font-size: 28px;
    }

    .page-container {
        width: calc(100% - 20px);
        padding-top: 20px;
    }

    .result-heading {
        display: block;
        text-align: center;
    }

    .result-date {
        display: inline-block;
        margin-top: 10px;
    }

    .grand-prize {
        padding-left: 10px;
        padding-right: 10px;
    }

    .number-board {
        width: 100%;
    }

    #prize5-display {
        min-height: 85px;
        font-size: 45px;
        letter-spacing: 14px;
        text-indent: 14px;
    }

    .secondary-item {
        min-height: 125px;
        padding: 14px;
    }

    .schedule-section {
        grid-template-columns: 1fr;
    }

    .schedule-left {
        text-align: center;
    }

    .schedule-center {
        min-height: 120px;
    }

    .schedule-right {
        grid-column: auto;
    }

    .history-heading {
        display: block;
        text-align: center;
    }

    .history-badge {
        display: inline-block;
        margin-top: 10px;
    }

    .information-section {
        grid-template-columns: 60px 1fr;
        padding: 20px;
    }

    .information-number {
        width: 55px;
        height: 55px;
    }

    .information-time {
        grid-column: 1 / -1;
        padding: 15px 0 0;
        border-left: 0;
        border-top: 1px solid #cfc2aa;
        text-align: center;
    }

    .footer-inner {
        min-height: 105px;
        display: block;
        padding: 25px 0;
        text-align: center;
    }

    .footer-inner p {
        margin-top: 12px;
    }
}

@media (max-width: 430px) {
    .secondary-results {
        grid-template-columns: 1fr;
    }

    .secondary-item,
    .secondary-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #ddd4c3;
    }

    .secondary-item:last-child {
        border-bottom: 0;
    }

    #prize5-display {
        font-size: 38px;
        letter-spacing: 10px;
        text-indent: 10px;
    }
}
