.lottery-page-label { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
.lottery-tabs { flex-wrap: nowrap; overflow: auto; padding: 3px 4px 7px; margin: 0 -4px 12px; scrollbar-width: thin; }
.lottery-tabs a { flex: none; }
.lottery-tabs i { color: #9e6419; }
.lottery-tabs [aria-selected=true] i { color: #ffe3a0; }
.lottery-status { display: flex; justify-content: space-between; gap: 10px; color: var(--gd-muted); font-size: 12px; margin: 6px 0; }
.lottery-status span:first-child::before { content: ""; display: inline-block; margin-right: 7px; width: 7px; height: 7px; background: #ae7425; border-radius: 50%; }
.lottery-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--gd-line); padding-bottom: 12px; margin-bottom: 12px; }
.lottery-card-head h3 { margin: 0; font-size: 17px; }
.lottery-card-head .gold-button { min-height: 34px; }
.lottery-latest-grid { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(0,1fr); gap: 18px; }
.lottery-latest { min-width: 0; }
.lottery-issue { margin: 6px 0; }
.lottery-equation { display: flex; gap: clamp(5px,2vw,14px); justify-content: center; align-items: center; margin: 28px 0 20px; }
.lottery-ball { display: inline-grid; place-items: center; border-radius: 50%; width: 28px; height: 28px; color: white; font-weight: 750; font-variant-numeric: tabular-nums; vertical-align: middle; background: radial-gradient(circle at 35% 23%,#95622d,#4c2c14 95%); }
.lottery-ball.ball-1 { background: radial-gradient(circle at 33% 22%,#927231,#56501a 95%); }
.lottery-ball.ball-2 { background: radial-gradient(circle at 33% 22%,#dc983d,#87470d 95%); }
.lottery-ball.ball-3 { background: radial-gradient(circle at 33% 22%,#b36846,#732c25 95%); }
.lottery-equation .lottery-ball { width: clamp(40px,7vw,63px); height: clamp(40px,7vw,63px); font-size: clamp(18px,4vw,29px); box-shadow: inset 0 0 0 2px #ffebb555,0 4px 11px #5937113b; }
.lottery-math { padding: 0 .35em; color: var(--gd-muted); }
.lottery-latest-label, .lottery-tags { text-align: center; }
.lottery-latest-label strong:first-child { color: #694013; padding: 5px 12px; border-radius: 9px; background: #f8e7b8; font-size: 23px; vertical-align: middle; }
.lottery-latest-label > span { display: inline-block; margin: 3px 5px; padding: 6px 8px; background: #f8f0dc; border-radius: 8px; font-size: 13px; }
.lottery-keno { padding: 10px; background: #fcf4e0; border: 1px solid var(--gd-line); border-radius: 12px; }
.lottery-keno > div:first-child { display: flex; justify-content: space-between; font-size: 13px; }
.lottery-keno-grid { display: grid; grid-template-columns: repeat(10, minmax(0,1fr)); gap: 5px; margin-top: 8px; }
.lottery-keno-grid span { text-align: center; padding: 4px 1px; background: #f3e3b9; color: #6c4316; font-size: 12px; border-radius: 7px; }
.lottery-keno-grid small { grid-column: 1/-1; }
.lottery-meta, .lottery-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.lottery-facts { margin-top: 13px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.lottery-facts.is-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lottery-fact { display: grid; align-content: start; gap: 6px; padding: 13px; border: 1px solid var(--gd-line); background: var(--gd-surface); border-radius: 13px; min-width: 0; overflow-wrap: anywhere; }
.lottery-meta .lottery-fact { background: #fbf3e1; }
.lottery-fact small { color: var(--gd-muted); display: block; font-size: 12px; }
.lottery-space { margin-top: 13px; }
.lottery-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 10px; }
#lottery-more { margin-top: 13px; color: var(--gd-muted); }
#lottery-more summary { cursor: pointer; }
#lottery-chart { display: block; width: 100%; height: clamp(170px,30vw,280px); }
#lottery-chart-point { margin-bottom: 0; font-size: 13px; }
.lottery-distribution { display: grid; grid-template-columns: 48px minmax(0,1fr) 72px; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.lottery-distribution progress { width: 100%; accent-color: #a66a1d; }
.lottery-omissions { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 8px; }
.lottery-omissions article { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--gd-line); background: var(--gd-paper); border-radius: 9px; }
.lottery-omissions span { color: var(--gd-muted); font-size: 13px; }
.lottery-models { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.lottery-model { text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; background: #fbf3df; border: 1px solid var(--gd-line); border-radius: 12px; cursor: pointer; }
.lottery-model:hover { background: #f8e9c4; }
.lottery-model b { color: var(--gd-accent); }
.lottery-model small { grid-column: 1/-1; color: var(--gd-muted); }
.lottery-error { padding: 12px; background: #fff2e2; border: 1px solid #d49e71; border-radius: 12px; }
.lottery-notify { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px; background: #6a4419; color: white; z-index: 805; }
.lottery-notify:empty { display: none; }
@media(max-width:720px) {
    .lottery-latest-grid { grid-template-columns: 1fr; }
    .lottery-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lottery-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
    .lottery-models, #lottery-panel .gold-grid { grid-template-columns: 1fr; }
    .lottery-fact { padding: 9px; font-size: 13px; }
    .lottery-equation { gap: 4px; margin-top: 18px; }
    .lottery-omissions { grid-template-columns: repeat(auto-fit,minmax(70px,1fr)); }
}

.prediction-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.prediction-summary h2{margin:0 0 6px}.prediction-summary p{font-size:13px;color:var(--gd-muted);margin:0}.prediction-summary .lottery-fact{min-width:95px;padding:8px 12px;text-align:center}.prediction-tabs{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:25px}.lottery-models{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.lottery-model.forecaster-card{display:block;text-align:left;border:1px solid var(--gd-line);border-radius:16px;padding:12px;background:linear-gradient(120deg,#fffefb 50%,#f8edd6);box-shadow:0 5px 18px #5937110a;cursor:pointer;min-width:0}.forecaster-profile{display:flex;gap:8px;align-items:center}.forecaster-profile img{width:44px;height:44px;border-radius:50%;object-fit:cover}.forecaster-profile>span{display:grid;gap:4px;min-width:0}.forecaster-profile strong{font-size:13px}.forecaster-profile small{font-size:10px;color:var(--gd-muted)}.forecaster-pick{margin-left:auto;text-align:right;white-space:nowrap}.forecaster-pick b{font-size:16px}.forecaster-meta{display:flex;justify-content:space-between;border-top:1px solid #dfcaab;padding-top:9px;margin-top:12px;font-size:9px;gap:4px}.prediction-chart{width:100%;height:auto;display:block;font-size:11px;fill:#8e7553}.forecaster-detail-heading p,.prediction-rule{font-size:12px;color:var(--gd-muted)}.prediction-rule{padding:14px;border:1px solid var(--gd-line);border-radius:10px}.model-output{display:block;margin-top:5px}.gold-pill.hit{background:#e3f2e9;color:#15754e}.gold-pill.miss{background:#ffe7e4;color:#af3131}#lottery-detail{max-width:850px;width:calc(100% - 30px);max-height:90dvh;overflow:auto}#lottery-detail>.gold-dialog-close,#lottery-detail>form{position:sticky;top:0;z-index:2;text-align:right}.forecaster-card:focus-visible{outline:3px solid #b57c23}@media(max-width:1100px){.lottery-models{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.prediction-summary{align-items:start;flex-direction:column}.prediction-summary>.gold-actions{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.prediction-summary .lottery-fact{min-width:0}.prediction-tabs{gap:5px}.prediction-tabs .gold-button{padding:9px 3px;font-size:12px}.lottery-models{grid-template-columns:1fr}.forecaster-meta{font-size:11px}.forecaster-profile strong{font-size:14px}.forecaster-profile small{font-size:11px}}

#lottery-source{display:none!important}.lottery-status{justify-content:flex-end}

.forecaster-profile>.forecaster-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border:2px solid #fff9ee;box-shadow:0 1px 6px #40305515;border-radius:50%;font-size:22px;font-weight:650}.forecaster-avatar.avatar-tone-0{background:#e5d9f0;color:#72538c}.forecaster-avatar.avatar-tone-1{background:#d0e8e0;color:#3a7766}.forecaster-avatar.avatar-tone-2{background:#f2d9cc;color:#a4644d}.forecaster-avatar.avatar-tone-3{background:#d4e4f4;color:#4b6c9b}.forecaster-avatar.avatar-tone-4{background:#f2e4bf;color:#936e2e}.forecaster-avatar.avatar-tone-5{background:#e3dcf3;color:#6d5b9e}.forecaster-avatar.avatar-tone-6{background:#dce9ca;color:#668148}.forecaster-avatar.avatar-tone-7{background:#f0d6e5;color:#a05c82}

/* 咪牌/蒙眼开奖：屏蔽本期号码，用户点背面才揭晓 */

.lottery-scratch-result.is-scratch-mode {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    width: min(100%, 410px);
    min-height: 88px;
    margin: 24px auto 14px;
    padding: 9px;
    border: 1px solid #cabc9e;
    border-radius: 9px;
    background: #fff9e9;
}
.lottery-scratch-result.is-scratch-mode .lottery-equation { margin: 0; }
.lottery-scratch-result.is-scratch-mode .lottery-ball { width: clamp(32px, 5.5vw, 47px); height: clamp(32px, 5.5vw, 47px); font-size: clamp(16px, 3vw, 23px); }
.lottery-scratch-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.lottery-scratch-cover:focus-visible { outline: 2px solid #7d551f; outline-offset: -4px; }
.scratch-no-canvas { background: #b5a98f; cursor: pointer; }
