* {
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans Lao", Arial, sans-serif;
    background: #f4eeee;
    color: #291b1c;
}

a {
    color: inherit;
}

.top-special-bar {
    background: #170d0e;
    border-bottom: 1px solid #3e2023;
}

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

.special-live {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e8c99c;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.special-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff3347;
    animation: livePulse 1.3s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 71, 0.55);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(255, 51, 71, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 71, 0);
    }
}

.special-time {
    color: #8e7779;
    font-size: 8px;
}

.special-time strong {
    margin: 0 5px;
    color: #f1d09e;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

.site-header {
    background: #fffafa;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.brand-v {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #a81727;
    color: #f5d8aa;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    transform: rotate(45deg);
}

.brand-v::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(245, 216, 170, 0.45);
}

.brand-v {
    line-height: 1;
}

.brand-v::after {
    content: "";
}

.brand-v {
    text-indent: 0;
}

.brand-v {
    color: transparent;
}

.brand-v::after {
    content: "V";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5d8aa;
    transform: rotate(-45deg);
}

.brand-text strong {
    display: block;
    color: #841521;
    font-size: 21px;
    font-weight: 800;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    padding: 11px 16px;
    color: #776568;
    text-decoration: none;
    font-size: 11px;
    transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: #941c28;
    color: #ffffff;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 120%,
            #b62332 0%,
            transparent 42%
        ),
        linear-gradient(
            120deg,
            #36090e,
            #821520 52%,
            #35090e
        );
}

.hero-lines {
    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;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(238, 197, 135, 0.16);
}

.glow-one {
    width: 370px;
    height: 370px;
    top: -240px;
    left: -80px;
}

.glow-two {
    width: 460px;
    height: 460px;
    right: -210px;
    bottom: -330px;
}

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

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #edc58d;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero-badge span {
    width: 35px;
    height: 1px;
    background: #bd8954;
}

.hero h1 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 47px;
    font-weight: 500;
}

.hero h1 span {
    color: #f1c988;
    font-weight: 800;
}

.hero p {
    margin: 4px 0 20px;
    color: rgba(255, 255, 255, 0.53);
    font-size: 11px;
}

.hero-time {
    min-width: 195px;
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(239, 199, 139, 0.27);
    background: rgba(22, 4, 7, 0.22);
}

.hero-time-left {
    padding: 9px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4051;
    animation: livePulse 1.3s infinite;
}

.hero-time-left small {
    display: block;
    color: #a98483;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.hero-time-left strong {
    display: block;
    color: #f4d09b;
    font-family: Georgia, serif;
    font-size: 20px;
}

.hero-time-right {
    padding: 0 13px;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(239, 199, 139, 0.2);
    color: #bba0a0;
    font-size: 9px;
}

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

.result-section {
    border: 1px solid #e1d3d4;
    background: #fffafa;
}

.section-heading,
.history-header {
    min-height: 86px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading {
    border-bottom: 1px solid #e6d9da;
}

.heading-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.heading-number {
    color: #a51e2c;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 700;
}

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

.heading-left h2 {
    margin: 3px 0 0;
    color: #3a2225;
    font-size: 18px;
}

.current-date {
    padding: 8px 13px;
    border: 1px solid #dfd0d1;
    background: #fff7f7;
    color: #8f7779;
    font-size: 9px;
}

.special-ticket {
    min-height: 280px;
    display: grid;
    grid-template-columns: 35% 30px 1fr;
    background: #ffffff;
}

.ticket-left {
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #831522,
            #b32331
        );
}

.ticket-left::after {
    content: "V";
    position: absolute;
    right: -15px;
    bottom: -55px;
    color: rgba(255, 255, 255, 0.05);
    font-family: Georgia, serif;
    font-size: 190px;
    line-height: 1;
}

.ticket-label {
    width: fit-content;
    padding: 4px 9px;
    border: 1px solid rgba(245, 207, 154, 0.35);
    color: #f0ca91;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.ticket-title {
    margin-top: 12px;
    color: #ffffff;
    font-size: 22px;
}

.ticket-title strong {
    color: #f2cb90;
    font-size: 31px;
}

.ticket-left p {
    margin: 4px 0 15px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
}

.ticket-time {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #e4c8b2;
    font-size: 9px;
}

.ticket-time span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f3c77e;
}

.ticket-cut {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background: #fffafa;
}

.ticket-cut::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px dashed #d6b9bb;
}

.ticket-cut span {
    position: relative;
    z-index: 2;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #f4eeee;
}

.ticket-right {
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ticket-result-label {
    margin-bottom: 11px;
    color: #b08a74;
    font-family: Arial, sans-serif;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 3px;
}

.main-number-frame {
    width: 520px;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #b52331;
    background: #fff4f4;
}

#prize5-display {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5c8ca;
    background:
        linear-gradient(
            to right,
            transparent 19.8%,
            #ead9da 19.8%,
            #ead9da 20%,
            transparent 20%,
            transparent 39.8%,
            #ead9da 39.8%,
            #ead9da 40%,
            transparent 40%,
            transparent 59.8%,
            #ead9da 59.8%,
            #ead9da 60%,
            transparent 60%,
            transparent 79.8%,
            #ead9da 79.8%,
            #ead9da 80%,
            transparent 80%
        ),
        #ffffff;
    color: #7f1722;
    font-family: "Courier New", monospace;
    font-size: 65px;
    font-weight: 700;
    letter-spacing: 22px;
    text-indent: 22px;
}

.ticket-status {
    margin-top: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #b19698;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 1px;
}

.ticket-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b61f2e;
}

.reward-deck {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    background: #f6eeee;
    border-top: 1px solid #e1d4d5;
}

.reward-card {
    position: relative;
    min-height: 155px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #e0ccce;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(83, 26, 32, 0.05);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.reward-card::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: #a71d2b;
    opacity: 0.06;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 25px rgba(83, 26, 32, 0.1);
}

.reward-two {
    transform: translateY(8px);
}

.reward-two:hover {
    transform: translateY(3px);
}

.reward-three {
    transform: translateY(-5px);
}

.reward-three:hover {
    transform: translateY(-10px);
}

.reward-four {
    transform: translateY(5px);
}

.reward-four:hover {
    transform: translateY(0);
}

.reward-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reward-card-top span {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #9c1b28;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 8px;
}

.reward-card-top small {
    color: #b89a9c;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.reward-card p {
    margin: 15px 0 1px;
    color: #8f7476;
    font-size: 9px;
}

.reward-card > strong {
    color: #851824;
    font-family: Georgia, serif;
    font-size: 30px;
}

.draw-info {
    margin-top: 25px;
    min-height: 140px;
    display: grid;
    grid-template-columns: 1fr 230px 1fr;
    background: #211315;
    border-left: 5px solid #a91d2b;
}

.draw-info-title,
.draw-info-status {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.draw-info-title small {
    color: #a8786e;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.draw-info-title h2 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: 17px;
}

.draw-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #971a27;
}

.draw-clock span {
    color: #e1b9a8;
    font-size: 8px;
}

.draw-clock strong {
    margin: 2px 0;
    color: #f2ce99;
    font-family: Georgia, serif;
    font-size: 43px;
    line-height: 1;
}

.draw-info-status {
    align-items: center;
}

.status-circle {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #6c4549;
    border-radius: 50%;
}

.status-circle span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e23747;
    animation: livePulse 1.3s infinite;
}

.draw-info-status small {
    display: block;
    color: #82686a;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.draw-info-status strong {
    display: block;
    margin-top: 2px;
    color: #d9c3c4;
    text-align: center;
    font-size: 9px;
}

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

.history-header {
    border-bottom: 1px solid #e3d4d5;
}

.archive-mark {
    padding: 7px 13px;
    border: 1px solid #d8bec0;
    color: #a17e80;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.history-column-title {
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #7e1722;
}

.history-column-title span {
    color: #ffffff;
    font-size: 10px;
}

.history-column-title small {
    color: #d7a6aa;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

#history-list {
    padding: 20px;
}

.history-ticket {
    position: relative;
    min-height: 100px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns:
        170px
        1.25fr
        repeat(3, 1fr)
        1.4fr;
    border: 1px solid #e1d2d3;
    background: #ffffff;
    overflow: hidden;
    transition: 0.2s;
}

.history-ticket:last-child {
    margin-bottom: 0;
}

.history-ticket:hover {
    border-color: #bd747b;
    transform: translateX(4px);
}

.history-ticket::before {
    content: "";
    width: 4px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #a91e2c;
}

.history-date-box {
    padding: 16px 16px 16px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px dashed #d9c5c7;
    background: #fff7f7;
}

.history-date-box small {
    color: #b39395;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 1px;
}

.history-date-box strong {
    margin-top: 3px;
    color: #5a3639;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.history-number-box {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee2e3;
}

.history-number-box small {
    margin-bottom: 5px;
    color: #b4999b;
    font-size: 7px;
}

.history-number-box strong {
    color: #7e1722;
    font-family: Georgia, serif;
    font-size: 20px;
}

.history-number-box.main strong {
    color: #a71d2b;
    font-size: 25px;
}

.history-double {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

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

.history-double-item small {
    display: block;
    margin-bottom: 4px;
    color: #ad9294;
    font-size: 7px;
}

.history-double-item strong {
    color: #7d1722;
    font-family: Georgia, serif;
    font-size: 20px;
}

.history-divider {
    width: 1px;
    height: 35px;
    background: #e3d3d4;
}

.history-empty {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9b7f81;
    font-size: 10px;
}

.notice {
    margin-top: 25px;
    padding: 28px;
    display: grid;
    grid-template-columns: 70px 1fr 150px;
    align-items: center;
    gap: 20px;
    border: 1px solid #e1d1d2;
    background: #f2e3e4;
}

.notice-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #921a26;
    color: #efcc98;
    font-family: Georgia, serif;
    font-size: 28px;
}

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

.notice-content h2 {
    margin: 3px 0;
    color: #572d31;
    font-size: 16px;
}

.notice-content p {
    max-width: 750px;
    margin: 0;
    color: #947a7c;
    font-size: 9px;
    line-height: 1.8;
}

.notice-special {
    padding-left: 25px;
    border-left: 1px solid #d8c2c4;
}

.notice-special small {
    display: block;
    color: #ad7d80;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
}

.notice-special strong {
    display: block;
    color: #8f1925;
    font-family: Georgia, serif;
    font-size: 32px;
}

.footer {
    background: #1c1012;
    border-top: 4px solid #9d1b28;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-brand > span {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #823039;
    color: #e2b67e;
    font-family: Georgia, serif;
}

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

.footer-brand small {
    display: block;
    color: #75585b;
    font-family: Arial, sans-serif;
    font-size: 6px;
    letter-spacing: 2px;
}

.footer-time {
    color: #775c5f;
    font-size: 8px;
}

@media (max-width: 950px) {
    .special-ticket {
        grid-template-columns: 32% 25px 1fr;
    }

    .reward-deck {
        grid-template-columns: 1fr 1fr;
    }

    .reward-two,
    .reward-three,
    .reward-four {
        transform: none;
    }

    .history-ticket {
        grid-template-columns:
            140px
            repeat(4, 1fr)
            1.5fr;
    }
}

@media (max-width: 700px) {
    .special-bar-inner {
        width: calc(100% - 20px);
    }

    .special-time {
        display: none;
    }

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

    .brand-v {
        width: 44px;
        height: 44px;
    }

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

    .brand-text span {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .hero-inner {
        min-height: 260px;
    }

    .hero h1 {
        font-size: 34px;
    }

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

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

    .heading-left {
        justify-content: center;
    }

    .current-date,
    .archive-mark {
        display: inline-block;
        margin-top: 10px;
    }

    .special-ticket {
        display: block;
    }

    .ticket-left {
        min-height: 180px;
        padding: 25px;
        text-align: center;
        align-items: center;
    }

    .ticket-cut {
        height: 25px;
        flex-direction: row;
    }

    .ticket-cut::before {
        top: 50%;
        left: 0;
        right: 0;
        bottom: auto;
        border-left: 0;
        border-top: 1px dashed #d6b9bb;
    }

    .ticket-right {
        padding: 25px 15px;
    }

    #prize5-display {
        min-height: 90px;
        font-size: 46px;
        letter-spacing: 13px;
        text-indent: 13px;
    }

    .reward-deck {
        padding: 15px;
        gap: 10px;
    }

    .draw-info {
        grid-template-columns: 1fr;
    }

    .draw-info-title {
        text-align: center;
    }

    .draw-clock {
        min-height: 120px;
    }

    .history-section {
        overflow: hidden;
    }

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

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

    .history-column-title {
        min-width: 760px;
    }

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

    .notice-icon {
        width: 55px;
        height: 55px;
    }

    .notice-special {
        grid-column: 1 / -1;
        padding: 15px 0 0;
        border-left: 0;
        border-top: 1px solid #d8c2c4;
        text-align: center;
    }

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

    .footer-brand {
        justify-content: center;
    }

    .footer-time {
        margin-top: 12px;
    }
}

@media (max-width: 450px) {
    .reward-deck {
        grid-template-columns: 1fr;
    }

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