/* ============================================================
   追歡逐樂 · 至暗之夜大秘境赛事
   美学方向：Dark Sanctum — 奢华暗黑奇幻
   光明（太阳井金）vs 虚空（暗紫辉光）
   ============================================================ */

:root {
  /* 虚空底色 */
  --void-black: #0A0612;
  --void-deep: #1A0D2E;
  --void-mid: #2D1B4E;
  /* 虚空紫辉光 */
  --void-purple: #6B3FA0;
  --void-glow: #A064F0;
  /* 太阳井金（克制点睛） */
  --gold: #C9A227;
  --gold-bright: #F0C040;
  --gold-light: #FFE9A0;
  /* 正向 */
  --green: #2ECC71;
  /* 文字 */
  --text: #E8E0F0;
  --text-dim: #9a8fb0;

  --serif-cn: "Noto Serif SC", Georgia, "Songti SC", serif;
  --serif-en: "Cinzel", "Noto Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", sans-serif;

  --hairline: linear-gradient(90deg, transparent, var(--gold), transparent);
  --glass-bg: rgba(26, 13, 46, 0.45);
  --glass-border: rgba(201, 162, 39, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Home page: full-screen modules, paged by fullpage.js (one gesture = one module). */

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--void-black);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  /* 深空径向氛围光，固定不随滚动 */
  background-image:
    radial-gradient(ellipse 60% 50% at 15% -5%, rgba(160, 100, 240, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(201, 162, 39, 0.06), transparent 55%);
  background-attachment: fixed;
}

::selection { background: rgba(240, 192, 64, 0.3); color: var(--gold-light); }

/* ---------- 全局胶片噪点叠加 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 6, 18, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
}
.nav__brand {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 3px;
  text-shadow: 0 0 18px rgba(240, 192, 64, 0.35);
}
.nav__brand span { color: var(--text-dim); font-size: 0.85rem; font-weight: 400; }
.nav__menu { display: flex; gap: 2rem; }
.nav__menu a {
  position: relative;
  color: var(--text); text-decoration: none;
  font-size: 0.95rem; letter-spacing: 1px;
  padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold-bright);
  transition: width 0.3s var(--ease);
}
.nav__menu a:hover { color: var(--gold-bright); }
.nav__menu a:hover::after { width: 100%; }
.nav__toggle {
  display: none; background: none; border: none;
  color: var(--gold-bright); font-size: 1.6rem; cursor: pointer;
  line-height: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  --hero-img: url('/img/ka-against-void.jpg');
  background:
    radial-gradient(ellipse 70% 60% at 50% 38%, rgba(45, 27, 78, 0.9), transparent 70%),
    linear-gradient(160deg, var(--void-black) 0%, var(--void-deep) 55%, var(--void-mid) 100%);
  background-size: cover; background-position: center;
}
/* 官方大图铺底（缺图时上面渐变兜底） */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
  opacity: 0.9;
}
/* 太阳井圣光焦点 — 呼吸脉动 */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 233, 160, 0.18), rgba(160, 100, 240, 0.05) 28%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 52%, rgba(10, 6, 18, 0.62), transparent 75%),
    linear-gradient(0deg, var(--void-black) 4%, rgba(10, 6, 18, 0.45) 50%, rgba(10,6,18,0.25) 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* 虚空漂浮微粒 */
.hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__particles span {
  position: absolute; bottom: -10%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--void-glow);
  box-shadow: 0 0 8px 2px rgba(160, 100, 240, 0.7);
  opacity: 0;
  animation: drift 14s linear infinite;
}
.hero__particles span:nth-child(1)  { left: 8%;  animation-delay: 0s;   animation-duration: 16s; }
.hero__particles span:nth-child(2)  { left: 18%; animation-delay: 3s;   animation-duration: 13s; width: 2px; height: 2px; }
.hero__particles span:nth-child(3)  { left: 27%; animation-delay: 6s;   animation-duration: 18s; }
.hero__particles span:nth-child(4)  { left: 36%; animation-delay: 1.5s; animation-duration: 15s; background: var(--gold-light); box-shadow: 0 0 8px 2px rgba(255,233,160,0.6); }
.hero__particles span:nth-child(5)  { left: 45%; animation-delay: 8s;   animation-duration: 12s; width: 2px; height: 2px; }
.hero__particles span:nth-child(6)  { left: 54%; animation-delay: 4s;   animation-duration: 17s; }
.hero__particles span:nth-child(7)  { left: 63%; animation-delay: 9s;   animation-duration: 14s; background: var(--gold-light); box-shadow: 0 0 8px 2px rgba(255,233,160,0.5); }
.hero__particles span:nth-child(8)  { left: 72%; animation-delay: 2s;   animation-duration: 16s; width: 2px; height: 2px; }
.hero__particles span:nth-child(9)  { left: 81%; animation-delay: 6.5s; animation-duration: 13s; }
.hero__particles span:nth-child(10) { left: 90%; animation-delay: 10s;  animation-duration: 19s; }
.hero__particles span:nth-child(11) { left: 33%; animation-delay: 11s;  animation-duration: 15s; width: 2px; height: 2px; }
.hero__particles span:nth-child(12) { left: 68%; animation-delay: 5s;   animation-duration: 18s; }
@keyframes drift {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-110vh) translateX(30px); }
}

.hero__content { position: relative; z-index: 3; padding: 1.5rem; max-width: 880px; }
.hero__eyebrow {
  font-family: var(--serif-en);
  font-weight: 600;
  color: var(--void-glow);
  letter-spacing: 0.5em;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  margin-bottom: 1.5rem;
  text-indent: 0.5em;
  opacity: 0; animation: rise 0.9s var(--ease) 0.1s forwards;
}
.hero__title {
  font-family: var(--serif-cn);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  color: var(--gold-light);
  line-height: 1.1;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  text-shadow:
    0 0 30px rgba(240, 192, 64, 0.45),
    0 0 60px rgba(160, 100, 240, 0.25),
    0 2px 6px #000;
  opacity: 0; animation: rise 0.9s var(--ease) 0.35s forwards;
}
.hero__slogan {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  letter-spacing: 0.06em;
  margin-bottom: 2.6rem;
  opacity: 0; animation: rise 0.9s var(--ease) 0.6s forwards;
}
.hero .btn--gold { opacity: 0; animation: rise 0.9s var(--ease) 0.85s forwards; }
.hero__cue {
  color: #fff;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  user-select: none;
  opacity: 0; animation: rise 0.9s var(--ease) 0.85s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 滚动提示 */
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 22px; height: 36px;
  border: 1px solid rgba(201, 162, 39, 0.5); border-radius: 12px;
  opacity: 0; animation: rise 0.9s var(--ease) 1.2s forwards;
}
.hero__scroll span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold-bright);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.85rem 2.4rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer; border: none;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* 扫光 */
.btn::before {
  content: ""; position: absolute; top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s var(--ease);
}
.btn:hover::before { left: 130%; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-bright) 45%, var(--gold));
  color: var(--void-black);
  box-shadow: 0 0 24px rgba(240, 192, 64, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 6px 36px rgba(240, 192, 64, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.btn--void {
  background: linear-gradient(180deg, var(--void-glow), var(--void-purple) 60%, #4a2a72);
  color: var(--gold-light);
  box-shadow: 0 0 24px rgba(160, 100, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn--void:hover { transform: translateY(-3px); box-shadow: 0 6px 36px rgba(160, 100, 240, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

/* Pair of CTAs side by side, wrapping on small screens. */
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   Section 通用
   ============================================================ */
.section { max-width: 1140px; margin: 0 auto; padding: 6rem 1.5rem; position: relative; }
/* Home: each module fills a full screen, content vertically centered. */
body.home .section {
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.5rem 5rem;
}
body.home .section > * {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
/* 区块全宽官方美术背景 + 深色蒙版压暗，保证内容可读 */
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; width: 100vw; height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(10,6,18,0.92) 0%, rgba(10,6,18,0.82) 50%, rgba(10,6,18,0.95) 100%),
    var(--section-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#tournament { --section-bg: url("/img/ka-against-void.jpg"); }
#players    { --section-bg: url("/img/ka-stand-as-one.jpg"); }
#history    { --section-bg: url("/img/ka-hope-rise.jpg"); }
#offline    { --section-bg: url("/img/zone-eversong.jpg"); }
#merch      { --section-bg: url("/img/zone-silvermoon-1.jpg"); }
#join       { --section-bg: url("/img/ka-darkness-devours.jpg"); }
.section__eyebrow {
  font-family: var(--serif-en);
  font-weight: 600;
  text-align: center;
  color: var(--void-glow);
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  text-indent: 0.4em;
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  text-shadow: 0 0 24px rgba(240, 192, 64, 0.28);
}
.section__title::after {
  content: ""; display: block; width: 120px; height: 1px;
  margin: 1rem auto 0; background: var(--hairline);
}

.subsection {
  margin-bottom: 2.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.2rem;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.subsection:hover {
  border-color: rgba(240, 192, 64, 0.5);
  box-shadow: 0 8px 40px rgba(160, 100, 240, 0.15), 0 0 0 1px rgba(240, 192, 64, 0.1);
}
.subsection h3 {
  font-family: var(--serif-cn); font-weight: 700;
  color: var(--gold-light); margin-bottom: 0.9rem;
  font-size: 1.5rem; letter-spacing: 0.05em;
}
.subsection__hint { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.4rem; }
.subsection p strong { color: var(--gold-light); font-weight: 600; }

/* Centered variant: title + lines all centered (used by 赛事规则) */
.subsection--center { text-align: center; }
.subsection--center h3 { display: inline-block; }
.subsection--center .subsection__hint { margin-bottom: 0; }
.subsection--center .rules-line {
  font-family: var(--serif-cn);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--gold-light);
  letter-spacing: 0.12em;
  margin: 0.4rem 0 0.9rem;
  text-shadow: 0 0 18px rgba(240, 192, 64, 0.3);
}

.rules-list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.rules-list li { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.rules-list li em { color: var(--text-dim); font-style: italic; font-family: var(--serif-en); margin: 0 0.2rem; }
.role-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.role-dot.role-T { background: #4a9eff; box-shadow: 0 0 8px rgba(74, 158, 255, 0.7); }
.role-dot.role-H { background: var(--green); box-shadow: 0 0 8px rgba(46, 204, 113, 0.7); }
.role-dot.role-D { background: #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, 0.7); }

/* ============================================================
   表单
   ============================================================ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 640px; }
.form > div:nth-last-child(2), .form > div:last-child, .form > button { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.form input, .form select {
  width: 100%; padding: 0.75rem 0.9rem;
  background: rgba(10, 6, 18, 0.6);
  border: 1px solid rgba(107, 63, 160, 0.5);
  border-radius: 6px;
  color: var(--text); font-family: var(--sans); font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.form input::placeholder { color: rgba(154, 143, 176, 0.5); }
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 6, 18, 0.85);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15), 0 0 16px rgba(201, 162, 39, 0.25);
}
.form__roles { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.form__roles label {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--text); cursor: pointer; font-size: 0.95rem; margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(107, 63, 160, 0.4); border-radius: 20px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form__roles label:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); }
.form__roles input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.form__msg { margin-top: 1.2rem; min-height: 1.4rem; font-size: 0.95rem; letter-spacing: 0.03em; }
.form__msg.ok { color: var(--green); text-shadow: 0 0 12px rgba(46, 204, 113, 0.4); }
.form__msg.err { color: #ff6b6b; }

/* ============================================================
   抽签倒计时
   ============================================================ */
.countdown {
  margin: 1rem 0 1.6rem;
  padding: 1.4rem 1.2rem;
  border: 1px solid rgba(240, 192, 64, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 192, 64, 0.08), transparent 70%),
    rgba(10, 6, 18, 0.45);
  text-align: center;
}
.countdown__label {
  font-family: var(--serif-en);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--void-glow);
  margin-bottom: 0.9rem;
}
.countdown__clock {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.countdown__cell {
  min-width: 70px;
  padding: 0.6rem 0.4rem 0.5rem;
  border: 1px solid rgba(160, 100, 240, 0.32);
  border-radius: 8px;
  background: rgba(26, 13, 46, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.countdown__num {
  font-family: var(--serif-en);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 18px rgba(240, 192, 64, 0.35);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.countdown__done {
  font-family: var(--serif-cn);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(240, 192, 64, 0.4);
  padding: 0.6rem 0;
}
.countdown--done .countdown__clock,
.countdown--done .countdown__label { display: none; }

/* ============================================================
   队伍卡片
   ============================================================ */
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.team-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(107, 63, 160, 0.45);
  border-radius: 12px; padding: 1.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(160, 100, 240, 0.2); }
.team-card.full {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.18);
}
.team-card.full:hover { border-color: var(--gold-bright); box-shadow: 0 12px 44px rgba(240, 192, 64, 0.32); }
.team-card.mobile { border-style: dashed; border-color: rgba(154, 143, 176, 0.5); }
.team-card h4 {
  font-family: var(--serif-cn); font-weight: 700;
  color: var(--gold-light); margin-bottom: 1rem;
  font-size: 1.2rem; letter-spacing: 0.05em;
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.team-card .slot {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0; font-size: 0.95rem;
  border-bottom: 1px solid rgba(107, 63, 160, 0.18);
}
.team-card .slot:last-child { border-bottom: none; }
.team-card .role-T { color: #4a9eff; }
.team-card .role-H { color: var(--green); }
.team-card .role-D { color: #ff6b6b; }
.team-card .gap { color: var(--text-dim); font-style: italic; }

/* ============================================================
   历届活动
   ============================================================ */
.year-tabs { display: flex; gap: 0.9rem; justify-content: center; margin-bottom: 2.6rem; flex-wrap: wrap; }
.year-tabs button {
  padding: 0.55rem 1.6rem;
  background: transparent;
  border: 1px solid rgba(107, 63, 160, 0.5);
  color: var(--text);
  font-family: var(--serif-en); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em;
  border-radius: 22px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.year-tabs button:hover { border-color: var(--gold); color: var(--gold-light); }
.year-tabs button.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--void-black); border-color: var(--gold);
  box-shadow: 0 0 18px rgba(240, 192, 64, 0.4);
}
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.event-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 192, 64, 0.45);
  box-shadow: 0 14px 44px rgba(160, 100, 240, 0.2);
}
.event-card img { width: 100%; height: 180px; object-fit: cover; display: block; filter: saturate(0.9) brightness(0.95); }
.event-card .body { padding: 1.3rem; }
.event-card h4 { font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light); margin-bottom: 0.4rem; font-size: 1.25rem; }
.event-card .date { color: var(--void-glow); font-family: var(--serif-en); font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.event-card p:last-child { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   线下时间线
   ============================================================ */
.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), var(--void-glow), transparent);
}
.timeline-item {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 1.4rem 1.6rem; margin-bottom: 1.8rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.timeline-item::before {
  content: ""; position: absolute; left: -2rem; top: 1.6rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-bright); transform: translateX(-4px);
}
.timeline-item:hover { transform: translateX(4px); border-color: rgba(240, 192, 64, 0.4); box-shadow: 0 8px 32px rgba(160, 100, 240, 0.15); }
.timeline-item h4 { font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light); font-size: 1.2rem; margin-bottom: 0.5rem; }
.timeline-item h4 .date { color: var(--void-glow); font-family: var(--serif-en); font-size: 0.85rem; font-weight: 600; margin-left: 0.6rem; letter-spacing: 0.06em; }
.timeline-item p { color: var(--text-dim); }
.timeline-item img { width: 100%; border-radius: 8px; margin-top: 0.9rem; }

/* ============================================================
   周边订购
   ============================================================ */
.merch-stage { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.merch-carousel {
  position: relative;
  width: 100%;
  max-width: 1080px;
  overflow: hidden;
  padding: 0.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.merch-track {
  display: flex;
  gap: 1.4rem;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.merch-card {
  flex: 0 0 280px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.merch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 192, 64, 0.45);
  box-shadow: 0 14px 44px rgba(160, 100, 240, 0.2);
}
.merch-card__art {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 233, 160, 0.18), transparent 60%),
    linear-gradient(160deg, #2D1B4E 0%, #0A0612 100%);
  border-bottom: 1px solid var(--glass-border);
}
.merch-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.merch-card__tag {
  font-family: var(--serif-en); font-size: 0.7rem;
  letter-spacing: 0.3em; color: var(--void-glow); text-transform: uppercase;
}
.merch-card__name { font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light); font-size: 1.15rem; letter-spacing: 0.05em; }
.merch-card__desc { color: var(--text-dim); font-size: 0.88rem; line-height: 1.55; min-height: 3.6em; }
.merch-card__price { color: var(--gold-bright); font-family: var(--serif-en); font-weight: 600; letter-spacing: 0.05em; margin-top: 0.3rem; }

.merch-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(26, 13, 46, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 3;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.merch-nav:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(26, 13, 46, 0.95); }
.merch-nav--prev { left: 0.6rem; }
.merch-nav--next { right: 0.6rem; }

.merch-reviews { width: 100%; max-width: 1080px; }
.merch-reviews__head {
  font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light);
  font-size: 1.15rem; letter-spacing: 0.1em; text-align: center; margin-bottom: 1.2rem;
}
.merch-reviews__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.merch-review {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.merch-review__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.merch-review__who { font-family: var(--serif-cn); font-weight: 600; color: var(--gold-light); font-size: 0.92rem; }
.merch-review__stars { color: var(--gold-bright); font-size: 0.85rem; letter-spacing: 0.08em; }
.merch-review__stars-empty { color: rgba(154, 143, 176, 0.45); }
.merch-review__text { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; font-style: italic; }

.merch__cta { margin-top: 0.4rem; }

@media (max-width: 768px) {
  .merch-card { flex: 0 0 240px; }
  .merch-card__art { height: 130px; font-size: 3.6rem; }
}

/* ============================================================
   加入我们 / footer
   ============================================================ */
.join__content {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-size: 1.1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 3rem 2rem;
}
.join__content p { margin-bottom: 1.2rem; }
.join__contact strong { color: var(--gold-light); }
.join__content .btn { margin-top: 0.8rem; }

.footer {
  text-align: center; padding: 2.5rem 1rem;
  color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.03em;
  border-top: 1px solid rgba(107, 63, 160, 0.25);
}

/* ============================================================
   滚动入场（JS 由后续任务接 .visible）
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
/* iPad and below — collapse the nav into the hamburger so 7 items never
   crowd against the right edge, and switch to a single-column grid. */
@media (max-width: 1024px) {
  .nav { padding: 0.9rem 1.2rem; }
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(10, 6, 18, 0.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav__menu.open { max-height: 360px; }
  .nav__menu a { padding: 0.95rem 1.5rem; border-top: 1px solid rgba(107, 63, 160, 0.2); width: 100%; }
  .nav__menu a::after { display: none; }
  .teams, .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.1rem; }
  .subsection { padding: 1.5rem; }
  .form { grid-template-columns: 1fr; }
  .teams, .events-grid { grid-template-columns: 1fr; }
}

/* 队伍卡移动端紧凑变体（draw.js 可切换） */
.team-card.mobile .slot,
.team-card .slot { word-break: break-word; }

/* ============================================================
   幻化上传 + 9:16 裁剪器（report/register/buchong 共用）
   ============================================================ */
.glamour {
  display: flex; flex-direction: column; gap: 1rem;
  background: rgba(10, 6, 18, 0.4);
  border: 1px solid rgba(107, 63, 160, 0.4);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.glamour__pick { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.glamour__btn { padding: 0.6rem 1.3rem; font-size: 0.92rem; }
.glamour__reset {
  background: transparent; border: 1px solid rgba(107, 63, 160, 0.5);
  color: var(--text-dim); font-family: var(--sans); font-size: 0.82rem;
  padding: 0.4rem 1rem; border-radius: 18px; cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.glamour__reset:hover { border-color: #ff6b6b; color: #ff6b6b; }
.glamour__status { color: var(--text-dim); font-size: 0.85rem; min-height: 1.1em; flex: 1 1 100%; }
.glamour__status.is-ok { color: var(--green); }
.glamour__status.is-err { color: #ff6b6b; }
.glamour__stage:empty { display: none; }

.gcrop { display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
.gcrop__frame {
  position: relative;
  width: 225px; height: 400px;          /* 9:16 */
  border-radius: 10px; overflow: hidden;
  border: 1.5px solid rgba(240, 192, 64, 0.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 28px rgba(0,0,0,0.5);
  cursor: grab; touch-action: none; background: #0A0612;
}
.gcrop__frame:active { cursor: grabbing; }
.gcrop__canvas { display: block; width: 100%; height: 100%; }
.gcrop__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  background-position: center;
  mix-blend-mode: overlay;
}
.gcrop__controls { display: flex; flex-direction: column; gap: 0.4rem; width: 225px; }
.gcrop__zoom { display: flex; align-items: center; gap: 0.6rem; color: var(--text-dim); font-size: 0.82rem; }
.gcrop__zoom input[type="range"] { flex: 1; accent-color: var(--gold); }
.gcrop__hint { color: var(--text-dim); font-size: 0.78rem; line-height: 1.5; text-align: center; }

/* ============================================================
   语音收集（register/buchong 共用）
   ============================================================ */
.voice { border: 1px solid rgba(107, 63, 160, 0.4); border-radius: 10px; padding: 1.4rem 1.5rem; background: rgba(10, 6, 18, 0.4); }
.voice__quote { display: none; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.voice.is-recording .voice__quote { display: flex; }
.voice__line {
  font-family: var(--serif-cn); font-style: italic; font-size: 1.15rem;
  color: var(--gold-light); line-height: 1.6; letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(240, 192, 64, 0.2);
}
.voice__shuffle {
  flex-shrink: 0; background: transparent;
  border: 1px solid rgba(107, 63, 160, 0.5); color: var(--text-dim);
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem; border-radius: 18px; cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.voice__shuffle:hover { border-color: var(--gold); color: var(--gold-light); }
.voice__hint { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1.1rem; }
.voice__controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.voice__timer { font-family: var(--serif-en); font-size: 1.2rem; font-weight: 600; color: var(--text); letter-spacing: 0.08em; min-width: 3.2rem; }
.voice__rec-btn { padding: 0.7rem 1.8rem; font-size: 0.95rem; }
.voice__rec-btn.recording { animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 107, 107, 0.45), inset 0 1px 0 rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 36px rgba(255, 107, 107, 0.85), inset 0 1px 0 rgba(255,255,255,0.2); }
}
.voice__stop {
  background: rgba(220,50,50,0.2); border: 1px solid rgba(255,107,107,0.55);
  color: #ff6b6b; font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 1.6rem; border-radius: 8px; cursor: pointer; letter-spacing: 1px;
  transition: all 0.2s var(--ease);
}
.voice__stop:hover { background: rgba(220,50,50,0.38); border-color: #ff6b6b; }
.voice__reset {
  background: transparent; border: 1px solid rgba(107, 63, 160, 0.5);
  color: var(--text-dim); font-family: var(--sans); font-size: 0.85rem;
  padding: 0.5rem 1.1rem; border-radius: 6px; cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.voice__reset:hover { border-color: var(--gold); color: var(--gold-light); }
.voice__audio { width: 100%; margin-top: 1rem; display: none; }
.voice__status { margin-top: 0.9rem; min-height: 1.2rem; font-size: 0.88rem; color: var(--text-dim); }
.voice__status.ok { color: var(--green); }
.voice__status.err { color: #ff6b6b; }

/* ============================================================
   选手大赏 — 卡片网格 + 大图 lightbox
   ============================================================ */
.players__hint {
  text-align: center; color: var(--text-dim);
  font-size: 0.95rem; margin: -1.4rem auto 2rem; max-width: 720px;
}
.players__empty {
  grid-column: 1 / -1;
  text-align: center; color: var(--text-dim);
  padding: 3rem 1rem; font-size: 0.95rem;
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.6rem 1.2rem;
  max-width: 1080px; margin: 0 auto;
}

.player-card {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
  font-family: inherit;
  color: inherit;
  opacity: 0;
  animation: playerCardIn 0.9s var(--ease) forwards;
  /* Kill iOS 300ms tap delay and the gray tap highlight so taps land cleanly. */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* Make sure every tap inside a card resolves to the card itself — iOS sometimes
   loses clicks on inner <img>/<div> within a <button>. */
.player-card > * { pointer-events: none; }
@keyframes playerCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.player-card__art {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  border: 1.5px solid rgba(240, 192, 64, 0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(160,100,240,0.18), transparent 60%),
    linear-gradient(160deg, #1A0D2E 0%, #0A0612 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 8px 28px rgba(0,0,0,0.45),
    0 0 22px rgba(160,100,240,0.18);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.player-card:hover .player-card__art {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 12px 36px rgba(0,0,0,0.55),
    0 0 36px rgba(240,192,64,0.45);
}
.player-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.player-card__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-en);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(240, 192, 64, 0.5);
  text-shadow: 0 0 28px rgba(240, 192, 64, 0.35);
}
.player-card__name {
  font-family: var(--serif-cn);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-shadow: 0 0 14px rgba(240, 192, 64, 0.22);
  word-break: break-word;
}
.player-card__intro {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
  font-style: italic;
  word-break: break-word;
  padding: 0 0.2rem;
}

@media (max-width: 768px) {
  .players-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0.9rem; }
}

/* ---- Lightbox: high-end fullscreen reveal ---- */
.players-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 5vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(40, 12, 60, 0.85) 0%, rgba(8, 4, 14, 0.97) 70%),
    rgba(8, 4, 14, 0.98);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.players-lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.5s var(--ease);
}
.players-lightbox__halo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(240, 192, 64, 0.16), transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(160, 100, 240, 0.12), transparent 30%),
    radial-gradient(circle at 70% 30%, rgba(240, 192, 64, 0.08), transparent 28%);
  animation: lbHalo 12s ease-in-out infinite alternate;
}
@keyframes lbHalo {
  from { transform: scale(1) rotate(0deg); opacity: 0.85; }
  to   { transform: scale(1.08) rotate(6deg); opacity: 1; }
}
.players-lightbox__card {
  position: relative;
  display: flex;
  gap: 2.4rem;
  align-items: stretch;
  max-width: 1100px;
  width: 100%;
  margin: 0;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}
.players-lightbox.is-open .players-lightbox__card {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.05s;
}
.players-lightbox__art {
  position: relative;
  aspect-ratio: 9 / 16;
  height: min(82vh, 720px);
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1.5px solid rgba(240, 192, 64, 0.65);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 233, 160, 0.15), transparent 55%),
    linear-gradient(165deg, #241338 0%, #0A0612 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 25px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(240, 192, 64, 0.35),
    0 0 120px rgba(160, 100, 240, 0.3);
  overflow: hidden;
}
.players-lightbox__art::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(240, 192, 64, 0.25);
  border-radius: 8px;
  pointer-events: none;
}
.players-lightbox__img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.players-lightbox__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-en);
  font-size: 16rem;
  font-weight: 700;
  color: rgba(240, 192, 64, 0.55);
  text-shadow: 0 0 60px rgba(240, 192, 64, 0.4);
}
.players-lightbox__caption {
  flex: 1 1 auto;
  align-self: center;
  max-width: 360px;
  padding: 0 0.6rem;
}
.players-lightbox__name {
  font-family: var(--serif-cn);
  font-weight: 700;
  color: var(--gold-light);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-shadow: 0 0 24px rgba(240, 192, 64, 0.4);
  line-height: 1.2;
  word-break: break-word;
}
.players-lightbox__name::after {
  content: ""; display: block; width: 80px; height: 1px;
  margin: 0.9rem 0 0; background: var(--hairline);
}
.players-lightbox__intro {
  font-family: var(--serif-cn);
  color: var(--text);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  letter-spacing: 0.03em;
}
.players-lightbox__close-hint {
  position: absolute;
  bottom: 3vh; left: 0; right: 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
@media (max-width: 900px) {
  .players-lightbox__card { flex-direction: column; align-items: center; gap: 1.4rem; }
  .players-lightbox__art { height: min(60vh, 480px); }
  .players-lightbox__caption { max-width: 540px; text-align: center; padding: 0 1rem; }
  .players-lightbox__name::after { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   翻页模式（移动端/iPad ≤ 1024px，paged.js 接管）
   ============================================================ */
body.paged-mode {
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}
html.paged-html, body.paged-mode { overflow-x: hidden; max-width: 100vw; }
/* The section::before 全宽 art uses width:100vw which can leak past the layout
   on narrow viewports — clamp it to the screen container here. */
body.paged-mode .paged-screen .section::before {
  left: 0;
  width: 100%;
  transform: none;
}
body.paged-mode .footer {
  border-top: none;
  padding: 1.5rem 1rem 1rem;
}
.paged-track {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  /* dvh tracks the dynamic viewport so iOS Safari's URL-bar collapse doesn't
     leave each screen taller than the visible area (which would bleed a slice
     of the previous screen through the top of the next one). */
  height: 100dvh;
  will-change: transform;
  z-index: 1;
}
.paged-screen {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
.paged-screen__inner {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     /* prevent rubber-band bleed onto the track */
}
body.paged-mode .paged-screen__inner > .hero,
body.paged-mode .paged-screen__inner > .section {
  width: 100%;
  box-sizing: border-box;
}
body.paged-mode .paged-screen__inner > .section {
  /* Fill the whole screen so the ::before art covers the entire viewport even
     when the section's own content is shorter than the screen. */
  min-height: 100%;
  padding-top: 5.5rem;
  max-width: 100%;
}
body.paged-mode .paged-screen__inner > .hero {
  height: 100%;
  min-height: 100%;
}
body.paged-mode .nav { z-index: 100; }

/* ============================================================
   尊重减弱动效偏好
   ============================================================ */
/* ============================================================
   队伍展示 & 排行榜
   ============================================================ */

.showcase-tab {
  background: rgba(45,27,78,0.4); border: 1px solid rgba(201,162,39,0.18);
  border-radius: 6px; padding: 0.35rem 0.9rem;
  font-family: var(--sans); font-size: 0.82rem; color: var(--text-dim);
  cursor: pointer; transition: all 0.2s;
}
.showcase-tab:hover { border-color: rgba(201,162,39,0.4); color: var(--text); }
.showcase-tab.active {
  background: rgba(201,162,39,0.15); border-color: var(--gold); color: var(--gold-bright);
}

.showcase-teams {
  display: flex; flex-direction: column; gap: 2rem;
  max-width: 960px; margin: 0 auto;
}
.showcase-team {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.showcase-team:hover {
  box-shadow: 0 8px 40px rgba(201,162,39,0.12);
}
.showcase-team__header {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem 1.8rem; cursor: pointer; list-style: none;
  transition: background 0.2s;
}
.showcase-team__header::-webkit-details-marker { display: none; }
.showcase-team__header::before {
  content: ""; display: inline-block; width: 0; height: 0;
  border-left: 6px solid var(--gold); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform 0.25s var(--ease); flex-shrink: 0;
}
.showcase-team[open] > .showcase-team__header::before { transform: rotate(90deg); }
.showcase-team__header:hover { background: rgba(201,162,39,0.04); }
.showcase-team__name {
  font-family: var(--serif-cn); font-size: 1.1rem; font-weight: 700;
  color: var(--gold-light); letter-spacing: 1px;
}
.showcase-team__members {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.showcase-team__slogan {
  font-size: 0.88rem; color: var(--text-dim); font-style: italic;
  margin: 0 1.8rem 1rem;
}
.showcase-team > .showcase-members,
.showcase-team > .showcase-canvas { margin: 0 1.8rem 1.8rem; }
.showcase-team__progress {
  font-size: 0.85rem; color: var(--text); margin-bottom: 1rem;
  padding: 0.6rem 0.9rem; border-radius: 6px;
  background: rgba(10,6,18,0.5); border: 1px solid rgba(201,162,39,0.12);
}
.showcase-team__progress .status--completed { color: #2ECC71; margin-left: 0.5rem; }
.showcase-team__progress .status--locked { color: var(--gold-bright); margin-left: 0.5rem; }
.showcase-team__progress .status--pending { color: var(--text-dim); margin-left: 0.5rem; }
.showcase-members {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}

.show-card {
  width: 132px; height: 188px; flex: 0 0 auto;
  border-radius: 10px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,233,160,0.12), transparent 55%),
    linear-gradient(165deg, #241338 0%, #120A20 100%);
  border: 1.5px solid var(--sc-accent, var(--gold));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 8px 28px rgba(0,0,0,0.5),
    0 0 22px var(--sc-glow, rgba(201,162,39,0.3));
  text-align: center; gap: 0.35rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.show-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 12px 36px rgba(0,0,0,0.5), 0 0 30px var(--sc-glow, rgba(201,162,39,0.4));
}
.show-card--T { --sc-accent: #4a9eff; --sc-glow: rgba(74,158,255,0.35); --sc-bg: rgba(74,158,255,0.15); }
.show-card--H { --sc-accent: #2ECC71; --sc-glow: rgba(46,204,113,0.35); --sc-bg: rgba(46,204,113,0.15); }
.show-card--D { --sc-accent: #ff6b6b; --sc-glow: rgba(255,107,107,0.35); --sc-bg: rgba(255,107,107,0.15); }

.show-card__glam {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  border-radius: 10px; z-index: 0;
}
.show-card__glam::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,18,0.05) 0%, rgba(10,6,18,0.15) 45%, rgba(10,6,18,0.85) 100%);
}
.show-card--glam { justify-content: flex-end; padding-bottom: 0.6rem; }
.show-card--glam .show-card__role,
.show-card--glam .show-card__name,
.show-card--glam .show-card__class { position: relative; z-index: 1; }
.show-card--glam .show-card__name {
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 16px rgba(0,0,0,0.7);
}
.show-card--glam .show-card__class {
  color: rgba(255,255,255,0.88); text-shadow: 0 1px 5px rgba(0,0,0,0.9);
}

.show-card__role {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 1px;
  padding: 0.12rem 0.6rem; border-radius: 4px;
  background: var(--sc-bg, rgba(201,162,39,0.15));
  color: var(--sc-accent, var(--gold-bright));
  border: 1px solid var(--sc-accent, var(--gold));
}
.show-card__name {
  font-family: var(--serif-cn); font-size: 0.95rem; font-weight: 700;
  color: var(--gold-light); word-break: break-all; line-height: 1.25;
}
.show-card__class {
  font-size: 0.74rem; color: var(--text-dim); line-height: 1.3;
}
.show-card__icon {
  position: absolute; top: 8px; left: 8px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-accent, var(--gold)); opacity: 0.92; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 0 6px var(--sc-glow, rgba(201,162,39,0.4)));
}
.show-card__icon svg { width: 100%; height: 100%; }

/* Raider.io-style leaderboard rows */
.rio-board {
  max-width: 960px; margin: 0 auto;
  border: 1px solid rgba(201,162,39,0.15); border-radius: 10px;
  overflow: hidden;
  background: rgba(10,6,18,0.5);
}
.rio-header {
  display: flex; align-items: center;
  background: rgba(45,27,78,0.6);
  padding: 0.85rem 0; border-bottom: 1px solid rgba(201,162,39,0.15);
}
.rio-header .rio-cell {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  text-align: left;
}
.rio-row {
  display: flex; align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
  animation: rioSlide 0.4s var(--ease) both;
}
.rio-row:last-child { border-bottom: none; }
.rio-row:hover { background: rgba(107,63,160,0.12); }
@keyframes rioSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.rio-cell { padding: 0 0.7rem; }
.rio-rank {
  min-width: 3rem; text-align: center;
  font-family: var(--serif-en); font-size: 1.4rem; font-weight: 800;
  color: var(--text-dim);
}
.rio-rank--1 { color: #FFD700; text-shadow: 0 0 14px rgba(255,215,0,0.5); }
.rio-rank--2 { color: #C0C0C0; text-shadow: 0 0 10px rgba(192,192,192,0.4); }
.rio-rank--3 { color: #CD7F32; text-shadow: 0 0 10px rgba(205,127,50,0.4); }
.rio-team {
  min-width: 110px; flex: 0 0 110px;
  font-family: var(--serif-cn); font-size: 1rem; font-weight: 700;
  color: var(--gold-light); letter-spacing: 0.5px;
}
.rio-dungeon {
  min-width: 110px; flex: 0 0 110px;
  font-size: 0.92rem; color: var(--text);
}
.rio-key {
  min-width: 55px; flex: 0 0 55px; text-align: center;
  font-family: var(--serif-en); font-size: 1.15rem; font-weight: 800;
  color: var(--void-glow);
}
.rio-status {
  min-width: 80px; flex: 0 0 80px;
  font-size: 0.92rem; color: var(--text-dim);
  white-space: nowrap;
}
.rio-members {
  flex: 1; display: flex; flex-wrap: wrap; gap: 0.45rem;
  min-width: 0;
}
.rio-member {
  font-size: 0.88rem; font-weight: 500;
  padding: 0.15rem 0.6rem; border-radius: 4px;
  white-space: nowrap;
}
.rio-member--T { color: #4a9eff; background: rgba(74,158,255,0.1); border: 1px solid rgba(74,158,255,0.25); }
.rio-member--H { color: #2ECC71; background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.2); }
.rio-member--D { color: #ff6b6b; background: rgba(255,107,107,0.08); border: 1px solid rgba(255,107,107,0.2); }

@media (max-width: 768px) {
  .rio-row, .rio-header { flex-wrap: wrap; gap: 0.3rem; padding: 0.5rem 0.4rem; }
  .rio-team { flex: 0 0 80px; min-width: 80px; }
  .rio-dungeon { flex: 0 0 80px; min-width: 80px; font-size: 0.78rem; }
  .rio-key { flex: 0 0 40px; min-width: 40px; }
  .rio-status { flex: 0 0 50px; min-width: 50px; font-size: 0.72rem; }
  .rio-members { flex-basis: 100%; padding-left: 2.5rem; }
  .rio-member { font-size: 0.72rem; padding: 0.05rem 0.35rem; }
}

.showcase-canvas {
  position: relative; aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 50% 50%, rgba(107,63,160,0.08), transparent 70%),
    rgba(10,6,18,0.5);
  border: 1px dashed rgba(201,162,39,0.25);
  border-radius: 12px; overflow: hidden;
  clip-path: inset(0 round 12px);
  min-height: 280px;
}
.showcase-canvas__board { position: absolute; inset: 1%; }
.showcase-canvas__card {
  position: absolute; box-sizing: border-box;
  border-radius: 8px; overflow: hidden;
  border: 1.5px solid rgba(201,162,39,0.4);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,233,160,0.08), transparent 55%),
    linear-gradient(165deg, #241338 0%, #120A20 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 12px rgba(201,162,39,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.showcase-canvas__card:hover {
  box-shadow: 0 8px 40px rgba(240,192,64,0.35), 0 0 24px rgba(107,63,160,0.4);
  border-color: var(--gold-bright);
  z-index: 2;
}
.showcase-canvas__glam {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  border-radius: 8px; z-index: 0;
}
.showcase-canvas__glam::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,18,0.05) 0%, rgba(10,6,18,0.1) 40%, rgba(10,6,18,0.75) 100%);
}
.showcase-canvas__info {
  position: relative; z-index: 1; text-align: center;
}
.showcase-canvas__name {
  font-family: var(--serif-cn); font-size: 0.85rem; font-weight: 700;
  color: var(--gold-light); text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.showcase-canvas__role {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px;
  padding: 0.1rem 0.4rem; border-radius: 3px; display: inline-block;
  margin-top: 0.2rem;
}
.showcase-canvas__role--T { background: rgba(74,158,255,0.18); color: #4a9eff; border: 1px solid rgba(74,158,255,0.35); }
.showcase-canvas__role--H { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }
.showcase-canvas__role--D { background: rgba(255,107,107,0.15); color: #ff6b6b; border: 1px solid rgba(255,107,107,0.3); }
.showcase-canvas__drawing {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .showcase-canvas { }
  .showcase-teams { gap: 1.5rem; }
  .showcase-team { padding: 1.2rem; }
  .showcase-member { width: 100px; }
  .showcase-member__avatar { width: 80px; height: 112px; }
}

.leaderboard-wrap {
  max-width: 960px; margin: 0 auto;
}
.leaderboard-list { max-width: 800px; margin: 0 auto; }

/* ---- Podium (top 3): floating team cards on a stepped base ---- */
.lb-podium-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0; margin: 0 auto 2.5rem; max-width: 760px;
}
/* Each column: card on top, stepped base below. Bases align at the bottom. */
.lb-podium {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: stretch;
  box-sizing: border-box;
  animation: lbRise 0.6s var(--ease) both;
}
.lb-podium--1 { order: 2; z-index: 3; flex-grow: 1.18; }
.lb-podium--2 { order: 1; z-index: 2; }
.lb-podium--3 { order: 3; z-index: 1; }
@keyframes lbRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The team card that "stands" on the podium step. */
.lb-podium__card {
  position: relative;
  margin: 0 0.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px 14px 4px 4px; padding: 1.4rem 1rem 1.2rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-align: center; cursor: pointer; box-sizing: border-box;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.lb-podium__card::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px 14px 4px 4px;
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.lb-podium:hover { z-index: 9; }
.lb-podium:hover .lb-podium__card { transform: translateY(-4px); }
.lb-podium:hover .lb-podium__card::after { opacity: 1; }
.lb-podium__card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Champion card sits highest and largest; spotlight cone shines from above. */
.lb-podium--1 .lb-podium__card {
  margin-top: 2.4rem;
  padding: 1.8rem 1.1rem 1.5rem;
  border-color: rgba(255,215,0,0.45);
  box-shadow: 0 0 36px rgba(255,215,0,0.18), inset 0 0 0 1px rgba(255,215,0,0.1);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,215,0,0.14), transparent 62%),
    var(--glass-bg);
}
.lb-podium--2 .lb-podium__card {
  margin-top: 4rem;
  border-color: rgba(192,192,192,0.4);
  box-shadow: 0 0 22px rgba(192,192,192,0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(192,192,192,0.12), transparent 60%),
    var(--glass-bg);
}
.lb-podium--3 .lb-podium__card {
  margin-top: 5rem;
  border-color: rgba(205,127,50,0.4);
  box-shadow: 0 0 22px rgba(205,127,50,0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(205,127,50,0.14), transparent 60%),
    var(--glass-bg);
}
.lb-podium--1:hover .lb-podium__card::after { animation: lbBreathGold 1.8s ease-in-out infinite; }
.lb-podium--2:hover .lb-podium__card::after { animation: lbBreathSilver 1.8s ease-in-out infinite; }
.lb-podium--3:hover .lb-podium__card::after { animation: lbBreathBronze 1.8s ease-in-out infinite; }
@keyframes lbBreathGold   { 0%,100% { box-shadow: 0 0 30px rgba(255,215,0,0.2); }   50% { box-shadow: 0 0 58px rgba(255,215,0,0.5); } }
@keyframes lbBreathSilver { 0%,100% { box-shadow: 0 0 22px rgba(192,192,192,0.16); } 50% { box-shadow: 0 0 46px rgba(192,192,192,0.4); } }
@keyframes lbBreathBronze { 0%,100% { box-shadow: 0 0 22px rgba(205,127,50,0.16); }  50% { box-shadow: 0 0 46px rgba(205,127,50,0.4); } }

/* Spotlight cone shining down on the champion from above the row. */
.lb-podium--1::before {
  content: ''; position: absolute; left: 50%; top: -56px;
  width: 240%; height: 150%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 148deg, rgba(255,228,140,0.05) 162deg,
    rgba(255,232,150,0.22) 176deg, rgba(255,244,200,0.34) 180deg,
    rgba(255,232,150,0.22) 184deg, rgba(255,228,140,0.05) 198deg, transparent 212deg);
  filter: blur(3px); pointer-events: none; z-index: 4;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
.lb-podium--1 .lb-podium__card,
.lb-podium--1 .lb-podium__base { position: relative; z-index: 5; }

/* The stepped base each card stands on — medal-colored, with a big rank number. */
.lb-podium__base {
  position: relative; margin: 0 0.4rem;
  display: flex; align-items: flex-start; justify-content: center;
  border-radius: 4px 4px 6px 6px;
  border: 1px solid var(--glass-border); border-top: none;
  box-sizing: border-box; overflow: hidden;
}
.lb-podium__base::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}
.lb-podium__rank {
  font-family: var(--serif-cn); font-weight: 800; line-height: 1;
  margin-top: 0.6rem; opacity: 0.9;
}
.lb-podium--1 .lb-podium__base {
  height: 130px;
  border-color: rgba(255,215,0,0.5);
  background: linear-gradient(180deg, rgba(255,215,0,0.28), rgba(255,215,0,0.08));
}
.lb-podium--2 .lb-podium__base {
  height: 92px;
  border-color: rgba(192,192,192,0.45);
  background: linear-gradient(180deg, rgba(192,192,192,0.26), rgba(192,192,192,0.07));
}
.lb-podium--3 .lb-podium__base {
  height: 64px;
  border-color: rgba(205,127,50,0.45);
  background: linear-gradient(180deg, rgba(205,127,50,0.26), rgba(205,127,50,0.07));
}
.lb-podium--1 .lb-podium__rank { font-size: 3.6rem; color: #FFE9A0; text-shadow: 0 0 18px rgba(255,215,0,0.5); }
.lb-podium--2 .lb-podium__rank { font-size: 2.8rem; color: #E8E8E8; text-shadow: 0 0 14px rgba(192,192,192,0.4); }
.lb-podium--3 .lb-podium__rank { font-size: 2.2rem; color: #E9B98A; text-shadow: 0 0 14px rgba(205,127,50,0.4); }

.lb-podium .lb-crown--lg { width: 2.4rem; height: 2.4rem; margin: 0 auto 0.6rem; }
.lb-podium--1 .lb-crown--lg { width: 3.4rem; height: 3.4rem; }
.lb-podium__name {
  font-family: var(--serif-cn); font-weight: 700; color: var(--gold-light);
  font-size: 1rem; line-height: 1.3;
}
.lb-podium--1 .lb-podium__name { font-size: 1.3rem; color: #FFE9A0; }
.lb-podium--3 .lb-podium__name { font-size: 0.95rem; }
.lb-podium__dungeon {
  font-size: 0.82rem; color: var(--text-dim); margin-top: 0.3rem;
}
.lb-podium__score {
  font-family: var(--serif-en); font-size: 0.9rem; font-weight: 600;
  color: var(--gold-bright); margin-top: 0.3rem;
}
.lb-podium__hint {
  font-size: 0.7rem; color: var(--text-dim); margin-top: 0.8rem;
  opacity: 0.55; letter-spacing: 1px;
}

/* ---- Team modal (player-gallery style) ---- */
.lb-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.8); display: flex;
  align-items: center; justify-content: center; padding: 2rem;
  cursor: zoom-out; animation: lbFadeIn 0.2s ease;
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-modal__box {
  cursor: default; max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(165deg, #1a0d2e, #120a20);
  border: 1px solid rgba(201,162,39,0.3); border-radius: 16px;
  padding: 1.8rem; box-shadow: 0 12px 60px rgba(0,0,0,0.7);
}
.lb-modal__title {
  font-family: var(--serif-cn); font-size: 1.4rem; font-weight: 700;
  color: var(--gold-light); text-align: center; margin-bottom: 1.4rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.lb-modal__sub { font-family: var(--sans); font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }
.lb-modal__sub .lb-key { font-size: 24px; }
.lb-modal__body .showcase-members { justify-content: center; }
.lb-entry-wrap {
  margin-bottom: 0.8rem;
  animation: lbSlideIn 0.5s var(--ease) both;
}
.lb-entry {
  display: flex; align-items: center; gap: 1rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 1rem 1.4rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: pointer; list-style: none;
}
.lb-entry::-webkit-details-marker { display: none; }
.lb-entry:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(201,162,39,0.15);
}
.lb-team-layout {
  margin: 0.6rem 0 0;
  padding: 0 0.5rem;
}
@keyframes lbSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.lb-entry-wrap:nth-child(1) { animation-delay: 0s; }
.lb-entry-wrap:nth-child(2) { animation-delay: 0.08s; }
.lb-entry-wrap:nth-child(3) { animation-delay: 0.16s; }
.lb-entry-wrap:nth-child(4) { animation-delay: 0.24s; }
.lb-entry-wrap:nth-child(5) { animation-delay: 0.32s; }
.lb-entry-wrap:nth-child(6) { animation-delay: 0.40s; }
.lb-entry-wrap:nth-child(7) { animation-delay: 0.48s; }
.lb-entry-wrap:nth-child(8) { animation-delay: 0.56s; }
.lb-entry-wrap:nth-child(9) { animation-delay: 0.64s; }
.lb-entry-wrap:nth-child(n+10) { animation-delay: 0.72s; }

.lb-rank {
  font-family: var(--serif-en); font-size: 1.8rem; font-weight: 800;
  min-width: 2.8rem; text-align: center; line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
}
.lb-rank--1 { color: #FFD700; text-shadow: 0 0 16px rgba(255,215,0,0.5); }
.lb-rank--2 { color: #C0C0C0; text-shadow: 0 0 12px rgba(192,192,192,0.4); }
.lb-rank--3 { color: #CD7F32; text-shadow: 0 0 12px rgba(205,127,50,0.4); }
.lb-rank--other { color: var(--text-dim); font-size: 1.4rem; }
.lb-rank-num { line-height: 1; }
.lb-crown { width: 2rem; height: 2rem; display: block; }
.lb-crown svg { width: 100%; height: 100%; display: block; }
.lb-entry--top1 { border-color: rgba(255,215,0,0.35); }
.lb-entry--top2 { border-color: rgba(192,192,192,0.3); }
.lb-entry--top3 { border-color: rgba(205,127,50,0.3); }
.lb-members {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem;
}

.lb-team-link { color: inherit; text-decoration: none; }
.lb-team-link:hover { text-decoration: underline; }
.lb-expanded-name { font-family: var(--serif-cn); font-size: 1.1rem; font-weight: 700; color: var(--gold-light); margin-bottom: 0.6rem; }
.lb-team-layout .lb-key { font-size: 24px; }

.lb-info { flex: 1; }
.lb-team-name {
  font-family: var(--serif-cn); font-size: 1rem; font-weight: 700;
  color: var(--gold-light); line-height: 1.3;
}
.lb-dungeon {
  font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem;
}
.lb-stats {
  text-align: right; min-width: 100px;
}
.lb-score {
  font-family: var(--serif-en); font-size: 0.95rem; font-weight: 700;
  color: var(--gold-bright); white-space: nowrap; margin-left: auto; padding-left: 0.8rem;
}
.lb-time {
  font-size: 0.78rem; color: var(--text-dim); margin-top: 0.1rem;
}
.lb-key {
  font-family: var(--serif-en); font-weight: 600;
  color: var(--void-glow); font-size: 0.9rem;
}

.lb-empty {
  text-align: center; padding: 3rem; color: var(--text-dim);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .showcase-teams { grid-template-columns: 1fr; }
  .lb-entry { flex-wrap: wrap; gap: 0.6rem; }
  .lb-rank { font-size: 1.4rem; min-width: 2rem; }
  .lb-stats { text-align: left; }
  .lb-podium-row { flex-direction: column; align-items: stretch; gap: 0.9rem; max-width: 420px; }
  .lb-podium { flex: none; }
  .lb-podium--1 { order: 1; flex-grow: 0; } .lb-podium--2 { order: 2; } .lb-podium--3 { order: 3; }
  /* Stacked vertically: cards align, base becomes a thin medal strip, no spotlight. */
  .lb-podium__card,
  .lb-podium--1 .lb-podium__card,
  .lb-podium--2 .lb-podium__card,
  .lb-podium--3 .lb-podium__card { margin: 0; }
  .lb-podium__base,
  .lb-podium--1 .lb-podium__base,
  .lb-podium--2 .lb-podium__base,
  .lb-podium--3 .lb-podium__base {
    height: auto; margin: 0; padding: 0.4rem 0; align-items: center;
  }
  .lb-podium--1 .lb-podium__rank { font-size: 1.6rem; }
  .lb-podium--2 .lb-podium__rank { font-size: 1.5rem; }
  .lb-podium--3 .lb-podium__rank { font-size: 1.5rem; }
  .lb-podium__rank { margin-top: 0; }
  .lb-podium--1::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__eyebrow, .hero__title, .hero__slogan, .hero__cue, .hero__scroll { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
