/* ========== 玩家站 · 视觉基线 ========== */
:root {
  --bg: #0a0908;
  --bg-elevated: #12100e;
  --surface: #181512;
  --surface-hover: #1f1b16;
  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(228, 180, 42, 0.35);
  --text: #ece8e2;
  --muted: #8f8980;
  --accent: #e4b42a;
  --accent-soft: rgba(228, 180, 42, 0.12);
  --accent-dim: #a68520;
  --success: #3ecf8e;
  --danger: #e07070;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.55);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(228, 180, 42, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(80, 50, 20, 0.12), transparent 45%);
  min-height: 100vh;
}

.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 28px 0 40px;
}

/* ----- 顶栏 ----- */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(228, 180, 42, 0.06);
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(228, 180, 42, 0.25);
}

a.logo--brand {
  text-decoration: none;
  color: var(--accent);
}

a.logo--brand:hover .logo__text {
  text-shadow: 0 0 28px rgba(228, 180, 42, 0.45);
}

.logo__mark {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 22px rgba(228, 180, 42, 0.18);
  flex-shrink: 0;
}

.logo__fallback-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  background: linear-gradient(180deg, rgba(228, 180, 42, 0.26), rgba(228, 180, 42, 0.12));
  box-shadow: 0 0 22px rgba(228, 180, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff5cc;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  overflow: visible;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-badge {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
  min-width: 1.2em;
  margin-left: 4px;
  display: inline-block;
}

.nav .nav-auth-btn {
  margin-left: 6px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

.nav-auth-btn.is-hidden {
  display: none !important;
}


/* ----- 玩家首页 ----- */
body.player-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.player-home main.wrap.home-main {
  padding-bottom: 32px;
}

body.player-home .home-main {
  flex: 1;
}

.top--home {
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.94), rgba(14, 12, 10, 0.84));
}

.top--home .top--home__wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 0;
}

.top--home__brand {
  padding: 0 10px 0 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.top--home__nav {
  margin-left: auto;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.top--home__nav a {
  position: relative;
  padding: 8px 14px;
}

.top--home__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.top--home__action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  min-height: 34px;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.15s, background 0.15s;
}

.top--home__action-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.top--home__action-link[hidden] {
  display: none !important;
}

.top--home__action-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .top--home .top--home__wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top--home__nav {
    justify-content: flex-end;
    border-radius: 12px;
  }

  .top--home__actions {
    justify-content: flex-start;
  }
}

.home-main {
  padding-top: 14px;
}

.home-hero {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.home-hero__fx {
  display: none;
}

.home-hero__spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 238, 176, 0.9), rgba(228, 180, 42, 0.25) 70%, transparent 100%);
  box-shadow: 0 0 16px rgba(228, 180, 42, 0.48);
  animation: home-float-spark 7s ease-in-out infinite;
}

.home-hero__spark:nth-child(1) { top: 14%; left: 12%; animation-delay: 0s; }
.home-hero__spark:nth-child(2) { top: 26%; right: 22%; animation-delay: 1.2s; }
.home-hero__spark:nth-child(3) { bottom: 20%; left: 32%; animation-delay: 2.4s; }
.home-hero__spark:nth-child(4) { bottom: 28%; right: 10%; animation-delay: 3.6s; }

.home-hero__inner {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 880px) {
  .home-hero__inner {
    grid-template-columns: 1.2fr minmax(220px, 280px);
    gap: 18px;
  }
}

.home-hero__inner--with-visual {
  grid-template-columns: 1fr;
}

@media (min-width: 920px) {
  .home-hero__inner--with-visual {
    grid-template-columns: 1.2fr minmax(220px, 280px) minmax(220px, 280px);
    gap: 16px;
  }
}

@media (min-width: 880px) and (max-width: 919px) {
  .home-hero__inner--with-visual {
    grid-template-columns: 1fr 1fr;
  }

  .home-hero__inner--with-visual .home-hero__visual {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

.home-hero__visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.home-hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, rgba(228, 180, 42, 0.45), rgba(255, 255, 255, 0.08), rgba(228, 180, 42, 0.25));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(228, 180, 42, 0.1);
}

.home-hero__visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.home-hero__visual-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
}

.home-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.home-hero__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text);
}

.home-hero__accent {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(228, 180, 42, 0.2);
}

.home-hero__lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 56ch;
}

.home-hero__lead strong {
  color: var(--text);
  font-weight: 600;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-hero__quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-hero__quick-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.home-hero__quick-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.home-hero__quick-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.home-hero__quick-value.is-counting {
  animation: home-count-pop 0.7s ease-in-out infinite alternate;
}

.home-hero__quick-note {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.home-board {
  margin-top: 4px;
}

.home-board__head {
  margin-bottom: 12px;
}

.home-board__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.home-board__sub {
  margin: 0;
  font-size: 0.9rem;
}

.home-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  border-color: rgba(228, 180, 42, 0.22);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(228, 180, 42, 0.08);
}

.home-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.home-card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.home-card__badge--open {
  color: var(--accent);
  border-color: rgba(228, 180, 42, 0.35);
  background: var(--accent-soft);
}

.home-card__badge--done {
  color: var(--success);
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
}

.home-card__slug {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.home-card__chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.home-card__chip--joined {
  color: var(--success);
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(62, 207, 142, 0.1);
}

.home-card__chip--bonus {
  color: #ffdca3;
  border-color: rgba(255, 184, 88, 0.55);
  background: rgba(255, 184, 88, 0.14);
}

.home-card__chip--bonus-tiers {
  position: relative;
  color: #ffe9bf;
  border-color: rgba(255, 205, 126, 0.65);
  background: linear-gradient(90deg, rgba(255, 193, 94, 0.2), rgba(255, 164, 78, 0.14));
  cursor: help;
}

.home-card__chip--bonus-tiers[data-full-tier]:hover::after {
  content: attr(data-full-tier);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 8;
  min-width: 220px;
  max-width: min(360px, 75vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 211, 144, 0.55);
  background: rgba(24, 18, 8, 0.95);
  color: #ffe5bd;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.home-card__mode {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.home-card__mode--headcount {
  color: #c8e8ff;
  border-color: rgba(120, 180, 255, 0.4);
  background: rgba(120, 180, 255, 0.12);
}

.home-card__mode--recharge {
  color: #ffd48f;
  border-color: rgba(255, 180, 80, 0.45);
  background: rgba(255, 180, 80, 0.12);
}

.home-card__mode-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  max-width: 100%;
  cursor: help;
  outline: none;
}

.home-card__mode-wrap .home-card__mode {
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.home-card__mode-wrap:hover .home-card__mode,
.home-card__mode-wrap:focus-visible .home-card__mode {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.home-card__mode--headcount.home-card__mode:hover,
.home-card__mode-wrap:hover .home-card__mode--headcount,
.home-card__mode-wrap:focus-visible .home-card__mode--headcount {
  box-shadow: 0 4px 16px rgba(80, 140, 220, 0.28);
  border-color: rgba(160, 200, 255, 0.65);
}

.home-card__mode--recharge.home-card__mode:hover,
.home-card__mode-wrap:hover .home-card__mode--recharge,
.home-card__mode-wrap:focus-visible .home-card__mode--recharge {
  box-shadow: 0 4px 16px rgba(255, 160, 60, 0.28);
  border-color: rgba(255, 200, 120, 0.65);
}

.home-card__mode-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 30;
  min-width: 220px;
  max-width: min(320px, 86vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(228, 180, 42, 0.35);
  background: rgba(18, 14, 10, 0.97);
  color: #f0e6d8;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.home-card__mode-wrap:hover .home-card__mode-pop,
.home-card__mode-wrap:focus-visible .home-card__mode-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-card__mode-wrap .home-card__mode,
  .home-card__mode-pop {
    transition: none;
  }

  .home-card__mode-wrap:hover .home-card__mode,
  .home-card__mode-wrap:focus-visible .home-card__mode {
    transform: none;
  }

  .home-card__mode-wrap:hover .home-card__mode-pop,
  .home-card__mode-wrap:focus-visible .home-card__mode-pop {
    transform: none;
  }
}

.home-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.home-card__title-icon {
  filter: drop-shadow(0 0 8px rgba(228, 180, 42, 0.35));
}

.home-card__meta {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
}

.home-card__metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.home-card__score strong,
.home-card__group strong {
  color: var(--accent-dim);
  font-weight: 700;
}

.home-card__sep {
  opacity: 0.35;
  user-select: none;
}

.home-card__status {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.home-card__status.is-done {
  color: var(--success);
}

.home-card__progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 16px;
}

.home-card__progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.0) 90%),
    linear-gradient(90deg, var(--accent-dim), var(--accent));
  background-size: 180% 100%, 100% 100%;
  box-shadow: 0 0 14px rgba(228, 180, 42, 0.28);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-card__progress-bar.is-animating {
  animation: home-progress-shimmer 2.1s linear infinite;
}

.home-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-card__joined-btn {
  border-color: rgba(62, 207, 142, 0.4);
  color: var(--success);
  background: rgba(62, 207, 142, 0.08);
}

.home-card__joined-btn:hover {
  border-color: rgba(62, 207, 142, 0.55);
  color: #c7f7df;
  background: rgba(62, 207, 142, 0.16);
}

.home-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 24px;
}

.home-empty__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.home-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(10, 9, 8, 0.6);
}

.home-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  font-size: 0.88rem;
}

.home-footer__link {
  color: var(--accent-dim);
  text-decoration: none;
}

.home-footer__link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ----- 首页动效（PLAYER_HOME_EFFECT） ----- */
@keyframes home-hero-glow-pulse {
  0%,
  100% {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(228, 180, 42, 0.06), 0 0 48px rgba(228, 180, 42, 0.08);
  }

  50% {
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(228, 180, 42, 0.18), 0 0 64px rgba(228, 180, 42, 0.16);
  }
}

@keyframes home-float-spark {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.95;
  }
}

@keyframes home-count-pop {
  from {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 rgba(228, 180, 42, 0.2);
  }
  to {
    transform: translateY(-1px) scale(1.06);
    text-shadow: 0 0 20px rgba(228, 180, 42, 0.38);
  }
}

@keyframes home-progress-shimmer {
  from {
    background-position: 180% 0, 0 0;
  }
  to {
    background-position: -80% 0, 0 0;
  }
}

@keyframes home-shimmer {
  0% {
    transform: translateX(-120%) skewX(-12deg);
    opacity: 0;
  }

  15% {
    opacity: 0.35;
  }

  50% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0.2;
  }

  100% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes home-aurora-bg {
  0% {
    background-position: 0% 20%, 100% 80%, 50% 50%;
  }

  100% {
    background-position: 100% 40%, 0% 60%, 50% 50%;
  }
}

@keyframes home-mesh-bg {
  0% {
    background-position: 0% 30%, 100% 70%, 50% 0%, 80% 100%, 20% 80%;
  }

  100% {
    background-position: 100% 60%, 0% 40%, 50% 100%, 20% 0%, 90% 20%;
  }
}

@keyframes home-spark-twinkle {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.85;
  }
}

body.player-home--fx-glow .home-hero {
  animation: home-hero-glow-pulse 5s ease-in-out infinite;
}

body.player-home--fx-shimmer .home-hero {
  position: relative;
  overflow: hidden;
}

body.player-home--fx-shimmer .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: home-shimmer 7s ease-in-out infinite;
}

body.player-home--fx-aurora {
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(228, 180, 42, 0.18), transparent 52%),
    radial-gradient(ellipse 70% 50% at 95% 105%, rgba(100, 60, 160, 0.14), transparent 48%),
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(228, 180, 42, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(80, 50, 20, 0.12), transparent 45%);
  background-size: 160% 160%, 140% 140%, 100% 100%, 100% 100%;
  animation: home-aurora-bg 24s ease-in-out infinite alternate;
}

body.player-home--fx-mesh {
  background-image:
    radial-gradient(ellipse 100% 80% at 0% 0%, rgba(228, 180, 42, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(60, 120, 200, 0.1), transparent 45%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(180, 80, 40, 0.1), transparent 50%),
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(228, 180, 42, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(80, 50, 20, 0.12), transparent 45%);
  background-size: 140% 140%, 130% 130%, 120% 120%, 100% 100%, 100% 100%;
  animation: home-mesh-bg 18s ease-in-out infinite alternate;
}

body.player-home--fx-spark .home-hero {
  position: relative;
}

body.player-home--fx-spark .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 230, 160, 0.35) 0, transparent 0.35%),
    radial-gradient(circle at 78% 18%, rgba(255, 220, 140, 0.3) 0, transparent 0.3%),
    radial-gradient(circle at 44% 88%, rgba(228, 180, 42, 0.25) 0, transparent 0.28%),
    radial-gradient(circle at 90% 72%, rgba(255, 245, 200, 0.2) 0, transparent 0.25%),
    radial-gradient(circle at 22% 68%, rgba(228, 180, 42, 0.22) 0, transparent 0.22%);
  animation: home-spark-twinkle 4.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body.player-home--fx-glow .home-hero,
  .home-hero__spark,
  .home-hero__stat-value.is-counting,
  .home-card__progress-bar,
  body.player-home--fx-shimmer .home-hero::after,
  body.player-home--fx-aurora,
  body.player-home--fx-mesh,
  body.player-home--fx-spark .home-hero::before {
    animation: none !important;
  }
}

/* ----- 卡片 ----- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin-top: 0;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(228, 180, 42, 0.2);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(228, 180, 42, 0.08);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ----- 按钮 ----- */
.btn {
  border: 1px solid var(--border-accent);
  color: var(--accent);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:hover {
  background: var(--accent-soft);
  color: #fff6d9;
  border-color: var(--accent);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(180deg, #f0c74a 0%, var(--accent) 100%);
  color: #1a1204;
  border-color: transparent;
  font-weight: 600;
}

.btn--primary:hover {
  background: linear-gradient(180deg, #ffd060 0%, #f0c74a 100%);
  color: #1a1204;
}

.btn--ghost {
  border-color: var(--border);
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.muted {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}

th {
  color: var(--accent);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.intro-carousel {
  position: relative;
  margin-top: 8px;
}

.intro-carousel__track {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  min-height: 160px;
}

.intro-carousel__img {
  display: none;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.intro-carousel__img.is-active {
  display: block;
}

.intro-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid var(--border-accent);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.intro-carousel__btn--prev {
  left: 8px;
}

.intro-carousel__btn--next {
  right: 8px;
}

.intro-carousel__dots {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
}

.intro-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.intro-carousel__dot.is-active {
  background: var(--accent);
}

.form-stack {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

fieldset.auth-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0;
}

fieldset.auth-fieldset legend {
  color: var(--accent);
  padding: 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-fieldset .field {
  margin-top: 12px;
}

.auth-fieldset .field:first-of-type {
  margin-top: 0;
}

.auth-fieldset label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* ----- 登录 / 注册弹窗（分栏） ----- */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 5, 4, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.auth-modal.open {
  display: flex;
}

.auth-modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 720px);
  overflow: hidden;
  border-radius: 20px;
  cursor: default;
  box-shadow:
    0 0 0 1px rgba(228, 180, 42, 0.12),
    0 32px 80px rgba(0, 0, 0, 0.65);
}

@media (min-width: 640px) {
  .auth-modal-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    max-width: 820px;
  }
}

.auth-modal-aside {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  background:
    linear-gradient(145deg, rgba(228, 180, 42, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #1a1510 0%, #0d0b09 100%);
  border-right: 1px solid rgba(228, 180, 42, 0.15);
}

@media (min-width: 640px) {
  .auth-modal-aside {
    display: flex;
  }
}

.auth-modal-aside__mark {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 8px,
    rgba(228, 180, 42, 0.04) 8px,
    rgba(228, 180, 42, 0.04) 9px
  );
  pointer-events: none;
}

.auth-modal-aside__logo {
  position: relative;
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(228, 180, 42, 0.35);
}

.auth-modal-aside__tag {
  position: relative;
  margin: 0 0 20px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(236, 232, 226, 0.75);
}

.auth-modal-aside__bullets {
  position: relative;
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.auth-modal-body {
  position: relative;
  padding: 28px 26px 26px;
  background: linear-gradient(180deg, #161311 0%, #0f0e0c 100%);
  overflow: auto;
}

@media (min-width: 640px) {
  .auth-modal-body {
    padding: 32px 36px 28px;
  }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.auth-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.auth-modal-title {
  margin: 0 48px 8px 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.25;
}

.auth-modal-sub {
  margin: 0 0 22px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
}

.auth-modal-switch {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.auth-modal-switch__btn {
  position: relative;
  flex: 0 0 auto;
  padding: 10px 18px 12px;
  margin-bottom: -1px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s;
}

.auth-modal-switch__btn:hover {
  color: var(--text);
}

.auth-modal-switch__btn.is-active {
  color: var(--accent);
  font-weight: 600;
}

.auth-modal-switch__btn.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}

.auth-modal-pane {
  display: none;
}

.auth-modal-pane.is-active {
  display: block;
}

.auth-form-field {
  margin-bottom: 16px;
}

.auth-form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(236, 232, 226, 0.72);
  letter-spacing: 0.03em;
}

.auth-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-modal-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-radius: 12px;
}
