/* ============================================================
   积分寰宇 · 共享样式（参考站同款马卡龙风格）
   浅色渐变背景 + 白色圆角卡片 + 彩色渐变按钮
   ============================================================ */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { min-height:100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color:#2a2f45;
  background: linear-gradient(135deg, #c3b0e6 0%, #ecc4d8 28%, #f7e6b6 62%, #c2e6cd 100%);
  background-attachment: fixed;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:24px 18px 40px;
}
.wrap { width:100%; max-width:400px; }

/* 抬头 logo */
.logo { text-align:center; margin-bottom:22px; }
.logo-icon {
  width:64px; height:64px; margin:0 auto 12px;
  background: linear-gradient(135deg, #ffd93d, #ffb347);
  border-radius:20px; display:flex; align-items:center; justify-content:center;
  font-size:34px; box-shadow:0 8px 24px rgba(255,180,60,.35);
}
.logo h1 {
  font-size:26px; font-weight:900; letter-spacing:4px;
  background: linear-gradient(90deg,#ff8c00,#ffb347,#ff8c00);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.logo p { color:#9aa0b5; font-size:13px; margin-top:6px; letter-spacing:1px; }

/* 卡片 */
.card {
  background:#fff; border-radius:20px; padding:24px;
  box-shadow:0 12px 40px rgba(80,90,160,.12), 0 2px 8px rgba(80,90,160,.06);
  border:1px solid rgba(255,255,255,.9); margin-bottom:16px;
}
label { display:block; font-size:13px; color:#6b7190; font-weight:600; margin-bottom:8px; }
input {
  width:100%; padding:13px 16px; border-radius:12px;
  border:1.5px solid #e3e6f0; background:#f8f9ff; color:#2a2f45;
  font-size:16px; outline:none; transition:all .2s; margin-bottom:14px;
}
input::placeholder { color:#b3b8cc; }
input:focus { border-color:#ffb347; background:#fff; box-shadow:0 0 0 4px rgba(255,179,71,.15); }

/* 按钮 */
.btn {
  width:100%; padding:13px; border:none; border-radius:12px;
  font-size:16px; font-weight:700; cursor:pointer; color:#fff; letter-spacing:3px;
  background: linear-gradient(90deg,#ff8c00,#ffb347);
  box-shadow:0 6px 18px rgba(255,140,0,.3); transition:all .2s;
}
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:translateY(0); }
.btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.btn.pink { background:linear-gradient(90deg,#ff6b9d,#ff9b4e); box-shadow:0 6px 18px rgba(255,107,157,.35); letter-spacing:6px; }
.btn.purple { background:linear-gradient(90deg,#7c6cf0,#b388ff); box-shadow:0 6px 18px rgba(124,108,240,.3); }
.btn.ghost { background:#fff; color:#6a5acd; border:1.5px solid #e4d8f0; box-shadow:none; letter-spacing:1px; }
.btn.sm { width:auto; padding:9px 16px; font-size:13px; }

.msg { text-align:center; font-size:14px; margin-top:10px; min-height:20px; font-weight:500; }
.msg.ok { color:#2ecc71; }
.msg.err { color:#e74c3c; }
.link { display:block; text-align:center; margin-top:14px; color:#6a5acd; font-size:14px; text-decoration:none; font-weight:600; }
.link:hover { text-decoration:underline; }
.link.muted { color:#8872a3; font-weight:400; font-size:13px; }
.bind-entry {
  display:block; text-align:center; margin:14px 0 2px; padding:11px; border-radius:12px;
  background:#f3edff; color:#6a5acd; font-size:14px; font-weight:700; text-decoration:none;
  border:1px solid #e4d8f0; transition:all .2s;
}
.bind-entry:hover { background:#e9dfff; border-color:#a98adc; }

/* 验证码展示 */
.code-display {
  text-align:center; font-size:42px; font-weight:800; letter-spacing:10px;
  color:#ff8c00; background:#f8f9ff; border:1.5px dashed #ffb347;
  border-radius:12px; padding:16px; margin:12px 0;
}
.code-big {
  display:block; text-align:center; font-size:28px; font-weight:900; letter-spacing:8px;
  color:#7c6cf0; margin:10px 0 4px; background:#f4efff; border-radius:10px; padding:10px; border:1px dashed #d8c8f5;
}
.tip { font-size:13px; color:#6b7190; text-align:center; line-height:1.8; }
.tip b { color:#ff8c00; }
.tip.purple { background:#f4efff; border:1px solid #d8c8f5; border-radius:12px; padding:12px 14px; color:#5f4b8b; text-align:left; }
.tip.purple b { color:#7c6cf0; }
.step { font-size:12px; color:#9aa0b5; text-align:center; margin-bottom:14px; }
.step b { color:#ff8c00; }
.step.purple b { color:#7c6cf0; }
.loading { text-align:center; font-size:14px; color:#9aa0b5; margin-top:12px; }
.footer { text-align:center; color:#8f8aa6; font-size:11px; margin-top:22px; letter-spacing:1px; line-height:1.8; }
.hidden { display:none !important; }

/* ---------- 仪表盘 ---------- */
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.topbar .hi { font-size:15px; color:#4a4368; font-weight:600; }
.topbar .hi b { color:#ff8c00; }
.points-hero {
  text-align:center; padding:26px 20px; border-radius:20px; margin-bottom:16px;
  background:linear-gradient(160deg,#fff,#fdf6ec);
  border:1px solid #f0e2c8; box-shadow:0 12px 40px rgba(255,180,60,.15);
}
.points-hero .lab { font-size:13px; color:#9a8fc0; }
.points-hero .big {
  font-size:52px; font-weight:900; line-height:1.1; font-variant-numeric:tabular-nums;
  background:linear-gradient(90deg,#ff8c00,#ffb347);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.points-hero .meta { font-size:13px; color:#9a8fc0; margin-top:8px; }

.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.stat { background:#fff; border:1px solid #eceaf5; border-radius:14px; padding:14px 8px; text-align:center; box-shadow:0 4px 14px rgba(80,90,160,.06); }
.stat .v { font-size:20px; font-weight:800; color:#7c6cf0; font-variant-numeric:tabular-nums; }
.stat .k { font-size:11px; color:#9aa0b5; margin-top:4px; }

.menu { display:flex; flex-direction:column; gap:12px; }
.mitem {
  display:flex; align-items:center; gap:14px; padding:18px; background:#fff;
  border:1px solid #eceaf5; border-radius:16px; text-decoration:none; color:inherit;
  box-shadow:0 4px 14px rgba(80,90,160,.06); transition:transform .12s, box-shadow .12s;
}
.mitem:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(80,90,160,.14); }
.mitem .ico { font-size:30px; }
.mitem .t { font-size:17px; font-weight:800; }
.mitem .d { font-size:12px; color:#9aa0b5; margin-top:3px; }
.mitem .arrow { margin-left:auto; color:#c3bedb; font-size:20px; }

/* 排行榜 */
.rank { background:#fff; border:1px solid #eceaf5; border-radius:18px; padding:18px; margin-top:16px; box-shadow:0 4px 14px rgba(80,90,160,.06); }
.rank h2 { font-size:15px; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.rank h2 button { background:none; border:none; color:#7c6cf0; font-size:13px; cursor:pointer; }
.rk { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f2f0f8; }
.rk:last-child { border-bottom:none; }
.rk .no { width:26px; text-align:center; font-weight:800; color:#b3aecb; }
.rk .no.g1 { color:#ffb347; } .rk .no.g2 { color:#a9b4c4; } .rk .no.g3 { color:#e0a06a; }
.rk .nm { flex:1; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rk .nm small { color:#b3aecb; font-size:11px; margin-left:6px; }
.rk .pp { font-weight:800; color:#7c6cf0; font-variant-numeric:tabular-nums; }
.empty { color:#b3aecb; font-size:13px; text-align:center; padding:14px; }

/* ---------- 矿场 ---------- */
.mine-stage {
  position:relative; padding:30px 20px; text-align:center; border-radius:20px; margin-bottom:16px;
  background:linear-gradient(160deg,#fff6e0 0%,#ffe9c9 60%,#ffd9b0 100%);
  border:1px solid #f5dfae; box-shadow:0 12px 34px rgba(255,180,60,.18); overflow:hidden;
}
.mine-rock {
  font-size:84px; line-height:1; margin-bottom:10px; cursor:pointer; user-select:none;
  filter:drop-shadow(0 8px 20px rgba(255,150,60,.4)); transition:transform .1s;
}
.mine-rock.hit { animation:rockhit .25s; }
@keyframes rockhit { 0%{transform:scale(1) rotate(0);} 30%{transform:scale(1.15) rotate(-8deg);} 60%{transform:scale(.92) rotate(6deg);} 100%{transform:scale(1) rotate(0);} }
.mine-reward { font-size:22px; font-weight:900; min-height:30px; margin-top:6px; }
.mine-reward.good { color:#2ecc71; }
.mine-reward.bad { color:#e74c3c; }
.mine-reward.tier { animation:rise .6s ease-out; }
@keyframes rise { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.energybar { height:14px; background:#eef0f8; border-radius:999px; overflow:hidden; margin:10px 0 6px; }
.energybar i { display:block; height:100%; background:linear-gradient(90deg,#7ee0a8,#37c6d8); border-radius:999px; transition:width .3s; }
.energyline { display:flex; justify-content:space-between; font-size:12px; color:#9aa0b5; }
.energyline b { color:#ff8c00; }

/* ---------- 大逃杀 ---------- */
.br-hero {
  background:linear-gradient(160deg,#efe8ff,#f7f0ff); border:1px solid #ddd0f5;
  border-radius:20px; padding:18px; margin-bottom:16px; box-shadow:0 10px 30px rgba(124,108,240,.14);
}
.br-meta { display:flex; justify-content:space-between; font-size:13px; color:#6a5acd; margin-bottom:6px; }
.br-meta b { color:#7c6cf0; }
.br-phase { text-align:center; font-size:16px; font-weight:800; margin-bottom:4px; color:#4a3f7a; }
.br-clock { text-align:center; font-size:38px; font-weight:900; color:#ff8c00; font-variant-numeric:tabular-nums; line-height:1.1; }
.br-players { text-align:center; font-size:13px; color:#9aa0b5; margin-top:4px; }
.rooms { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:14px 0; }
.room {
  position:relative; border-radius:14px; padding:12px; border:1.5px solid #e6e2f0;
  background:#fff; transition:all .15s; cursor:pointer; box-shadow:0 3px 10px rgba(80,90,160,.05);
}
.room.sel { border-color:#ffb347; background:#fff8ec; }
.room.killed { border-color:#ff6b6b; background:#ffeeee; }
.room.mine { box-shadow:0 0 0 2px rgba(255,179,71,.6) inset; }
.room .rn { font-size:14px; font-weight:800; color:#4a4368; }
.room .rt { font-size:12px; color:#9aa0b5; margin-top:4px; }
.room .rt b { color:#ff8c00; }
.room .badge { position:absolute; top:8px; right:8px; font-size:11px; padding:2px 7px; border-radius:8px; background:#ff6b6b; color:#fff; font-weight:800; }
.room .me-tag { position:absolute; top:8px; right:8px; font-size:11px; padding:2px 7px; border-radius:8px; background:#ffb347; color:#fff; font-weight:800; }
.bets { display:flex; gap:8px; margin:10px 0; }
.bet-opt { flex:1; text-align:center; padding:11px 0; border-radius:12px; border:1.5px solid #e6e2f0; background:#fff; font-weight:800; font-size:15px; color:#4a4368; cursor:pointer; }
.bet-opt.sel { border-color:#ff8c00; background:#fff3e0; color:#ff8c00; }
.result-box { background:#fff; border:1px solid #eceaf5; border-radius:14px; padding:14px; margin-top:12px; text-align:center; box-shadow:0 4px 14px rgba(80,90,160,.06); }
.result-box .big { font-size:22px; font-weight:900; color:#ff6b6b; margin:4px 0; }
.win-list { margin-top:10px; font-size:13px; line-height:1.9; text-align:left; max-height:220px; overflow:auto; }
.win-list .loss { color:#e74c3c; }

/* ---- 通用弹窗（赠送积分等）---- */
.modal { position:fixed; inset:0; background:rgba(30,24,48,.55); z-index:80; display:flex; align-items:center; justify-content:center; padding:16px; box-sizing:border-box; }
.modal .mbox { box-shadow:0 18px 50px rgba(30,20,60,.35); animation:mpop .22s ease-out; }
@keyframes mpop { from{ transform:scale(.92); opacity:0; } to{ transform:scale(1); opacity:1; } }
.btn.brbtn { background:linear-gradient(90deg,#ff8c00,#ffb347); color:#fff; border:none; box-shadow:0 6px 18px rgba(255,140,0,.3); }
