:root {
  --bg: #f3ede2;
  --card: rgba(248, 243, 234, 0.92);
  --line: rgba(166, 145, 108, 0.34);
  --text: #5c4d3a;
  --muted: #8e816f;
  --gold: #b79257;
  --gold-bright: #6f9188;
  --gold-glow: rgba(183, 146, 87, 0.14);
  --glass: rgba(255, 251, 243, 0.7);
  --font-main: 'Inter', "Microsoft YaHei", sans-serif;
  --ok: #6d8e84;
}

* { box-sizing: border-box; }

html,
body {
  max-width: none;
  overflow-x: auto;
}

body {
  margin: 0;
  min-width: 1440px;
  font-family: var(--font-main);
  color: var(--text);
  background: #f3ede2;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.bg-stadium {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('./背景.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  overflow: hidden;
}
.bg-stadium::before,
.bg-stadium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-stadium::before {
  background-image:
    radial-gradient(circle, rgba(255,244,223,.85) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(240,196,109,.75) 0 1px, transparent 2.2px);
  background-size: 220px 220px, 360px 360px;
  background-position: 0 0, 120px 80px;
  opacity: .55;
  mix-blend-mode: screen;
  animation:
    starlight-twinkle 4.8s ease-in-out infinite alternate,
    starlight-pan 28s linear infinite;
}
.bg-stadium::after {
  background-image:
    radial-gradient(circle, rgba(255,244,223,.65) 0 1px, transparent 2px),
    radial-gradient(circle at center, rgba(255,210,110,.08), transparent 42%);
  background-size: 520px 520px, auto;
  background-position: 40px 30px, center;
  opacity: .75;
  mix-blend-mode: screen;
  animation:
    starlight-drift 16s ease-in-out infinite alternate,
    starlight-pan-slow 52s linear infinite;
}

/* 导航栏重构 */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  margin: 0;
  padding: 10px 28px;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(13, 10, 8, 0.72);
  backdrop-filter: blur(16px);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(191, 154, 97, 0.12);
  border-radius: 0;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .01em; color: #f2dfbc; }
.brand-sub { font-size: 11px; color: rgba(255,239,208,.46); letter-spacing: .04em; }

.nav-shell { display: flex; justify-content: center; }
.topnav { display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,248,236,.05); border: 1px solid rgba(255,220,157,.08); }
.nav-item {
  color: rgba(255,239,208,.62);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all 0.25s;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 10px 16px;
}
.nav-item:hover, .nav-item.active { color: #f6d89c; background: rgba(255,220,157,.08); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-task { background: rgba(255,248,236,.05); border: 1px solid rgba(255,220,157,.1); color: rgba(255,236,199,.78); border-radius: 999px; padding: 0 14px; min-height: 40px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.icon-only { width: 40px; padding: 0; justify-content: center; flex-shrink: 0; }
.btn-connect-cta { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.btn-refresh-round {
  background: rgba(212, 169, 58, 0.1);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.btn-refresh-round:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 15px var(--gold-glow);
}
.btn-refresh-round i {
  font-size: 14px;
  line-height: 1;
}

/* 容器布局重构 */
.main-layout {
  width: 1400px;
  max-width: none;
  min-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.main-shell { min-height: calc(100vh - 72px); }
.page-view { display: flex; flex-direction: column; gap: 28px; }
.home-top-row { align-items: center; }
body[data-view="home"] #btnTopDraw { display: inline-flex; }
body[data-view="play"] #btnTopDraw { display: inline-flex; }

.top-row { display: block; }
.home-top-row { min-height: calc(100vh - 150px); }

.hero-section {
  position: relative;
  min-height: calc(100vh - 150px);
}

.hero-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  min-height: inherit;
  padding: 46px 0 34px;
  background: none;
  border: none;
  box-shadow: none;
}

.hero-copy { max-width: 640px; }
.hero-eyebrow { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: rgba(255,236,199,.06); border: 1px solid rgba(255,220,157,.1); color: #e6c88e; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.hero-visual { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.visual-stage { position: relative; width: 100%; min-height: 560px; display: flex; align-items: center; justify-content: center; background: transparent; overflow: hidden; }
.visual-stage-artwork {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.visual-glow { position: absolute; inset: 18% 20%; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,110,.18), rgba(255,208,110,0)); filter: blur(58px); }
.hero-artwork {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: 520px;
  object-fit: contain;
  border-radius: 26px;
  filter: drop-shadow(0 18px 44px rgba(0,0,0,.32)) drop-shadow(0 0 22px rgba(240,196,109,.12));
}

.hero-copy h2 { display: flex; flex-direction: column; gap: 0; margin: 22px 0 0; font-family: "STSong", "SimSun", "Songti SC", "Noto Serif SC", serif; color: #fff6e6; }
.hero-title-main { display: block; font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.hero-title-main-lower, .hero-title-sub { display: none; }
.hero-copy p { max-width: 460px; margin: 26px 0 0; font-size: 16px; line-height: 1.8; color: rgba(255,244,223,.72); }
.hero-btns { display: flex; gap: 14px; margin-top: 32px; }
.btn-hero { min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .02em; transition: .25s; cursor: pointer; }
.btn-hero-primary { background: linear-gradient(180deg, #f0c46d, #bb8d37); color: #1b1309; border: none; box-shadow: 0 10px 24px rgba(214,167,74,.22); }
.btn-hero-outline { background: rgba(255,248,238,.06); border: 1px solid rgba(255,220,157,.16); color: #fff2da; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 42px; align-items: stretch; }
.hero-stat-item { min-height: 154px; padding: 20px 22px 18px; border-radius: 24px; background: rgba(255,248,236,.05); border: 1px solid rgba(255,220,157,.08); color: #fff4df; backdrop-filter: blur(10px); overflow: hidden; }
.hero-stat-item span, .hero-float span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: rgba(255,226,180,.48); }
.hero-stat-item strong, .hero-float strong { display: block; margin-top: 16px; font-size: 24px; line-height: 1.08; font-weight: 600; color: #fff7ea; letter-spacing: -.03em; }
.hero-stat-item small, .hero-float small { display: block; margin-top: 12px; font-size: 12px; line-height: 1.45; color: rgba(255,244,223,.58); }
.hero-stat-item b, .hero-stat-item em { font-style: normal; font-weight: 500; }
.hero-stat-pool strong, .hero-stat-round strong, .hero-stat-status strong { white-space: nowrap; }
.hero-stat-status strong { max-width: none; font-size: 22px; }
.hero-stat-status small { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.hero-stat-status b, .hero-stat-status em { white-space: nowrap; }
.hero-stat-round strong { font-size: 26px; }
.hero-stat-pool strong { font-size: 22px; }
@keyframes golden-glow { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.008); } }
@keyframes starlight-twinkle {
  0% { opacity: .22; filter: blur(0); }
  100% { opacity: .78; filter: blur(.1px); }
}
@keyframes starlight-drift {
  0% { transform: translate3d(-6%, -4%, 0); }
  100% { transform: translate3d(6%, 4%, 0); }
}
@keyframes starlight-pan {
  0% { background-position: 0 0, 120px 80px; }
  100% { background-position: -260px 220px, 520px -320px; }
}
@keyframes starlight-pan-slow {
  0% { background-position: 40px 30px, center; }
  100% { background-position: -520px 360px, center; }
}


.home-sidecard {
  background: linear-gradient(180deg, rgba(252,248,240,.96), rgba(244,237,226,.94));
  border: 1px solid rgba(166,145,108,.28);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(124,106,75,.08);
}
.home-sidecard .eyebrow { color: #a18258; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.home-sidecard h3 { margin: 0; font-size: 30px; line-height: 1.3; color: #5a452f; }
.home-sidecard p { margin: 0; color: #7c6d58; line-height: 1.9; }
.home-side-points { display: flex; gap: 10px; flex-wrap: wrap; }
.home-side-points span {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,251,243,.76);
  border: 1px solid rgba(166,145,108,.18); color: #7a6950; font-size: 13px; font-weight: 700;
}
.home-story-grid, .home-mechanics-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.story-card {
  position: relative;
  min-height: 196px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(212,169,58,.22);
  background: linear-gradient(135deg, rgba(18,14,10,.94), rgba(36,24,12,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 34px rgba(0,0,0,.16);
  overflow: hidden;
}
.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(212,169,58,.18), transparent 28%);
  pointer-events: none;
}
.story-card::after { content: none; }
.mechanic-card {
  position: relative;
  min-height: 196px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(212,169,58,.22);
  background: linear-gradient(135deg, rgba(18,14,10,.94), rgba(36,24,12,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 34px rgba(0,0,0,.16);
  overflow: hidden;
}
.mechanic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(212,169,58,.18), transparent 28%);
  pointer-events: none;
}
.mechanic-card::after { content: none; }
.story-card span { position: relative; z-index: 1; display: inline-block; color: #f0c46d; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.story-card h4 { position: relative; z-index: 1; margin: 14px 0 10px; font-size: 30px; line-height: 1.12; color: #fff4df; }
.story-card p { position: relative; z-index: 1; max-width: 30ch; margin: 0; color: rgba(255,244,223,.72); line-height: 1.8; font-size: 14px; }
.mechanic-no { position: relative; z-index: 1; display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #f0c46d; }
.mechanic-card h4 { position: relative; z-index: 1; margin: 14px 0 10px; font-size: 30px; line-height: 1.12; color: #fff4df; }
.mechanic-card p { position: relative; z-index: 1; max-width: 30ch; margin: 0; color: rgba(255,244,223,.72); line-height: 1.8; font-size: 14px; }
.home-cta-band {
  position: relative;
  margin-top: 8px;
  padding: 22px;
  border-radius: 34px;
  border: 1px solid rgba(212,169,58,.18);
  background: linear-gradient(135deg, rgba(14,10,8,.96), rgba(34,23,12,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 48px rgba(0,0,0,.18);
  overflow: hidden;
}
.home-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,169,58,.24), transparent 32%), linear-gradient(90deg, rgba(212,169,58,.08), transparent 20%, transparent 80%, rgba(212,169,58,.08));
  pointer-events: none;
}
.home-cta-band::after { content: none; }
.home-cta-inner::before { content: none; }
.home-cta-inner {
  position: relative;
  z-index: 1;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-cta-band span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(240,196,109,.84); }
.home-cta-band h3 { margin: 20px 0 0; max-width: 16ch; font-size: 56px; line-height: 1.08; color: #fff4df; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.home-cta-band p { margin: 20px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.9; color: rgba(255,244,223,.66); }
.home-cta-btn.btn.btn-primary {
  margin-top: 30px;
  min-width: 168px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,232,180,.4);
  background: linear-gradient(180deg, #ffd97f, #d8a43f);
  color: #24170a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 16px 30px rgba(214,167,74,.28), inset 0 1px 0 rgba(255,247,227,.62);
}
.home-cta-btn.btn.btn-primary:hover {
  background: linear-gradient(180deg, #ffe08e, #e1ae49);
  color: #24170a;
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(214,167,74,.34), inset 0 1px 0 rgba(255,247,227,.72);
}
.play-actions-card .more, .profile-card .more { color: #9b8560; }
.quick-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-link-btn {
  border: 1px solid rgba(166,145,108,.26); background: rgba(255,251,243,.76); color: #604c36;
  border-radius: 14px; padding: 16px 14px; font-weight: 700; cursor: pointer; transition: .25s;
}
.quick-link-btn:hover { transform: translateY(-2px); border-color: rgba(143,125,89,.46); box-shadow: 0 10px 22px rgba(124,106,75,.08); }
.guest-list-card { margin-top: 22px; }
.guest-list-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guest-item {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255,251,243,.62); border: 1px solid rgba(166,145,108,.16);
}
.guest-item span { color: #a18258; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.guest-item strong { color: #5c4833; font-size: 15px; }
.guest-item em { color: #857764; font-style: normal; font-size: 13px; line-height: 1.6; }
.play-view { padding-top: 6px; }

/* 侧边实时动态 */
.live-activity {
  background: linear-gradient(180deg, rgba(250,246,238,.96), rgba(244,237,226,.94));
  border: 1px solid rgba(166,145,108,.3);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 480px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36);
}
.live-head { display: flex; justify-content: space-between; align-items: center; }
.live-head h4 { margin: 0; font-size: 15px; color: #6b5940; }
.live-head a { color: #8b7b65; font-size: 12px; text-decoration: none; }

.activity-list { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
  flex: 1;
  min-height: 0;
  overflow-y: auto; 
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.activity-list::-webkit-scrollbar { width: 4px; }
.activity-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.activity-item { display: flex; gap: 12px; font-size: 13px; line-height: 1.4; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.activity-icon { width: 32px; height: 32px; background: var(--glass); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.activity-content { flex: 1; }
.activity-content b { color: var(--gold-bright); }
.activity-time { color: var(--muted); font-size: 11px; margin-top: 4px; }

/* 首页主玩法区与信息区 */
.combo-section {
  margin-top: 8px;
}

.combo-card {
  min-height: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.95) 0%, rgba(243, 236, 223, 0.93) 100%);
  border: 1px solid rgba(166, 145, 108, 0.32);
  border-radius: 18px;
  display: flex;
  padding: 0;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42), 0 8px 24px rgba(124, 106, 75, 0.08);
}

.feature-card:hover { border-color: rgba(143, 125, 89, 0.46); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.54), 0 12px 28px rgba(124, 106, 75, 0.12); }

.card-info {
  flex: 1; /* 缩小内容占比 */
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.card-media {
  flex: 1.4; /* 增大图片占比，对齐右侧边缘 */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(212, 169, 58, 0.08) 0%, transparent 80%);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  transition: 0.8s;
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
}

.support-media {
  flex: 0.95;
  background: radial-gradient(circle at center, rgba(182, 151, 93, 0.08) 0%, rgba(255,255,255,0) 72%);
}

.support-media img {
  width: 88%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  object-position: center right;
  mask-image: none;
  -webkit-mask-image: none;
  filter: drop-shadow(0 14px 24px rgba(104, 86, 52, 0.16));
}

.feature-card:hover .card-media img {
  transform: scale(1.05);
}

.feature-card h4 { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #6b5940; }
.feature-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.btn-enter { 
  align-self: flex-start; 
  background: rgba(255, 248, 238, 0.84); 
  border: 1px solid rgba(166,145,108,.42); 
  color: #6a583f; 
  padding: 8px 20px; 
  border-radius: 8px; 
  font-size: 13px; 
  font-weight: 600;
  cursor: pointer; 
  transition: 0.3s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.btn-enter:hover { border-color: #9b8560; color: #5f4d37; background: rgba(255, 252, 245, 0.92); }

.feature-card.hot::after { content: none; }

/* 底部数据面板也改为全宽 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.data-card {
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.94), rgba(244, 237, 226, 0.92));
  border: 1px solid rgba(166, 145, 108, 0.3);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 6px 18px rgba(124, 106, 75, 0.08);
}
.data-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.data-card-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: #6a583f; }
.data-card-head .more { color: #8c7c67; font-size: 12px; text-decoration: none; cursor: pointer; }

/* 排行榜 UCL 风格 */
.ucl-rank-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ucl-rank-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; background: var(--glass); }
.ucl-rank-num { width: 24px; font-weight: 800; color: var(--gold); font-style: italic; }
.ucl-rank-avatar { width: 32px; height: 32px; border-radius: 50%; background: #222; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); }
.ucl-rank-info { flex: 1; min-width: 0; }
.ucl-rank-info .addr { display: block; font-size: 12px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucl-rank-info .val { font-size: 11px; color: var(--gold-bright); }

/* 我的数据展示区 */
.my-stats-list { display: flex; flex-direction: column; gap: 16px; }
.my-stat-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.my-stat-row span { color: var(--muted); font-size: 13px; }
.my-stat-row strong { color: #6a583f; font-size: 15px; font-weight: 700; }

/* 合作伙伴 */
.partners-section {
  max-width: 1400px;
  margin: 60px auto 40px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0.4;
  filter: grayscale(1);
}
.partner-logo { height: 20px; }

/* 弹窗 & 遮罩 (原抽屉重构为弹窗) */
.drawer { 
  position: fixed; 
  inset: 0; 
  display: none; 
  z-index: 200; 
  align-items: center; 
  justify-content: center; 
  padding: 20px;
}
.drawer.open { display: flex; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); }
.drawer-panel { 
  position: relative; 
  width: min(800px, 100%); 
  max-height: 85vh; 
  overflow: auto; 
  padding: 40px; 
  background: #0a0a0a; 
  border: 1px solid var(--line); 
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.confirm-panel {
  width: min(400px, 90%);
  padding: 32px;
  text-align: center;
}
.confirm-body {
  margin-bottom: 28px;
}
.confirm-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
}
.confirm-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
}
.confirm-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.confirm-footer {
  display: flex;
  gap: 12px;
}
.confirm-footer .btn {
  flex: 1;
  padding: 12px;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer-head h3 { margin: 0; font-size: 24px; color: var(--gold-bright); }
.reward-panel {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(212,169,58,.18);
  background: linear-gradient(180deg, rgba(14,10,8,.98), rgba(22,15,10,.96));
  box-shadow: 0 30px 70px rgba(0,0,0,.38);
  overflow: hidden;
}
.reward-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 28%, rgba(212,169,58,.14), transparent 38%);
  pointer-events: none;
}
.reward-head { position: relative; z-index: 1; margin-bottom: 18px; }
.reward-head h3 { color: #fff4df; font-size: 22px; }
.reward-close { min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.04); color: rgba(255,244,223,.68); }
.reward-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.reward-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(240,196,109,.84); }
.reward-value-wrap {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,220,157,.12);
  background: rgba(255,248,236,.04);
}
.reward-label { display: block; font-size: 12px; color: rgba(255,244,223,.52); }
.reward-value-wrap strong { display: block; margin-top: 12px; font-size: 42px; line-height: 1; color: #fff4df; letter-spacing: -.03em; }
.reward-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reward-primary.btn.btn-primary {
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd97f, #d8a43f);
  color: #24170a;
  border: 1px solid rgba(255,232,180,.4);
  box-shadow: 0 12px 24px rgba(214,167,74,.24), inset 0 1px 0 rgba(255,247,227,.62);
}
.reward-primary.btn.btn-primary:hover {
  background: linear-gradient(180deg, #ffe08e, #e1ae49);
  color: #24170a;
}
.reward-secondary {
  min-height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,244,223,.84);
  border: 1px solid rgba(255,220,157,.12);
}
.reward-secondary:hover {
  border-color: rgba(255,220,157,.2);
  background: rgba(255,255,255,.06);
  color: #fff4df;
}

.match-panel {
  width: min(980px, 100%);
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(212,169,58,.16);
  background: linear-gradient(180deg, rgba(12,10,9,.98), rgba(18,13,10,.96));
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
  overflow: hidden;
}
.match-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 22%, rgba(212,169,58,.12), transparent 44%);
  pointer-events: none;
}
.match-head {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.match-head h3 {
  color: #fff4df;
  font-size: 18px;
  letter-spacing: .02em;
}
.match-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: rgba(255,244,223,.78);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
  line-height: 1;
}
.match-chip:hover {
  background: rgba(212,169,58,.08);
  border-color: rgba(212,169,58,.18);
  color: #fff4df;
}
.match-close {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: rgba(255,244,223,.58);
  border: 1px solid rgba(255,255,255,.05);
}
.match-card { position: relative; z-index: 1; }
.match-sub { margin: 0 0 12px; font-size: 12px; color: rgba(255,244,223,.42); }
.match-layout { grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.match-summary {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,248,236,.035), rgba(255,248,236,.018));
  border: 1px solid rgba(255,220,157,.1);
  box-shadow: inset 0 1px 0 rgba(255,236,192,.03), 0 18px 36px rgba(0,0,0,.18);
}
.match-summary .summary-head {
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255,248,236,.028);
  border: 1px solid rgba(255,220,157,.08);
}
.match-summary .summary-head span { margin-bottom: 6px; font-size: 10px; letter-spacing: .08em; color: rgba(255,244,223,.42); }
.match-summary .summary-head strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-summary .summary-count, .match-summary .summary-price { margin-top: 10px; font-size: 12px; }
.match-summary .summary-count strong { font-size: 17px; }
.match-summary .summary-price { letter-spacing: .01em; }
.match-summary .summary-buy { margin-top: 12px; min-height: 46px; }
.match-summary #buyHint,
.match-summary #eligibilityStatus {
  margin-top: 10px;
  text-align: left;
  line-height: 1.5;
  font-size: 12px;
}
.match-summary #eligibilityStatus {
  margin-top: 6px;
}
.match-links { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.match-links .summary-link { text-align: center; }

.avatar-picker-grid.avatar-heart-grid {
  display: grid;
  grid-template-columns: repeat(7, 60px);
  grid-auto-rows: 60px;
  gap: 10px;
  justify-content: center;
  align-content: start;
  margin-top: 14px;
}
.match-panel .avatar-tile {
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(212,169,58,.14);
  background: linear-gradient(180deg, rgba(28,20,15,.94), rgba(14,11,9,.98));
  box-shadow: inset 0 1px 0 rgba(255,236,192,.03), 0 10px 20px rgba(0,0,0,.16);
}
.match-panel .avatar-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(240,196,109,.38);
  background: linear-gradient(180deg, rgba(38,28,21,.98), rgba(18,13,10,.98));
  box-shadow: inset 0 1px 0 rgba(255,236,192,.08), 0 14px 24px rgba(0,0,0,.22), 0 0 0 1px rgba(240,196,109,.05);
}
.match-panel .avatar-tile.is-active {
  border-color: rgba(240,196,109,.58);
  background: linear-gradient(180deg, rgba(53,37,24,.98), rgba(20,14,10,.98));
  box-shadow: inset 0 1px 0 rgba(255,236,192,.12), 0 16px 28px rgba(0,0,0,.24), 0 0 0 1px rgba(240,196,109,.12);
}
.match-panel .avatar-tile[data-picked-role="first"] { border-color: rgba(240,196,109,.62); }
.match-panel .avatar-tile[data-picked-role="second"] { border-color: rgba(214,153,74,.42); }
.match-panel .avatar-tile.is-active .avatar-no { color: #f3cf88; }
.match-panel .avatar-name {
  display: none;
}
.match-panel .avatar-no {
  display: none;
}
.match-panel .avatar-number {
  font-size: 11px;
}
.match-panel .avatar-portrait {
  width: 100%;
  height: 100%;
  min-height: 50px;
  margin: 0;
  border-radius: 14px;
  border: none;
  background: rgba(18,13,10,.72);
  box-shadow: none;
  overflow: hidden;
}
.match-panel .avatar-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.match-panel .avatar-portrait img[data-fallback="1"] {
  object-fit: cover;
  mix-blend-mode: normal;
  transform: none;
  filter: none;
}
.match-panel .avatar-tile.is-active .avatar-portrait {
  box-shadow: 0 0 0 1px rgba(240,196,109,.18) inset;
}

.avatar-heart-grid .avatar-tile:nth-child(1) { grid-column: 1; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(2) { grid-column: 2; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(3) { grid-column: 3; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(4) { grid-column: 4; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(5) { grid-column: 5; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(6) { grid-column: 6; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(7) { grid-column: 7; grid-row: 1; }
.avatar-heart-grid .avatar-tile:nth-child(8) { grid-column: 1; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(9) { grid-column: 2; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(10) { grid-column: 3; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(11) { grid-column: 4; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(12) { grid-column: 5; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(13) { grid-column: 6; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(14) { grid-column: 7; grid-row: 2; }
.avatar-heart-grid .avatar-tile:nth-child(15) { grid-column: 1; grid-row: 3; }
.avatar-heart-grid .avatar-tile:nth-child(16) { grid-column: 2; grid-row: 3; }
.avatar-heart-grid .avatar-tile:nth-child(17) { grid-column: 3; grid-row: 3; }
.avatar-heart-grid .avatar-tile:nth-child(18) { grid-column: 4; grid-row: 3; }
.avatar-heart-grid .avatar-tile:nth-child(19) { grid-column: 5; grid-row: 3; }
.avatar-heart-grid .avatar-tile:nth-child(20) { grid-column: 6; grid-row: 3; }
.avatar-heart-grid .avatar-tile:nth-child(21) { grid-column: 7; grid-row: 3; }

/* 排行榜弹窗内部布局 */
.rank-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.rank-tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.rank-tab-btn:hover {
  color: #fff;
}

.rank-tab-btn.active {
  color: var(--gold-bright);
}

.rank-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
}

.rank-actions {
  margin-bottom: 24px;
  display: flex;
  justify-content: flex-end;
}

.rank-content {
  position: relative;
  min-height: 400px;
}

.rank-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.rank-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rank-pane h4 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-list li {
  padding: 0;
  border: none;
  background: none;
  margin-bottom: 8px;
}

.rank-item-ucl {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, rgba(255,251,243,.82) 0%, rgba(245,238,227,.76) 100%);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(166,145,108,.26);
  transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}

.rank-item-ucl:hover {
  background: linear-gradient(90deg, rgba(250,246,238,.96) 0%, rgba(240,233,221,.88) 100%);
  border-color: rgba(145,125,92,.42);
  transform: translateX(4px);
}

.rank-item-ucl .rank-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
}

/* 前三名特殊样式 */
.rank-list li:nth-child(1) .rank-item-ucl .rank-num {
  background: linear-gradient(135deg, #ffd700, #b8860b);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.rank-list li:nth-child(2) .rank-item-ucl .rank-num {
  background: linear-gradient(135deg, #c0c0c0, #708090);
  color: #000;
}

.rank-list li:nth-child(3) .rank-item-ucl .rank-num {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #000;
}

.rank-item-ucl .rank-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.rank-item-ucl .addr {
  font-family: 'Mono', monospace;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.rank-item-ucl .val {
  font-size: 14px;
  color: var(--gold-bright);
  font-weight: 700;
  text-align: right;
}

/* 玩法说明弹窗内部布局 */
.rules-content { display: flex; flex-direction: column; gap: 24px; }
.rules-intro {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,169,58,0.12), rgba(255,255,255,0.02));
}
.rules-intro strong { display: block; color: var(--gold-bright); font-size: 18px; margin-bottom: 8px; }
.rules-intro p { margin: 0; color: #ddd; font-size: 14px; line-height: 1.7; }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
.rule-card-highlight { border-color: var(--line); box-shadow: 0 0 0 1px rgba(212,169,58,0.12), 0 18px 40px rgba(0,0,0,0.28); }
.rule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rule-head i {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: var(--gold-bright); background: rgba(212,169,58,0.12); font-size: 16px;
}
.rule-head h4 { margin: 0; color: #fff; font-size: 18px; }
.rule-badge {
  margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--gold-bright); background: rgba(212,169,58,0.1); border: 1px solid rgba(212,169,58,0.22);
}
.rule-card .desc { color: #d5d5d5; font-size: 14px; line-height: 1.7; margin: 0; padding-left: 18px; }
.rule-card li { margin-bottom: 8px; }
.rule-card li:last-child { margin-bottom: 0; }
.trend-board {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.trend-cell {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  text-align: center;
}
.trend-cell.is-latest {
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(212,169,58,0.12);
  background: linear-gradient(180deg, rgba(212,169,58,0.12), rgba(255,255,255,0.03));
}
.trend-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.trend-number {
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--gold-bright);
}
.trend-empty {
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}
.history-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.history-round {
  width: 56px;
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(240,196,109,.7);
  flex: 0 0 auto;
}
.history-pair {
  flex: 1;
  min-width: 0;
}
.history-pair strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff4df;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.history-time {
  width: 56px;
  font-size: 10px;
  color: rgba(255,244,223,.36);
  text-align: right;
  flex: 0 0 auto;
}
.history-board {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.history-trend-cell {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trend-tone-number .trend-number { color: var(--gold-bright); }
.trend-tone-hot .trend-number { color: #ffb36b; }
.trend-tone-cool .trend-number { color: #86d8ff; }
.trend-meta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* 加载动画样式 */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 16px;
  color: var(--gold);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 169, 58, 0.1);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.global-loading {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(10px);
}
.global-loading[hidden] {
  display: none !important;
}
.global-loading-card {
  min-width: 320px; max-width: 90vw; text-align: center;
  padding: 30px 28px; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,18,18,0.96), rgba(8,8,8,0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.global-loading-spinner {
  width: 52px; height: 52px; margin: 0 auto 18px;
  border: 4px solid rgba(212,169,58,0.14);
  border-top-color: var(--gold-bright);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
#globalLoadingTitle { display: block; font-size: 22px; color: var(--gold-bright); margin-bottom: 8px; }
#globalLoadingText { margin: 0; color: #d6d6d6; font-size: 14px; line-height: 1.7; }

.success-toast {
  position: fixed;
  inset: 24px 24px auto auto;
  z-index: 1200;
}
.success-toast[hidden] {
  display: none !important;
}
.success-toast-card {
  min-width: 280px;
  max-width: 360px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(212,169,58,0.28);
  background: rgba(8, 10, 15, 0.94);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  animation: toastIn 0.28s ease;
}
.success-toast-card i {
  color: var(--gold-bright);
  font-size: 22px;
  margin-top: 2px;
}
.success-toast-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 4px;
}
.success-toast-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 按钮基础样式覆盖 */
.btn {
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  border: 1px solid rgba(166,145,108,.34);
  background: rgba(255,251,243,.82);
  color: #66543d;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.btn:hover { border-color: #9b8560; color: #5f4d37; background: rgba(255,255,255,.9); }
.btn:disabled,
.btn-primary:disabled {
  background: #2a2a2a;
  color: #777;
  border-color: #333;
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}
.btn:disabled:hover,
.btn-primary:disabled:hover {
  background: #2a2a2a;
  color: #777;
  border-color: #333;
  box-shadow: none;
  transform: none;
}
.btn.is-loading,
.btn-primary.is-loading {
  position: relative;
  pointer-events: none;
}
.btn.is-loading::before,
.btn-primary.is-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-primary { background: linear-gradient(180deg, #b99a69, #a78451); border: 1px solid rgba(150,121,74,.35); color: #fffaf2; }
.btn-primary:hover { background: linear-gradient(180deg, #c5a674, #b08c59); transform: scale(1.02); }

/* 日志区域 */
.log-wrap { margin-top: 40px; background: #080808; border: 1px solid #222; border-radius: 12px; padding: 20px; }
.log-wrap h3 { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
#log { max-height: 150px; overflow-y: auto; font-family: monospace; font-size: 12px; color: var(--gold); margin: 0; }

/* 网站页脚 */
.site-footer {
  background: rgba(8, 8, 8, 0.96);
  border-top: 1px solid rgba(212,169,58,.08);
  padding: 26px 20px 18px;
  margin-top: 36px;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 24px;
}
.footer-brand span {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,244,223,.86);
  letter-spacing: .02em;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-item {
  color: rgba(255,244,223,.56);
  font-size: 14px;
  transition: 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}
.social-item:hover {
  color: #f0c46d;
  border-color: rgba(212,169,58,.18);
  background: rgba(212,169,58,.06);
  transform: translateY(-1px);
}
.qq-group {
  font-size: 12px;
  padding: 0 12px;
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.05);
}
.qq-num {
  font-weight: 500;
  color: rgba(255,244,223,.42);
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.disclaimer {
  max-width: 980px;
  margin: 0;
}
.disclaimer strong {
  display: inline;
  color: rgba(240,196,109,.88);
  margin: 0 6px 0 0;
  font-size: 12px;
}
.disclaimer p {
  display: inline;
  color: rgba(255,244,223,.36);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.copyright {
  color: rgba(255,244,223,.24);
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .site-footer {
    padding: 18px 14px 14px;
    text-align: left;
    margin-top: 24px;
  }
  .footer-content {
    max-width: none;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 10px;
    margin-bottom: 10px;
    gap: 10px;
  }
  .footer-brand {
    gap: 8px;
  }
  .footer-logo {
    height: 20px;
  }
  .footer-brand span {
    font-size: 14px;
  }
  .social-links {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .social-item {
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }
  .qq-group {
    padding: 0 10px;
    font-size: 11px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .disclaimer {
    max-width: none;
    margin: 0;
  }
  .disclaimer strong,
  .disclaimer p,
  .copyright {
    font-size: 10px;
    line-height: 1.7;
    white-space: normal;
  }
}

/* 过海组合表单 */
.attack-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { position: relative; }
.input-group.is-hidden { display: none; }
#firstAvatar, #secondAvatar { width: 100%; padding: 16px; background: #000; border: 1px solid var(--line); border-radius: 12px; color: var(--gold-bright); font-size: 16px; text-align: left; }
.inline-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.double-saint-card { padding: 0; overflow: hidden; }
.double-saint-layout { display: grid; grid-template-columns: 1.8fr 0.82fr; width: 100%; min-height: 0; }
.avatar-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.avatar-tile { border: 1px solid rgba(168,146,108,.34); border-radius: 14px; background: rgba(255,251,243,0.74); padding: 10px 10px 12px; cursor: pointer; transition: .25s; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.36); }
.avatar-tile:hover { border-color: rgba(141,125,93,.56); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 8px 20px rgba(114,95,67,.1); }
.avatar-tile.is-active { border-color: #a98756; background: linear-gradient(180deg, rgba(246, 237, 221, 0.98), rgba(238, 226, 205, 0.92)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.58), 0 10px 22px rgba(114,95,67,.14); }
.avatar-tile[data-picked-role="first"] { border-color: #8d7650; }
.avatar-tile[data-picked-role="second"] { border-color: #6f9188; }
.avatar-tile.is-active .avatar-no,
.avatar-tile.is-active .avatar-name { color: #4f3a23; }
.avatar-tile.is-active .avatar-portrait { border-color: rgba(156, 123, 78, 0.52); box-shadow: 0 0 0 3px rgba(255,248,236,0.78); }
.avatar-tile.is-disabled { opacity: .72; }
.avatar-no { display: block; color: #8f7a57; font-size: 10px; margin-bottom: 6px; }
.avatar-portrait { width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 50%; border: 1px solid rgba(168,146,108,.34); background: radial-gradient(circle at 30% 30%, rgba(221,212,189,.72), rgba(248,243,234,.92)); overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.avatar-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: inherit; background: transparent; }
.avatar-name { display: block; color: #66563f; font-size: 12px; font-weight: 700; line-height: 1.35; }
.selected-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.slot-card { position: relative; border: 1px solid rgba(168,146,108,.34); border-radius: 14px; padding: 12px 14px; background: rgba(255,251,243,0.76); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); }
.slot-card span { display: block; color: #8b7656; font-size: 11px; margin-bottom: 6px; }
.slot-card strong { color: #66543d; font-size: 15px; line-height: 1.4; }
.slot-clear { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(168,146,108,.24); background: rgba(255,251,243,.82); color: #8d7d68; cursor: pointer; }
.buy-summary-panel { border-left: 1px solid rgba(168,146,108,.24); padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, rgba(248,243,235,.94), rgba(239,231,217,.9)); }
.summary-head { border: 1px solid rgba(168,146,108,.34); border-radius: 16px; padding: 14px; background: rgba(255,251,243,.74); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.summary-head span { display: block; color: #8b7656; font-size: 11px; margin-bottom: 8px; }
.summary-head strong { display: block; color: #5f4d37; font-size: 21px; line-height: 1.3; }
.summary-count, .summary-price { margin-top: 14px; color: #7d6d58; font-size: 13px; }
.summary-count strong { margin-left: 8px; color: #5f4d37; font-size: 19px; }
.summary-price { color: var(--gold-bright); font-weight: 700; }
.summary-buy { margin-top: 14px; width: 100%; padding: 12px 16px; font-size: 17px; }
.summary-tips { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.summary-link { width: 100%; margin-top: 14px; background: rgba(255, 248, 238, 0.84); border-color: rgba(166,145,108,.42); color: #6a583f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.42); }
.summary-link:hover { border-color: #9b8560; color: #5f4d37; background: rgba(255, 252, 245, 0.94); }
.current-pair-empty { color: var(--muted); }

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-item-ucl {
  animation: fadeInRight 0.4s ease-out backwards;
}

/* 按钮点击反馈 */
.btn:active { transform: scale(0.95); }

/* 选择器聚焦效果 */
#firstAvatar:focus,
#secondAvatar:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* 资格检测状态文字颜色 */
#buyHint,
#eligibilityStatus {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,251,243,.72);
  border: 1px solid rgba(166,145,108,.16);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
#buyHint {
  color: #7a6950;
}
#eligibilityStatus {
  font-weight: 600;
}
#eligibilityStatus[data-tone="ok"] { color: var(--ok); }
#eligibilityStatus[data-tone="warn"] { color: #ff6b6b; }
#eligibilityStatus[data-tone="muted"] { color: var(--muted); }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* 更多 UCL 风格细节 */
.ucl-rank-item {
  border: 1px solid transparent;
  transition: 0.2s;
}
.ucl-rank-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.data-card {
  transition: 0.3s;
}
.data-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 响应式 */
@media (max-width: 992px) {
  html, body { overflow-x: hidden; }
  body { min-width: 0; }
  .main-layout { width: 100%; min-width: 0; padding: 20px 16px 32px; }
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
    gap: 12px;
  }
  .brand-copy { min-width: 0; }
  .brand h1 { font-size: 15px; }
  .brand-sub { font-size: 10px; }
  .nav-shell {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }
  .topnav {
    width: max-content;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px;
    gap: 6px;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 14px;
    scroll-snap-align: start;
  }
  .hero-section,
  .home-top-row,
  .hero-surface,
  .hero-visual,
  .visual-stage { min-height: 0; }
  .hero-surface {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0 10px;
  }
  .hero-copy,
  .hero-copy p { max-width: none; }
  .hero-title-main { font-size: 52px; }
  .hero-btns { flex-wrap: wrap; margin-top: 24px; }
  .hero-visual { order: 2; }
  .hero-artwork { width: min(100%, 420px); max-height: 420px; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-stat-item { min-height: 0; }
  .home-story-grid,
  .home-mechanics-grid { grid-template-columns: 1fr; }
  .story-card,
  .mechanic-card { min-height: 0; }

  .match-panel {
    width: min(100%, 760px);
    padding: 18px;
    border-radius: 24px;
  }
  .match-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .match-head-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .match-chip,
  .match-close {
    flex: 0 0 auto;
  }
  .match-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .match-summary {
    order: -1;
    padding: 14px;
  }
  .match-summary .summary-head strong {
    font-size: 22px;
  }
  .buy-summary-panel {
    border-left: none;
    padding: 0;
    background: transparent;
  }
  .selected-slots {
    grid-template-columns: 1fr 1fr;
  }
  .avatar-picker-grid.avatar-heart-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 64px;
    gap: 8px;
  }
  .avatar-heart-grid .avatar-tile {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .match-panel .avatar-portrait {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .header-actions { gap: 8px; }
  .btn-connect-cta { padding: 0 14px; }
  .hero-eyebrow { padding: 8px 12px; font-size: 11px; }
  .hero-title-main { font-size: 42px; }
  .hero-copy p { font-size: 14px; line-height: 1.7; margin-top: 18px; }
  .btn-hero { min-height: 44px; padding: 0 18px; font-size: 13px; }
  .hero-artwork { width: min(100%, 330px); max-height: 330px; border-radius: 20px; }
  .hero-stats { gap: 10px; }
  .hero-stat-item { min-height: 118px; padding: 13px 15px; border-radius: 18px; }
  .hero-stat-item span, .hero-float span { font-size: 9px; letter-spacing: .08em; }
  .hero-stat-item strong { font-size: 19px; margin-top: 8px; }
  .hero-stat-item small, .hero-float small { margin-top: 8px; font-size: 11px; line-height: 1.45; }
  .story-card h4,
  .mechanic-card h4 { font-size: 26px; }
  .story-card p,
  .mechanic-card p,
  .inline-tip { font-size: 13px; line-height: 1.7; }
  .home-cta-band { padding: 18px; border-radius: 24px; }
  .home-cta-band h3 { font-size: 34px; }
  .home-cta-band p { max-width: 32ch; font-size: 14px; }
  .home-cta-btn.btn.btn-primary { min-height: 48px; min-width: 148px; font-size: 14px; }

  .drawer-panel,
  .reward-panel,
  .mechanics-panel,
  .match-panel {
    width: min(100%, 100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 20px;
  }
  .drawer-head {
    margin-bottom: 18px;
    gap: 10px;
    align-items: flex-start;
  }
  .drawer-head h3,
  .reward-head h3 {
    font-size: 18px;
  }
  .drawer-head > .btn,
  .reward-close,
  .mechanics-close {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
  .rules-content,
  .reward-body,
  .mechanics-body {
    gap: 14px;
  }
  .rules-intro,
  .mechanics-lead,
  .mechanics-note {
    font-size: 13px;
    line-height: 1.7;
  }
  .rule-grid,
  .mechanics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rule-card,
  .mechanics-item,
  .reward-value-wrap {
    padding: 14px;
    border-radius: 18px;
  }
  .rule-head,
  .mechanics-head-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .rule-card h4,
  .mechanics-item h4 {
    font-size: 16px;
  }
  .rule-card .desc,
  .mechanics-list,
  #myRoundInfo,
  #historyRefInfo {
    font-size: 13px;
    line-height: 1.7;
  }
  .reward-kicker,
  .reward-label,
  .rule-badge,
  .mechanics-chip {
    font-size: 11px;
  }
  .reward-value-wrap strong {
    font-size: 32px;
  }
  .reward-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .history-actions,
  .rank-actions {
    justify-content: flex-start;
    margin-bottom: 14px;
  }
  .history-actions .btn,
  .rank-actions .btn {
    min-height: 38px;
    padding: 0 14px;
  }
  .history-row {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 16px;
  }
  .history-row .history-pair {
    font-size: 15px;
    line-height: 1.35;
  }
  .history-row .history-time {
    font-size: 12px;
    align-self: center;
  }
  .my-stats-list {
    gap: 10px;
  }
  .my-stat-row {
    padding: 12px 14px;
  }

  .match-head h3 {
    font-size: 16px;
  }
  .match-head-actions {
    gap: 6px;
  }
  .match-chip,
  .match-close {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
    border-radius: 999px;
  }
  .match-summary .summary-head {
    padding: 10px 12px;
  }
  .match-summary .summary-head strong {
    font-size: 20px;
  }
  .match-summary .summary-count strong {
    font-size: 15px;
  }
  .selected-slots {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .slot-card {
    padding: 10px 12px;
  }
  .slot-card strong {
    font-size: 14px;
  }
  .avatar-picker-grid.avatar-heart-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 54px;
    gap: 6px;
  }
  .match-panel .avatar-tile {
    padding: 3px;
    border-radius: 15px;
  }
  .match-panel .avatar-portrait {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 12px; }
  .brand { gap: 8px; }
  .brand h1 { font-size: 14px; }
  .brand-sub { display: none; }
  .topnav { gap: 6px; }
  .nav-item { padding: 8px 12px; font-size: 11px; }
  .hero-title-main { font-size: 36px; }
  .hero-btns { gap: 10px; }
  .hero-artwork { width: min(100%, 296px); max-height: 296px; }
  .btn-hero { min-height: 42px; padding: 0 16px; font-size: 12px; }
  .hero-stats { gap: 8px; }
  .hero-stat-item { min-height: 110px; padding: 12px 13px; }
  .hero-stat-item strong { font-size: 17px; }
  .hero-stat-item small, .hero-float small { font-size: 10px; }
  .story-card,
  .mechanic-card { padding: 16px; border-radius: 18px; }
  .story-card h4,
  .mechanic-card h4 { font-size: 22px; }
  .story-card p,
  .mechanic-card p,
  .inline-tip { font-size: 12px; line-height: 1.65; }
  .site-footer { padding: 16px 12px 12px; }
  .social-links { gap: 6px; }
  .social-item { min-height: 30px; padding: 0 9px; font-size: 12px; }

  .drawer-panel,
  .reward-panel,
  .mechanics-panel,
  .match-panel {
    width: min(100%, 100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 12px;
    border-radius: 18px;
  }
  .drawer-head {
    margin-bottom: 14px;
  }
  .drawer-head h3,
  .reward-head h3 {
    font-size: 16px;
  }
  .reward-value-wrap strong {
    font-size: 28px;
  }
  .history-row {
    grid-template-columns: 38px 1fr;
    align-items: start;
    padding: 12px;
  }
  .history-row .history-time {
    grid-column: 2;
    margin-top: 2px;
  }
  .rank-tabs {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .rank-tab-btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }
  .match-head-actions {
    width: 100%;
  }
  .match-chip,
  .match-close {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
  .match-summary #buyHint,
  .match-summary #eligibilityStatus {
    font-size: 11px;
  }
  .avatar-picker-grid.avatar-heart-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 58px;
  }
}


/* 兼容现有 JS 逻辑的显示类 */
.status-item strong[data-tone="ok"] { color: var(--ok); }
.status-item strong[data-tone="warn"] { color: #fcc; }
.status-item strong[data-tone="muted"] { color: var(--muted); }