﻿:root {
    --bg: #696969;
    --bg2: #616161;
    --bg3: #585858;
    --panel: #fdfefe;
    --panel-soft: #f5f8fc;
    --panel-strong: #eef3f8;
    --match-head: #dde7f1;
    --match-head-2: #d2deea;
    --odds-wrap: #c9d5e3;
    --odds-bg: #f7faff;
    --line: #b8c7d8;
    --line-strong: #99aec5;
    --text: #132031;
    --muted: #617287;
    --muted2: #7b8b9d;
    --blue: #2563eb;
    --blue-soft: #e7f0ff;
    --red: #ef4444;
    --gold: #d97706;
    --good: #059669;
    --shadow: 0 10px 24px rgba(26, 43, 70, .12);
    --shadow-soft: 0 4px 10px rgba(26, 43, 70, .08);
    --r10: 8px;
    --r12: 8px;
    --r14: 8px;
    --r16: 8px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(900px 480px at 0% 0%, rgba(255,255,255,.05), transparent 55%), radial-gradient(720px 420px at 100% 0%, rgba(255,255,255,.03), transparent 52%), linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 45%, var(--bg) 100%);
    font: 13px/1.45 system-ui, -apple-system, Segoe UI, Roboto, PingFang SC, Microsoft YaHei, sans-serif;
    overflow-x: hidden;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid rgba(255,255,255,.35);
    background: rgba(245, 249, 253, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar .wrap {
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: var(--shadow-soft);
}

.logo::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.78), transparent 56%);
    transform: rotate(20deg);
}

.brandText h1 {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
}

.brandText p {
    margin: 2px 0 0;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.headPill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(255,255,255,.55);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 84px;
}

.panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r16);
    box-shadow: var(--shadow);
}

.mainPanel {
    padding: 8px;
}

.toolbar {
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.05);
    background: linear-gradient(180deg, #f9fbfd, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.toolbar .tip {
    color: var(--muted);
    font-size: 11px;
}

.toolbar .legend {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.72);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.chip i {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    display: inline-block;
}

.dayGroup + .dayGroup {
    margin-top: 8px;
}

.dayHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, #eceff3, #dde4ec);
}

.dayLeft {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chev {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e5f5;
    background: rgba(255,255,255,.92);
    color: var(--blue);
    transition: transform .16s ease;
    flex: 0 0 auto;
}

.dayHead[aria-expanded="false"] .chev {
    transform: rotate(-90deg);
}

.dayTitle {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.dayTitle .d {
    font-size: 14px;
    font-weight: 900;
}

.dayTitle .s {
    font-size: 11px;
    color: var(--muted);
}

.dayBody {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.dayBody[hidden] {
    display: none;
}

.matchRow {
    position: relative;
    border-radius: 4px;
    border: 1px solid #b8c7d8;
    background: linear-gradient(180deg, rgba(248,251,255,.96), rgba(237,243,249,.98));
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(25, 52, 98, .08);
}

.singleMark {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 2;
    padding: 2px 7px 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(180deg, #ff6b6b, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
}

.rowHead {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(142, 160, 182, .38);
    background: linear-gradient(180deg, var(--match-head), var(--match-head-2));
}

.rowInfo {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rowMeta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.codeBadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    min-height: 22px;
    border-radius: 4px;
    border: 1px solid #b9d0f6;
    background: linear-gradient(180deg, #eef5ff, #e1edff);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.leagueMeta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    color: var(--muted2);
}

.leagueDot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    flex: 0 0 auto;
}

.teams {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.teams .team {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teams .vs {
    color: #7f8ea1;
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 auto;
}

.rowTools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.miniBtn, .markBtn {
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.82);
    color: var(--muted);
    padding: 6px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    transition: .15s ease;
}

.miniBtn:hover, .markBtn:hover {
    color: var(--text);
    background: rgba(255,255,255,.96);
}

.markBtn.active {
    border-color: #f3ce97;
    background: #fff6e6;
    color: #b45309;
    font-weight: 800;
}

.rowBody {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0;
    background: linear-gradient(180deg, #bcc4cf, #b2bcc8);
}

.playTabs {
    padding: 8px 7px;
    border-right: 1px solid rgba(141, 159, 182, .34);
    background: linear-gradient(180deg, #dce7f3, #d2deea);
    display: grid;
    gap: 5px;
    align-content: start;
}

.playTab {
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(248,251,255,.78);
    color: #465973;
    border-radius: 4px;
    padding: 7px 6px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: .15s ease;
    line-height: 1.05;
    text-align: center;
}

.playTab small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: var(--muted2);
    font-weight: 700;
}

.playTab.hasPick {
    border-color: #efc1c1;
    color: #b91c1c;
    background: #fff7f7;
}

.playTab.active {
    color: #1d4ed8;
    border-color: #b8cff9;
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.optionsWrap {
    padding: 8px;
    min-width: 0;
    background: linear-gradient(180deg, #c7cfd9, #bfc8d3);
}

.optionsBoard {
    border: 1px solid rgba(255,255,255,.4);
    background: linear-gradient(180deg, #ffffff, #f7faff);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
    padding: 8px;
}

.optionGroup + .optionGroup {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dde6f1;
}

/* 去掉原来那种大标题栏 */
.groupHead {
    display: none;
}

/* 比分玩法保留极轻分组感 */
.optionGroup[data-score-group="1"]::before,
.optionGroup.scoreGroup::before {
    content: attr(data-label);
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eef4fb;
    color: #5e7188;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid #dbe5f0;
}

.optionGrid {
    display: grid;
    gap: 6px;
}

.grid-spf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-hafu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-tg {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-score {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #e2eaf4;
    background: linear-gradient(180deg, #fffdf7, #fffaf0);
    cursor: pointer;
    user-select: none;
    transition: .12s ease;
}

.pick:hover {
    border-color: #e9d7a5;
    background: linear-gradient(180deg, #fff8e8, #fff2d9);
}

.pick.active {
    border-color: #efc26f;
    background: linear-gradient(180deg, #fff2cc, #ffe7b0);
    box-shadow: inset 0 0 0 1px rgba(217,119,6,.06);
}

.pick .k {
    min-width: 0;
    font-size: 11px;
    font-weight: 900;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spTag {
    flex: 0 0 auto;
    min-width: 42px;
    text-align: center;
    padding: 3px 7px;
    border-radius: 4px;
    background: #edf8f2;
    border: 1px solid #cfe8d7;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.result {
    margin-top: 2px;
}

.bottomResult .resultBox {
    padding: 12px;
}

.resultTitleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.resultTitle {
    font-size: 17px;
    font-weight: 900;
    color: var(--text);
}

.resultSub {
    margin-top: 1px;
    font-size: 11px;
    color: var(--muted);
}

.controlCard {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.58);
    background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(245,249,253,.82));
}

/*.field + .field {
    margin-top: 8px;
}*/

.field label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
}

.modeTabs,
.freePassBox,
.controlGrid,
.metricGrid {
    display: grid;
    gap: 6px;
}

.modeTabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modeTab,
.freePassItem {
    border: 1px solid rgba(255,255,255,.62);
    background: rgba(255,255,255,.84);
    color: var(--text);
    min-height: 34px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: .15s ease;
}

.modeTab.active,
.freePassItem.active {
    color: #1d4ed8;
    border-color: #bcd3fb;
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
}

.select,
.input {
    width: 100%;
    height: 34px;
    border-radius: 4px;
    border: 1px solid #d6e1ee;
    background: #fff;
    color: var(--text);
    padding: 0 10px;
    outline: none;
    font-size: 12px;
}

.controlGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quickDesc {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    background: #f7fbff;
    border: 1px dashed #d6e3f4;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.metricGrid {
    margin-top: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.85);
}

.metric.primary {
    background: linear-gradient(180deg, #f3f8ff, #eaf3ff);
    border-color: #cfdef8;
}

.metric .k {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
}

.metric .v {
    margin-top: 5px;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 900;
    color: var(--text);
}

.metric .sub {
    margin-left: 3px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.warn {
    margin-top: 7px;
    color: #b45309;
    font-size: 10px;
    line-height: 1.4;
    background: #fff5df;
    border: 1px solid #f5ddb0;
    border-radius: 4px;
    padding: 5px 7px;
}

.resultActions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
}

.btn {
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.86);
    color: var(--text);
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: .15s ease;
}

.btn:hover {
    background: rgba(255,255,255,.96);
}

.bonusHint {
    margin-top: 8px;
    font-size: 10px;
    color: var(--muted2);
    line-height: 1.55;
}

.mobileBar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 80;
    display: none;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(248,251,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(31, 41, 55, .16);
    border-radius: 4px;
    padding: 9px 10px;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.mobileBarInfo {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.mobileBarTop {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}

.mobileBarSub {
    font-size: 10px;
    color: var(--muted);
}

.mobileBarBtn {
    border: 1px solid #bfd3f6;
    background: linear-gradient(180deg, #eff6ff, #e6f0ff);
    color: #1d4ed8;
    height: 34px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .rowBody {
        grid-template-columns: 1fr;
    }

    .playTabs {
        grid-template-columns: repeat(4, 1fr);
        border-right: 0;
        border-bottom: 1px solid rgba(141, 159, 182, .28);
    }
}

@media (max-width: 767px) {
    .wrap {
        padding: 8px;
    }

    .topbar .wrap {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .headPill {
        display: none;
    }

    .toolbar {
        padding: 7px 8px;
    }

    .rowHead {
        grid-template-columns: 1fr;
    }

    .rowTools {
        justify-content: flex-start;
    }

    .teams {
        font-size: 14px;
    }

    .playTabs {
        grid-template-columns: repeat(4, 1fr);
    }

    .playTab {
        padding: 6px 4px;
        font-size: 10px;
    }

    .grid-spf,
    .grid-hafu,
    .grid-tg {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-score {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .controlGrid,
    .metricGrid,
    .freePassBox,
    .modeTabs {
        grid-template-columns: 1fr 1fr;
    }

    .modeTabs .modeTab:last-child {
        grid-column: span 2;
    }

    .metric .v {
        font-size: 18px;
    }

    .mobileBar {
        display: grid;
    }
}
/* ===== 结果区继续压缩 ===== */

.bottomResult .resultBox {
    padding: 10px;
}

.resultTitleRow {
    margin-bottom: 8px;
}

.resultTitle {
    font-size: 16px;
    line-height: 1.1;
}

.resultSub {
    font-size: 10px;
}

.compactCard {
    padding: 8px;
}

.compactGrid {
    grid-template-columns: 1.25fr .9fr .85fr;
    gap: 6px;
}

.field + .field {
    margin-top: 6px;
}

.field label {
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1.1;
}

.select,
.input {
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
}

.compactDesc {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.4;
}

.metricGrid {
    margin-top: 8px;
    gap: 6px;
}

.metric {
    padding: 8px;
}

.metric .k {
    font-size: 10px;
    line-height: 1.1;
}

.metric .v {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1;
}

.metric .sub {
    font-size: 10px;
}

.warn {
    margin-top: 5px;
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.35;
}

.bonusHint {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.45;
}

.resultActions {
    margin-top: 8px;
    gap: 0;
}

.btn {
    height: 34px;
    font-size: 12px;
}

@media (max-width: 767px) {
    .compactGrid {
        grid-template-columns: 1fr 1fr;
    }

    .compactGrid .field:first-child {
        grid-column: span 2;
    }

    .metricGrid {
        grid-template-columns: 1fr 1fr;
    }

    .metric .v {
        font-size: 17px;
    }
}
/* ===== 过关方式 / 倍数 / 胆码数量：强制水平底对齐 ===== */

.compactGrid {
    display: grid;
    grid-template-columns: 1.25fr .9fr .85fr;
    gap: 6px;
    align-items: end; /* 让每个 grid item 贴底 */
}

.compactGrid .field {
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: end; /* 每个 field 自己也贴底 */
    min-width: 0;
}

.compactGrid .field label {
    margin: 0 0 4px 0;
    height: 14px; /* 固定标题高度 */
    line-height: 14px;
    font-size: 10px;
    display: block;
    overflow: hidden;
}

.compactGrid .select,
.compactGrid .input {
    display: block;
    width: 100%;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    margin: 0;
    padding: 0 8px;
    line-height: 32px; /* 关键：统一内容垂直基线 */
    box-sizing: border-box;
    vertical-align: top;
}

/* 原生 select 在 Windows/Edge 下经常比 input 看起来更“低” */
.compactGrid .select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #617287 50%), linear-gradient(135deg, #617287 50%, transparent 50%);
    background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 24px;
}

/* 胆码数量只读输入框也强制和前两者一致 */
.compactGrid input[readonly] {
    line-height: 32px;
}

@media (max-width: 767px) {
    .compactGrid {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .compactGrid .field:first-child {
        grid-column: span 2;
    }
}
/* ===== 顶部用户入口 ===== */

.userEntry {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.62);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: .15s ease;
}

.userEntry:hover {
    background: rgba(255,255,255,.78);
}

.userAvatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f97316, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.userAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.userAvatar.hasImg img {
    display: block;
}

.userAvatar.hasImg #userAvatarFallback {
    display: none;
}

.userMeta {
    min-width: 0;
    display: flex;
    align-items: center;
}

.userName {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

/* ===== 结果区按钮组 ===== */

.dualActions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btnDanger {
    color: #fff;
    border-color: #ef4444;
    background: linear-gradient(180deg, #f87171, #ef4444);
    box-shadow: 0 6px 14px rgba(239, 68, 68, .18);
}

.btnDanger:hover {
    background: linear-gradient(180deg, #fb7f7f, #f05252);
}

@media (max-width: 767px) {
    .userName {
        max-width: 72px;
    }

    .dualActions {
        grid-template-columns: 1fr 1fr;
    }
}
/* ===== 顶部彩种 Tab：改成真正的 Tab 风格 ===== */
.lotteryTopTabsWrap {
    margin-top: 8px;
    margin-bottom: 10px;
}

.lotteryTopTabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    border: 1px solid #dbe6f2;
    border-radius: 4px;
    background: linear-gradient(180deg, #f7fafd, #eef3f8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 24px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.lotteryTopTab {
    position: relative;
    flex: 1 1 0;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #70839a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.lotteryTopTab:hover {
    color: #44576d;
    background: rgba(255,255,255,.45);
}

.lotteryTopTab:active {
    transform: translateY(1px);
}

.lotteryTopTab.active {
    background: linear-gradient(180deg, #ffffff, #edf4ff);
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, .12), inset 0 1px 0 rgba(255,255,255,.95);
}

.lotteryTopTab.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

/* 非激活态之间保留一点层次，不要像独立按钮 */
.lotteryTopTab:not(.active) + .lotteryTopTab:not(.active)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: rgba(148, 163, 184, .18);
}

@media (max-width: 767px) {
    .lotteryTopTabs {
        padding: 3px;
        border-radius: 4px;
    }

    .lotteryTopTab {
        height: 36px;
        font-size: 13px;
        border-radius: 4px;
    }

    .lotteryTopTab.active::after {
        left: 10px;
        right: 10px;
        bottom: 5px;
    }
}

/* ===== 多选过关方式 ===== */
.fieldPass {
    min-width: 0;
}

.passTypeList {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.passTypeItem {
    min-width: 0;
}

.passTypeItem input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.passTypeItem span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #d7e3f1;
    background: linear-gradient(180deg, #f9fbfe, #eef4fb);
    color: #5f7187;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: .15s ease;
    white-space: nowrap;
}

.passTypeItem input:checked + span {
    border-color: #b8cff9;
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
    color: #1d4ed8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

.passTypeItem.disabled span {
    opacity: .42;
    cursor: not-allowed;
    filter: grayscale(.15);
}

.passTypeItem.disabled input:checked + span {
    border-color: #d7e3f1;
    background: linear-gradient(180deg, #f9fbfe, #eef4fb);
    color: #7a889a;
    box-shadow: none;
}

/* 让过关方式这列更宽一点 */
.compactGrid {
    grid-template-columns: 1.8fr .85fr .8fr;
}

.pick .k {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-weight: 800;
}

.pick .rqTag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #d3e3ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 900;
    flex: 0 0 auto;
}

.emptyBlock {
    padding: 28px 16px;
    border: 1px dashed #d7e2ef;
    border-radius: 4px;
    background: linear-gradient(180deg, #fbfdff, #f3f7fb);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* 移动端 */
@media (max-width: 767px) {
    .lotteryTopTabs {
        gap: 6px;
    }

    .lotteryTopTab {
        height: 34px;
        font-size: 12px;
    }

    .compactGrid {
        grid-template-columns: 1fr 1fr;
    }

    .compactGrid .fieldPass {
        grid-column: span 2;
    }

    .passTypeList {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* ===== 过关方式：弹出选择 ===== */
.passPickerBtn {
    width: 100%;
    min-height: 32px;
    border: 1px solid #d7e3f1;
    border-radius: 4px;
    background: linear-gradient(180deg, #fbfdff, #f1f6fb);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    cursor: pointer;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
}

.passPickerBtn:active {
    transform: translateY(1px);
}

.passPickerText {
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #5c6d82;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passPickerArrow {
    flex: 0 0 auto;
    color: #7a8da6;
    font-size: 12px;
    line-height: 1;
}

.passPopupMask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2000;
}

.passPopup {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
    max-height: min(78vh, 560px);
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff, #f5f8fc);
    border: 1px solid rgba(214, 226, 239, .95);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    z-index: 2001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.passPopupHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #e6edf5;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,253,.96));
}

.passPopupTitle {
    font-size: 15px;
    font-weight: 900;
    color: #243447;
}

.passPopupClose {
    width: 30px;
    height: 30px;
    border: 1px solid #dbe6f2;
    border-radius: 999px;
    background: #fff;
    color: #789;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.passPopupDesc {
    padding: 10px 16px 4px;
    font-size: 12px;
    color: var(--muted);
}

.passPopupList {
    padding: 12px 16px 16px;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.passPopupItem {
    min-width: 0;
}

.passPopupItem input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.passPopupItem span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 4px;
    border: 1px solid #d7e3f1;
    background: linear-gradient(180deg, #fbfdff, #eef4fb);
    color: #607287;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
    transition: .15s ease;
    white-space: nowrap;
}

.passPopupItem input:checked + span {
    border-color: #b8cff9;
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
    color: #1d4ed8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

.passPopupItem.disabled span {
    opacity: .4;
    cursor: not-allowed;
    filter: grayscale(.1);
}

.passPopupFoot {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid #e6edf5;
    background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(244,247,251,.98));
}

.passPopupBtn {
    flex: 1 1 0;
    min-height: 38px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
}

.passPopupBtnLight {
    border-color: #d9e4f1;
    background: #fff;
    color: #607287;
}

.passPopupBtnPrimary {
    border-color: #bfd3f6;
    background: linear-gradient(180deg, #eef5ff, #dfeeff);
    color: #1d4ed8;
}

@media (max-width: 767px) {
    .passPopup {
        width: min(94vw, 420px);
        max-height: 72vh;
        border-radius: 4px;
    }

    .passPopupList {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
