/* ============================================================
   幸运转盘 — 主样式（游戏暗金风格）
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:     #0f0e17;
    --bg2:    #1a1a2e;
    --card:   #16213e;
    --border: #0f3460;
    --gold:   #f0a500;
    --gold2:  #ffd700;
    --red:    #e94560;
    --green:  #27ae60;
    --text:   #e0e0e0;
    --muted:  #8892a4;
    --radius: 14px;
}
html, body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ── 粒子背景 ── */
.particles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.particle  { position: absolute; bottom: -30px; animation: floatUp linear infinite; user-select: none; }
@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: .6; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── 布局 ── */
.page-wrap {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    padding: 32px 16px 60px;
}
.header { text-align: center; margin-bottom: 32px; }
.header-badge {
    display: inline-block;
    background: linear-gradient(135deg,#e94560,#c0392b);
    color: #fff; font-size: 13px; font-weight: 600;
    padding: 4px 16px; border-radius: 20px; letter-spacing: 1px;
    margin-bottom: 10px;
}
.header-title {
    font-size: clamp(24px, 5vw, 42px); font-weight: 900;
    background: linear-gradient(135deg,#f0a500,#ffd700,#f0a500);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 4px;
}

/* ── 主体双列 ── */
.main-layout {
    display: flex; gap: 28px; align-items: flex-start;
}
/* 左列：固定 420px，防止内容把列撑宽挤压右列 */
.wheel-col  { flex: 0 0 420px; width: 420px; min-width: 0; overflow: hidden; }
.right-col  { flex: 1 1 0; min-width: 0; }

/* ── 转盘区域 ── */
.wheel-wrap {
    position: relative;
    width: 100%; max-width: 420px;
}
.wheel-pointer {
    position: absolute;
    top: -22px; left: 50%;
    transform: translateX(-50%);
    font-size: 34px; color: #f0a500;
    z-index: 10; line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(240,165,0,.8));
    animation: pulse 1.5s ease-in-out infinite;
}
.wheel-spin-container {
    width: 100%; max-width: 420px;
    aspect-ratio: 1 / 1;   /* 高度自动跟随宽度，手机端不变形 */
}
#wheelSpin { width: 100%; height: 100%; }
#wheelCanvas { display: block; width: 100%; height: 100%; }

/* ── 控制区 ── */
.ctrl-card {
    background: linear-gradient(160deg,#1a1a2e,#16213e);
    border: 1px solid rgba(240,165,0,.3);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
    position: relative; overflow: hidden;
}
.ctrl-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,transparent,var(--gold),transparent);
}
.balance-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.balance-label { color: var(--muted); font-size: 13px; }
.balance-val {
    font-size: 28px; font-weight: 900; color: var(--gold2);
    filter: drop-shadow(0 0 10px rgba(255,215,0,.5));
}
.balance-unit { font-size: 13px; color: var(--muted); margin-left: 4px; }

.btn-spin {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg,#f0a500,#e67e22);
    border: none; border-radius: 10px;
    color: #0f0e17; font-size: 18px; font-weight: 900;
    letter-spacing: 4px; cursor: pointer;
    box-shadow: 0 4px 24px rgba(240,165,0,.45);
    transition: opacity .2s, transform .1s, box-shadow .2s;
    margin-bottom: 12px;
}
.btn-spin:hover:not(:disabled) { opacity: .92; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(240,165,0,.6); }
.btn-spin:active:not(:disabled) { transform: translateY(0); }
.btn-spin:disabled { opacity: .4; cursor: not-allowed; }

/* ── 跳过动画开关 ── */
.skip-anim-row {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin: -4px 0 14px;
}
.skip-anim-row .skip-label {
    font-size: 12px; color: var(--muted); cursor: pointer;
    user-select: none; transition: color .2s;
}
.skip-anim-row .skip-label:hover { color: var(--text); }
/* 开关外壳 */
.toggle-track {
    position: relative; width: 36px; height: 20px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px; cursor: pointer;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.toggle-track.on {
    background: rgba(240,165,0,.35);
    border-color: var(--gold);
}
/* 滑块 */
.toggle-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--muted);
    transition: transform .2s, background .2s;
}
.toggle-track.on .toggle-thumb {
    transform: translateX(16px);
    background: var(--gold);
}

/* ── 购买区 ── */
.buy-section { margin-top: 4px; }
.buy-title { color: var(--muted); font-size: 13px; margin-bottom: 10px; text-align: center; }
.qty-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.qty-btn {
    padding: 10px 4px; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px; color: var(--text); cursor: pointer;
    font-size: 13px; text-align: center; transition: all .2s;
}
.qty-btn:hover, .qty-btn.active {
    border-color: var(--gold); background: rgba(240,165,0,.12);
    color: var(--gold2);
}
.qty-btn .qty-n { font-size: 18px; font-weight: 700; display: block; color: var(--gold); }
.qty-btn .qty-p { font-size: 12px; color: var(--muted); }
.btn-buy {
    width: 100%; padding: 11px;
    background: linear-gradient(135deg,#e94560,#c0392b);
    border: none; border-radius: 8px;
    color: #fff; font-size: 15px; font-weight: 700;
    letter-spacing: 2px; cursor: pointer;
    transition: opacity .2s;
}
.btn-buy:hover { opacity: .9; }

/* ── 支付方式选择 ── */
.pay-method-row {
    display: flex; gap: 8px; margin-bottom: 10px;
}
.pay-method-item {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 10px;
    border: 2px solid #2c3e50; border-radius: 8px;
    color: var(--muted); font-size: 13px; font-weight: 600;
    cursor: pointer; user-select: none;
    transition: border-color .2s, color .2s, background .2s;
    background: rgba(255,255,255,.03);
}
.pay-method-item.selected {
    border-color: var(--gold);
    color: #fff;
    background: rgba(240,165,0,.1);
}
.pay-method-item:hover { border-color: var(--gold); color: #fff; }
.pm-icon { font-size: 16px; }

/* ── 验证区 ── */
.verify-card {
    background: linear-gradient(160deg,#1a1a2e,#16213e);
    border: 1px solid rgba(240,165,0,.3);
    border-radius: var(--radius);
    padding: 32px 36px; max-width: 460px;
    margin: 60px auto 0; position: relative; overflow: hidden;
}
.verify-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,transparent,var(--gold),transparent);
}
.verify-title { font-size: 18px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 6px; }
.verify-sub   { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 22px; }
.offline-warn {
    background: rgba(233,69,96,.12);
    border: 1px solid rgba(233,69,96,.4);
    border-radius: 8px; padding: 12px 14px;
    color: #e74c3c; font-size: 13px; margin-bottom: 18px;
    line-height: 1.6;
}
.spin-warn-tip {
    background: rgba(233,69,96,.1);
    border: 1px solid rgba(233,69,96,.45);
    border-left: 4px solid #e74c3c;
    border-radius: 8px; padding: 11px 14px;
    color: #ff6b6b; font-size: 12.5px; line-height: 1.7;
    margin-top: 12px;
    overflow-wrap: break-word; word-break: break-all;
}
.field-wrap { margin-bottom: 16px; }
.field-wrap label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.field-input {
    width: 100%; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px; color: #fff; padding: 12px 14px;
    font-size: 15px; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,.15); }
.field-input::placeholder { color: rgba(255,255,255,.25); }
.btn-verify {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg,#f0a500,#e67e22);
    border: none; border-radius: 8px;
    color: #0f0e17; font-size: 16px; font-weight: 800;
    letter-spacing: 3px; cursor: pointer; margin-top: 4px;
    transition: opacity .2s;
}
.btn-verify:hover:not(:disabled) { opacity: .9; }
.btn-verify:disabled { opacity: .5; cursor: not-allowed; }
.msg-box {
    padding: 11px 14px; border-radius: 8px;
    font-size: 14px; margin-bottom: 14px; display: none;
}
.msg-box.ok  { background: rgba(39,174,96,.15); border: 1px solid rgba(39,174,96,.4); color: #2ecc71; display: flex; align-items: center; gap: 8px; }
.msg-box.err { background: rgba(231,76,60,.12);  border: 1px solid rgba(231,76,60,.4);  color: #e74c3c;  display: flex; align-items: center; gap: 8px; }

/* ── 奖品列表 ── */
.prize-panel {
    background: linear-gradient(160deg,#1a1a2e,#16213e);
    border: 1px solid rgba(240,165,0,.25);
    border-radius: var(--radius); padding: 20px;
    margin-bottom: 20px;
}
.panel-title {
    font-size: 14px; font-weight: 700; color: var(--gold);
    letter-spacing: 2px; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.prize-list { list-style: none; padding: 0; margin: 0; }
.prize-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 13px;
}
.prize-list li:last-child { border-bottom: none; }
.prize-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.prize-name { flex: 1; }

/* ── 历史记录 ── */
.history-list {
    list-style: none; padding: 0; margin: 0;
    max-height: 320px; overflow-y: auto;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-track { background: transparent; }
.history-list::-webkit-scrollbar-thumb { background: rgba(240,165,0,.3); border-radius: 2px; }

.history-list li {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; margin-bottom: 4px;
    border-radius: 8px;
    border-left: 3px solid #444;
    background: rgba(255,255,255,.03);
    font-size: 13px; color: var(--text);
    transition: background .15s;
}
.history-list li:hover { background: rgba(255,255,255,.06); }

.hr-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hr-name { flex: 1; font-weight: 600; min-width: 0;
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-qty  { font-size: 12px; color: var(--gold); font-weight: 700;
           background: rgba(240,165,0,.12); border-radius: 4px;
           padding: 1px 6px; white-space: nowrap; }
.hr-time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hr-mail { font-size: 11px; white-space: nowrap; }
.hr-mail.ok   { color: #27ae60; }
.hr-mail.fail { color: #e74c3c; }
.hr-mail.pend { color: var(--muted); }

/* ── 已验证角色条 ── */
.char-bar {
    background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3);
    border-radius: 8px; padding: 8px 14px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; margin-bottom: 16px;
}
.char-bar .char-info { color: #2ecc71; }
.char-bar a { color: var(--muted); text-decoration: none; font-size: 12px; }
.char-bar a:hover { color: #e74c3c; }

/* ── 抽奖结果弹窗 ── */
.prize-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 500; animation: fadeIn .3s ease;
}
.prize-modal {
    background: linear-gradient(160deg,#1a1a2e,#16213e);
    border: 2px solid var(--gold);
    border-radius: 18px; padding: 44px 36px;
    text-align: center; max-width: 380px; width: 92%;
    animation: scaleIn .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 0 80px rgba(240,165,0,.35), 0 40px 80px rgba(0,0,0,.6);
    position: relative;
}
.prize-modal::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,transparent,var(--gold),transparent);
}
.prize-modal .celebrate { font-size: 56px; margin-bottom: 10px; animation: pulse 1s ease infinite; }
.prize-modal h2 { color: #fff; font-size: 22px; margin-bottom: 18px; letter-spacing: 3px; }
.prize-item-name {
    font-size: 28px; font-weight: 900; letter-spacing: 2px;
    background: linear-gradient(135deg,#f0a500,#ffd700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 6px;
}
.prize-item-num  { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.prize-rarity    { font-size: 13px; margin-bottom: 14px; }
.prize-mail-status { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.prize-modal-btns { display: flex; gap: 10px; }
.prize-modal-btns button {
    flex: 1; padding: 12px;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: opacity .2s;
}
.btn-again { background: linear-gradient(135deg,#f0a500,#e67e22); color: #0f0e17; }
.btn-close  { background: rgba(255,255,255,.08); color: var(--text); }
.prize-modal-btns button:hover { opacity: .85; }

/* ── 彩带 ── */
.confetti-piece {
    position: fixed; top: -10px;
    border-radius: 3px; pointer-events: none;
    animation: confettiFall linear forwards;
    z-index: 9999;
}
@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── 在线 / 等待 / 可用 状态条 ── */
.status-bar {
    border-radius: 8px; padding: 9px 14px;
    font-size: 12px; margin-bottom: 14px;
    line-height: 1.6; font-weight: 500;
}
.status-online {
    background: rgba(233,69,96,.12);
    border: 1px solid rgba(233,69,96,.45);
    color: #e74c3c;
}
.status-wait {
    background: rgba(243,156,18,.1);
    border: 1px solid rgba(243,156,18,.4);
    color: #f39c12;
}
.status-ok {
    background: rgba(39,174,96,.08);
    border: 1px solid rgba(39,174,96,.35);
    color: #2ecc71;
}

/* ── 领取邮件 Modal ── */
.collect-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.9); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 700; animation: fadeIn .25s ease;
}
.collect-modal {
    background: linear-gradient(160deg,#1a1a2e,#16213e);
    border: 1px solid rgba(240,165,0,.4);
    border-radius: 18px; padding: 36px 32px;
    max-width: 400px; width: 92%; text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
    animation: scaleIn .3s cubic-bezier(.34,1.56,.64,1);
    position: relative; overflow: hidden;
}
.collect-modal::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg,transparent,var(--gold),transparent);
}
.collect-icon  { font-size: 50px; margin-bottom: 10px; animation: pulse 1.5s ease infinite; }
.collect-title { font-size: 18px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.collect-sub   { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.8; }
.collect-sub strong { color: #fff; font-size: 16px; }
.collect-steps {
    background: rgba(255,255,255,.04); border-radius: 10px;
    padding: 14px 16px; margin-bottom: 20px; text-align: left;
}
.cstep { font-size: 13px; color: var(--text); padding: 4px 0; line-height: 1.6; }
.btn-collect-continue {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg,#27ae60,#2ecc71);
    border: none; border-radius: 12px; color: #fff;
    font-size: 16px; font-weight: 700; letter-spacing: 1px;
    cursor: pointer; transition: opacity .2s;
    margin-top: 4px;
}
.btn-collect-continue:hover:not(:disabled) { opacity: .88; }
.btn-collect-continue:disabled { opacity: .5; cursor: not-allowed; }

/* ── 历史面板标题行（含「全部」按钮）── */
.panel-title-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.panel-title-row .panel-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.btn-view-all {
    background: rgba(240,165,0,.1);
    border: 1px solid rgba(240,165,0,.35);
    color: var(--gold); border-radius: 16px;
    font-size: 12px; font-weight: 600;
    padding: 4px 12px; cursor: pointer; white-space: nowrap;
    transition: background .2s, border-color .2s;
    line-height: 1.5;
}
.btn-view-all:hover { background: rgba(240,165,0,.22); border-color: var(--gold); }
.btn-view-all-full {
    font-size: 13px; padding: 7px 20px; border-radius: 20px;
    letter-spacing: 1px;
}

/* ── 稀有度汇总条 ── */
.history-stats-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.hst-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; font-size: 12px; font-weight: 600;
    padding: 3px 10px; white-space: nowrap; color: var(--muted);
    transition: background .2s;
}
.hst-chip:hover { background: rgba(255,255,255,.08); }
.hst-chip.total {
    border-color: rgba(240,165,0,.45);
    color: var(--gold);
    background: rgba(240,165,0,.07);
}
.hst-cnt { font-variant-numeric: tabular-nums; }

/* ── 历史全览 Modal ── */
.hist-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.88); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 600; animation: fadeIn .2s ease;
}
.hist-modal {
    background: linear-gradient(160deg,#1a1a2e,#16213e);
    border: 1px solid rgba(240,165,0,.3);
    border-radius: 16px;
    width: 94%; max-width: 660px;
    max-height: 88vh;
    display: flex; flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(240,165,0,.08);
    animation: scaleIn .28s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}
.hist-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 18px 20px 14px; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.hist-modal-title {
    font-size: 15px; font-weight: 700; color: var(--gold);
    letter-spacing: 1px;
}
.hist-modal-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hist-close {
    background: rgba(255,255,255,.06); border: none;
    color: var(--muted); border-radius: 50%;
    width: 28px; height: 28px; font-size: 13px;
    cursor: pointer; flex-shrink: 0;
    transition: background .2s, color .2s;
    display: flex; align-items: center; justify-content: center;
}
.hist-close:hover { background: rgba(233,69,96,.3); color: #e74c3c; }
.hist-modal-body {
    flex: 1 1 0; overflow-y: auto; min-height: 0;
}
.hist-modal-body::-webkit-scrollbar { width: 5px; }
.hist-modal-body::-webkit-scrollbar-track { background: transparent; }
.hist-modal-body::-webkit-scrollbar-thumb { background: rgba(240,165,0,.3); border-radius: 3px; }
.hist-modal-foot {
    padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px; flex-shrink: 0;
}
.hist-loading {
    text-align: center; padding: 40px; color: var(--muted); font-size: 14px;
}

/* Modal 内记录表格 */
.hm-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.hm-table th {
    background: rgba(255,255,255,.04); color: var(--muted);
    font-weight: 600; font-size: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: left; white-space: nowrap;
    position: sticky; top: 0; z-index: 1;
}
.hm-table td {
    padding: 9px 16px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
}
.hm-table tr:hover td { background: rgba(255,255,255,.03); }
.hm-table tr:last-child td { border-bottom: none; }
.hm-time   { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hm-dot    { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.hm-rarity { font-size: 10px; opacity: .8; margin-left: 5px; }
.hm-qty    { font-weight: 700; color: var(--gold); text-align: center; }

/* Modal 分页按钮 */
.pg-btn {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text); border-radius: 6px;
    padding: 5px 11px; font-size: 12px; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.pg-btn:hover:not(:disabled) {
    border-color: var(--gold); color: var(--gold);
    background: rgba(240,165,0,.1);
}
.pg-btn:disabled { opacity: .3; cursor: not-allowed; }
.pg-btn.active {
    background: rgba(240,165,0,.18);
    border-color: var(--gold); color: var(--gold2);
    font-weight: 700;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
    /* 屏幕不够宽时左列随比例收缩，最小 300px */
    .wheel-col { flex: 0 0 340px; width: 340px; }
}
@media (max-width: 780px) {
    /* 竖向堆叠 */
    .main-layout { flex-direction: column; align-items: center; }
    .wheel-col  { flex: none; width: 100%; max-width: 420px; overflow: visible; }
    .wheel-wrap { width: 100%; max-width: 420px; }
    .right-col  { width: 100%; }
    .ctrl-card  { margin-top: 16px; }
}
@media (max-width: 480px) {
    .page-wrap  { padding: 20px 12px 50px; }
    .verify-card { padding: 24px 18px; }
    .hist-modal  { max-height: 94vh; border-radius: 12px; }
    .hm-table th, .hm-table td { padding: 8px 10px; }
    .qty-grid   { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .qty-btn .qty-n { font-size: 15px; }
    .qty-btn .qty-p { font-size: 11px; }
    .btn-spin   { font-size: 16px; letter-spacing: 2px; }
}
