/* 活动页核心布局与视觉样式；资源路径相对 css/ 目录。 */
:root {
  --bg-deep: #04060e;
  --bg-dark: #080d1b;
  --bg-card: rgba(13, 21, 40, 0.82);
  --bg-card-2: rgba(18, 28, 52, 0.9);
  --ice: #5ac8ff;
  --ice-light: #bfe9ff;
  --ice-mid: #3aa6f0;
  --ice-deep: #2b8fd6;
  --violet: #8a7bff;
  --violet-deep: #6a5ae0;
  --elyos-blue: #4fc3f7;
  --elyos-deep: #0288d1;
  --elyos-glow: rgba(79, 195, 247, 0.45);
  --asmodian-purple: #b18cff;
  --asmodian-deep: #7c4dff;
  --asmodian-red: #e53935;
  --asmodian-glow: rgba(177, 140, 255, 0.45);
  /* 兼容旧命名：金色系 → 冰蓝系 */
  --gold: #7fd0ff;
  --gold-light: #cfeeff;
  --gold-deep: #2b8fd6;
  --silver: #8ea6c5;
  --text-primary: #e9f3ff;
  --text-secondary: #a9c1dd;
  --text-muted: #6f86a6;
  --line: rgba(110, 180, 255, 0.24);
  --glow-ice: rgba(90, 178, 255, 0.55);
  --glow-violet: rgba(138, 123, 255, 0.45);
  --btn-grad: linear-gradient(90deg, #8fe0ff 0%, #46a8ff 48%, #8a7bff 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-wrap {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-dark);
  min-height: 100vh;
}

/* 极光氛围层 */
.page-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 12% 18%, rgba(60, 140, 230, 0.14), transparent 70%),
    radial-gradient(680px 520px at 88% 55%, rgba(120, 95, 230, 0.12), transparent 70%),
    radial-gradient(520px 400px at 50% 96%, rgba(90, 178, 255, 0.08), transparent 70%);
  animation: aurora-drift 14s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% { opacity: 0.7; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-16px); }
}

/* ===== View Control ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== 羽毛飘落层 ===== */
.feather-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.feather {
  position: absolute;
  top: -12%;
  width: 20px;
  height: 50px;
  opacity: 0;
  animation: feather-fall linear infinite;
}

.feather.f-white { fill: rgba(255,255,255,0.92); color: rgba(190,225,255,0.9); filter: drop-shadow(0 0 6px rgba(190,230,255,0.8)); }
.feather.f-black { fill: rgba(24,20,44,0.92); color: rgba(150,120,255,0.75); filter: drop-shadow(0 0 6px rgba(140,105,255,0.55)); }
.feather.f-ice   { fill: rgba(150,215,255,0.85); color: rgba(120,190,250,0.9); filter: drop-shadow(0 0 6px rgba(120,195,255,0.75)); }

@keyframes feather-fall {
  0%   { transform: translateY(0) translateX(0) rotate(-12deg); opacity: 0; }
  8%   { opacity: 0.9; }
  50%  { transform: translateY(55vh) translateX(30px) rotate(28deg); opacity: 0.85; }
  100% { transform: translateY(115vh) translateX(-24px) rotate(-20deg); opacity: 0; }
}

/* ===== 翅膀装饰 ===== */
.deco-wing { position: absolute; pointer-events: none; z-index: 2; }
.deco-wing svg { width: 100%; height: 100%; }

@keyframes wing-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== 冰蓝发光图片按钮（用户提供底图） ===== */
.btn-img {
  background-color: transparent !important;
  background-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/btnblue.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(200,240,255,0.9), 0 1px 4px rgba(10,50,110,0.8);
}

/* ===== Faction Selection View ===== */
.faction-view {
  position: fixed;
  inset: 0;
  z-index: 1000;
  max-width: 480px;
  margin: 0 auto;
}

.faction-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/bgmain.jpg');
  background-size: cover, cover;
  background-position: center, center;
}

.faction-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,6,14,0.5) 0%, rgba(4,6,14,0.12) 28%, rgba(4,6,14,0.45) 70%, rgba(4,6,14,0.95) 100%);
}

.faction-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, #ffffff 30%, var(--ice) 55%, var(--violet), transparent);
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 26px rgba(190,233,255,0.8), 0 0 60px var(--glow-ice);
  animation: divider-pulse 3s ease-in-out infinite;
}

@keyframes divider-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.faction-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 88px 0 40px;
}

.faction-header {
  text-align: center;
  padding: 0 20px;
  margin-bottom: 20px;
}

.faction-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: rgba(90,178,255,0.12);
  border: 1px solid rgba(150,210,255,0.5);
  border-radius: 0;
  font-size:13.75px;
  color: var(--ice-light);
  letter-spacing: 2px;
  margin-bottom: 14px;
  box-shadow: 0 0 18px rgba(90,178,255,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}

.faction-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(180deg, #ffffff 0%, #dff3ff 45%, #5ac8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: 2px;
  filter: drop-shadow(0 0 18px rgba(90,178,255,0.65)) drop-shadow(0 2px 6px rgba(4,10,26,0.9));
}

.faction-header .subtitle {
  font-size:15px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(120,195,255,0.9), 0 1px 4px rgba(4,10,26,1);
  letter-spacing: 4px;
}

/* Support counts */
.faction-counts {
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
  margin-bottom: 16px;
}

.faction-count { text-align: center; }

.faction-count .num {
  font-size: 22px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
}

.faction-count.elyos .num { color: #ffffff; text-shadow: 0 0 14px var(--elyos-glow), 0 0 30px var(--elyos-glow); }
.faction-count.asmodian .num { color: #ffffff; text-shadow: 0 0 14px var(--asmodian-glow), 0 0 30px var(--asmodian-glow); }

.faction-count .label {
  font-size:12.5px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(4,10,26,1), 0 0 8px rgba(4,10,26,0.9), 0 0 12px rgba(120,195,255,0.5);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* Faction choices */
.faction-choices {
  flex: 1;
  display: flex;
  position: relative;
}

.faction-choice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.faction-choice::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.faction-choice.elyos::before {
  background: linear-gradient(180deg, transparent, rgba(120,200,255,0.14));
}

.faction-choice.asmodian::before {
  background: linear-gradient(180deg, transparent, rgba(150,110,255,0.14));
}

.faction-choice:hover::before { opacity: 1; }

.faction-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  animation: wing-float 5s ease-in-out infinite;
}

.faction-emblem img {
  width: 86px;
  height: auto;
  display: block;
}

.faction-choice.elyos .faction-emblem img {
  filter: drop-shadow(0 0 10px rgba(200,240,255,0.95)) drop-shadow(0 0 26px var(--elyos-glow)) drop-shadow(0 0 52px rgba(79,195,247,0.4));
}

.faction-choice.asmodian .faction-emblem img {
  filter: drop-shadow(0 0 10px rgba(215,195,255,0.95)) drop-shadow(0 0 26px var(--asmodian-glow)) drop-shadow(0 0 52px rgba(150,110,255,0.4));
}

.faction-choice.asmodian .faction-emblem { animation-delay: 1.2s; }

.faction-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
  letter-spacing: 4px;
}

.faction-choice.elyos .faction-name { color: #ffffff; text-shadow: 0 0 16px var(--elyos-glow), 0 0 34px var(--elyos-glow); }
.faction-choice.asmodian .faction-name { color: #efe6ff; text-shadow: 0 0 16px var(--asmodian-glow), 0 0 34px var(--asmodian-glow); }

.faction-name-en {
  font-size:11.25px;
  color: var(--text-secondary);
  text-shadow: 0 1px 4px rgba(4,10,26,0.9);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.faction-select-btn {
  padding: 12px 30px;
  border-radius: 0;
  font-size:16.25px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  border: none;
  color: #fff;
  transition: transform 0.25s, filter 0.25s;
  background-color: transparent;
  background-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/btnblue.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  text-shadow: 0 0 10px rgba(200,240,255,0.9), 0 1px 4px rgba(10,50,110,0.8);
}

.faction-choice.elyos .faction-select-btn:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.15); }

.faction-choice.asmodian .faction-select-btn {
  filter: hue-rotate(42deg) saturate(1.05);
}
.faction-choice.asmodian .faction-select-btn:hover { transform: translateY(-1px) scale(1.03); filter: hue-rotate(42deg) saturate(1.05) brightness(1.15); }

.faction-footer-note {
  text-align: center;
  padding: 0 20px;
  font-size:12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

.faction-footer-note strong {
  color: var(--ice-light);
  font-weight: 600;
}

/* ===== Main View ===== */
/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/bgmain.jpg');
  background-size: cover, cover;
  background-position: center top, center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,6,14,0.42) 0%, rgba(4,6,14,0.08) 30%, rgba(4,6,14,0.5) 66%, var(--bg-dark) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 70px 24px 104px;
  text-align: center;
}

.hero-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.hero-faction-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 0;
  font-size:13.75px;
  letter-spacing: 1px;
  backdrop-filter: blur(6px);
}

.hero-faction-tag.elyos {
  background: rgba(79,195,247,0.14);
  border: 1px solid rgba(130,210,255,0.5);
  color: var(--ice-light);
  box-shadow: 0 0 14px rgba(79,195,247,0.35);
}

.hero-faction-tag.asmodian {
  background: rgba(160,120,255,0.14);
  border: 1px solid rgba(180,150,255,0.5);
  color: #e2d6ff;
  box-shadow: 0 0 14px rgba(160,120,255,0.35);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(90,178,255,0.12);
  border: 1px solid rgba(150,210,255,0.5);
  border-radius: 0;
  font-size:12.5px;
  color: var(--ice-light);
  letter-spacing: 1px;
  box-shadow: 0 0 14px rgba(90,178,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
}

.hero-title-group {
  margin-top: auto;
  margin-bottom: auto;
  position: relative;
}

.hero-subtitle {
  font-family: 'Noto Serif SC', serif;
  font-size:15px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(120,195,255,0.95), 0 1px 4px rgba(4,10,26,1), 0 0 4px rgba(4,10,26,0.8);
  letter-spacing: 6px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 0%, #e2f4ff 40%, #7fd0ff 75%, #5ac8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 22px rgba(90,178,255,0.75)) drop-shadow(0 2px 8px rgba(4,10,26,0.9));
}

.hero-title-en {
  font-size:12.5px;
  font-weight: 500;
  color: #f2faff;
  text-shadow: 0 0 12px rgba(120,195,255,0.8), 0 1px 4px rgba(4,10,26,1), 0 0 4px rgba(4,10,26,0.8);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-meta { margin-top: 16px; }

.hero-date {
  font-size:15px;
  color: var(--ice-light);
  text-shadow: 0 1px 4px rgba(4,10,26,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-date .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice);
}

/* 主按钮 · 用户提供的冰蓝发光底图 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 300px;
  padding: 26px 48px;
  background-color: transparent;
  background-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/btnblue.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 0;
  font-family: 'Noto Serif SC', serif;
  font-size:20px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 4px;
  text-shadow: 0 0 12px rgba(210,245,255,0.95), 0 1px 4px rgba(10,50,110,0.85);
  position: relative;
  overflow: visible;
  transition: transform 0.2s, filter 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.15);
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Quick Nav */
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,10,22,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.quick-nav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }

.quick-nav-inner { transition: padding 0.25s; }
@media (max-width: 819px) {
  .quick-nav { top: 62px; }
  body.in-main.nav-stuck::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(6,10,22,0.88);
    backdrop-filter: blur(14px);
    z-index: 99;
  }
}
@media (min-width: 820px) {
  .quick-nav.stuck .quick-nav-inner { padding-left: 270px; padding-right: 270px; }
}

.nav-item {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size:15px;
  color: var(--text-secondary);
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(58,166,240,0.85), rgba(138,123,255,0.85));
  border-color: rgba(190,233,255,0.5);
  box-shadow: 0 0 14px rgba(90,178,255,0.5);
  text-shadow: 0 1px 3px rgba(10,50,110,0.6);
}

/* Section Common */
.section {
  padding: 76px 0;
  position: relative;
}

.section[id] { scroll-margin-top: 72px; }

@media (max-width: 819px) {
  .section[id] { scroll-margin-top: 132px; }
}

.section-inner {
  padding: 0 20px;
}

/* Part1-5 之间微弱的渐变流动 */
#squad  { background: linear-gradient(180deg, rgba(8,13,27,0) 0%, rgba(40,82,155,0.09) 60%, rgba(54,72,165,0.1) 100%); }
#tasks  { background: linear-gradient(180deg, rgba(54,72,165,0.1) 0%, rgba(82,62,175,0.09) 100%); }
#legion { background: linear-gradient(180deg, rgba(82,62,175,0.09) 0%, rgba(36,98,175,0.09) 100%); }
#qualify{ background: linear-gradient(180deg, rgba(36,98,175,0.09) 0%, rgba(96,72,195,0.1) 100%); }
#rules  { background: linear-gradient(180deg, rgba(96,72,195,0.1) 0%, rgba(8,13,27,0) 100%); }

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size:12.5px;
  color: var(--ice);
  letter-spacing: 5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), var(--violet));
}
.section-eyebrow::after {
  background: linear-gradient(90deg, var(--violet), var(--ice), transparent);
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: #f2f9ff;
  letter-spacing: 2px;
  margin-bottom: 4px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 18px rgba(90,178,255,0.45);
}

/* 标题两侧小羽翼 */
.section-title::before, .section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 14px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(90,178,255,0.0), rgba(150,215,255,0.85));
  clip-path: polygon(0 55%, 30% 30%, 55% 42%, 78% 18%, 100% 38%, 100% 62%, 60% 62%, 25% 72%);
}
.section-title::before { left: -34px; transform: translateY(-50%) scaleX(-1); }
.section-title::after { right: -34px; }

.section-desc {
  font-size:13.75px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Card · 冰晶暗夜玻璃 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 18px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(190,233,255,0.12);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ice) 30%, #ffffff 50%, var(--violet) 70%, transparent);
  opacity: 0.8;
}

.card-gold {
  border-color: rgba(90,178,255,0.4);
  background: linear-gradient(180deg, rgba(24,42,74,0.75) 0%, var(--bg-card) 100%);
}

/* Action Bar */
.action-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.action-btn {
  flex: 1;
  padding: 10px 6px;
  border-radius: 0;
  font-size:13.75px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.04);
}

.action-btn svg { width: 18px; height: 18px; }

.action-btn.invite {
  border-color: rgba(79,195,247,0.4);
  color: var(--elyos-blue);
  box-shadow: 0 0 10px rgba(79,195,247,0.15) inset;
}
.action-btn.invite:hover { box-shadow: 0 0 16px rgba(79,195,247,0.4); }

.action-btn.create {
  background: linear-gradient(90deg, rgba(58,166,240,0.9), rgba(138,123,255,0.9));
  border-color: rgba(190,233,255,0.55);
  color: #fff;
  text-shadow: 0 1px 3px rgba(10,50,110,0.6);
  box-shadow: 0 0 16px rgba(90,178,255,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}
.action-btn.create:hover { box-shadow: 0 0 24px rgba(90,178,255,0.65); }

.action-btn.reward {
  border-color: rgba(177,140,255,0.4);
  color: var(--asmodian-purple);
  box-shadow: 0 0 10px rgba(177,140,255,0.15) inset;
}
.action-btn.reward:hover { box-shadow: 0 0 16px rgba(177,140,255,0.4); }

/* Squad Section */
.squad-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.squad-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(110,180,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:17.5px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  position: relative;
}

.squad-slot.filled {
  border: 2px solid var(--ice-mid);
  background: radial-gradient(circle, rgba(90,178,255,0.22), transparent);
  box-shadow: 0 0 12px rgba(90,178,255,0.35);
}

.squad-slot.leader {
  border-color: #cdbcff;
  box-shadow: 0 0 16px rgba(160,130,255,0.55);
}

.squad-slot .crown {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 4px rgba(120,195,255,0.9));
}

.squad-slot .avatar-icon {
  width: 86%;
  height: 86%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:17.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #6cc6ff, #2b8fd6);
  color: #fff;
  text-shadow: 0 1px 3px rgba(10,50,110,0.7);
}

.squad-slot.leader .avatar-icon {
  background: linear-gradient(135deg, #a08cff, #6a5ae0);
}

.squad-divider-label {
  text-align: center;
  font-size:13.75px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.reward-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(58,120,200,0.18), rgba(110,90,220,0.12));
  border: 1px solid rgba(110,180,255,0.35);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(190,233,255,0.15);
}

.reward-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: linear-gradient(135deg, #46a8ff, #8a7bff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(90,178,255,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}

.reward-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.reward-info { flex: 1; min-width: 0; }

.reward-tag {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(90,178,255,0.18);
  border-radius: 0;
  font-size:11.25px;
  color: var(--ice-light);
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.reward-name {
  font-size:16.25px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.reward-desc {
  font-size:12.5px;
  color: var(--text-muted);
}

/* Points Section */
.points-block { margin-bottom: 18px; }
.points-block:last-child { margin-bottom: 0; }

.points-block-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.points-block-label .icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.points-block-label .icon svg { width: 13px; height: 13px; }

.points-block-label.personal .icon {
  background: rgba(79,195,247,0.16);
  color: var(--elyos-blue);
}

.points-block-label.squad .icon {
  background: rgba(138,123,255,0.16);
  color: var(--violet);
}

.points-block-label .text {
  font-size:16.25px;
  font-weight: 600;
  color: var(--text-primary);
}

.points-block-label .note {
  font-size:12.5px;
  color: var(--text-muted);
  margin-left: auto;
}

.points-bar-wrap { margin-bottom: 8px; }

.points-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.points-bar-label .left {
  font-size:13.75px;
  color: var(--text-secondary);
}

.points-bar-label .right {
  font-size:16.25px;
  font-weight: 700;
  color: var(--ice-light);
  font-family: 'Noto Serif SC', serif;
  text-shadow: 0 0 8px rgba(90,178,255,0.5);
}

.points-bar {
  height: 8px;
  background: rgba(110,180,255,0.12);
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.points-bar-fill {
  height: 100%;
  border-radius: 0;
  position: relative;
}

.points-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.5), transparent 60%);
  animation: shimmer 2.5s infinite;
}

.points-bar-fill.personal {
  background: linear-gradient(90deg, #8fe0ff, var(--elyos-deep));
  box-shadow: 0 0 10px var(--elyos-glow);
}

.points-bar-fill.squad {
  background: linear-gradient(90deg, var(--ice), var(--violet));
  box-shadow: 0 0 10px var(--glow-violet);
}

.points-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 0;
  border: 1px solid rgba(110,180,255,0.18);
  background: rgba(255,255,255,0.03);
}

.tier-item.unlocked {
  border-color: rgba(86,214,150,0.3);
  background: rgba(60,180,120,0.07);
}

.tier-item.current {
  border-color: rgba(90,178,255,0.45);
  background: rgba(90,178,255,0.08);
  box-shadow: 0 0 14px rgba(90,178,255,0.2);
}

.tier-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:15px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  flex-shrink: 0;
}

.tier-badge.locked {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(110,180,255,0.2);
}

.tier-badge.unlocked {
  background: linear-gradient(135deg, #4cc98a, #1f9e63);
  color: #fff;
  box-shadow: 0 0 10px rgba(76,201,138,0.4);
}

.tier-badge.current {
  background: linear-gradient(135deg, #46a8ff, #8a7bff);
  color: #fff;
  box-shadow: 0 0 12px var(--glow-ice);
  animation: pulse-ice 2s infinite;
}

@keyframes pulse-ice {
  0%, 100% { box-shadow: 0 0 12px var(--glow-ice); }
  50% { box-shadow: 0 0 22px var(--glow-ice), 0 0 34px rgba(150,130,255,0.45); }
}

.tier-info { flex: 1; min-width: 0; }

.tier-points {
  font-size:15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tier-reward {
  font-size:12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.tier-status {
  font-size:11.25px;
  padding: 3px 7px;
  border-radius: 0;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.tier-status.locked { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.tier-status.unlocked { background: rgba(86,214,150,0.15); color: #7fe0b0; }
.tier-status.current { background: rgba(90,178,255,0.16); color: var(--ice-light); }

/* Task Tabs */
.task-tabs {
  display: flex;
  margin: 18px 0 14px;
  background: rgba(110,180,255,0.08);
  border-radius: 0;
  padding: 3px;
  border: 1px solid rgba(110,180,255,0.2);
}

.task-tab {
  flex: 1;
  padding: 9px 6px;
  text-align: center;
  font-size:13.75px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.task-tab.active {
  background: linear-gradient(90deg, rgba(58,166,240,0.9), rgba(138,123,255,0.9));
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(10,50,110,0.6);
  box-shadow: 0 0 12px rgba(90,178,255,0.45);
}

.task-panel { display: none; }
.task-panel.active { display: block; }

.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(110,180,255,0.18);
  border-radius: 0;
}

.task-icon {
  width: 32px;
  height: 32px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-icon svg { width: 16px; height: 16px; }

.task-icon.daily { background: rgba(79,195,247,0.14); color: var(--elyos-blue); }
.task-icon.once { background: rgba(177,140,255,0.14); color: var(--asmodian-purple); }
.task-icon.follow { background: rgba(90,178,255,0.16); color: var(--ice-light); }

.task-body { flex: 1; min-width: 0; }

.task-name {
  font-size:15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.task-desc {
  font-size:12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-points {
  flex-shrink: 0;
  text-align: right;
  margin-right: 4px;
}

.task-points .num {
  font-size:17.5px;
  font-weight: 700;
  color: var(--ice-light);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
  text-shadow: 0 0 8px rgba(90,178,255,0.5);
}

.task-points .unit {
  font-size:11.25px;
  color: var(--text-muted);
}

.task-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  background: linear-gradient(90deg, rgba(90,178,255,0.18), rgba(138,123,255,0.16));
  border: 1px solid rgba(120,195,255,0.45);
  border-radius: 0;
  font-size:12.5px;
  color: var(--ice-light);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: all 0.2s;
}
.task-btn:hover { box-shadow: 0 0 10px rgba(90,178,255,0.5); }

.task-btn.done {
  background: rgba(86,214,150,0.1);
  border-color: rgba(86,214,150,0.3);
  color: #7fe0b0;
}

.task-hint {
  margin-top: 10px;
  text-align: center;
  font-size:12.5px;
  color: var(--text-muted);
}

/* Legion Section */
.legion-progress { margin-bottom: 20px; }

.legion-bar-wrap { position: relative; padding: 0 4px; }

.legion-bar {
  height: 10px;
  background: rgba(110,180,255,0.12);
  border-radius: 0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.legion-bar-fill {
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, var(--violet), var(--ice), #cfeeff);
  border-radius: 0;
  box-shadow: 0 0 12px var(--glow-violet);
  position: relative;
}

.legion-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(255,255,255,0.55), transparent 60%);
  animation: shimmer 2.5s infinite;
}

.legion-milestones {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  position: relative;
}

.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
}

.milestone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid rgba(110,180,255,0.5);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.milestone.reached .milestone-dot {
  background: var(--ice);
  border-color: #fff;
  box-shadow: 0 0 8px var(--glow-ice);
}

.milestone-num {
  font-size:16.25px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
  margin-top: 2px;
}

.milestone.reached .milestone-num { color: var(--ice-light); }

.milestone-label {
  font-size:11.25px;
  color: var(--text-muted);
}

.legion-rewards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.legion-reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(110,180,255,0.18);
  border-radius: 0;
}

.legion-reward-item.reached {
  border-color: rgba(90,178,255,0.4);
  background: rgba(90,178,255,0.07);
}

.legion-reward-num {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}

.legion-reward-item.reached .legion-reward-num {
  background: linear-gradient(135deg, rgba(90,178,255,0.25), rgba(138,123,255,0.18));
}

.legion-reward-num .n {
  font-size:20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
}

.legion-reward-item.reached .legion-reward-num .n { color: var(--ice-light); }

.legion-reward-num .u {
  font-size:10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.legion-reward-content { flex: 1; min-width: 0; }

.legion-reward-title {
  font-size:15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.legion-reward-desc {
  font-size:12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Ranking */
.ranking-card { margin-top: 14px; }

.ranking-title {
  font-size:16.25px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranking-title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, var(--ice), var(--violet));
  border-radius: 0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 32px;
  margin-top: 14px;
}

.ranking-pagination[hidden] { display: none; }

.ranking-page-btn {
  min-width: 64px;
  padding: 5px 10px;
  border: 1px solid rgba(126, 193, 239, 0.38);
  border-radius: 2px;
  background: rgba(91, 171, 232, 0.08);
  color: var(--ice-light);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ranking-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ranking-page-status {
  min-width: 74px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 0;
}

.ranking-row.top1 {
  background: linear-gradient(90deg, rgba(90,178,255,0.14), rgba(138,123,255,0.06));
  border: 1px solid rgba(120,195,255,0.35);
  box-shadow: 0 0 12px rgba(90,178,255,0.18);
}

.rank-num {
  width: 20px;
  text-align: center;
  font-size:16.25px;
  font-weight: 700;
  font-family: 'Noto Serif SC', serif;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rank-num.gold { color: var(--ice-light); text-shadow: 0 0 8px rgba(90,178,255,0.7); }
.rank-num.silver { color: #b8c9e0; }
.rank-num.bronze { color: #b18cff; }

.rank-legion {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  font-size:15px;
  color: var(--text-primary);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rank-score {
  font-size:13.75px;
  color: var(--ice-light);
  font-weight: 600;
  flex-shrink: 0;
}

.rank-members {
  font-size:11.25px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 32px;
  text-align: right;
}

/* Qualification Section */
.qual-paths {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qual-path {
  padding: 16px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(190,233,255,0.12);
}

.qual-path.personal-path {
  background: linear-gradient(135deg, rgba(79,195,247,0.1), rgba(8,13,27,0.9));
  border: 1px solid rgba(79,195,247,0.32);
}

.qual-path.squad-path {
  background: linear-gradient(135deg, rgba(90,178,255,0.12), rgba(8,13,27,0.9));
  border: 1px solid rgba(120,195,255,0.38);
}

.qual-path.legion-path {
  background: linear-gradient(135deg, rgba(160,120,255,0.1), rgba(8,13,27,0.9));
  border: 1px solid rgba(160,120,255,0.32);
}

.qual-path-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.qual-path-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qual-path-icon svg { width: 18px; height: 18px; }

.personal-path .qual-path-icon { background: rgba(79,195,247,0.14); color: var(--elyos-blue); }
.squad-path .qual-path-icon { background: rgba(90,178,255,0.16); color: var(--ice-light); }
.legion-path .qual-path-icon { background: rgba(160,120,255,0.14); color: var(--asmodian-purple); }

.qual-path-title {
  font-size:17.5px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Noto Serif SC', serif;
}

.qual-path-condition {
  font-size:13.75px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.qual-path-condition strong {
  color: var(--ice-light);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(90,178,255,0.5);
}

.qual-path-note {
  font-size:12.5px;
  color: var(--text-muted);
  font-style: italic;
}

.qual-note {
  margin-top: 14px;
  padding: 12px;
  background: rgba(90,178,255,0.07);
  border: 1px solid rgba(110,180,255,0.25);
  border-radius: 0;
  font-size:12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  gap: 8px;
}

.qual-note-icon {
  color: var(--ice-light);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Rules */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(110,180,255,0.15);
  border-radius: 0;
}

.rule-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(90,178,255,0.3), rgba(138,123,255,0.22));
  color: var(--ice-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:12.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.rule-text {
  font-size:13.75px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rule-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 28px 20px 100px;
  text-align: center;
  border-top: 1px solid rgba(110,180,255,0.15);
  background: linear-gradient(180deg, transparent, rgba(10,18,38,0.7));
}

.footer-logo {
  font-family: 'Noto Serif SC', serif;
  font-size:17.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 201;
}

.footer-link {
  font-size:12.5px;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.footer-divider {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,180,255,0.4), transparent);
  margin: 0 auto 14px;
}

.footer-copyright {
  font-size:11.25px;
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0.8;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  background: rgba(8,14,28,0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(120,195,255,0.4);
  border-radius: 0;
  box-shadow: 0 8px 26px rgba(0,0,0,0.55), 0 0 20px rgba(90,178,255,0.25);
  max-width: calc(100% - 32px);
}

.floating-cta .points-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 10px;
  border-right: 1px solid rgba(110,180,255,0.25);
}

.floating-cta .points-display .num {
  font-size:20px;
  font-weight: 700;
  color: var(--ice-light);
  font-family: 'Noto Serif SC', serif;
  line-height: 1;
  text-shadow: 0 0 8px rgba(90,178,255,0.6);
}

.floating-cta .points-display .label {
  font-size:10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.floating-cta .cta-btn {
  padding: 11px 26px;
  background-color: transparent;
  background-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/btnblue.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0;
  font-size:15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 2px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(200,240,255,0.9), 0 1px 4px rgba(10,50,110,0.8);
  transition: transform 0.2s, filter 0.2s;
}
.floating-cta .cta-btn:hover { transform: scale(1.04); filter: brightness(1.15); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,4,10,0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: linear-gradient(180deg, rgba(16,26,50,0.98) 0%, rgba(8,13,27,0.98) 100%);
  border: 1px solid rgba(120,195,255,0.4);
  border-radius: 0;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modal-in 0.25s ease-out;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(90,178,255,0.25);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.action-modal .modal-header { margin-top: -20px; border-bottom-color: rgba(130,180,240,0.25); }

.modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(110,180,255,0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size:20px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(110,180,255,0.12);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:20px;
}

.modal-body { padding: 16px 20px 20px; }

.reward-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(110,180,255,0.18);
  border-radius: 0;
  margin-bottom: 10px;
}

.reward-list-item.claimed {
  border-color: rgba(86,214,150,0.3);
  background: rgba(60,180,120,0.06);
}

.reward-list-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reward-list-item .icon.qualification {
  background: linear-gradient(135deg, #46a8ff, #8a7bff);
  box-shadow: 0 0 14px rgba(90,178,255,0.5);
}

.reward-list-item .icon.title {
  background: linear-gradient(135deg, var(--asmodian-purple), var(--asmodian-deep));
  box-shadow: 0 0 14px var(--asmodian-glow);
}

.reward-list-item .icon svg { width: 20px; height: 20px; }

.reward-list-item .info { flex: 1; min-width: 0; }

.reward-list-item .name {
  font-size:16.25px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.reward-list-item .desc {
  font-size:12.5px;
  color: var(--text-muted);
}

.reward-list-item .status {
  font-size:11.25px;
  padding: 3px 8px;
  border-radius: 0;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.reward-list-item .status.claimed {
  background: rgba(86,214,150,0.15);
  color: #7fe0b0;
}

.reward-list-item .status.locked {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* CDK Display */
.cdk-section {
  margin-top: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(58,120,200,0.16), rgba(110,90,220,0.1));
  border: 1px solid rgba(110,180,255,0.3);
  border-radius: 0;
}

.cdk-label {
  font-size:13.75px;
  color: var(--ice-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cdk-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(110,180,255,0.25);
  border-radius: 0;
  padding: 10px 12px;
}

.cdk-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size:17.5px;
  font-weight: 700;
  color: var(--ice-light);
  letter-spacing: 2px;
  user-select: all;
  text-shadow: 0 0 8px rgba(90,178,255,0.5);
}

.cdk-copy-btn {
  padding: 6px 14px;
  background: linear-gradient(90deg, #46a8ff, #8a7bff);
  border: 1px solid rgba(190,233,255,0.5);
  border-radius: 0;
  font-size:13.75px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(10,50,110,0.6);
  box-shadow: 0 0 12px rgba(90,178,255,0.45);
}

.cdk-copy-btn.copied {
  background: linear-gradient(135deg, #4cc98a, #1f9e63);
}

.cdk-hint {
  margin-top: 8px;
  font-size:12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section bg pattern */
.section-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 30%, var(--elyos-blue) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--asmodian-purple) 0%, transparent 40%);
}

/* Faction split decoration */
.faction-split {
  display: flex;
  height: 2px;
  margin: 14px -18px;
  overflow: hidden;
}

.faction-split .elyos-side {
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--ice));
}

.faction-split .asmodian-side {
  flex: 1;
  background: linear-gradient(90deg, var(--violet), transparent);
}


/* ===== 固定 Logo 与返回按钮 ===== */
.site-logo {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.22s;
}
.site-logo img {
  width: 168px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.65));
  transition: filter 0.2s;
}
.site-logo:hover img { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.65)) brightness(1.12); }

.back-btn {
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 1500;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(8,14,28,0.45);
  border: 1px solid rgba(120,195,255,0.28);
  color: rgba(191,233,255,0.85);
  font-size:12.5px;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0.72;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.back-btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(120,195,255,0.16);
  pointer-events: none;
}
.back-btn svg { width: 11px; height: 11px; }
.back-btn:hover { opacity: 1; box-shadow: 0 0 10px rgba(90,178,255,0.35); }
body.in-main .back-btn { display: inline-flex; }

/* ===== 通用弹窗基底：邀请、创建、阵营确认等 ===== */
.modal-overlay.dim { background: rgba(28,32,40,0.82); }

.action-modal {
  overflow: visible;
  max-width: 390px;
  background: none;
  box-shadow: none;
  border: solid transparent;
  border-width: 54px 34px 36px 34px;
  border-image: url('https://static.web.sdo.com//aionm/pic/pro2026/260828AIONRally/popupbg.png') 102 62 58 62 fill stretch;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,0.6)) drop-shadow(0 0 26px rgba(90,178,255,0.25));
}
.action-modal::before { content: none; }
.action-modal::after { content: none; }

.popup-deco {
  position: absolute;
  top: -36px;
  right: -34px;
  width: 140px;
  height: auto;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.action-modal-inner {
  padding: 4px 10px 10px;
  text-align: center;
  position: relative;
  z-index: 2;
  min-height: 240px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.action-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Noto Serif SC', serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 5px;
  margin: -46px 0 26px;
}
.action-modal-title > span:not(.orn) {
  background: linear-gradient(180deg, #ffffff 0%, #dff3ff 45%, #5ac8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(90,178,255,0.9)) drop-shadow(0 1px 3px rgba(4,10,26,0.9));
}
.action-modal-title .orn { display: none; }
.orn {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice));
  position: relative;
  flex-shrink: 0;
}
.orn.r { background: linear-gradient(90deg, var(--ice), transparent); }
.orn::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  background: var(--ice);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 6px var(--ice);
}
.orn.l::after { right: -2px; }
.orn.r::after { left: -2px; }

.action-modal-msg {
  font-size:17.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.common-error-modal .action-modal-content {
  min-height: 128px;
  padding: 0 18px;
}
.common-error-modal .action-modal-msg {
  line-height: 1.8;
  margin: 0;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.common-error-modal .action-btns { margin-top: 24px; }

.action-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.action-avatar-diamond {
  width: 64px;
  height: 64px;
  margin: 26px auto 30px;
  transform: rotate(45deg);
  border: 1px solid rgba(150,210,255,0.85);
  background: linear-gradient(135deg, rgba(90,178,255,0.3), rgba(138,123,255,0.22));
  position: relative;
  box-shadow: 0 0 18px rgba(90,178,255,0.45);
}
.action-avatar-diamond::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(150,210,255,0.4);
}
.action-avatar-diamond span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(190,233,255,0.9);
}

.action-player {
  font-size:16.25px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.action-sub {
  font-size:13.75px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.action-btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
  margin-top: 18px;
}

/* 精致双描边按钮 */
.fancy-btn {
  position: relative;
  min-width: 124px;
  padding: 12px 26px;
  font-family: 'Noto Serif SC', serif;
  font-size:17.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}
.fancy-btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid;
  pointer-events: none;
}
.fancy-btn.confirm {
  background: linear-gradient(180deg, rgba(120,200,255,0.95), rgba(58,140,235,0.95) 55%, rgba(110,100,235,0.95));
  border-color: #cfeeff;
  color: #fff;
  text-shadow: 0 0 8px rgba(210,245,255,0.9), 0 1px 3px rgba(10,50,110,0.7);
  box-shadow: 0 0 16px rgba(90,178,255,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
}
.fancy-btn.confirm::after { border-color: rgba(255,255,255,0.55); }
.fancy-btn.confirm:hover { filter: brightness(1.12); box-shadow: 0 0 24px rgba(90,178,255,0.7); }
.fancy-btn.cancel {
  background: rgba(90,178,255,0.07);
  border-color: rgba(140,205,255,0.65);
  color: var(--ice-light);
  box-shadow: inset 0 0 12px rgba(90,178,255,0.1);
}
.fancy-btn.cancel::after { border-color: rgba(140,205,255,0.3); }
.fancy-btn.cancel:hover { background: rgba(90,178,255,0.14); box-shadow: 0 0 14px rgba(90,178,255,0.35); }

@media (min-width: 820px) {
  .site-logo { top: 14px; left: 18px; transform: none; }
  .site-logo img { width: 238px; }
  .back-btn { top: 94px; left: 18px; font-size:13.75px; padding: 6px 13px; }
  .action-modal { max-width: 460px; border-width: 60px 38px 40px 38px; }
  .action-modal-title { font-size: 24px; margin-top: -52px; }
  .popup-deco { width: 160px; top: -42px; right: -40px; }
  .action-modal-title { font-size: 22px; }
  .action-modal-msg { font-size:18.75px; }
  .fancy-btn { min-width: 140px; font-size:18.75px; }
}


/* ===== 右下角浮动：二维码 + 回到顶部 ===== */
.floating-side {
  position: fixed;
  right: 14px;
  bottom: 96px;
  z-index: 190;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
body.in-main .floating-side { display: flex; }

.qr-card {
  background: rgba(8,14,28,0.88);
  border: 1px solid rgba(120,195,255,0.45);
  padding: 7px 7px 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 14px rgba(90,178,255,0.2);
  text-align: center;
}
.qr-card img { width: 74px; height: 74px; display: block; }
.qr-card .qr-text {
  font-size:10px;
  color: var(--ice-light);
  margin-top: 5px;
  letter-spacing: 0.5px;
  line-height: 1.3;
  width: 74px;
}

.to-top {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,14,28,0.82);
  border: 1px solid rgba(120,195,255,0.5);
  color: var(--ice-light);
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(90,178,255,0.25);
  transition: all 0.2s;
}
.to-top:hover { box-shadow: 0 0 18px rgba(90,178,255,0.55); transform: translateY(-1px); }

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10,20,40,0.95);
  border: 1px solid rgba(120,195,255,0.4);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0;
  font-size:16.25px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 0 24px rgba(90,178,255,0.35);
}

.toast.show { opacity: 1; }

@media (max-width: 360px) {
  .hero-title { font-size: 26px; }
  .section-title { font-size: 20px; }
  .squad-slots { gap: 6px; }
  .action-btn { font-size:12.5px; padding: 8px 4px; }
}

/* ===================================================== */
/* ============ 宽屏自适应（平板 / 桌面） ============== */
/* ===================================================== */
@media (min-width: 820px) {
  .page-wrap { max-width: none; }
  .faction-view { max-width: none; }

  /* --- 阵营选择页 --- */
  .faction-content { padding: 130px 0 56px; }
  .faction-header { margin-bottom: 30px; }
  .faction-header .badge { font-size:16.25px; padding: 7px 22px; }
  .faction-header h1 { font-size: 48px; letter-spacing: 6px; }
  .faction-header .subtitle { font-size:18.75px; letter-spacing: 8px; }
  .faction-count .num { font-size: 34px; }
  .faction-count .label { font-size:16.25px; }
  .faction-choice { padding-bottom: 64px; }
  .faction-emblem img { width: 150px; }
  .faction-name { font-size: 40px; letter-spacing: 8px; }
  .faction-name-en { font-size:16.25px; letter-spacing: 5px; margin-bottom: 26px; }
  .faction-select-btn { font-size:20px; padding: 18px 52px; }
  .faction-footer-note { font-size:16.25px; }

  /* --- Hero --- */
  .hero { height: 100vh; min-height: 680px; }
  .hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 40px 120px;
  }
  .hero-faction-tag, .hero-badge { font-size:16.25px; padding: 7px 16px; }
  .hero-subtitle { font-size:21.25px; letter-spacing: 12px; }
  .hero-title { font-size: 64px; letter-spacing: 6px; }
  .hero-title-en { font-size:16.25px; letter-spacing: 5px; }
  .hero-date { font-size:18.75px; }
  .btn-primary { min-width: 380px; padding: 34px 64px; font-size: 19px; }

  /* --- 导航 --- */
  .quick-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
    gap: 10px;
    padding: 13px 0;
  }
  .nav-item { font-size:17.5px; padding: 8px 22px; }

  /* --- Section 通用 --- */
  .section { padding: 104px 0; }
  .section-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
  .section-header { margin-bottom: 36px; }
  .section-eyebrow { font-size:15px; letter-spacing: 7px; }
  .section-eyebrow::before, .section-eyebrow::after { width: 48px; }
  .section-title { font-size: 36px; }
  .section-title::before, .section-title::after { width: 34px; height: 20px; }
  .section-title::before { left: -52px; }
  .section-title::after { right: -52px; }
  .section-desc { font-size:17.5px; }
  .card { padding: 28px 32px; border-radius: 0; }

  /* --- 小队 --- */
  .squad-slots { max-width: 620px; margin: 0 auto 18px; gap: 16px; }
  .squad-divider-label { font-size:16.25px; }
  .action-bar { max-width: 720px; margin: 0 auto 22px; gap: 14px; }
  .action-btn { flex-direction: row; justify-content: center; font-size:17.5px; padding: 13px 10px; gap: 8px; }
  .action-btn svg { width: 20px; height: 20px; }
  .reward-box { max-width: 720px; margin: 0 auto; padding: 18px 22px; }
  .reward-name { font-size:18.75px; }
  .reward-desc, .reward-tag { font-size:15px; }
  .squad-note-wide { max-width: 720px; margin-left: auto; margin-right: auto; }

  /* --- 积分 / 任务 --- */
  .points-block-label .text { font-size:20px; }
  .points-block-label .note { font-size:15px; }
  .points-bar-label .left { font-size:16.25px; }
  .points-bar-label .right { font-size:20px; }
  .points-tiers { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .tier-points { font-size:17.5px; }
  .tier-reward { font-size:15px; }
  .task-tabs { max-width: 560px; margin: 26px auto 18px; }
  .task-tab { font-size:17.5px; padding: 11px 8px; }
  .task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .task-item { padding: 15px 16px; }
  .task-name { font-size:17.5px; }
  .task-desc { font-size:15px; }
  .task-points .num { font-size:21.25px; }
  .task-btn { font-size:15px; padding: 7px 16px; }
  .task-hint { font-size:15px; margin-top: 14px; }

  /* --- 军团：奖励+排行 双栏 --- */
  .legion-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 16px;
    align-items: stretch;
  }
  .legion-grid .ranking-card { margin-top: 0; }
  .legion-reward-title { font-size:17.5px; }
  .legion-reward-desc { font-size:15px; }
  .ranking-title { font-size:18.75px; }
  .rank-legion { font-size:17.5px; }
  .rank-score { font-size:16.25px; }
  .milestone-num { font-size:18.75px; }

  /* --- 资格三路径 三栏 --- */
  .qual-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .qual-path { padding: 22px; }
  .qual-path-title { font-size:21.25px; }
  .qual-path-condition { font-size:16.25px; }
  .qual-path-note { font-size:15px; }
  .qual-note { font-size:15px; padding: 16px; }

  /* --- 规则 双栏 --- */
  .rules-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .rule-item { padding: 15px 16px; }
  .rule-text { font-size:15.625px; }

  /* --- 其他 --- */
  .footer { padding: 40px 20px 120px; }
  .footer-logo { font-size:21.25px; }
  .footer-link { font-size:15px; }
  .footer-copyright { font-size:13.75px; }
  .modal { max-width: 460px; }
  .floating-cta { padding: 10px 18px; }
  .floating-side { right: 20px; bottom: 104px; }
  .qr-card img { width: 96px; height: 96px; }
  .qr-card .qr-text { font-size:12.5px; width: 96px; }
  .to-top { width: 44px; height: 44px; }
  .floating-cta .cta-btn { font-size:17.5px; padding: 14px 34px; }
  .floating-cta .points-display .num { font-size: 19px; }
}

@media (min-width: 1400px) {
  .hero-content, .quick-nav-inner, .section-inner { max-width: 1240px; }
  .hero-title { font-size: 72px; }
}
