/* ===== 澳门时时彩 弹窗 (.ssc-*,pk10 也复用这套底盘) ===== */
.ssc-modal {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: #f4f5f7;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ssc-modal[hidden] { display: none; }

.ssc-topbar {
    height: 54px;
    background: #ff5a4c;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
    flex: 0 0 auto;
}
.ssc-back, .ssc-history-btn {
    width: 36px; height: 36px;
    background: transparent; border: 0; cursor: pointer; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.ssc-back svg { width: 22px; height: 22px; stroke: #fff; }
.ssc-history-btn svg { width: 22px; height: 22px; }
.ssc-title {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
}
.ssc-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    overflow: hidden; margin-left: 4px;
    display: inline-flex; align-items: center; justify-content: center;
}
.ssc-avatar svg { width: 32px; height: 32px; }

.ssc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 10px 14px 12px;
    flex: 0 0 auto;
}
.ssc-period {
    font-size: 13px;
    color: #ff4d4f;
    margin-bottom: 6px;
}
.ssc-balls {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ssc-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ff4d4f;
    font-weight: 700;
    font-size: 13px;
}
.ssc-balance svg { width: 32px; height: 32px; }

.ssc-next {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #fff;
    border-top: 1px solid #f0e2e0;
    font-size: 13px;
    color: #555;
    flex: 0 0 auto;
}
.ssc-next-period { color: #ff4d4f; }
.ssc-countdown {
    background: #d7261e;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    transition: background 0.2s ease;
}
.ssc-countdown.locked {
    background: #fff;
    color: #d7261e;
    border: 1px solid #d7261e;
    animation: countdownBlink 0.6s ease-in-out infinite alternate;
}
.ssc-status { flex: 1; color: #666; transition: color 0.2s ease; }
.ssc-status.locked { color: #d7261e; font-weight: 600; }
.ssc-history-link { color: #ff6b48; }
.ssc-history-link b { font-weight: 400; margin-left: 2px; }

.ssc-play {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}
.ssc-sidebar {
    width: 76px;
    background: #eee;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    border-right: 1px solid #e6e6e6;
}
.ssc-side-tab {
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: #e7e7e7;
    border-bottom: 1px solid #dcdcdc;
}
.ssc-side-tab.active {
    background: #ff7a1a;
    color: #fff;
    font-weight: 500;
}
.ssc-main {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    position: relative;
}

.ssc-section-title {
    padding: 10px 0;
    text-align: center;
    color: #ff4d4f;
    font-size: 14px;
    font-weight: 600;
    background: #f3f3f3;
    border-bottom: 1px solid #eee;
}

.ssc-grid {
    display: grid;
    gap: 0;
    border-bottom: 1px solid #eee;
}
.ssc-grid-2 { grid-template-columns: 1fr 1fr; }
.ssc-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.ssc-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    background: #fff;
}
.ssc-grid-2 .ssc-opt:nth-child(2n) { border-right: 0; }
.ssc-grid-3 .ssc-opt:nth-child(3n) { border-right: 0; }
.ssc-opt .n { color: #333; }
.ssc-opt .o { color: #999; font-weight: 500; font-size: 14px; }
.ssc-opt-col {
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
    text-align: center;
}
.ssc-opt:active { background: #fff4e8; }
.ssc-opt.selected {
    background: #ff7a1a;
    color: #fff;
}
.ssc-opt.selected .n,
.ssc-opt.selected .o { color: #fff; font-weight: 600; }

/* 1-5名:每一球的 0-9 号码网格 */
.ssc-num-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #eee;
}
.ssc-num-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 22px;
    background: #fff;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}
.ssc-num-grid .ssc-num-opt:nth-child(2n) { border-right: 0; }
.ssc-num-opt:active { background: #fff4e8; }
.ssc-num-opt.selected {
    background: #ff7a1a;
    color: #fff;
}
.ssc-num-opt.selected .ssc-num-odds { color: #fff; font-weight: 600; }

/* 1-5名 号码球:与顶部开奖球风格一致(白心+蓝框+高光) */
.ssc-rank-ball {
    width: 32px;
    height: 32px;
    color: #222;
    font-size: 14px;
    text-shadow: none;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 40%, transparent 41%),
        radial-gradient(circle at 32% 32%, #adcdff, #3a82ff 65%, #1a4bb8);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.25),
        inset -3px -4px 8px rgba(0,0,0,0.22),
        inset 3px 4px 8px rgba(255,255,255,0.32);
}
.ssc-rank-ball::before {
    top: 3px;
    left: 7px;
    width: 10px;
    height: 6px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%);
}
.ssc-num-opt.selected .ssc-rank-ball {
    background:
        radial-gradient(circle at 50% 50%, #fff 0 40%, transparent 41%),
        radial-gradient(circle at 32% 32%, #fff, #dcd9f1 65%, #a79fe0);
    color: #1a4bb8;
}
.ssc-num-opt.selected .ssc-rank-ball::before { opacity: 0.5; }
.ssc-num-odds {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    flex: 1;
    text-align: right;
}

/* 底部快捷下单 */
.ssc-quickbar {
    position: relative;
    background: #ff7a1a;
    color: #fff;
    padding: 20px 12px 14px;
    flex: 0 0 auto;
}
.ssc-tip-pill {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #d7261e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.ssc-quick-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.ssc-quick-line:first-of-type { margin-top: 6px; }
.ssc-quick-label {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
}
.ssc-chips {
    flex: 1;
    display: flex;
    gap: 6px;
    justify-content: space-between;
}
.ssc-chips button {
    flex: 1;
    height: 32px;
    border-radius: 50%;
    background: #a6a112;
    color: #fff;
    border: 0;
    font-size: 13px;
    cursor: pointer;
    min-width: 32px;
    max-width: 48px;
    aspect-ratio: 1;
    padding: 0;
}
.ssc-chips button:active { background: #867f0d; }
#sscAmount {
    flex: 1;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.ssc-buy, .ssc-reset {
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    background: #3a1aa8;
    transition: opacity 0.15s ease;
    font-weight: 500;
}
.ssc-reset { background: #d7261e; }
.ssc-buy:active { background: #2a1278; }
.ssc-reset:active { background: #a8140d; }

.ssc-modal.locked .ssc-buy {
    background: #6a5aa4;
    cursor: not-allowed;
    opacity: 0.7;
}
.ssc-modal.locked .ssc-opt,
.ssc-modal.locked .ssc-num-opt {
    pointer-events: none;
    opacity: 0.8;
}
.ssc-modal.locked .ssc-mask-hint { display: block; }
.ssc-mask-hint {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 12px;
    z-index: 2;
    white-space: nowrap;
    pointer-events: none;
}
