:root {
    --red: #d71920;
    --red-dark: #b50912;
    --text: #202733;
    --muted: #6b7280;
    --line: #eceff3;
    --bg: #ffffff;
    --green: #139c63;
    --shadow: 0 10px 28px rgba(32, 39, 51, .08);
}
* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    overflow-x: hidden;
}
body {
    margin: 0;
    min-width: 320px;
    max-width: 100vw;
    color: var(--text);
    background: #fff;
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    overflow-x: hidden;
}
html,
body,
.page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
button,
a,
[role="button"],
.cat-btn,
.draw-action-btn,
button *,
a * {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}
input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.page,
.fixed-title,
.fixed-tabs {
    max-width: 100%;
    overflow-x: clip;
}
.fixed-title {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #b50912 0%, #d71920 46%, #ef3b42 100%);
    box-shadow: 0 5px 18px rgba(183, 9, 18, .24);
}
.site-brand {
    position: absolute;
    left: max(14px, calc((100% - 1180px) / 2));
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    transform: translateY(-50%);
    white-space: nowrap;
}
.site-brand img {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}
.site-brand span { display: none; }
.site-name { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.page { width: min(1180px, calc(100% - 24px)); margin: 0 auto; padding: 74px 0 26px; }

/* ===== 开奖区 ===== */
.draw-board {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
}
.draw-topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    white-space: nowrap;
    color: var(--muted);
    font-size: 14px;
}
.draw-topline .issue { text-align: left; }
.draw-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.draw-action-btn {
    appearance: none;
    min-width: 64px;
    height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
    color: #1f2937;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .01em;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255,255,255,.9);
}
.draw-action-btn .btn-icon {
    display: inline-grid;
    place-items: center;
    width: 13px;
    height: 13px;
    font-size: 11px;
    line-height: 1;
    opacity: .82;
}
.draw-action-btn:hover { border-color: rgba(14, 165, 233, 0.42); color: #0369a1; }
.draw-action-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.12); }
.timer b { color: var(--red-dark); font-variant-numeric: tabular-nums; }
.draw-board .timer-bottom { margin-top: 10px; text-align: center; justify-content: center; }
.draw-main {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        "balls result"
        "extra extra";
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: clamp(8px, 2vw, 16px);
    row-gap: 8px;
    margin: 16px 0 12px;
    min-width: 0;
    white-space: nowrap;
}
.draw-balls { display: flex; align-items: center; gap: clamp(4px, 1.1vw, 10px); white-space: nowrap; }
.draw-board .draw-balls { grid-area: balls; }
.draw-board .draw-result { grid-area: result; }
.draw-board .draw-extra { grid-area: extra; width: 100%; margin-top: 0; }
.ball, .sum-ball {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid #f2d3d5;
    background: #fff1f2;
    color: #111111;
    font-family: Arial, Helvetica, 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: 23px;
    letter-spacing: 0;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 6px rgba(183,9,18,.08);
}
.plus { color: #a0a6b1; font-weight: 900; font-size: clamp(15px, 3vw, 22px); }
.draw-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}
.draw-result > span:not(.ball) { color: var(--muted); font-size: 13px; }
.draw-result strong { color: var(--red-dark); font-size: clamp(24px, 5vw, 42px); line-height: 1; }
.draw-result em { color: #111827; background: transparent; border-radius: 0; padding: 0; font-style: normal; font-size: 13px; }
.draw-time { color: var(--muted); text-align: center; font-size: 13px; white-space: nowrap; }
.draw-extra {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 10px;
    font-style: normal;
    color: #4b5563;
    font-size: 13px;
}
.draw-extra em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-style: normal;
}

/* ===== 分类栏 ===== */
.category-bar {
    margin: 12px 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
}
.cat-btn {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #2f343b;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.04);
}
.cat-btn.active { color: #38bdf8; border-color: #e5e7eb; background: #fff; box-shadow: inset 0 -2px 0 #38bdf8; }

/* ===== 数据面板与表格 ===== */
.data-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.table-host { width: 100%; overflow: hidden; background: #fff; min-height: 360px; }
table { width: 100%; border-collapse: collapse; min-width: 0; table-layout: fixed; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: normal; word-break: break-word; font-size: 14px; }
thead, th { background: #f8fafc; color: #1f2937; font-size: 12px; }
td { color: var(--text); }
.table-host table,
.opened-stat-table,
.history-table,
.predict-table,
.yl-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}
.table-host thead { display: table-header-group; }
.table-host tbody { display: table-row-group; }
.table-host tr { display: table-row; }
.table-host th,
.table-host td {
    display: table-cell;
    padding: 8px 3px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: clip;
    text-align: center;
    vertical-align: middle;
}
.table-host td::before { content: none; display: none; }
.hit { color: var(--green); font-weight: 900; }
.miss { color: #d33; font-weight: 900; }
.empty { padding: 26px; color: var(--muted); text-align: center; }
.result-tight { letter-spacing: 0; word-spacing: 0; }
.table-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0 12px;
    background: #fff;
}
.pager-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.pager-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #374151;
    border-right: 2px solid #374151;
}
.pager-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.pager-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.pager-icon:disabled { opacity: 0.35; cursor: not-allowed; }
.pager-info { color: #64748b; font-size: 12px; font-weight: 700; }

/* ===== 标签圆圈 ===== */
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    margin: 0 2px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 30px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
.tag-big, .tag-double { background: #dc2626; }
.tag-small, .tag-single { background: #22c55e; }
.tag-combo { background: #0d9488; }
.tag-max { background: #f97316; }
.tag-min { background: #6366f1; }
.tag-mid { background: #0891b2; }
.tag-edge { background: #a855f7; }
.tag-pair { background: #92400e; }
.tag-bao { background: #111827; }
.tag-shun { background: #8b5cf6; }
.tag-return { background: #ec4899; }
.tag-mixed { background: #cbd5e1; color: #334155; }
.tag-sum-number { background: #2563eb; }
.tag-gray { background: #64748b; color: #334155; }
.draw-result .tag { width: 22px; height: 22px; min-width: 22px; line-height: 22px; font-size: 11px; }
.table-host .tag { margin-left: 2px; margin-right: 2px; }
.history-table .tag,
.predict-table .tag { margin-left: 3px; margin-right: 3px; }

/* ===== 子分类栏 ===== */
.sub-category-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow-x: hidden;
    white-space: normal;
    scrollbar-width: none;
}
.sub-category-bar::-webkit-scrollbar { display: none; }
.sub-category-bar[hidden] { display: none !important; }
.sub-cat-btn {
    flex: 0 1 auto;
    border: 1px solid #e6e8ec;
    border-radius: 7px;
    background: #fff;
    color: #374151;
    padding: 7px 12px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.035);
}
.sub-cat-btn.active { color: #38bdf8; border-color: #e5e7eb; background: #fff; box-shadow: inset 0 -2px 0 #38bdf8; }

/* ===== 历史开奖表 ===== */
.history-table th:nth-child(1), .history-table td:nth-child(1) { width: 23%; font-weight: 800; }
.history-table th:nth-child(2), .history-table td:nth-child(2) { width: 15%; }
.history-table th:nth-child(3), .history-table td:nth-child(3) { width: 25%; font-weight: 800; }
.history-table th:nth-child(4), .history-table td:nth-child(4) { width: 19%; padding-left: 14px; }
.history-table th:nth-child(5), .history-table td:nth-child(5) { width: 18%; }
.history-table .tag {
    width: 24px;
    height: 24px;
    min-width: 24px;
    line-height: 24px;
    font-size: 12px;
}
.history-table td:nth-child(1),
.history-table td:nth-child(3) {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

/* ===== 号码遗漏成对表格 ===== */
.yl-pair-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #dbe3ee;
    background: #fff;
}
.yl-pair-table td {
    border: 1px solid #e5ebf3;
    padding: 8px 4px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: clip;
}
.yl-pair-table .yl-name { width: 13%; color: #111827; font-weight: 900; background: #f8fafc; }
.yl-pair-table .yl-value { width: 12%; color: #dc2626; font-weight: 900; background: #ffffff; font-size: 15px; }
.yl-pair-table .tag,
.yl-pair-table .tag-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 22px;
    line-height: 22px;
    padding: 0;
    margin: 0;
    border-radius: 5px;
}

/* ===== 已开统计成对表格 ===== */
.stat-pair-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #dbe3ee;
    background: #fff;
}
.stat-pair-table td {
    border: 1px solid #e5ebf3;
    padding: 8px 4px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: clip;
}
.stat-pair-table .stat-name { width: 13%; color: #111827; font-weight: 900; background: #f8fafc; }
.stat-pair-table .stat-value { width: 12%; color: #dc2626; font-weight: 900; background: #ffffff; font-size: 15px; }
.stat-pair-table .tag,
.stat-pair-table .tag-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 22px;
    line-height: 22px;
    padding: 0;
    margin: 0;
    border-radius: 5px;
}
.yl-pair-table th,
.stat-pair-table th {
    border: 1px solid #dbe3ee;
    padding: 6px 3px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    text-overflow: clip;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    background: #eef3f8;
}
.yl-pair-table .pair-head-row th,
.stat-pair-table .pair-head-row th { border-top-width: 2px; }
.opened-stat-section { margin: 0 0 10px; }
.opened-stat-section h3 {
    margin: 0;
    padding: 9px 10px;
    font-size: 14px;
    font-weight: 900;
    color: #111827;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}
.opened-stat-table th,
.opened-stat-table td { font-weight: 800; }

/* ===== 统计区段 ===== */
.missing-stat-board .missing-stat-section { margin-bottom: 10px; }
.missing-stat-board .missing-stat-section:last-child { margin-bottom: 0; }

/* ===== 预测表 ===== */
.predict-table td:nth-child(2) .tag {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid rgba(234, 88, 12, .22);
    color: #9a3412;
}
.predict-table td:nth-child(2) { min-width: 92px; }
.predict-table td:nth-child(2) .tag + .tag { margin-left: 5px; }
.predict-table td:nth-child(2) .tag {
    width: auto;
    min-width: 34px;
    height: 22px;
    line-height: 22px;
    padding: 0 7px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.predict-table td:nth-child(3) { font-size: 15px; font-weight: 700; }
.predict-sz-table td:nth-child(2) { min-width: 0; }
.double-group-predict {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 3px;
    white-space: nowrap;
}
.double-group-predict .tag,
.double-group-predict .tag-wide { margin: 0; }
.double-group-predict .tag-wide {
    width: auto;
    min-width: 34px;
    height: 22px;
    line-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
}
.predict-sep {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.kill-group-predict {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 24px;
    padding: 0 9px 0 5px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid rgba(234, 88, 12, .22);
    color: #9a3412;
    font-size: 13px;
    font-weight: 850;
    line-height: 22px;
    white-space: nowrap;
}
.kill-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-right: 4px;
    border-radius: 5px;
    background: #ea580c;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 17px;
}

/* ===== 走势表 ===== */
.trend-table th,
.trend-table td { text-align: center; }
.trend-table td:nth-child(2) {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}
.trend-table td:nth-child(n+3) {
    color: var(--red-dark);
    font-size: 14px;
    font-weight: 700;
}
.trend-table td:nth-child(1) {
    font-variant-numeric: tabular-nums;
    font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}
.trend-table td:nth-child(n+3) .tag {
    color: #fff;
    width: 24px;
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    line-height: 24px;
}

/* ===== 滚球动画 ===== */
.ball-pending { color: #555; }
.ball-rolling {
    position: relative;
    overflow: hidden;
    color: #111;
}
.ball-rolling span {
    display: block;
    height: 100%;
    line-height: 42px;
    animation: drawNumberRoll .55s linear infinite;
    animation-delay: var(--roll-delay, 0s);
}
.draw-board .sum-rolling,
.draw-board .tag-rolling {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
    animation: resultPulse .72s ease-in-out infinite alternate;
}
@keyframes resultPulse {
    from { opacity: .58; transform: scale(.96); }
    to { opacity: 1; transform: scale(1.03); }
}
@keyframes drawNumberRoll {
    from { transform: translateY(0); }
    to { transform: translateY(-1000%); }
}

/* ===== 字体统一 ===== */
.data-panel,
.category-bar,
.sub-category-bar,
.table-host {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.table-host td,
.table-host th,
.stat-pair-table .stat-value,
.yl-pair-table .yl-value,
.history-table td,
.predict-table td,
.opened-stat-table td,
.yl-table td {
    font-variant-numeric: tabular-nums;
    font-family: Arial, Helvetica, "Segoe UI", sans-serif;
}

/* ===== 底部说明 ===== */
.site-info-panel {
    margin: 14px auto 0;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    color: #475569;
    text-align: center;
}
.site-info-panel h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .01em;
}
.site-info-panel p {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.7;
}
.copyable-contact {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(14, 165, 233, .10);
    color: #0369a1;
    font-weight: 900;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
}
.contact-line { color: #334155; font-weight: 700; }
.site-info-panel .seo-faq {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, .34);
    text-align: left;
}
.site-info-panel .seo-faq h3 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}
.site-info-panel .seo-faq dl,
.site-info-panel .seo-faq dt,
.site-info-panel .seo-faq dd {
    margin: 0;
}
.site-info-panel .seo-faq dt {
    margin-top: 8px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
}
.site-info-panel .seo-faq dd {
    margin-top: 3px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.65;
}

/* ===== 刮奖弹窗 ===== */
html.scratch-open,
body.scratch-open {
    overflow: hidden;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
}
.scratch-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.scratch-modal.show { display: flex; }
.scratch-backdrop {
    position: absolute;
    inset: 0;
    background: #2f343d;
}
.scratch-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    max-height: calc(100vh - 30px);
}
.scratch-close {
    position: absolute;
    z-index: 12;
    width: 9.4%;
    height: 9.4%;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}
.scratch-card {
    position: relative;
    width: 100%;
    aspect-ratio: 906 / 910;
    container-type: inline-size;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.scratch-card .scratch-close {
    right: 2.8%;
    top: .85%;
}
.scratch-template {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.scratch-fill,
.scratch-text,
.scratch-prize,
.scratch-count,
.scratch-mode-text {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #3f2618;
    text-align: center;
}
.scratch-text,
.scratch-prize,
.scratch-count,
.scratch-mode-text { z-index: 3; }
.scratch-fill { pointer-events: none; }
.scratch-issue-fill, .scratch-issue { left: 41.4%; top: 2.9%; width: 26.8%; height: 3.9%; border-radius: 0; }
.scratch-main-fill { left: 4.9%; top: 42.25%; width: 90.1%; height: 29.0%; border-radius: 0; }
.scratch-prize-main { left: 5.4%; top: 42.75%; width: 89.1%; height: 28.0%; border-radius: 0; }
.scratch-extra-fill, .scratch-prize-extra { left: 16.6%; top: 77.05%; width: 66.8%; height: 12.0%; border-radius: 0; }
.scratch-prize-main,
.scratch-prize-extra { overflow: hidden; }
.scratch-minute-fill, .scratch-minute { left: 19.55%; top: 91.75%; width: 8.3%; height: 5.4%; border-radius: 0; }
.scratch-second-fill, .scratch-second { left: 34.9%; top: 91.75%; width: 7.0%; height: 5.4%; border-radius: 0; }
.scratch-mode-fill, .scratch-mode-text { left: 72.65%; top: 92.4%; width: 21.75%; height: 4.2%; border-radius: 0; }
.scratch-issue {
    font-size: clamp(14px, 3.2vw, 22px);
    font-weight: 900;
    letter-spacing: .01em;
}
.scratch-prize-main {
    flex-direction: column;
    gap: 0;
    padding: 14px 20px;
    background: #fff;
    border: 0;
    box-shadow: none;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scratch-prize-main .scratch-draw-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2.6cqw, 16px);
    flex-wrap: wrap;
}
.scratch-prize-main .scratch-balls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(7px, 1.8cqw, 11px);
}
.scratch-prize-main .draw-balls { justify-content: center; }
.scratch-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.9cqw, 12px);
}
.scratch-prize-extra,
.scratch-extra-balls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.scratch-prize-main .scratch-balls .ball,
.scratch-prize-main .sum-ball {
    width: clamp(38px, 8.1cqw, 50px);
    height: clamp(38px, 8.1cqw, 50px);
    border-radius: clamp(9px, 1.85cqw, 12px);
    border: 1px solid #f2d3d5;
    background: #fff1f2;
    color: #111111;
    font-family: Arial, Helvetica, 'PingFang SC', sans-serif;
    font-weight: 600;
    font-size: clamp(23px, 4.9cqw, 30px);
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 6px rgba(183,9,18,.08);
}
.scratch-prize-main .scratch-balls .plus { font-size: clamp(21px, 4.4cqw, 27px); }
@supports not (width: 1cqw) {
    .scratch-prize-main { gap: clamp(8px, 1.8vw, 16px); }
    .scratch-prize-main .scratch-balls { gap: clamp(7px, 1.05vw, 11px); }
    .scratch-result { gap: clamp(8px, 1.15vw, 12px); }
    .scratch-prize-main .scratch-balls .ball,
    .scratch-prize-main .sum-ball {
        width: clamp(38px, 5.1vw, 50px);
        height: clamp(38px, 5.1vw, 50px);
        border-radius: clamp(9px, 1.15vw, 12px);
        font-size: clamp(23px, 3vw, 30px);
    }
    .scratch-prize-main .scratch-balls .plus { font-size: clamp(21px, 2.7vw, 27px); }
}
.scratch-count {
    color: #b91c1c;
    font-size: clamp(20px, 5vw, 33px);
    font-weight: 950;
}
.scratch-mode-text {
    padding: 2px 6px;
    color: #7c2d12;
    font-size: clamp(11px, 2.5vw, 17px);
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .02em;
}
.scratch-prize-main > .scratch-zone-mask,
.scratch-prize-extra > .scratch-zone-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: -1px;
    bottom: -1px;
    z-index: 6;
    display: block;
    width: calc(100% + 1px) !important;
    height: calc(100% + 1px) !important;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
}
.scratch-prize-main > .scratch-zone-mask {
    left: -0.55%;
    top: -1.8%;
    right: -0.55%;
    bottom: -1.8%;
    width: 101.1% !important;
    height: 103.6% !important;
}
.scratch-zone-mask:active { cursor: grabbing; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    body { overflow-x: hidden; }
    .page {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px;
    }
    .category-bar {
        gap: 4px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
    .table-host {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .table-host table,
    .predict-table,
    .history-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }
    .table-host th,
    .table-host td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 640px) {
    .fixed-title { height: 54px; }
    .site-brand { left: 10px; gap: 5px; font-size: 0; }
    .site-brand img { width: 31px; height: 31px; }
    .site-name { font-size: 18px; max-width: calc(100% - 92px); overflow: hidden; text-overflow: ellipsis; }
    .page { width: min(100% - 16px, 1180px); padding-top: 66px; }

    .draw-board { padding: 13px 10px; border-radius: 13px; }
    .draw-topline { font-size: 13px; gap: 6px; }
    .draw-actions { gap: 4px; }
    .draw-action-btn { min-width: 60px; height: 27px; padding: 0 8px; font-size: 11.5px; line-height: 1; }
    .draw-board .draw-main { column-gap: 6px; row-gap: 7px; transform-origin: center; }
    .draw-result { gap: 5px; }
    .draw-result em { padding: 0; font-size: 12px; }
    .draw-board .timer-bottom { margin-top: 8px; }

    .ball, .sum-ball {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 20px;
    }
    .ball-rolling span { line-height: 34px; }

    .category-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
    .cat-btn { min-width: 0; height: 34px; font-size: 12px; padding-left: 2px; padding-right: 2px; }

    .table-host { overflow: hidden; min-height: calc(100vh - 330px); }
    table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        border-spacing: 0;
    }
    thead { display: table-header-group; }
    tbody { display: table-row-group; padding: 0; }
    tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    th, td {
        display: table-cell;
        width: auto;
        padding: 6px 2px;
        font-size: clamp(9px, 2.55vw, 12px);
        line-height: 1.15;
        white-space: nowrap;
        word-break: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }
    td::before { content: none; display: none; }
    .tag { white-space: nowrap; text-align: center; }
    .draw-result .tag { width: 20px; height: 20px; min-width: 20px; line-height: 20px; font-size: 10px; }

    .table-host th,
    .table-host td {
        padding: 6px 2px;
        font-size: clamp(9px, 2.55vw, 12px);
        line-height: 1.15;
    }
    .history-table .tag,
    .predict-table .tag {
        width: 20px;
        height: 20px;
        min-width: 20px;
        line-height: 20px;
        font-size: 10px;
        margin: 0 auto;
    }
    .table-host .tag { margin-left: 2px; margin-right: 2px; }

    .yl-pair-table td { padding: 7px 1px; font-size: clamp(9px, 2.55vw, 12px); }
    .yl-pair-table .tag,
    .yl-pair-table .tag-wide {
        width: 36px;
        min-width: 36px;
        height: 20px;
        line-height: 20px;
        padding: 0;
        margin: 0;
        border-radius: 5px;
        font-size: 10px;
    }
    .stat-pair-table td { padding: 7px 1px; font-size: clamp(9px, 2.55vw, 12px); }
    .stat-pair-table .tag,
    .stat-pair-table .tag-wide {
        width: 36px;
        min-width: 36px;
        height: 20px;
        line-height: 20px;
        padding: 0;
        margin: 0;
        border-radius: 5px;
        font-size: 10px;
    }
    .stat-pair-table .stat-value,
    .yl-pair-table .yl-value { font-size: 14px; }
    .yl-pair-table th,
    .stat-pair-table th { padding: 5px 1px; font-size: clamp(9px, 2.45vw, 11px); }

    .predict-table td:nth-child(3) { font-size: 14px; }
    .history-table td:nth-child(1),
    .history-table td:nth-child(3) { font-size: 13px; letter-spacing: -0.2px; }
    .history-table td:nth-child(4),
    .history-table th:nth-child(4) { padding-left: 10px; }

    .draw-extra { gap: 6px 8px; margin-top: 8px; font-size: 12px; }
    .sub-category-bar {
        justify-content: center;
        overflow-x: hidden;
        flex-wrap: wrap;
        max-width: 100%;
        min-width: 0;
    }

    .predict-table td:nth-child(2) { min-width: 82px; }
    .predict-table td:nth-child(2) .tag + .tag { margin-left: 4px; }
    .predict-table td:nth-child(2) .tag {
        min-width: 30px;
        height: 20px;
        line-height: 20px;
        padding: 0 5px;
        font-size: 11px;
    }

    .predict-sz-table th:nth-child(2),
    .predict-sz-table td:nth-child(2),
    .predict-sz-table th:nth-child(3),
    .predict-sz-table td:nth-child(3),
    .predict-sz-table th:nth-child(4),
    .predict-sz-table td:nth-child(4) {
        padding-left: 2px;
        padding-right: 2px;
    }
    .double-group-predict { gap: 2px; }
    .double-group-predict .tag-wide {
        min-width: 30px;
        height: 20px;
        line-height: 20px;
        padding: 0 5px;
        font-size: 11px;
    }
    .double-group-predict .predict-sep { margin: 0 -1px; }

    .trend-table td:nth-child(2) { font-size: 15px; }
    .trend-table td:nth-child(n+3) { font-size: 13px; }
    .trend-table td:nth-child(n+3) .tag {
        width: 21px;
        min-width: 21px;
        height: 21px;
        font-size: 12px;
        line-height: 21px;
    }

    .kill-group-predict { min-width: 52px; height: 24px; padding-right: 7px; font-size: 12px; line-height: 24px; }
    .kill-prefix { width: 16px; height: 16px; font-size: 10px; line-height: 16px; }
    .site-info-panel { padding: 14px; border-radius: 12px; }
    .site-info-panel h2 { font-size: 15px; }
    .site-info-panel p { font-size: 12px; }

    .scratch-modal { padding: 14px; }
    .scratch-dialog { width: min(88vw, 360px); }
    .scratch-prize-main { padding: 10px 12px; }

    html, body, .page { background: #fff; }
}

@media (max-width: 380px) {
    .scratch-dialog { width: min(86vw, 330px); }
}

