/* ============================================================
 *  和平精英皮肤大转盘 - 明亮活力主题样式
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --gold: #ffd700;
  --gold-dark: #e6a800;
  --primary: #ff6a3d;
  --primary-dark: #e0342b;
  --blue: #2f7cf6;
  --purple: #9254de;
  --green: #2fbf71;
  --ink: #2b2f3a;
  --ink-soft: #6b7280;
  --card: #ffffff;
  --line: #f0e6d2;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", sans-serif;
  background: #fdf6e9;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 背景 ---------- */
.sky-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,205,90,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 12% 82%, rgba(255,122,90,0.16) 0%, transparent 46%),
    radial-gradient(ellipse at 88% 78%, rgba(80,150,255,0.14) 0%, transparent 46%),
    linear-gradient(180deg, #fff8e6 0%, #ffefd2 45%, #ffe3c0 100%);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; }
.blob-1 { width: 220px; height: 220px; background: #ffd76a; top: -60px; left: -60px; animation: blobFloat 9s ease-in-out infinite alternate; }
.blob-2 { width: 180px; height: 180px; background: #ffb3c7; top: 30%; right: -50px; animation: blobFloat 11s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 200px; height: 200px; background: #9fd0ff; bottom: -70px; left: 20%; animation: blobFloat 13s ease-in-out infinite alternate; }
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(26px, -20px) scale(1.08); }
}

/* ---------- 容器 ---------- */
.container {
  position: relative; z-index: 1;
  max-width: 500px; margin: 0 auto;
  padding: 16px 14px 20px;
}

/* ---------- 标题 ---------- */
.tomb-header { text-align: center; margin-bottom: 14px; }
.title-main {
  font-size: 34px; font-weight: bold; letter-spacing: 6px;
  background: linear-gradient(180deg, #ff8a3d 0%, #ff5e3a 45%, #e0342b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255,106,61,0.35));
  animation: titleBreathe 3s ease-in-out infinite alternate;
}
@keyframes titleBreathe {
  from { filter: drop-shadow(0 2px 6px rgba(255,106,61,0.25)); }
  to   { filter: drop-shadow(0 2px 14px rgba(255,106,61,0.55)); }
}
.title-sub { font-size: 14px; color: #b06a1f; margin-top: 4px; letter-spacing: 4px; }
.title-line {
  width: 120px; height: 2px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, #ffb84d, var(--gold), #ffb84d, transparent);
}

/* ---------- 喜报滚动条 ---------- */
.news-bar {
  display: flex; align-items: stretch;
  height: 72px; margin-bottom: 16px;
  border: 2px solid #ffd17a;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff3d9 100%);
  box-shadow: 0 4px 14px rgba(230,168,0,0.18);
  overflow: hidden;
}
.news-badge {
  flex: 0 0 46px;
  background: linear-gradient(180deg, #ff6a5b 0%, #e0342b 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border-right: 1px solid rgba(255,215,0,0.4);
}
.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;
}
.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 1px 4px rgba(0,0,0,0.18);
}
.news-text { flex: 1; font-size: 12px; color: #7a5a20; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-text b { color: #b06a1f; font-weight: 600; }
.news-prize { font-weight: bold; }
.news-prize.legendary { color: #ff4d4f; }
.news-prize.epic      { color: #9254de; }
.news-prize.rare      { color: #1890ff; }
.news-prize.common    { color: #3aa655; }
.news-time { flex: 0 0 auto; font-size: 11px; color: #b9a06a; font-family: Consolas, monospace; }

/* ---------- 激活码区 ---------- */
.code-section { margin-bottom: 18px; }
.stone-plate {
  background: linear-gradient(180deg, #ffffff 0%, #fff7e6 100%);
  border: 2px solid #ffd17a;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 6px 20px rgba(230,168,0,0.15);
  position: relative;
}
.plate-title { text-align: center; font-size: 16px; color: #e6a800; margin-bottom: 14px; letter-spacing: 2px; font-weight: bold; }
.code-row { display: flex; gap: 8px; }
#codeInput {
  flex: 1; padding: 12px 14px;
  background: #fffdf6;
  border: 1px solid #f0d9a8;
  border-radius: 8px; color: #b06a1f;
  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.25); }
.btn-verify {
  padding: 12px 20px;
  background: linear-gradient(180deg, #ffcf5e, #ffb300);
  border: 1px solid #e6a800;
  border-radius: 8px; color: #5c3a00;
  font-size: 15px; font-weight: bold;
  cursor: pointer; letter-spacing: 2px;
  font-family: inherit;
  box-shadow: 0 3px 10px rgba(230,168,0,0.3);
}
.btn-verify:active { transform: scale(0.96); }
.status-bar { text-align: center; font-size: 13px; margin-top: 10px; min-height: 18px; }
.status-success { color: #2fbf71; }
.status-error { color: #ff4d4f; }
.status-info { color: #b06a1f; }

/* ---------- 大转盘核心区 ---------- */
.wheel-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff7e6 100%);
  border: 2px solid #ffd17a;
  border-radius: 16px;
  padding: 14px 12px 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(230,168,0,0.18);
  text-align: center;
}
.action-hint {
  font-size: 12.5px;
  color: #c07f1a;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.wheel-wrap {
  position: relative;
  width: min(94vw, 430px);
  height: min(94vw, 430px);
  margin: 0 auto;
}
.wheel-canvas {
  width: 100%; height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(230,168,0,0.28), inset 0 0 0 4px rgba(255,255,255,0.6);
  background: #fff3d9;
}
/* 外圈灯环 */
.wheel-lights { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.wl-bulb {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8d6, #ffcf5e 60%, #e6a800);
  box-shadow: 0 0 6px rgba(255,190,60,0.8);
  animation: bulbBlink 1.1s ease-in-out infinite;
}
.wl-bulb:nth-child(odd) { animation-delay: 0.55s; }
@keyframes bulbBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255,200,80,1); }
  50%      { opacity: .35; box-shadow: 0 0 2px rgba(255,200,80,.4); }
}
/* 顶部指针（金色三角朝下） */
.wheel-pointer {
  position: absolute; left: 50%; top: -6px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--gold);
  filter: drop-shadow(0 2px 4px rgba(230,168,0,0.6));
  z-index: 4;
}
.wheel-pointer::after {
  content: '';
  position: absolute; left: -8px; top: -24px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 16px solid #fff3b0;
}
/* 中心 hub（GO） */
.wheel-hub {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe9a8, #ffcf5e);
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(230,168,0,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; color: #b06a1f;
  letter-spacing: 1px; z-index: 2; line-height: 1.3;
  text-align: center;
  cursor: pointer; user-select: none;
  transition: transform 0.15s, box-shadow 0.2s;
  animation: hubPulse 2s ease-in-out infinite;
}
.wheel-hub:hover { box-shadow: 0 3px 18px rgba(230,168,0,0.7); }
.wheel-hub:active { transform: translate(-50%, -50%) scale(0.93); }
.wheel-hub.disabled { opacity: 0.55; cursor: not-allowed; animation: none; }
@keyframes hubPulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(230,168,0,0.45); }
  50%      { box-shadow: 0 3px 22px rgba(230,168,0,0.85); }
}

/* ---------- 操作按钮 ---------- */
.action-buttons {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 14px;
}
.btn-open {
  flex: 1; max-width: 140px; padding: 14px;
  border: 2px solid #e6a800;
  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, #ffcf5e 0%, #ffb300 100%);
  color: #5c3a00;
  box-shadow: 0 4px 12px rgba(230,168,0,0.35);
}
.btn-ten {
  background: linear-gradient(180deg, #ff8a3d 0%, #e0342b 55%, #c62828 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: #ffffff;
  border: 2px solid #ffd17a;
  border-radius: 14px;
  padding: 20px 14px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(230,168,0,0.15);
}
.result-title {
  text-align: center; font-size: 18px; color: #e6a800;
  margin-bottom: 16px; letter-spacing: 2px; font-weight: bold;
}
.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, #ff8a8a, #ff4d4f); border: 2px solid #ff4d4f; box-shadow: 0 0 12px rgba(255,77,79,0.4); }
.ten-card.epic      { background: linear-gradient(160deg, #c79bff, #9254de); border: 2px solid #9254de; box-shadow: 0 0 10px rgba(146,84,222,0.35); }
.ten-card.rare      { background: linear-gradient(160deg, #7cc0ff, #1890ff); border: 2px solid #1890ff; }
.ten-card.common    { background: linear-gradient(160deg, #93e2a8, #3aa655); border: 2px solid #3aa655; }
.btn-confirm {
  display: block; width: 100%; margin-top: 16px; padding: 12px;
  background: linear-gradient(180deg, #ffcf5e, #ffb300);
  border: none; border-radius: 8px;
  color: #5c3a00; font-size: 15px; font-weight: bold;
  cursor: pointer; letter-spacing: 4px; font-family: inherit;
}

/* ---------- 底部面板 ---------- */
.bottom-panel {
  background: #ffffff;
  border: 2px solid #ffd17a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(230,168,0,0.12);
}
.panel-tabs {
  display: flex;
  background: linear-gradient(180deg, #fff3d9 0%, #ffe9bf 100%);
  border-bottom: 1px solid #f0d9a8;
}
.tab {
  flex: 1; padding: 12px 0; text-align: center;
  font-size: 14px; color: #8a6420;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab.active { border-bottom-color: currentColor; background: rgba(255,215,0,0.12); font-weight: bold; }
.tab.active[data-tab="prizes"] { color: #e6a800; }
.tab.active[data-tab="prob"]   { color: #2f7cf6; }
.tab.active[data-tab="rank"]   { color: #e0342b; }
.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;
  background: #fffdf6;
  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.08); }
.prize-card.legendary:hover { box-shadow: 0 0 14px rgba(255,77,79,0.4); }
.prize-card.epic      { border-color: #9254de; background: rgba(146,84,222,0.08); }
.prize-card.epic:hover { box-shadow: 0 0 14px rgba(146,84,222,0.4); }
.prize-card.rare      { border-color: #1890ff; background: rgba(24,144,255,0.08); }
.prize-card.rare:hover { box-shadow: 0 0 14px rgba(24,144,255,0.4); }
.prize-card.common    { border-color: #3aa655; background: rgba(58,166,85,0.08); }
.prize-card.common:hover { box-shadow: 0 0 14px rgba(58,166,85,0.4); }
.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 2px 8px rgba(0,0,0,0.15); }
.modal-prize-img .modal-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.prize-card .pc-name {
  font-size: 13px; color: #4a4a4a;
  line-height: 1.4; min-height: 36px;
  font-weight: 600;
  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: #3aa655; color: #fff; }

.prob-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f5e9cf;
}
.prob-item:last-child { border-bottom: none; }
.prob-item .pname { font-size: 13px; color: #4a4a4a; }
.prob-item .pprob { font-size: 13px; color: #e6a800; font-weight: bold; }
.prob-tip { font-size: 11px; color: #a8997a; 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, #ffe9a8, #ffcf5e);
  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: #b06a1f;
  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.25);
}
.pf-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-name { font-size: 17px; font-weight: bold; color: #5c3a00; }
.pf-uid { font-size: 12px; color: #a8997a; cursor: pointer; user-select: none; }
.pf-uid .uid-copy { font-size: 11px; opacity: 0.8; }
.pf-close { position: absolute; top: 10px; right: 14px; color: #a8997a; font-size: 16px; cursor: pointer; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-stat { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 10px; padding: 10px 4px; text-align: center; }
.pf-stat b { display: block; font-size: 18px; color: #2b2f3a; }
.pf-stat span { font-size: 11px; color: #a8997a; }
.pf-stat.gold { border-color: var(--gold); background: #fff3d9; }
.pf-stat.gold b { color: #e6a800; }
.pf-how { text-align: center; font-size: 12px; }
.pf-how a { color: #e6a800; text-decoration: underline; opacity: 0.9; }
.pf-how-tip { font-size: 12px; color: #7a5a20; line-height: 1.8; background: #fff7e6; border: 1px dashed #e6c26a; 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.35);
  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: #d9d2c4; box-shadow: none; cursor: not-allowed; color: #9a917f; }
.pf-sign-btn .pf-sign-plus { font-size: 13px; background: rgba(0,0,0,0.18); border-radius: 10px; padding: 2px 10px; margin-left: 6px; }
.pf-sign-btn:disabled .pf-sign-plus { background: transparent; }
.pf-exchange { border: 1px dashed #e6c26a; border-radius: 12px; padding: 12px; background: #fffdf6; }
.pf-ex-title { font-size: 14px; font-weight: bold; color: #e6a800; margin-bottom: 4px; }
.pf-ex-desc { font-size: 11px; color: #a8997a; margin-bottom: 10px; }
.pf-ex-list { display: flex; flex-direction: column; gap: 8px; }
.pf-ex-item { display: flex; align-items: center; gap: 8px; background: #fff7e6; border-radius: 8px; padding: 9px 10px; }
.pf-ex-name { flex: 1; font-size: 13px; color: #4a4a4a; min-width: 0; }
.pf-ex-cost { font-size: 11px; color: #e6a800; 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: #d9d2c4; color: #9a917f; 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: #5c3a00; }
.pf-back { font-size: 12px; font-weight: normal; color: #e6a800; 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: #a8997a; }
.pf-nick-row { display: flex; gap: 8px; }
.pf-nick-row input {
  flex: 1; background: #fffdf6; border: 1px solid #f0d9a8;
  color: #2b2f3a; 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: #fff7e6; border: 1px solid #f0d9a8;
  border-radius: 8px; padding: 9px 10px; font-size: 12px; color: #7a5a20;
  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: #2b2f3a; }
.pf-li-main small { font-size: 11px; color: #a8997a; }
.pf-li-code { font-family: monospace; font-size: 13px; color: #e6a800; letter-spacing: 1px; }
.pf-li-copy {
  flex: 0 0 auto; padding: 4px 12px; border-radius: 12px; border: 1px solid #e6c26a;
  background: transparent; color: #e6a800; font-size: 12px; cursor: pointer; font-family: inherit;
}
.pf-empty { text-align: center; color: #a8997a; 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: #fff7e6;
  border: 1px solid #f0d9a8;
  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.25), rgba(255,215,0,0.06)); border-color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,0.3); }
.rank-item.top2 { background: linear-gradient(90deg, rgba(200,206,216,0.3), transparent); border-color: #c8ced8; }
.rank-item.top3 { background: linear-gradient(90deg, rgba(205,127,50,0.25), transparent); border-color: #cd7f32; }
.rk-no { flex: 0 0 26px; text-align: center; font-weight: bold; color: #e6a800; 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 1px 4px rgba(0,0,0,0.2);
}
.rk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-info b { font-size: 13px; color: #5c3a00; }
.rk-info small { font-size: 11px; color: #a8997a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-score { flex: 0 0 auto; font-size: 15px; font-weight: bold; color: #e6a800; }
.rk-score i { font-style: normal; font-size: 10px; color: #a8997a; }
.rank-empty { text-align: center; color: #a8997a; font-size: 13px; padding: 16px 0; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; font-size: 12px; color: #a8997a; line-height: 1.8; padding: 10px 0; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43,47,58,0.55);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.show { display: flex; }
.modal-box {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fff7e6 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(230,168,0,0.35);
  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: #3aa655; color: #fff; }
.modal-prize-img {
  width: 100px; height: 100px; margin: 0 auto 14px;
  background: #fff3d9;
  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: #e6a800; margin-bottom: 14px; font-weight: bold; }
.modal-redeem { background: #fff7e6; border: 1px dashed var(--gold); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.redeem-label { font-size: 12px; color: #b06a1f; margin-bottom: 4px; }
.redeem-code { font-size: 16px; color: #2b2f3a; font-weight: bold; letter-spacing: 2px; font-family: monospace; }
.modal-tip { font-size: 12px; color: #a8997a; margin-bottom: 16px; }
.modal-close {
  width: 100%; padding: 12px;
  background: linear-gradient(180deg, #ffcf5e, #ffb300);
  border: none; border-radius: 8px;
  color: #5c3a00; 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; }
  .wheel-hub { width: 66px; height: 66px; font-size: 12px; }
}

/* ===== 登录条 & 登录/注册弹窗 ===== */
.auth-bar{display:flex;justify-content:center;margin:10px 0 2px;}
.auth-login-btn{background:linear-gradient(135deg,#ffcf5e,#ffb300);border:1px solid #e6a800;color:#5c3a00;padding:8px 22px;border-radius:22px;font-size:14px;cursor:pointer;font-weight:bold;letter-spacing:1px;box-shadow:0 3px 10px rgba(230,168,0,0.25);}
.auth-login-btn:hover{filter:brightness(1.05);}
.auth-welcome{display:flex;align-items:center;gap:10px;color:#5c3a00;font-size:14px;background:#fff3d9;border:1px solid #f0d9a8;padding:6px 16px;border-radius:20px;}
.auth-user{cursor:pointer;color:#b06a1f;font-weight:bold;}
.auth-points{cursor:pointer;color:#e68a00;font-weight:bold;font-size:13px;}
.auth-logout{color:#ff6a5b;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:#fff3d9;color:#a8997a;cursor:pointer;font-size:14px;}
.auth-tab.active{background:linear-gradient(135deg,#ffcf5e,#ffb300);color:#5c3a00;font-weight:bold;}
.auth-form{display:flex;flex-direction:column;gap:10px;}
.auth-form input{background:#fffdf6;border:1px solid #f0d9a8;color:#2b2f3a;padding:10px 12px;border-radius:8px;font-size:14px;outline:none;width:100%;}
.auth-form input:focus{border-color:var(--gold);}
.auth-error{color:#ff4d4f;font-size:13px;min-height:16px;text-align:center;}
.btn-auth{background:linear-gradient(135deg,#ffcf5e,#ffb300);border:none;color:#5c3a00;padding:11px 0;border-radius:8px;font-size:15px;font-weight:bold;cursor:pointer;letter-spacing:2px;}
.btn-auth-random{background:#fffdf6;border:1px dashed #e6c26a;color:#b06a1f;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.12);
  border:1px solid #e6c26a;border-radius:8px;
  color:#b06a1f;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.2);color:#e6a800;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:#e6a800;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:#fffdf6;border:1px solid #f0d9a8;
  color:#b06a1f;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,#ffcf5e,#ffb300);
  color:#5c3a00;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:#fff7e6;border:1px solid #f0d9a8;color:#7a5a20;
}
.q-status.ok{color:#2fbf71;border-color:rgba(47,191,113,0.4);background:rgba(47,191,113,0.08);}
.q-status.warn{color:#e68a00;border-color:rgba(255,167,38,0.4);background:rgba(255,167,38,0.08);}
.q-record{ background:#fff7e6;border:1px solid #f0d9a8; 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:#2b2f3a;}
.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:#3aa655;color:#fff;}
.q-record-time{font-size:11px;color:#a8997a;}
.q-redeem{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:6px;padding:6px 8px;
  background:#fffdf6;border:1px dashed #e6c26a;border-radius:6px;
}
.q-redeem-code{font-family:monospace;font-size:13px;color:#e6a800;letter-spacing:1px;}
.q-redeem-copy{
  flex:0 0 auto;background:transparent;border:1px solid #e6c26a;color:#e6a800;
  font-size:11px;padding:2px 10px;border-radius:10px;cursor:pointer;font-family:inherit;
}
.q-empty{text-align:center;color:#a8997a;font-size:13px;padding:24px 0;}
