:root {
    --blue: #186fda;
    --blue-light: #208ee9;
    --cyan: #39ffe4;
    --line: #dedede;
    --soft: #f1f1f1;
    --ink: #111;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    color: var(--ink);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: 100%;
    max-width: 640px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

.hero-banner {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #eaf5ff;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.hero-fallback {
    height: 140px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 12% 35%, rgba(255, 255, 255, .65) 0 7px, transparent 8px),
        radial-gradient(circle at 86% 70%, rgba(255, 238, 0, .8) 0 12px, transparent 13px),
        linear-gradient(135deg, #00bd71 0 12%, #078ff0 12% 62%, #58ccff);
}

.hero-fallback span {
    font-size: 15px;
    letter-spacing: 4px;
}

.hero-fallback strong {
    margin: 8px 0 4px;
    color: #fff600;
    font-size: clamp(26px, 7vw, 42px);
    line-height: 1;
    text-shadow: 2px 2px 0 #e52814;
}

.hero-fallback small {
    padding: 3px 12px;
    color: #0b3a8a;
    background: #fff;
    font-weight: 700;
}

.notice-strip {
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background:
        repeating-linear-gradient(90deg, #050505 0 5px, #171717 5px 8px);
    font-size: 12px;
}

.notice-icon {
    z-index: 1;
    width: 34px;
    flex: 0 0 34px;
    text-align: center;
}

.notice-track {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.notice-track span {
    display: inline-block;
    padding-left: 100%;
    font-size: 12.5px;
    animation: notice-marquee 18s linear infinite;
}

@keyframes notice-marquee {
    to { transform: translateX(-100%); }
}

.draw-card {
    margin: 0;
    background: #fff;
}

.lottery-tabs {
    padding: 10px;
    display: flex;
    gap: 6px;
}

.lottery-tabs > * {
    min-width: 0;
    padding: 4px 5px;
    flex: 1;
    color: #555;
    text-align: center;
    background: #eee;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lottery-tabs .active {
    color: #fff;
    background: #20aee4;
}

.draw-summary {
    padding: 0 10px 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 13px;
}

.draw-summary > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#drawGameName {
    font-weight: 400;
}

.draw-summary .current-issue {
    color: #e60012;
    font-size: inherit;
    font-weight: 400;
}

.draw-summary .countdown {
    min-width: 86px;
    justify-self: center;
    text-align: center;
}

.draw-summary .countdown b {
    color: #333;
    font-weight: 400;
}

.draw-summary a {
    justify-self: end;
    color: #f05b66;
    font-size: inherit;
}

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

.balls i {
    color: #111;
    font-size: 25px;
    font-style: normal;
    font-weight: 900;
}

.ball-wrap {
    min-width: 0;
    max-width: 79.5px;
    height: 60px;
    padding: 7px 3px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #2389e5;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
}

.balls .ball-wrap.red { background: #e60012; }
.balls .ball-wrap.blue { background: #2389e9; }
.balls .ball-wrap.green { background: #22ac38; }
.balls .ball-wrap.gray { background: #b7b7b7; }

.ball {
    width: 38px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2389e5;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.balls .ball {
    width: 100%;
    height: auto;
    flex: 1;
    color: #fff;
    background: transparent;
    border-radius: 0;
    font-size: 23.5px;
}

.ball.red {
    color: #fff;
    background: #e90019;
}

.ball.blue {
    color: #fff;
    background: #2389e5;
}

.ball.green {
    color: #fff;
    background: #18a83d;
}

.ball-wrap small {
    width: 72%;
    max-width: 35px;
    min-height: 15px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    background: #fff;
    border: 0;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.1;
}

.draw-empty,
.empty-cell,
.empty-state {
    width: 100%;
    padding: 22px !important;
    color: #999;
    text-align: center;
}

.draw-meta {
    padding: 6px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #222;
    font-size: 13px;
}

#nextDrawIssue {
    color: #e60012;
    font-size: inherit;
    font-weight: 400;
}

.draw-meta a,
.draw-meta button {
    padding: 2px 6px;
    color: #fff;
    background: #1687e5;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.gold-card {
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
    background: #050505;
    border: 0;
}

.gold-title {
    padding: 7px 4px;
    color: #ff152c;
    background: #050505;
    font-size: clamp(15px, 3.5vw, 22px);
    font-weight: 900;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #5cff00;
}

.gold-value {
    display: none;
}

.brand-strip {
    min-height: 68px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    background: #fff;
}

.brand-strip strong {
    max-width: 48%;
    overflow: hidden;
    color: #f20c0c;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(35px, 9vw, 58px);
    font-style: italic;
    line-height: 1;
    text-shadow:
        -2px -2px 0 #fff600,
        2px 2px 0 #072be6;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.brand-copy span {
    color: #111;
    font-size: clamp(12px, 3.1vw, 18px);
    font-weight: 900;
    white-space: nowrap;
}

.brand-copy span b {
    color: #f32323;
}

.brand-copy p {
    display: flex;
    gap: 4px;
}

.brand-copy em,
.brand-copy i {
    padding: 3px 5px;
    color: #fff;
    background: #19a954;
    border-radius: 3px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.brand-copy i {
    background: #ef2870;
}

.quick-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 6px 6px 12px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    background: #fff;
}

.own-navigation {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
}

.own-navigation .quick-nav {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.own-navigation .quick-nav[hidden] {
    display: none;
}

.navigation-toggle {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px;
    border: 0;
    border-top: 1px solid #d7e4f5;
    color: #176ddd;
    background: #edf5ff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.navigation-toggle:hover {
    background: #dcecff;
}

.quick-nav a {
    min-width: 0;
    height: 24px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: var(--blue);
    border-radius: 30px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.quick-nav button {
    min-width: 0;
    height: 24px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.quick-nav button:active {
    background: #075fbe;
}

[data-lottery-nav][hidden],
[data-lottery-content][hidden] {
    display: none !important;
}

.picture-library {
    padding: 0 12px 12px;
}

.picture-material {
    margin-top: 12px;
    overflow: hidden;
    scroll-margin-top: var(--own-navigation-offset, 160px);
    background: #fff;
    border: 1px solid #6dbf8a;
}

.picture-material h2 {
    margin: 0;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(90deg, #1277dc, #16a5cf);
    font-size: 17px;
    line-height: 1.25;
    text-align: center;
}

.picture-material img {
    display: block;
    width: 100%;
    height: auto;
}

.ad-stack,
.ad-banner-section {
    margin: 0;
}

.ad-banner {
    width: 100%;
    display: block;
    overflow: hidden;
    background: #fff;
}

.ad-stack .ad-banner + .ad-banner {
    margin-top: 2px;
}

.ad-banner img {
    width: 100%;
    height: auto;
    min-height: 50px;
    display: block;
    object-fit: cover;
}

.panel {
    margin: 8px 6px 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 0;
}

.panel h2,
.draw-history-panel h1 {
    min-height: 40px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #3948ff 0%, #397cff 45%, #39ffe4 100%);
    border: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.expanded-panel {
    box-shadow: none;
}

.expanded-type {
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    scroll-margin-top: var(--own-navigation-offset, 160px);
}

.prediction-section {
    scroll-margin-top: var(--own-navigation-offset, 155px);
}

.prediction-section .prediction-section-title {
    margin: 0;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    background: linear-gradient(90deg, var(--section-start), var(--section-end));
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    font-size: clamp(14px, 2.6vw, 23px);
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    overflow-wrap: anywhere;
    border: 0;
}

.prediction-section-address {
    color: #ed174c;
}

.prediction-section[data-section-color="0"] { --section-start: #58ff18; --section-end: #f6ff16; }
.prediction-section[data-section-color="1"] { --section-start: #24e8ff; --section-end: #a5ffdf; }
.prediction-section[data-section-color="2"] { --section-start: #ff9dce; --section-end: #ffe0f0; }
.prediction-section[data-section-color="3"] { --section-start: #ffc12b; --section-end: #fff29a; }
.prediction-section[data-section-color="4"] { --section-start: #a6ff51; --section-end: #d9ffac; }
.prediction-section[data-section-color="5"] { --section-start: #67b8ff; --section-end: #c7edff; }
.prediction-section[data-section-color="6"] { --section-start: #c19aff; --section-end: #ecdcff; }
.prediction-section[data-section-color="7"] { --section-start: #ff9277; --section-end: #ffd9a5; }
.prediction-section[data-section-color="8"] { --section-start: #49e4bc; --section-end: #c4ffe0; }
.prediction-section[data-section-color="9"] { --section-start: #ffdb47; --section-end: #fff5bf; }
.prediction-section[data-section-color="10"] { --section-start: #ff729f; --section-end: #ffc4d5; }
.prediction-section[data-section-color="11"] { --section-start: #91a3ff; --section-end: #d6dcff; }
.prediction-section[data-section-color="12"] { --section-start: #df8aef; --section-end: #ffd4f6; }
.prediction-section[data-section-color="13"] { --section-start: #4cd6f0; --section-end: #d4faff; }
.prediction-section[data-section-color="14"] { --section-start: #e6e85b; --section-end: #ffffcd; }
.prediction-section[data-section-color="15"] { --section-start: #ffae62; --section-end: #ffe7c7; }
.prediction-section[data-section-color="16"] { --section-start: #80e6f5; --section-end: #e0fbff; }
.prediction-section[data-section-color="17"] { --section-start: #b4df70; --section-end: #f0ffcf; }
.prediction-section[data-section-color="18"] { --section-start: #ed9cbb; --section-end: #ffe4ef; }
.prediction-section[data-section-color="19"] { --section-start: #b7a0ed; --section-end: #efe6ff; }

.combo-material {
    background: #080808;
    color: #ff3636;
    scroll-margin-top: var(--own-navigation-offset, 155px);
}

.combo-material-title {
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #faff31;
    background: #7300bb;
    font-size: 20px;
    font-weight: 900;
}

.combo-material-title a {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

.combo-material-period {
    padding: 7px 10px;
    color: #fff;
    background: #240039;
    font-size: clamp(16px, 2.7vw, 22px);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.combo-material-period span {
    color: #e9ed42;
}

.combo-material-scroll {
    min-width: 0;
    width: 100%;
}

.combo-material-lines {
    min-width: 0;
    width: 100%;
}

.combo-material-row {
    display: grid;
    grid-template-columns: minmax(0, 22fr) minmax(0, 30fr) minmax(0, 48fr);
    border-bottom: 1px solid #777;
}

.combo-material-row > div {
    min-width: 0;
    padding: 10px 5px;
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 700;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}

.combo-material-row > div + div {
    border-left: 1px solid #777;
}

.combo-material-row .combo-material-label {
    color: #faff31;
    text-align: center;
}

.combo-material-row b {
    color: #65ff24;
}

.combo-material-row strong {
    color: #ff3636;
}

.combo-material-row mark {
    padding: 0 1px;
    color: #f00;
    background: #fff200;
    font: inherit;
}

.combo-material-empty {
    padding: 20px 10px;
    color: #65ff24;
    text-align: center;
}

.material-type {
    scroll-margin-top: var(--own-navigation-offset, 155px);
    border-bottom: 8px solid #edf2f8;
}

.material-type-title {
    margin: 0;
    padding: 9px 12px;
    color: #176ddd;
    background: #edf5ff;
    font-size: 17px;
    text-align: center;
}

.detail-table tr[id],
.combo-material-period[id] {
    scroll-margin-top: 16px;
}

.material-link-row {
    min-height: 48px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #f00;
    background: #fff;
    border-bottom: 3px double #b9b1b1;
    font-size: clamp(14px, 2.5vw, 21px);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    scroll-margin-top: var(--own-navigation-offset, 155px);
}

.material-link-row:hover,
.material-link-row:focus-visible {
    color: #d60000;
    background: #fff7e6;
}

.material-link-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.material-new {
    flex-shrink: 0;
    color: #12bd00;
    font-size: 10px;
    font-weight: 900;
    font-style: italic;
    text-shadow: 1px 1px 0 #fff000;
}

.expanded-type-title {
    position: relative;
    min-height: 48px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #3948ff 0%, #397cff 45%, #39ffe4 100%);
    border: 0;
}

.expanded-type-title strong {
    font-size: 25px;
    text-shadow: 0 0 10px #f00;
}

.expanded-detail {
    position: absolute;
    right: 8px;
    padding: 3px 9px;
    color: #fff;
    background: #186fda;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 12px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
}

.expanded-round {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
    border: 0;
}

.expanded-prediction {
    min-width: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: 25% 75%;
    background: #fff;
}

.expanded-prediction b,
.expanded-prediction span,
.expanded-prediction strong {
    padding: 7px 8px;
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.expanded-prediction b {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #eee;
    font-weight: 700;
}

.expanded-prediction span {
    display: none;
}

.expanded-prediction strong {
    min-width: 0;
    display: block;
    align-content: center;
    color: #2389e9;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    word-break: normal;
    overflow-wrap: break-word;
}

.expanded-prediction mark {
    padding: 0 1px;
    display: inline;
    color: #f00;
    background: #fff200;
    line-height: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.expanded-result {
    min-height: 54px;
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #eee;
    border: 1px solid var(--line);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.expanded-result span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.expanded-result em {
    padding: 1px 4px;
    font-style: normal;
    font-weight: 800;
}

.expanded-result a {
    padding: 3px 7px;
    color: #fff;
    background: #186fda;
    border-radius: 10px;
    font-weight: 700;
}

.expanded-result .prediction-correct,
.detail-table td.hit {
    color: #f00;
}

.expanded-result.expanded-hit,
.expanded-result.expanded-wrong,
.expanded-result.expanded-wait {
    color: #111;
    background: #eee;
}

.expanded-empty {
    padding: 20px;
    color: #999;
    text-align: center;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    padding: 7px 5px;
    border: 1px solid var(--line);
    text-align: center;
    word-break: break-all;
}

th {
    color: #333;
    background: #eee;
}

.prediction-panel .period {
    width: 20%;
    color: #111;
    background: #eee;
    font-weight: 700;
}

.prediction-panel .type {
    width: 23%;
    color: #2389e9;
    background: #fff;
    font-weight: 700;
}

.prediction-panel .value {
    color: #2389e9;
    background: #fff;
    font-weight: 700;
}

.prediction-panel .more {
    width: 15%;
    background: #eee;
}

.prediction-panel .more a {
    padding: 2px 5px;
    color: #fff;
    background: #186fda;
    border-radius: 9px;
    font-size: 11px;
}

.panel-footer {
    display: none;
}

.zodiac-panel {
    border: 2px solid #f3a300;
}

.zodiac-panel h2 {
    min-height: 38px;
    color: #000;
    background: linear-gradient(180deg, #e99c00 0%, #fff8cf 72%, #fff 100%);
    border-bottom: 1px solid #b8b8b8;
    font-size: 24px;
}

.attribute-subtitle {
    min-height: 34px;
    padding: 7px 8px;
    color: #222;
    background: #f1f1f1;
    border-left: 2px solid #ff7681;
    border-bottom: 1px solid #d9cdb1;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.zodiac-grid {
    padding: 12px 8px 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 6px;
}

.zodiac-card {
    min-width: 0;
    text-align: center;
}

.zodiac-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #222;
    font-size: 15px;
    white-space: nowrap;
}

.zodiac-name span {
    font-size: 27px;
    line-height: 1;
}

.zodiac-name small {
    font-size: 12px;
}

.attribute-heading {
    margin: 0;
    min-height: 31px;
    padding: 6px 8px;
    color: #333;
    background: #eee;
    border-left: 2px solid #ff7681;
    border-top: 1px solid #ded6c6;
    border-bottom: 1px solid #ded6c6;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.attribute-table {
    background: #fff;
}

.attribute-row {
    min-height: 35px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    border-bottom: 1px solid #decfab;
}

.attribute-row > b {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #357cf1;
    border-right: 1px solid #decfab;
    font-size: 14px;
}

.element-table .attribute-row:nth-child(1) > b { color: #d69a00; }
.element-table .attribute-row:nth-child(2) > b { color: #24a648; }
.element-table .attribute-row:nth-child(3) > b { color: #41a8e9; }
.element-table .attribute-row:nth-child(4) > b { color: #ff923f; }
.element-table .attribute-row:nth-child(5) > b { color: #b18035; }

.attribute-numbers {
    min-width: 0;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.zodiac-card .attribute-numbers {
    padding: 5px 0 0;
    justify-content: center;
}

.attribute-numbers i {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.attribute-numbers i.red { background: #f3151c; }
.attribute-numbers i.blue { background: #3975ef; }
.attribute-numbers i.green { background: #08a744; }

.attribute-row > b.red-text { color: #ff3838; }
.attribute-row > b.blue-text { color: #4478f0; }
.attribute-row > b.green-text { color: #17ae52; }

.parity-table .attribute-row > b {
    color: #4778ef;
}

.attribute-lines {
    padding: 0;
}

.attribute-lines p {
    min-height: 31px;
    margin: 0;
    padding: 6px 10px;
    border-bottom: 1px solid #decfab;
    text-align: center;
}

.attribute-lines b {
    color: #4778ef;
}

footer {
    padding: 18px 8px 26px;
    color: #666;
    background: #fff;
    font-size: 12px;
    line-height: 1.8;
    text-align: left;
}

.promo-mask {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .42);
}

.promo-mask.show {
    display: flex;
}

.promo-card {
    position: relative;
    width: min(350px, 100%);
    overflow: hidden;
    background: #fff;
    border: 2px solid #39dce9;
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0, 44, 130, .32);
}

.promo-close {
    position: absolute;
    right: 8px;
    top: 7px;
    z-index: 2;
    width: 28px;
    height: 28px;
    color: #fff;
    background: rgba(0, 0, 0, .2);
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.promo-top {
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background: linear-gradient(180deg, #3948ff, #39dfe9);
}

.promo-top strong {
    margin: 6px 0;
    font-size: 32px;
}

.promo-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.promo-body > strong {
    margin: 7px 0 12px;
    color: #186fda;
    font-size: 26px;
}

.promo-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.promo-stats span {
    padding: 8px 2px;
    color: #186fda;
    background: #eff8ff;
    border: 1px solid #83c6f6;
    border-radius: 4px;
    font-weight: 700;
}

.promo-body > button {
    width: 100%;
    margin: 12px 0 8px;
    padding: 11px;
    color: #fff;
    background: #186fda;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.site-header {
    min-height: 68px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.brand strong {
    display: block;
    color: #f20c0c;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 34px;
    font-style: italic;
    line-height: 1;
    text-shadow: 1px 1px 0 #fff600;
}

.brand span,
.domain {
    color: #186fda;
    font-size: 12px;
}

.rainbow-line {
    display: none;
}

.draw-history-panel {
    margin-top: 8px;
}

.history-summary {
    padding: 8px;
    color: #666;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid var(--line);
}

.history-record {
    display: grid;
    grid-template-columns: 126px 1fr;
    border: 0;
}

.history-record-head {
    min-height: 72px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #eee;
    border: 1px solid var(--line);
}

.history-record-head time {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
}

.history-numbers {
    min-height: 72px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--line);
}

.history-number {
    min-width: 0;
    flex: 1;
    text-align: center;
}

.history-number .ball {
    width: 38px;
    height: 30px;
    font-size: 16px;
}

.history-number small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
}

.history-plus {
    font-size: 18px;
    font-weight: 900;
}

.bottom-actions {
    margin: 10px 6px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bottom-actions a {
    padding: 9px;
    color: #fff;
    text-align: center;
    background: #186fda;
    border-radius: 16px;
    font-weight: 700;
}

.detail-hero {
    position: relative;
    margin: 8px 6px 0;
    padding: 17px 12px;
    color: #fff;
    text-align: center;
    background: linear-gradient(180deg, #3948ff, #39dfe9);
}

.detail-hero h1 {
    margin: 5px 0;
    font-size: 28px;
}

.detail-home-button {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(0, 55, 170, .72);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

.detail-table th:nth-child(1) { width: 18%; }
.detail-table th:nth-child(2) { width: 42%; }
.detail-table th:nth-child(3) { width: 28%; }
.detail-table th:nth-child(4) { width: 12%; }

.detail-table .period {
    background: #eee;
}

.detail-table .value {
    color: #2389e9;
    font-weight: 700;
}

.detail-table .value mark {
    padding: 0 1px;
    color: #f00;
    background: #fff200;
    font-weight: 800;
}

.quick-view-heading {
    min-height: 32px;
    padding: 7px 10px;
    color: #333;
    background: #f1f1f1;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
}

.hit {
    color: #e40016;
    background: #fff100;
    font-weight: 800;
}

.pending {
    color: #186fda;
    font-weight: 700;
}

.wrong {
    color: #e40016;
    font-weight: 800;
}

.rank-list {
    list-style: none;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.rank-list li {
    min-height: 38px;
    border: 1px solid var(--line);
}

.rank-list a {
    min-height: 38px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-list b {
    color: #2389e9;
}

.rank-list em {
    margin-left: auto;
    padding: 2px 7px;
    color: #fff;
    background: #186fda;
    border-radius: 10px;
    font-size: 11px;
    font-style: normal;
}

@media (max-width: 560px) {
    .hero-banner,
    .hero-fallback {
        height: 140px;
    }

    .gold-title {
        font-size: 14px;
    }

    .brand-strip {
        gap: 6px;
    }

    .brand-strip strong {
        font-size: 32px;
    }

    .brand-copy span {
        font-size: 10px;
    }

    .brand-copy em,
    .brand-copy i {
        padding: 2px 4px;
        font-size: 9px;
    }

    .quick-nav {
        gap: 4px;
    }

    .quick-nav a,
    .quick-nav button {
        font-size: 10px;
    }

    .draw-meta {
        font-size: 13px;
    }

    #nextDrawIssue {
        font-size: inherit;
    }

    .expanded-round {
        grid-template-columns: minmax(0, 4fr) minmax(0, 1fr);
    }

    .expanded-prediction {
        grid-template-columns: 25% 75%;
    }

    .expanded-prediction b,
    .expanded-prediction strong {
        padding: 6px 4px;
        font-size: 15px;
    }

    .expanded-result {
        padding: 4px 2px;
        font-size: 14px;
    }

    th,
    td {
        padding: 6px 3px;
        font-size: 11px;
    }

    .prediction-panel .period { width: 20%; }
    .prediction-panel .type { width: 25%; }
    .prediction-panel .more { width: 16%; }

    .history-record {
        grid-template-columns: 88px 1fr;
    }

    .history-number .ball {
        width: 31px;
        height: 27px;
        font-size: 13px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }
}

.lottery-history-body {
    min-height: 100vh;
    background: #fff;
}

.lottery-history-shell {
    width: 100%;
    max-width: 752px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

.lottery-history-title {
    position: relative;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    font-weight: 700;
}

.lottery-history-back {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 36px;
    color: #222;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.lottery-history-record {
    padding: 10px 38px 2px;
}

.lottery-history-meta {
    padding-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #777;
    font-size: 13px;
}

.lottery-history-meta time {
    color: #aaa;
    white-space: nowrap;
}

.lottery-history-numbers {
    min-height: 82px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #18d878;
    border-radius: 7px;
    background: #fff;
}

.lottery-history-number {
    min-width: 0;
    height: 62px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 5px;
}

.lottery-history-number.red {
    background: #ed0017;
}

.lottery-history-number.blue {
    background: #278fe8;
}

.lottery-history-number.green {
    background: #1eaf3d;
}

.lottery-history-number b {
    font-size: 25px;
    line-height: 30px;
}

.lottery-history-number small {
    min-width: 42px;
    padding: 1px 3px;
    color: #111;
    background: #fff;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
    white-space: nowrap;
}

.lottery-history-plus {
    width: 20px;
    flex: 0 0 20px;
    color: #000;
    font-size: 27px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.lottery-history-loading {
    padding: 40px 12px;
    color: #888;
    text-align: center;
}

.lottery-history-more {
    padding: 18px 12px 26px;
    color: #999;
    cursor: pointer;
    text-align: center;
}

.lottery-history-more.finished {
    cursor: default;
}

@media (max-width: 520px) {
    .lottery-history-title {
        height: 46px;
        font-size: 17px;
    }

    .lottery-history-back {
        left: 5px;
        font-size: 32px;
    }

    .lottery-history-record {
        padding: 10px 8px 2px;
    }

    .lottery-history-meta {
        padding: 0 1px 8px;
        font-size: 12px;
    }

    .lottery-history-numbers {
        min-height: 70px;
        padding: 8px 7px;
        gap: 3px;
    }

    .lottery-history-number {
        height: 54px;
    }

    .lottery-history-number b {
        font-size: 20px;
        line-height: 25px;
    }

    .lottery-history-number small {
        min-width: 0;
        width: calc(100% - 6px);
        padding: 1px;
        font-size: 9px;
        line-height: 14px;
    }

    .lottery-history-plus {
        width: 15px;
        flex-basis: 15px;
        font-size: 23px;
    }
}
