/* ============================================================
 *  古棺探宝 - 古墓地宫主题样式
 *  和平精英古墓迷途 H5
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bronze: #b8860b;
  --bronze-light: #daa520;
  --bronze-dark: #8b6914;
  --stone-dark: #1a1510;
  --stone: #2a221a;
  --stone-light: #3d3228;
  --gold: #ffd700;
  --red-blood: #8b0000;
  --text: #d4c5a0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", sans-serif;
  background: #0d0a06;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 背景 ---------- */
.tomb-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139,69,19,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0d0a06 0%, #1a1208 40%, #0d0a06 100%);
  overflow: hidden;
}
.fog {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,157,47,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,157,47,0.05) 0%, transparent 40%);
  animation: fogMove 12s ease-in-out infinite alternate;
}
@keyframes fogMove {
  from { transform: translateX(-3%) translateY(0); }
  to { transform: translateX(3%) translateY(2%); }
}

/* ---------- 容器 ---------- */
.container {
  position: relative; z-index: 1;
  max-width: 500px; margin: 0 auto;
  padding: 16px 14px 20px;
}

/* ---------- 标题 ---------- */
.tomb-header { text-align: center; margin-bottom: 18px; }
.title-main {
  font-size: 34px; font-weight: bold; letter-spacing: 6px;
  background: linear-gradient(180deg, #fff8d6 0%, #ffd700 38%, #ffa03d 72%, #ff5e3a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255,160,60,0.5)) drop-shadow(0 2px 3px rgba(0,0,0,0.8));
  animation: titleBreathe 3s ease-in-out infinite alternate;
}
@keyframes titleBreathe {
  from { filter: drop-shadow(0 0 10px rgba(255,160,60,0.35)) drop-shadow(0 2px 3px rgba(0,0,0,0.8)); }
  to   { filter: drop-shadow(0 0 20px rgba(255,190,60,0.7))  drop-shadow(0 2px 3px rgba(0,0,0,0.8)); }
}
.title-sub {
  font-size: 14px; color: var(--bronze-light);
  margin-top: 4px; letter-spacing: 4px;
}
.title-line {
  width: 120px; height: 2px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--bronze), var(--gold), var(--bronze), transparent);
}

/* ---------- 喜报滚动条 ---------- */
.news-bar {
  display: flex; align-items: stretch;
  height: 72px; margin-bottom: 20px;
  border: 2px solid #d9983d;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(66,46,24,0.95) 0%, rgba(40,28,15,0.95) 100%);
  box-shadow: 0 3px 14px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,215,0,0.14);
  overflow: hidden;
}
.news-badge {
  flex: 0 0 46px;
  background: linear-gradient(180deg, #ff5b4d 0%, #c62828 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border-right: 1px solid rgba(255,215,0,0.4);
  box-shadow: 2px 0 10px rgba(198,40,40,0.55);
}
.nb-icon { font-size: 17px; filter: drop-shadow(0 0 4px rgba(255,215,0,0.9)); }
.nb-text {
  writing-mode: vertical-lr; text-orientation: upright;
  font-size: 13px; font-weight: bold; color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.news-viewport { flex: 1; overflow: hidden; position: relative; }
.news-track { position: absolute; left: 0; right: 0; top: 0; }
.news-bar.animate .news-track { animation: newsUp var(--news-dur, 14s) linear infinite; }
.news-bar:hover .news-track { animation-play-state: paused; }
@keyframes newsUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.news-item {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px;
}
.news-avatar {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%; color: #fff;
  font-size: 12px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.45), inset 0 -2px 3px rgba(0,0,0,0.25);
}
.news-text {
  flex: 1; font-size: 12px; color: #e8d9b0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-text b { color: #ffe9a8; font-weight: 600; }
.news-prize { font-weight: bold; }
.news-prize.legendary { color: #ff6b6b; text-shadow: 0 0 6px rgba(255,77,79,0.55); }
.news-prize.epic      { color: #c792ff; text-shadow: 0 0 6px rgba(146,84,222,0.5); }
.news-prize.rare      { color: #5cb8ff; }
.news-prize.common    { color: #8fe08a; }
.news-time { flex: 0 0 auto; font-size: 11px; color: #9a8a66; font-family: Consolas, monospace; }

/* ---------- 激活码区 ---------- */
.code-section { margin-bottom: 24px; }
.stone-plate {
  background: linear-gradient(180deg, rgba(58,44,30,0.9) 0%, rgba(42,34,26,0.95) 100%);
  border: 2px solid var(--bronze-dark);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,215,0,0.1);
  position: relative;
}
.stone-plate::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px; pointer-events: none;
}
.plate-title {
  text-align: center; font-size: 16px; color: var(--gold);
  margin-bottom: 14px; letter-spacing: 2px;
}
.code-row { display: flex; gap: 8px; }
#codeInput {
  flex: 1; padding: 12px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--bronze-dark);
  border-radius: 8px; color: var(--gold);
  font-size: 15px; text-align: center;
  letter-spacing: 2px; outline: none;
  font-family: "Consolas", monospace;
}
#codeInput:focus { border-color: var(--gold); box-shadow: 0 0 10px rgba(255,215,0,0.2); }
.btn-verify {
  padding: 12px 20px;
  background: linear-gradient(180deg, var(--bronze-light), var(--bronze-dark));
  border: 1px solid var(--gold);
  border-radius: 8px; color: #2a1a00;
  font-size: 15px; font-weight: bold;
  cursor: pointer; letter-spacing: 2px;
  font-family: inherit;
}
.btn-verify:active { transform: scale(0.96); }
.status-bar { text-align: center; font-size: 13px; margin-top: 10px; min-height: 18px; }
.status-success { color: #52c41a; }
.status-error { color: #ff6b6b; }
.status-info { color: var(--bronze-light); }

/* ---------- 抽奖操作条（紧凑，替代石棺） ---------- */
.action-section {
  background: linear-gradient(180deg, rgba(58,44,30,0.9) 0%, rgba(42,34,26,0.95) 100%);
  border: 2px solid var(--bronze-dark);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,215,0,0.1);
  text-align: center;
}
.action-ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 15px; color: rgba(255,215,0,0.5);
  letter-spacing: 6px;
}
.action-ornament .ao-box {
  font-size: 22px; color: var(--gold);
  animation: boxGlow 2.4s ease-in-out infinite;
}
@keyframes boxGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(255,215,0,0.4); transform: scale(1); }
  50%      { text-shadow: 0 0 18px rgba(255,215,0,0.85); transform: scale(1.08); }
}
.action-hint {
  margin-top: 5px;
  font-size: 12.5px;
  color: rgba(255,215,0,0.7);
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,215,0,0.25);
}
/* ---------- 跑马灯抽奖高亮 ---------- */
.prize-card.lotto {
  border-color: var(--gold) !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.65), inset 0 0 12px rgba(255, 215, 0, 0.25);
  transform: translateY(-4px) scale(1.04);
  animation: lottoPulse 0.4s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes lottoPulse {
  to { box-shadow: 0 0 28px rgba(255, 215, 0, 0.95), inset 0 0 16px rgba(255, 215, 0, 0.4); }
}
.prize-card.lotto-win {
  border-color: var(--gold) !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), inset 0 0 18px rgba(255, 215, 0, 0.4);
  transform: translateY(-4px) scale(1.06);
  animation: winFlash 0.25s ease-in-out 6 alternate;
  z-index: 2;
}
@keyframes winFlash {
  to { filter: brightness(1.35); }
}
/* ---------- 操作按钮 ---------- */
.action-buttons {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 10px;
}
.btn-open {
  flex: 1; max-width: 140px; padding: 14px;
  border: 2px solid var(--gold);
  border-radius: 10px;
  font-size: 16px; font-weight: bold;
  cursor: pointer; letter-spacing: 4px;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-single {
  background: linear-gradient(180deg, #8b6914 0%, #5c4a0e 100%);
  color: var(--gold);
}
.btn-ten {
  background: linear-gradient(180deg, #ff8a3d 0%, #e0342b 55%, #a61d24 100%);
  border-color: #ffd700;
  color: #fff7e6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  animation: tenGlow 2.2s ease-in-out infinite;
}
@keyframes tenGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255,107,53,0.4); }
  50%      { box-shadow: 0 0 24px rgba(255,107,53,0.85); }
}
.btn-open:active { transform: scale(0.95); }
.btn-open:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 十连结果 ---------- */
.ten-result {
  background: rgba(20,14,8,0.95);
  border: 2px solid var(--bronze);
  border-radius: 14px;
  padding: 20px 14px;
  margin-bottom: 20px;
}
.result-title {
  text-align: center; font-size: 18px; color: var(--gold);
  margin-bottom: 16px; letter-spacing: 2px;
}
.ten-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.ten-card {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6px 4px;
  position: relative; overflow: hidden;
  animation: cardFlip 0.6s ease both;
}
.ten-card:nth-child(1) { animation-delay: 0.1s; }
.ten-card:nth-child(2) { animation-delay: 0.2s; }
.ten-card:nth-child(3) { animation-delay: 0.3s; }
.ten-card:nth-child(4) { animation-delay: 0.4s; }
.ten-card:nth-child(5) { animation-delay: 0.5s; }
.ten-card:nth-child(6) { animation-delay: 0.6s; }
.ten-card:nth-child(7) { animation-delay: 0.7s; }
.ten-card:nth-child(8) { animation-delay: 0.8s; }
.ten-card:nth-child(9) { animation-delay: 0.9s; }
.ten-card:nth-child(10) { animation-delay: 1.0s; }
@keyframes cardFlip {
  from { transform: rotateY(90deg); opacity: 0; }
  to { transform: rotateY(0); opacity: 1; }
}
.ten-card .cimg {
  font-size: 24px; margin-bottom: 4px;
}
.ten-card .ten-img {
  display: block; width: 34px; height: 34px;
  margin: 0 auto; object-fit: cover;
  border-radius: 6px;
}
.ten-card .cname {
  font-size: 9px; text-align: center;
  line-height: 1.2; color: #fff;
  word-break: break-all;
}
.ten-card.legendary { background: linear-gradient(160deg, #5c1a1a, #2a0a0a); border: 2px solid #ff4d4f; box-shadow: 0 0 12px rgba(255,77,79,0.5); }
.ten-card.epic      { background: linear-gradient(160deg, #3a1a5c, #1a0a2a); border: 2px solid #9254de; box-shadow: 0 0 10px rgba(146,84,222,0.4); }
.ten-card.rare      { background: linear-gradient(160deg, #1a3a5c, #0a1a2a); border: 2px solid #1890ff; }
.ten-card.common    { background: linear-gradient(160deg, #1a3a1a, #0a2a0a); border: 2px solid #52c41a; }
.btn-confirm {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  background: linear-gradient(180deg, var(--gold), var(--bronze));
  border: none; border-radius: 8px;
  color: #2a1a00; font-size: 15px; font-weight: bold;
  cursor: pointer; letter-spacing: 4px; font-family: inherit;
}

/* ---------- 底部面板 ---------- */
.bottom-panel {
  background: rgba(20,14,8,0.9);
  border: 2px solid var(--bronze-dark);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.panel-tabs {
  display: flex;
  background: linear-gradient(180deg, #3d3228 0%, #2a221a 100%);
  border-bottom: 1px solid var(--bronze-dark);
}
.tab {
  flex: 1; padding: 12px 0; text-align: center;
  font-size: 14px; color: var(--text);
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab.active {
  border-bottom-color: currentColor;
  background: rgba(255,215,0,0.05);
  font-weight: bold;
}
.tab.active[data-tab="prizes"] { color: var(--gold); }
.tab.active[data-tab="prob"]   { color: #40a9ff; }
.tab-content { padding: 14px; }
.prize-pool { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize-card {
  border-radius: 8px; padding: 10px 6px;
  text-align: center;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prize-card:hover { transform: translateY(-3px); }
.prize-card.legendary { border-color: #ff4d4f; background: rgba(255,77,79,0.12); }
.prize-card.legendary:hover { box-shadow: 0 0 14px rgba(255,77,79,0.5); }
.prize-card.epic      { border-color: #9254de; background: rgba(146,84,222,0.12); }
.prize-card.epic:hover { box-shadow: 0 0 14px rgba(146,84,222,0.5); }
.prize-card.rare      { border-color: #1890ff; background: rgba(24,144,255,0.12); }
.prize-card.rare:hover { box-shadow: 0 0 14px rgba(24,144,255,0.5); }
.prize-card.common    { border-color: #52c41a; background: rgba(82,196,26,0.12); }
.prize-card.common:hover { box-shadow: 0 0 14px rgba(82,196,26,0.5); }
.prize-card .pc-icon { font-size: 26px; margin-bottom: 6px; }
.prize-card .pc-img {
  display: block; width: 58px; height: 58px;
  margin: 0 auto; object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.modal-prize-img .modal-img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
}
.prize-card .pc-name {
  font-size: 13px; color: #fff;
  line-height: 1.4; min-height: 36px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}
.prize-card .pc-rarity { font-size: 11px; margin-top: 6px; padding: 2px 10px; border-radius: 10px; display: inline-block; font-weight: 600; }
.pc-rarity.legendary { background: #ff4d4f; color: #fff; }
.pc-rarity.epic      { background: #9254de; color: #fff; }
.pc-rarity.rare      { background: #1890ff; color: #fff; }
.pc-rarity.common    { background: #52c41a; color: #fff; }

.prob-list { }
.prob-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,215,0,0.1);
}
.prob-item:last-child { border-bottom: none; }
.prob-item .pname { font-size: 13px; color: #fff; }
.prob-item .pprob { font-size: 13px; color: var(--gold); font-weight: bold; }
.prob-tip { font-size: 11px; color: #888; margin-top: 12px; text-align: center; }

/* ---------- 个人中心 ---------- */
.profile-box { width: min(94vw, 360px); padding: 20px 16px; text-align: left; max-height: 86vh; overflow-y: auto; }
.pf-view { display: flex; flex-direction: column; gap: 12px; }
.pf-head { display: flex; align-items: center; gap: 12px; }
.pf-avatar {
  flex: 0 0 62px; width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #3d2b1f, #5c4033);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(255,215,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: bold; color: var(--gold);
  overflow: hidden; cursor: pointer; user-select: none;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-avatar.big { width: 84px; height: 84px; margin: 0 auto; position: relative; font-size: 34px; }
.pf-camera {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px;
  background: var(--gold); border-radius: 50%; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.pf-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-name { font-size: 17px; font-weight: bold; color: #ffe9a8; text-shadow: 0 0 8px rgba(255,215,0,0.3); }
.pf-uid { font-size: 12px; color: #9a8a66; cursor: pointer; user-select: none; }
.pf-uid .uid-copy { font-size: 11px; opacity: 0.8; }
.pf-close { position: absolute; top: 10px; right: 14px; color: #9a8a66; font-size: 16px; cursor: pointer; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-stat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px; padding: 10px 4px; text-align: center;
}
.pf-stat b { display: block; font-size: 18px; color: #fff; }
.pf-stat span { font-size: 11px; color: #9a8a66; }
.pf-stat.gold { border-color: rgba(255,215,0,0.6); background: rgba(255,215,0,0.08); }
.pf-stat.gold b { color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.5); }
.pf-how { text-align: center; font-size: 12px; }
.pf-how a { color: var(--gold); text-decoration: underline; opacity: 0.85; }
.pf-how-tip {
  font-size: 12px; color: #c9b98f; line-height: 1.8;
  background: rgba(255,215,0,0.06); border: 1px dashed rgba(255,215,0,0.35);
  border-radius: 8px; padding: 8px 10px;
}
.pf-sign-btn {
  width: 100%; padding: 13px 0; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #ffb74d, #ff8f00);
  color: #fff; font-size: 16px; font-weight: bold; cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,143,0,0.4);
  font-family: inherit; letter-spacing: 1px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.pf-sign-btn:active { transform: scale(0.97); }
.pf-sign-btn:disabled { background: linear-gradient(135deg, #6b6255, #574f44); box-shadow: none; cursor: not-allowed; color: #b8b0a2; }
.pf-sign-btn .pf-sign-plus { font-size: 13px; background: rgba(0,0,0,0.22); border-radius: 10px; padding: 2px 10px; margin-left: 6px; }
.pf-sign-btn:disabled .pf-sign-plus { background: transparent; }
.pf-exchange { border: 1px dashed rgba(255,215,0,0.55); border-radius: 12px; padding: 12px; background: rgba(255,215,0,0.04); }
.pf-ex-title { font-size: 14px; font-weight: bold; color: var(--gold); margin-bottom: 4px; }
.pf-ex-desc { font-size: 11px; color: #9a8a66; margin-bottom: 10px; }
.pf-ex-list { display: flex; flex-direction: column; gap: 8px; }
.pf-ex-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 9px 10px;
}
.pf-ex-name { flex: 1; font-size: 13px; color: #fff; min-width: 0; }
.pf-ex-cost { font-size: 11px; color: var(--gold); white-space: nowrap; }
.pf-ex-btn {
  flex: 0 0 auto; padding: 5px 16px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, #ffb74d, #ff8f00);
  color: #fff; font-size: 13px; font-weight: bold; cursor: pointer; font-family: inherit;
}
.pf-ex-btn:disabled { background: #574f44; color: #b8b0a2; cursor: not-allowed; }
.pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-act { padding: 11px 0; border: none; border-radius: 10px; font-size: 13px; font-weight: bold; cursor: pointer; font-family: inherit; color: #fff; }
.pf-act-purple { background: linear-gradient(135deg, #b37feb, #9254de); }
.pf-act-blue { background: linear-gradient(135deg, #69b1ff, #1890ff); }
.pf-act-red { background: linear-gradient(135deg, #ff8a7a, #ff4d4f); }
.pf-act:active { transform: scale(0.97); }
.pf-sub-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: bold; color: #ffe9a8; }
.pf-back { font-size: 12px; font-weight: normal; color: var(--gold); cursor: pointer; text-decoration: underline; }
.pf-avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; }
.pf-avatar-hint { font-size: 11px; color: #9a8a66; }
.pf-nick-row { display: flex; gap: 8px; }
.pf-nick-row input {
  flex: 1; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,215,106,0.4);
  color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 14px; outline: none; min-width: 0;
}
.pf-nick-row input:focus { border-color: var(--gold); }
.pf-save-btn { flex: 0 0 auto; background: linear-gradient(135deg, #b37feb, #9254de); border: none; color: #fff; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: bold; cursor: pointer; font-family: inherit; }
.pf-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.pf-list-item {
  background: rgba(255,215,0,0.04); border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px; padding: 9px 10px; font-size: 12px; color: #c9b98f;
  display: flex; align-items: center; gap: 8px;
}
.pf-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-li-main b { font-size: 13px; color: #fff; }
.pf-li-main small { font-size: 11px; color: #9a8a66; }
.pf-li-code { font-family: monospace; font-size: 13px; color: var(--gold); letter-spacing: 1px; }
.pf-li-copy {
  flex: 0 0 auto; padding: 4px 12px; border-radius: 12px; border: 1px solid rgba(255,215,0,0.5);
  background: transparent; color: var(--gold); font-size: 12px; cursor: pointer; font-family: inherit;
}
.pf-empty { text-align: center; color: #9a8a66; font-size: 13px; padding: 20px 0; }

/* ---------- 排行榜 ---------- */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.12);
  animation: rankIn 0.4s ease both;
}
.rank-item:nth-child(2) { animation-delay: 0.05s; }
.rank-item:nth-child(3) { animation-delay: 0.1s; }
.rank-item:nth-child(n+4) { animation-delay: 0.15s; }
@keyframes rankIn {
  from { transform: translateX(-12px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.rank-item.top1 {
  background: linear-gradient(90deg, rgba(255,215,0,0.2), rgba(255,160,60,0.06));
  border-color: rgba(255,215,0,0.6);
  box-shadow: 0 0 12px rgba(255,215,0,0.25);
}
.rank-item.top2 {
  background: linear-gradient(90deg, rgba(200,206,216,0.16), transparent);
  border-color: rgba(200,206,216,0.45);
}
.rank-item.top3 {
  background: linear-gradient(90deg, rgba(205,127,50,0.18), transparent);
  border-color: rgba(205,127,50,0.5);
}
.rk-no { flex: 0 0 26px; text-align: center; font-weight: bold; color: var(--gold); font-size: 15px; }
.rk-avatar {
  flex: 0 0 26px; width: 26px; height: 26px;
  border-radius: 50%; color: #fff;
  font-size: 13px; font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.45);
}
.rk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-info b { font-size: 13px; color: #ffe9a8; }
.rk-info small { font-size: 11px; color: #9a8a66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-score {
  flex: 0 0 auto; font-size: 15px; font-weight: bold;
  color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.rk-score i { font-style: normal; font-size: 10px; color: #9a8a66; }
.rank-empty { text-align: center; color: #9a8a66; font-size: 13px; padding: 16px 0; }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center; font-size: 12px; color: #a89a7a;
  line-height: 1.8; padding: 10px 0;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.show { display: flex; }
.modal-box {
  position: relative;
  background: linear-gradient(180deg, #2a1f14 0%, #1a1208 100%);
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 30px 24px;
  width: 100%; max-width: 320px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255,215,0,0.3);
  animation: modalIn 0.5s ease;
}
@keyframes modalIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-glow {
  position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 16px;
  background: linear-gradient(45deg, transparent, rgba(255,215,0,0.3), transparent);
  z-index: -1;
}
.modal-rarity {
  display: inline-block; padding: 4px 16px; border-radius: 12px;
  font-size: 14px; font-weight: bold; margin-bottom: 16px;
}
.modal-rarity.legendary { background: #ff4d4f; color: #fff; }
.modal-rarity.epic      { background: #9254de; color: #fff; }
.modal-rarity.rare      { background: #1890ff; color: #fff; }
.modal-rarity.common    { background: #52c41a; color: #fff; }
.modal-prize-img {
  width: 100px; height: 100px; margin: 0 auto 14px;
  background: rgba(255,215,0,0.1);
  border: 2px solid var(--gold);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px;
}
.modal-prize-name {
  font-size: 18px; color: var(--gold); margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.modal-redeem {
  background: rgba(0,0,0,0.4);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 10px; margin-bottom: 12px;
}
.redeem-label { font-size: 12px; color: var(--bronze-light); margin-bottom: 4px; }
.redeem-code {
  font-size: 16px; color: #fff; font-weight: bold;
  letter-spacing: 2px; font-family: monospace;
}
.modal-tip { font-size: 12px; color: #888; margin-bottom: 16px; }
.modal-close {
  width: 100%; padding: 12px;
  background: linear-gradient(180deg, var(--gold), var(--bronze));
  border: none; border-radius: 8px;
  color: #2a1a00; font-size: 15px; font-weight: bold;
  cursor: pointer; font-family: inherit; letter-spacing: 2px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 360px) {
  .title-main { font-size: 28px; }
  .ten-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
  .ten-card .cname { font-size: 8px; }
}

/* ===== 登录条 & 登录/注册弹窗 ===== */
.auth-bar{display:flex;justify-content:center;margin:10px 0 2px;}
.auth-login-btn{background:linear-gradient(135deg,#3d2b1f,#5c4033);border:1px solid #ffd76a;color:#ffd76a;padding:8px 22px;border-radius:22px;font-size:14px;cursor:pointer;font-weight:bold;letter-spacing:1px;}
.auth-login-btn:hover{background:linear-gradient(135deg,#5c4033,#7a5c44);}
.auth-welcome{display:flex;align-items:center;gap:10px;color:#e8d5b0;font-size:14px;background:rgba(0,0,0,.35);border:1px solid rgba(255,215,106,.35);padding:6px 16px;border-radius:20px;}
.auth-user{cursor:pointer;color:#ffd76a;font-weight:bold;}
.auth-points{cursor:pointer;color:#ffb74d;font-weight:bold;font-size:13px;}
.auth-logout{color:#ff8a7a;cursor:pointer;font-size:13px;text-decoration:underline;}
.auth-box{width:min(92vw,360px);}
.auth-tabs{display:flex;gap:8px;margin-bottom:14px;}
.auth-tab{flex:1;text-align:center;padding:8px 0;border-radius:8px;background:rgba(255,255,255,.08);color:#b8a88f;cursor:pointer;font-size:14px;}
.auth-tab.active{background:linear-gradient(135deg,#ffd76a,#e8a94a);color:#2b1d12;font-weight:bold;}
.auth-form{display:flex;flex-direction:column;gap:10px;}
.auth-form input{background:rgba(0,0,0,.4);border:1px solid rgba(255,215,106,.4);color:#fff;padding:10px 12px;border-radius:8px;font-size:14px;outline:none;width:100%;}
.auth-form input:focus{border-color:#ffd76a;}
.auth-error{color:#ff8a7a;font-size:13px;min-height:16px;text-align:center;}
.btn-auth{background:linear-gradient(135deg,#ffd76a,#e8a94a);border:none;color:#2b1d12;padding:11px 0;border-radius:8px;font-size:15px;font-weight:bold;cursor:pointer;letter-spacing:2px;}
.btn-auth-random{background:rgba(255,255,255,.06);border:1px dashed rgba(255,215,106,.5);color:#ffd76a;padding:9px 0;border-radius:8px;font-size:13px;cursor:pointer;}

/* ===== 激活码中奖查询 ===== */
.btn-query{
  display:block;width:100%;margin-top:10px;padding:10px;
  background:rgba(255,215,0,0.08);
  border:1px solid var(--bronze);border-radius:8px;
  color:var(--bronze-light);font-size:13px;font-weight:bold;
  cursor:pointer;letter-spacing:1px;font-family:inherit;
  transition:all 0.2s;
}
.btn-query:hover{background:rgba(255,215,0,0.15);color:var(--gold);border-color:var(--gold);}
.btn-query:active{transform:scale(0.97);}
.query-box{width:min(94vw,360px);padding:22px 16px;text-align:left;}
.q-title{font-size:16px;font-weight:bold;color:var(--gold);text-align:center;margin-bottom:14px;letter-spacing:1px;}
.q-row{display:flex;gap:8px;margin-bottom:12px;}
.q-row input{
  flex:1;min-width:0;background:rgba(0,0,0,0.4);border:1px solid rgba(255,215,106,0.4);
  color:var(--gold);padding:10px 12px;border-radius:8px;font-size:13px;outline:none;
  font-family:Consolas,monospace;letter-spacing:1px;
}
.q-row input:focus{border-color:var(--gold);}
.q-btn{
  flex:0 0 auto;padding:0 18px;border:none;border-radius:8px;
  background:linear-gradient(135deg,#ffd76a,#e8a94a);
  color:#2b1d12;font-size:14px;font-weight:bold;cursor:pointer;font-family:inherit;
}
.q-result{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow-y:auto;}
.q-status{
  text-align:center;font-size:13px;padding:10px;border-radius:8px;
  background:rgba(255,255,255,0.05);border:1px solid rgba(255,215,0,0.2);color:#c9b98f;
}
.q-status.ok{color:#7bd88f;border-color:rgba(82,196,26,0.4);background:rgba(82,196,26,0.06);}
.q-status.warn{color:#ffb74d;border-color:rgba(255,167,38,0.4);background:rgba(255,167,38,0.06);}
.q-record{
  background:rgba(255,215,0,0.04);border:1px solid rgba(255,215,0,0.15);
  border-radius:10px;padding:10px 12px;
}
.q-record-head{display:flex;align-items:center;gap:8px;margin-bottom:4px;}
.q-record-prize{flex:1;font-size:14px;font-weight:bold;color:#fff;}
.q-rarity-tag{flex:0 0 auto;font-size:10px;padding:2px 8px;border-radius:8px;font-weight:bold;}
.q-rarity-tag.legendary{background:#ff4d4f;color:#fff;}
.q-rarity-tag.epic{background:#9254de;color:#fff;}
.q-rarity-tag.rare{background:#1890ff;color:#fff;}
.q-rarity-tag.common{background:#52c41a;color:#fff;}
.q-record-time{font-size:11px;color:#9a8a66;}
.q-redeem{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:6px;padding:6px 8px;
  background:rgba(0,0,0,0.35);border:1px dashed rgba(255,215,0,0.4);border-radius:6px;
}
.q-redeem-code{font-family:monospace;font-size:13px;color:var(--gold);letter-spacing:1px;}
.q-redeem-copy{
  flex:0 0 auto;background:transparent;border:1px solid rgba(255,215,0,0.5);color:var(--gold);
  font-size:11px;padding:2px 10px;border-radius:10px;cursor:pointer;font-family:inherit;
}
.q-empty{text-align:center;color:#9a8a66;font-size:13px;padding:24px 0;}
