body:has(.lottery-page) .column-left .content-bg > .content-header {
    display: none !important;
}

.lottery-page {
    padding: 18px 0 12px;
    color: #a8b1b6;
}

.lottery-page *,
.lottery-page *::before,
.lottery-page *::after {
    box-sizing: border-box;
}

.lottery-eyebrow {
    display: block;
    color: #b9aa63;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.lottery-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
    padding: 26px 28px;
    margin-bottom: 12px;
    background:
        radial-gradient(
            circle at 80% 0,
            rgba(199, 179, 95, .07),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(15, 20, 23, .98),
            rgba(7, 11, 14, .99)
        );
    border: 1px solid rgba(205, 188, 103, .10);
    border-left: 3px solid #cdbd72;
    border-radius: 4px;
}

.lottery-hero__main h1 {
    margin: 6px 0 6px;
    color: #eef1f2;
    font-size: 29px;
    line-height: 34px;
}

.lottery-hero__main p {
    max-width: 565px;
    margin: 0;
    color: #6d787e;
    font-size: 11px;
    line-height: 17px;
}

.lottery-overview {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.lottery-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 92px;
    padding: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(14, 19, 22, .98),
            rgba(8, 12, 14, .99)
        );
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 4px;
}

.lottery-stat--fund {
    border-color: rgba(205, 187, 100, .12);
}

.lottery-stat__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #b5a35d;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(77, 67, 36, .23),
            rgba(6, 9, 10, .70)
        );
    border: 1px solid rgba(205, 187, 100, .10);
    border-radius: 4px;
    font-size: 15px;
}

.lottery-stat__label {
    display: block;
    color: #667178;
    font-size: 8px;
    line-height: 11px;
    text-transform: uppercase;
}

.lottery-stat strong {
    display: block;
    margin-top: 2px;
    color: #d8cc7b;
    font-size: 22px;
    line-height: 27px;
}

.lottery-stat strong small {
    color: #778187;
    font-size: 9px;
}

.lottery-stat > div > small {
    display: block;
    margin-top: 2px;
    color: #4f5b61;
    font-size: 7px;
    line-height: 10px;
}

.lottery-countdown {
    margin-bottom: 10px;
    padding: 16px 18px 18px;
    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(198, 176, 84, .04),
            transparent 46%
        ),
        #090d0f;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 4px;
}

.lottery-countdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.035);
}

.lottery-countdown__head h2 {
    margin: 3px 0 0;
    color: #cfd5d7;
    font-size: 17px;
    line-height: 21px;
}

.lottery-countdown__status {
    color: #59656b;
    font-size: 8px;
    line-height: 12px;
}

.lottery-countdown__status i {
    margin-right: 4px;
    color: #8c8152;
}

.lottery-countdown__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-top: 16px;
}

.lottery-countdown__item {
    min-width: 79px;
    padding: 9px 10px;
    text-align: center;
    background: rgba(255,255,255,.012);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 3px;
}

.lottery-countdown__number {
    display: block;
    color: #d8ca76;
    font-size: 25px;
    line-height: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.lottery-countdown__unit {
    display: block;
    margin-top: 3px;
    color: #59646a;
    font-size: 7px;
    line-height: 10px;
    text-transform: uppercase;
}

.lottery-countdown__separator {
    color: #71694a;
    font-size: 20px;
    opacity: .55;
}

.lottery-countdown__finished {
    padding: 13px;
    color: #d0c16d;
    font-size: 11px;
    font-weight: 800;
}

.lottery-guide,
.lottery-current,
.lottery-history {
    margin-bottom: 10px;
    background: #090d0f;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 4px;
}

.lottery-guide {
    padding: 16px;
}

.lottery-guide__head,
.lottery-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lottery-guide__head {
    margin-bottom: 12px;
}

.lottery-guide__head h2,
.lottery-section-head h2 {
    margin: 3px 0 0;
    color: #cbd1d4;
    font-size: 16px;
    line-height: 20px;
}

.lottery-guide__head > span {
    color: #556168;
    font-size: 7px;
}

.lottery-guide__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 7px;
}

.lottery-guide-card {
    display: flex;
    gap: 10px;
    min-height: 92px;
    padding: 11px;
    background: rgba(255,255,255,.012);
    border: 1px solid rgba(255,255,255,.035);
    border-radius: 3px;
}

.lottery-guide-card__number {
    color: #8d8050;
    font-size: 10px;
    font-weight: 800;
}

.lottery-guide-card strong {
    display: block;
    color: #aeb7bb;
    font-size: 9px;
    line-height: 12px;
}

.lottery-guide-card p {
    margin: 5px 0 0;
    color: #5b666c;
    font-size: 7px;
    line-height: 12px;
}

.lottery-guide-card p b {
    color: #c4b76d;
}

.lottery-prizes {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 7px;
    margin-top: 8px;
}

.lottery-prizes__main,
.lottery-prizes__others {
    min-height: 110px;
    padding: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(185, 157, 67, .035),
            rgba(255,255,255,.008)
        );
    border: 1px solid rgba(195, 171, 83, .07);
    border-radius: 3px;
}

.lottery-prizes__place,
.lottery-prizes__others > span {
    display: block;
    color: #786f4c;
    font-size: 7px;
    line-height: 10px;
    text-transform: uppercase;
}

.lottery-prizes__place i {
    margin-right: 4px;
    color: #b99f4d;
}

.lottery-prizes__main strong,
.lottery-prizes__others strong {
    display: block;
    margin: 3px 0 2px;
    color: #d7c875;
    font-size: 25px;
    line-height: 29px;
}

.lottery-prizes p {
    margin: 0;
    color: #59656b;
    font-size: 7px;
    line-height: 11px;
}

.lottery-small-rules {
    grid-column: 1/-1;
    background: rgba(255,255,255,.008);
    border: 1px solid rgba(255,255,255,.03);
    border-radius: 3px;
}

.lottery-small-rules summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 35px;
    padding: 0 10px;
    color: #7e898e;
    font-size: 8px;
    cursor: pointer;
    list-style: none;
}

.lottery-small-rules summary::-webkit-details-marker {
    display: none;
}

.lottery-small-rules summary i {
    color: #756b46;
    transition: transform .18s ease;
}

.lottery-small-rules[open] summary i {
    transform: rotate(180deg);
}

.lottery-small-rules > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 5px;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,.03);
}

.lottery-small-rules > div span {
    padding: 7px;
    color: #7d878c;
    background: rgba(0,0,0,.14);
    border-radius: 2px;
    font-size: 7px;
    line-height: 10px;
    text-align: center;
}

.lottery-small-rules > div b {
    display: block;
    margin-bottom: 2px;
    color: #b6aa67;
}

.lottery-section-head {
    min-height: 59px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.lottery-section-head__count {
    color: #59656b;
    font-size: 7px;
}

.lottery-table-wrap {
    overflow-x: auto;
}

.lottery-current-table,
.lottery-history-table {
    width: 100%;
    border-collapse: collapse;
}

.lottery-current-table th,
.lottery-history-table th {
    padding: 9px 11px;
    color: #58636a;
    background: rgba(255,255,255,.008);
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 7px;
    line-height: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.lottery-current-table th:first-child {
    width: 70px;
    text-align: center;
}

.lottery-current-table td {
    padding: 10px 11px;
    color: #7e898e;
    border-bottom: 1px solid rgba(255,255,255,.03);
    font-size: 8px;
    line-height: 12px;
}

.lottery-current-table td:first-child {
    text-align: center;
    color: #8b8053;
    font-weight: 800;
}

.lottery-current-table tbody tr:hover {
    background: rgba(255,255,255,.012);
}

.lottery-current-name {
    color: #aab3b7 !important;
    font-weight: 700;
}

.lottery-empty-row {
    padding: 24px !important;
    color: #566168 !important;
    text-align: center !important;
}

.lottery-pagination {
    margin: 12px !important;
}

.lottery-history {
    padding-bottom: 8px;
}

.lottery-history-empty {
    margin: 10px;
    padding: 25px;
    color: #566168;
    background: rgba(255,255,255,.008);
    border: 1px solid rgba(255,255,255,.03);
    text-align: center;
    font-size: 8px;
}

.lottery-history-round {
    margin: 8px 9px 0;
    overflow: hidden;
    background: rgba(255,255,255,.008);
    border: 1px solid rgba(255,255,255,.035);
    border-radius: 3px;
}

.lottery-history-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    transition: background .15s ease;
}

.lottery-history-summary::-webkit-details-marker {
    display: none;
}

.lottery-history-summary:hover {
    background: rgba(255,255,255,.012);
}

.lottery-history-date {
    color: #b8aa66;
    font-size: 9px;
    line-height: 12px;
    font-weight: 800;
}

.lottery-history-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #58646a;
    font-size: 7px;
    line-height: 10px;
}

.lottery-history-meta b {
    color: #8d979b;
    font-weight: 700;
}

.lottery-history-dot {
    color: #373f43;
}

.lottery-history-arrow {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-right: 1px solid #71694b;
    border-bottom: 1px solid #71694b;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.lottery-history-round[open] .lottery-history-arrow {
    transform: rotate(225deg);
}

.lottery-history-content {
    border-top: 1px solid rgba(255,255,255,.035);
}

.lottery-history-table th {
    text-align: center;
}

.lottery-history-table td {
    padding: 9px 10px;
    color: #768187;
    border-bottom: 1px solid rgba(255,255,255,.025);
    font-size: 8px;
    line-height: 11px;
    text-align: center;
}

.lottery-history-table tbody tr:last-child td {
    border-bottom: 0;
}

.lottery-history-table tbody tr:hover {
    background: rgba(255,255,255,.01);
}

.lottery-history-winner {
    color: #aab2b6 !important;
    font-weight: 700;
}

.lottery-history-prize {
    color: #c8b96c !important;
    font-weight: 800;
}

.lottery-place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: #6d777c;
    background: rgba(255,255,255,.018);
    border: 1px solid rgba(255,255,255,.03);
    border-radius: 50%;
    font-size: 8px;
    font-weight: 800;
}

.lottery-place--first {
    color: #e0c35b;
    background: rgba(218, 180, 58, .055);
    border-color: rgba(218, 180, 58, .11);
    box-shadow: 0 0 10px rgba(210, 170, 45, .055);
}

.lottery-place--second {
    color: #bfc6ca;
    background: rgba(190, 198, 202, .03);
}

.lottery-place--third {
    color: #b98561;
    background: rgba(188, 126, 83, .035);
}

/* ==========================================================================
   BALANCE — EXACT COPY OF REPAIR GEOMETRY
   ========================================================================== */

.lottery-balance {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(130px, 1fr) 104px;
    grid-template-rows: auto auto;

    min-width: 270px;
    min-height: 68px;

    overflow: hidden;

    background: rgba(7, 10, 12, .78);

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 4px;
}

.lottery-balance__label {
    grid-column: 1;
    grid-row: 1;

    padding: 11px 14px 0;

    color: #667078;

    font-size: 8px;
    line-height: 10px;

    letter-spacing: .4px;
    text-transform: uppercase;
}

.lottery-balance__value {
    grid-column: 1;
    grid-row: 2;

    padding: 1px 14px 11px;

    color: #ddd083;

    font-size: 20px;
    line-height: 24px;
    font-weight: 700;

    white-space: nowrap;
}

.lottery-balance__value small {
    font-size: 12px;
}

.lottery-balance__button {
    grid-column: 2;
    grid-row: 1 / 3;

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

    color: #262719 !important;

    background:
        linear-gradient(
            180deg,
            #ddd18d,
            #c8bc77
        );

    border-left: 1px solid rgba(255, 255, 255, .07);

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

    text-decoration: none !important;
}

@media (max-width: 760px) {
    .lottery-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .lottery-overview,
    .lottery-guide__grid,
    .lottery-prizes {
        grid-template-columns: 1fr;
    }

    .lottery-small-rules {
        grid-column: auto;
    }

    .lottery-small-rules > div {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .lottery-countdown__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lottery-countdown__timer {
        gap: 5px;
    }

    .lottery-countdown__item {
        min-width: 58px;
    }

    .lottery-countdown__separator {
        display: none;
    }
}

/* ==========================================================================
   V3 — LARGER TYPOGRAPHY
   ========================================================================== */

.lottery-eyebrow {
    font-size: 12px !important;
    line-height: 16px !important;
}

.lottery-hero__main h1 {
    font-size: 32px !important;
    line-height: 38px !important;
}

.lottery-hero__main p {
    font-size: 13px !important;
    line-height: 20px !important;
}

.lottery-stat__label {
    font-size: 10px !important;
    line-height: 13px !important;
}

.lottery-stat strong {
    font-size: 26px !important;
    line-height: 31px !important;
}

.lottery-stat strong small {
    font-size: 11px !important;
}

.lottery-stat > div > small {
    font-size: 9px !important;
    line-height: 13px !important;
}

.lottery-countdown__head h2 {
    font-size: 20px !important;
    line-height: 25px !important;
}

.lottery-countdown__status {
    font-size: 10px !important;
    line-height: 14px !important;
}

.lottery-countdown__number {
    font-size: 29px !important;
    line-height: 33px !important;
}

.lottery-countdown__unit {
    font-size: 9px !important;
    line-height: 12px !important;
}

.lottery-countdown__finished {
    font-size: 13px !important;
    line-height: 18px !important;
}

.lottery-guide__head h2,
.lottery-section-head h2 {
    font-size: 19px !important;
    line-height: 24px !important;
}

.lottery-guide__head > span,
.lottery-section-head__count {
    font-size: 9px !important;
    line-height: 13px !important;
}

.lottery-guide-card__number {
    font-size: 12px !important;
    line-height: 16px !important;
}

.lottery-guide-card strong {
    font-size: 11px !important;
    line-height: 15px !important;
}

.lottery-guide-card p {
    font-size: 9px !important;
    line-height: 14px !important;
}

.lottery-prizes__place,
.lottery-prizes__others > span {
    font-size: 9px !important;
    line-height: 12px !important;
}

.lottery-prizes__main strong,
.lottery-prizes__others strong {
    font-size: 29px !important;
    line-height: 34px !important;
}

.lottery-prizes p {
    font-size: 9px !important;
    line-height: 14px !important;
}

.lottery-small-rules summary {
    font-size: 10px !important;
    line-height: 14px !important;
}

.lottery-small-rules > div span {
    font-size: 9px !important;
    line-height: 13px !important;
}

.lottery-current-table th,
.lottery-history-table th {
    font-size: 9px !important;
    line-height: 12px !important;
}

.lottery-current-table td {
    font-size: 10px !important;
    line-height: 15px !important;
}

.lottery-history-date {
    font-size: 11px !important;
    line-height: 15px !important;
}

.lottery-history-meta {
    font-size: 9px !important;
    line-height: 13px !important;
}

.lottery-history-table td {
    font-size: 10px !important;
    line-height: 14px !important;
}

.lottery-place {
    width: 30px !important;
    height: 30px !important;
    font-size: 10px !important;
}

.lottery-history-empty,
.lottery-empty-row {
    font-size: 10px !important;
    line-height: 15px !important;
}

/* ======================================================================
   V4 — targeted font increase for small helper text / tables / rules
   ====================================================================== */

.lottery-stat > div > small {
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-countdown__status {
    font-size: 12px !important;
    line-height: 18px !important;
}

.lottery-guide__head > span {
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-guide-card strong {
    font-size: 15px !important;
    line-height: 20px !important;
}

.lottery-guide-card p {
    font-size: 12px !important;
    line-height: 18px !important;
}

.lottery-prizes p {
    font-size: 12px !important;
    line-height: 18px !important;
}

.lottery-small-rules summary {
    font-size: 12px !important;
    line-height: 18px !important;
}

.lottery-small-rules > div span {
    font-size: 12px !important;
    line-height: 17px !important;
}

.lottery-small-rules > div b {
    font-size: 13px !important;
    line-height: 18px !important;
}

.lottery-section-head__count {
    font-size: 12px !important;
    line-height: 16px !important;
}

.lottery-current-table th,
.lottery-history-table th {
    font-size: 11px !important;
    line-height: 15px !important;
}

.lottery-current-table td {
    font-size: 13px !important;
    line-height: 18px !important;
}

.lottery-history-date {
    font-size: 13px !important;
    line-height: 18px !important;
}

.lottery-history-meta {
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-history-table td {
    font-size: 12px !important;
    line-height: 17px !important;
}

.lottery-history-empty,
.lottery-empty-row {
    font-size: 12px !important;
    line-height: 18px !important;
}


@media (max-width: 900px) {
    .lottery-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .lottery-balance {
        width: 100%;
    }
}

/* ========================================================================== 
   LOTTERY V6 — TEOS BLACK DIAMOND
   ========================================================================== */

body:has(.lottery-page) .page-index > .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    align-items: start !important;
    gap: 24px !important;
}

body:has(.lottery-page) .column-left {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: auto !important;
}

body:has(.lottery-page) .column-right.home-sidebar {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    width: 330px !important;
    margin: 0 !important;
}

.lottery-page {
    padding: 0;
    color: #c7cdd2;
    background: rgba(5, 10, 15, .96);
    border: 1px solid rgba(210, 180, 79, .2);
}

.lottery-hero {
    position: relative;
    min-height: 194px;
    margin: 0;
    padding: 37px 46px 40px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 93% 15%, rgba(192, 146, 37, .13), transparent 35%),
        linear-gradient(108deg, rgba(7, 13, 19, .995) 0 65%, rgba(22, 20, 14, .985));
}

.lottery-hero::before {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: 46%;
    height: 2px;
    background: linear-gradient(90deg, #e2bd55, rgba(226, 189, 85, .08));
}

.lottery-hero__main {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.lottery-eyebrow {
    color: #d5b452;
    font-size: 12px !important;
    line-height: 15px !important;
    letter-spacing: 1.35px;
}

.lottery-hero__main h1 {
    margin: 7px 0 10px;
    color: #eee9df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4vw, 52px) !important;
    line-height: 1.05 !important;
    font-weight: 400;
}

.lottery-hero__main p {
    max-width: 680px;
    color: #8f98a4;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 600;
}

.lottery-overview {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(90deg, rgba(10, 15, 20, .99), rgba(7, 12, 17, .98));
}

.lottery-stat {
    min-height: 116px;
    padding: 22px 25px;
    border: 0;
    border-right: 1px solid rgba(210, 180, 79, .12);
    border-radius: 0;
    background: transparent;
}

.lottery-stat:last-child {
    border-right: 0;
}

.lottery-stat--fund {
    border-color: rgba(210, 180, 79, .17);
}

.lottery-stat__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-color: rgba(216, 182, 79, .28);
    border-radius: 0;
    background: rgba(216, 182, 79, .06);
    transform: rotate(45deg);
}

.lottery-stat__icon i {
    transform: rotate(-45deg);
}

.lottery-stat__label {
    color: #808a93;
    font-size: 10px !important;
    line-height: 13px !important;
    letter-spacing: .45px;
}

.lottery-stat strong {
    margin-top: 4px;
    color: #e2c05a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px !important;
    line-height: 32px !important;
    font-weight: 400;
}

.lottery-stat strong small {
    color: #b69c50;
    font-family: inherit;
    font-size: 11px !important;
}

.lottery-stat > div > small {
    color: #707b84;
    font-size: 10px !important;
    line-height: 14px !important;
}

.lottery-countdown {
    margin: 0;
    padding: 27px 46px 30px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(198, 176, 84, .07), transparent 48%),
        rgba(7, 12, 17, .99);
}

.lottery-countdown__head {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 17px;
    border-bottom-color: rgba(255, 255, 255, .08);
}

.lottery-countdown__head h2 {
    margin-top: 4px;
    color: #e9e5dc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px !important;
    line-height: 29px !important;
    font-weight: 400;
}

.lottery-countdown__status {
    color: #818b94;
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-countdown__status i {
    color: #d3b352;
}

.lottery-countdown__timer {
    gap: 10px;
    padding-top: 21px;
}

.lottery-countdown__item {
    min-width: 96px;
    padding: 12px 14px;
    border-color: rgba(214, 181, 80, .18);
    border-radius: 0;
    background: rgba(255, 255, 255, .018);
}

.lottery-countdown__number {
    color: #e2c05a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px !important;
    line-height: 38px !important;
    font-weight: 400;
}

.lottery-countdown__unit {
    color: #747f88;
    font-size: 9px !important;
    line-height: 12px !important;
    letter-spacing: .45px;
}

.lottery-guide,
.lottery-current,
.lottery-history {
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0;
    background: rgba(6, 11, 16, .985);
}

.lottery-guide {
    padding: 35px 46px 40px;
}

.lottery-guide__head {
    align-items: flex-end;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.lottery-guide__head h2,
.lottery-section-head h2 {
    margin: 4px 0 0;
    color: #e9e5dc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px !important;
    line-height: 1.12 !important;
    font-weight: 400;
    text-transform: uppercase;
}

.lottery-guide__head > span {
    max-width: 300px;
    color: #7c8790;
    font-size: 11px !important;
    line-height: 16px !important;
    text-align: right;
}

.lottery-guide__grid {
    gap: 12px;
}

.lottery-guide-card {
    position: relative;
    min-height: 132px;
    gap: 14px;
    padding: 19px 17px;
    border-color: rgba(197, 169, 78, .16);
    border-radius: 0;
    background: linear-gradient(145deg, rgba(11, 17, 22, .98), rgba(7, 12, 17, .99));
}

.lottery-guide-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(#dfba4d, rgba(223, 186, 77, .08));
}

.lottery-guide-card__number {
    color: #d7b653;
    font-size: 13px !important;
    line-height: 17px !important;
}

.lottery-guide-card strong {
    color: #e0e3e5;
    font-size: 14px !important;
    line-height: 19px !important;
}

.lottery-guide-card p {
    color: #7d8790;
    font-size: 11px !important;
    line-height: 17px !important;
}

.lottery-guide-card p b {
    color: #d9ba5c;
}

.lottery-prizes {
    gap: 12px;
    margin-top: 12px;
}

.lottery-prizes__main,
.lottery-prizes__others {
    min-height: 135px;
    padding: 20px;
    border-color: rgba(204, 174, 78, .17);
    border-radius: 0;
    background: linear-gradient(145deg, rgba(43, 35, 17, .22), rgba(8, 13, 18, .98));
}

.lottery-prizes__place,
.lottery-prizes__others > span {
    color: #9b874b;
    font-size: 10px !important;
    line-height: 13px !important;
    letter-spacing: .4px;
}

.lottery-prizes__main strong,
.lottery-prizes__others strong {
    color: #e2c05a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px !important;
    line-height: 38px !important;
    font-weight: 400;
}

.lottery-prizes p {
    color: #7b858e;
    font-size: 11px !important;
    line-height: 17px !important;
}

.lottery-small-rules {
    border-color: rgba(204, 174, 78, .14);
    border-radius: 0;
    background: rgba(255, 255, 255, .012);
}

.lottery-small-rules summary {
    min-height: 45px;
    padding: 0 15px;
    color: #929ba2;
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-small-rules > div {
    gap: 7px;
    padding: 12px;
    border-top-color: rgba(204, 174, 78, .12);
}

.lottery-small-rules > div span {
    padding: 10px 8px;
    color: #8a949b;
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 0;
    background: rgba(0, 0, 0, .2);
    font-size: 10px !important;
    line-height: 15px !important;
}

.lottery-small-rules > div b {
    color: #d0b359;
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-section-head {
    height: auto !important;
    min-height: 0 !important;
    align-items: flex-end;
    padding: 29px 46px 18px;
    border-bottom-color: rgba(255, 255, 255, .09);
}

.lottery-section-head__count {
    color: #a79252;
    font-size: 11px !important;
    line-height: 15px !important;
}

.lottery-table-wrap {
    margin: 0 46px;
    border: 1px solid rgba(198, 169, 77, .14);
}

.lottery-current-table th,
.lottery-history-table th {
    padding: 12px 14px;
    color: #9c894f;
    background: rgba(205, 174, 76, .045);
    border-bottom-color: rgba(205, 174, 76, .14);
    font-size: 10px !important;
    line-height: 14px !important;
    letter-spacing: .4px;
}

.lottery-current-table td {
    padding: 13px 14px;
    color: #929ba2;
    border-bottom-color: rgba(255, 255, 255, .045);
    font-size: 12px !important;
    line-height: 17px !important;
}

.lottery-current-name {
    color: #e0e3e5 !important;
}

.lottery-pagination {
    margin: 18px 46px 28px !important;
}

.lottery-history {
    padding-bottom: 36px;
}

.lottery-history-round {
    margin: 12px 46px 0;
    border-color: rgba(198, 169, 77, .14);
    border-radius: 0;
    background: rgba(255, 255, 255, .012);
}

.lottery-history-summary {
    min-height: 66px;
    padding: 13px 16px;
}

.lottery-history-date {
    color: #d1b45a;
    font-size: 13px !important;
    line-height: 18px !important;
}

.lottery-history-meta {
    color: #7a858d;
    font-size: 10px !important;
    line-height: 15px !important;
}

.lottery-history-table td {
    padding: 11px 12px;
    color: #8d979e;
    font-size: 11px !important;
    line-height: 16px !important;
}

.lottery-history-prize {
    color: #d4b658 !important;
}

.lottery-place {
    border-radius: 0;
}

.lottery-history-empty {
    margin: 14px 46px 0;
    padding: 36px 20px;
    border-color: rgba(198, 169, 77, .14);
    background: rgba(255, 255, 255, .012);
}

@media (max-width: 1200px) {
    body:has(.lottery-page) .page-index > .content {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    body:has(.lottery-page) .column-left,
    body:has(.lottery-page) .column-right.home-sidebar {
        grid-column: 1 !important;
        width: 100% !important;
    }

    body:has(.lottery-page) .column-right.home-sidebar {
        grid-row: 2 !important;
    }
}

@media (max-width: 760px) {
    body:has(.lottery-page) .page-index > .content {
        width: calc(100% - 24px) !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .lottery-hero {
        min-height: 0;
        padding: 28px 22px 31px;
    }

    .lottery-hero::before {
        width: 52%;
    }

    .lottery-hero__main h1 {
        font-size: clamp(31px, 9.5vw, 40px) !important;
    }

    .lottery-hero__main p {
        font-size: 13px !important;
        line-height: 19px !important;
    }

    .lottery-overview {
        grid-template-columns: 1fr;
    }

    .lottery-stat {
        min-height: 96px;
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(210, 180, 79, .12);
    }

    .lottery-stat:last-child {
        border-bottom: 0;
    }

    .lottery-countdown {
        padding: 24px 20px 28px;
    }

    .lottery-countdown__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lottery-countdown__timer {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .lottery-countdown__item {
        min-width: 0;
        padding: 10px 4px;
    }

    .lottery-countdown__number {
        font-size: 26px !important;
        line-height: 30px !important;
    }

    .lottery-countdown__separator {
        display: none;
    }

    .lottery-guide {
        padding: 29px 18px 34px;
    }

    .lottery-guide__head,
    .lottery-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .lottery-guide__head h2,
    .lottery-section-head h2 {
        font-size: 26px !important;
    }

    .lottery-guide__head > span {
        text-align: left;
    }

    .lottery-guide__grid,
    .lottery-prizes {
        grid-template-columns: 1fr;
    }

    .lottery-guide-card {
        min-height: 0;
    }

    .lottery-small-rules {
        grid-column: auto;
    }

    .lottery-small-rules > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lottery-section-head {
        padding: 27px 18px 17px;
    }

    .lottery-table-wrap {
        margin: 0 18px;
    }

    .lottery-current-table {
        min-width: 560px;
    }

    .lottery-pagination {
        margin: 16px 18px 25px !important;
    }

    .lottery-history {
        padding-bottom: 28px;
    }

    .lottery-history-round,
    .lottery-history-empty {
        margin-right: 18px;
        margin-left: 18px;
    }

    .lottery-history-summary {
        align-items: flex-start;
    }

    .lottery-history-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .lottery-history-dot {
        display: none;
    }

    .lottery-history-content {
        overflow-x: auto;
    }

    .lottery-history-table {
        min-width: 620px;
    }
}

@media (max-width: 430px) {
    .lottery-hero,
    .lottery-countdown,
    .lottery-guide {
        padding-right: 14px;
        padding-left: 14px;
    }

    .lottery-stat {
        padding-right: 16px;
        padding-left: 16px;
    }

    .lottery-countdown__number {
        font-size: 23px !important;
    }

    .lottery-countdown__unit {
        font-size: 8px !important;
    }

    .lottery-small-rules > div {
        grid-template-columns: 1fr;
    }

    .lottery-section-head {
        padding-right: 14px;
        padding-left: 14px;
    }

    .lottery-table-wrap,
    .lottery-history-round,
    .lottery-history-empty {
        margin-right: 14px;
        margin-left: 14px;
    }

    .lottery-pagination {
        margin-right: 14px !important;
        margin-left: 14px !important;
    }
}

/* ========================================================================== 
   LOTTERY V7 — SIDEBAR GRID FIX
   ========================================================================== */

body.site-page.site-page--lottery .page-index > .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 330px !important;
    align-items: start !important;
    gap: 24px !important;
    width: min(1440px, calc(100% - 64px)) !important;
    padding: 36px 0 72px !important;
}

body.site-page.site-page--lottery .column-left {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

body.site-page.site-page--lottery .column-right.home-sidebar {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    align-content: start !important;
    width: 330px !important;
    margin: 0 !important;
}

@media (max-width: 1300px) and (min-width: 901px) {
    body.site-page.site-page--lottery .page-index > .content {
        grid-template-columns: minmax(0, 1fr) 290px !important;
        gap: 20px !important;
        width: calc(100% - 40px) !important;
    }

    body.site-page.site-page--lottery .column-right.home-sidebar {
        width: 290px !important;
    }

    .lottery-guide__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    body.site-page.site-page--lottery .page-index > .content {
        display: block !important;
        width: calc(100% - 28px) !important;
        padding: 24px 0 52px !important;
    }

    body.site-page.site-page--lottery .column-left,
    body.site-page.site-page--lottery .column-right.home-sidebar {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.site-page.site-page--lottery .column-right.home-sidebar {
        margin-top: 22px !important;
    }
}

@media (max-width: 520px) {
    body.site-page.site-page--lottery .page-index > .content {
        width: calc(100% - 20px) !important;
        padding-top: 16px !important;
    }
}

/* ========================================================================== 
   LOTTERY V8 — CURRENT DRAW ALIGNMENT
   ========================================================================== */

.lottery-current .lottery-section-head {
    align-items: center;
}

.lottery-current .lottery-section-head__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    color: #d3b657;
    border: 1px solid rgba(211, 182, 87, .22);
    background: rgba(211, 182, 87, .045);
    white-space: nowrap;
}

.lottery-current-table {
    table-layout: fixed;
}

.lottery-current-table th,
.lottery-current-table td {
    text-align: center;
    vertical-align: middle;
}

.lottery-current-table th:first-child,
.lottery-current-table td:first-child {
    width: 72px;
}

.lottery-current-table th:nth-child(2),
.lottery-current-table td:nth-child(2) {
    width: 48%;
}

.lottery-current-table th:nth-child(3),
.lottery-current-table td:nth-child(3) {
    width: auto;
}

@media (max-width: 760px) {
    .lottery-current .lottery-section-head {
        align-items: flex-start;
    }

    .lottery-current-table th:nth-child(2),
    .lottery-current-table td:nth-child(2) {
        width: 46%;
    }
}
