:root {
  --bg: #151515;
  --bg-soft: #1d1c1a;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --text: #f7f3ec;
  --muted: #b8b0a3;
  --line: rgba(255, 255, 255, 0.16);
  --ember: #ffb45f;
  --ember-deep: #d35b38;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 180, 95, 0.16), transparent 30rem),
    linear-gradient(180deg, #191817 0%, #121212 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 180, 95, 0.08) 34% 35%, transparent 35% 100%),
    linear-gradient(65deg, transparent 0 56%, rgba(211, 91, 56, 0.08) 56% 57%, transparent 57% 100%);
  opacity: 0.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1060px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 52px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
  min-height: 58vh;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--bg-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 6.25rem;
  line-height: 0.98;
  font-weight: 850;
}

h2 {
  font-size: 2.6rem;
  line-height: 1.08;
}

.tagline {
  max-width: 32rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.qq-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.qq-pill {
  min-height: 42px;
  border: 1px solid rgba(255, 180, 95, 0.38);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.qq-pill:hover,
.qq-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 180, 95, 0.72);
  background: rgba(255, 180, 95, 0.12);
  outline: none;
}

.members-section {
  padding-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.members-grid {
  display: grid;
  gap: 0;
}

.members-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}

.preview-member {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    background-color 220ms ease;
}

.preview-member:hover,
.preview-member:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 95, 0.62);
  color: var(--text);
  background: rgba(255, 180, 95, 0.1);
  outline: none;
}

.preview-member img {
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 180, 95, 0.56);
  border-radius: 50%;
  object-fit: cover;
}

.preview-member span {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  font-weight: 700;
}

.member-stage {
  --member-bg: url("bonfire.png");
  --stage-bg-opacity: 0.46;
  --stage-bg-scale: 1.2;
  --stage-avatar-opacity: 0.24;
  --stage-avatar-y: 34px;
  --stage-avatar-scale: 0.72;
  --stage-info-y: 0px;
  --stage-name-opacity: 0;
  --stage-name-y: 18px;
  --stage-name-scale: 0.94;
  --stage-role-opacity: 0;
  --stage-role-y: 18px;
  --stage-role-scale: 0.96;
  --stage-signature-opacity: 0;
  --stage-signature-y: 24px;
  --stage-signature-scale: 0.97;
  --stage-video-opacity: 0;
  --stage-video-y: 14px;
  --stage-cta-opacity: 0;
  --stage-cta-y: 12px;
  position: relative;
  width: 100vw;
  min-height: 158vh;
  margin-inline: calc(50% - 50vw);
}

.member-stage-abian {
  --member-bg: url("assets/backgrounds/abian.webp");
}

.member-stage-alao {
  --member-bg: url("assets/backgrounds/alao.webp");
}

.member-stage-wojiao-s {
  --member-bg: url("assets/backgrounds/wojiao-s.webp");
}

.member-stage-fruank {
  --member-bg: url("assets/backgrounds/fruank.webp");
}

.member-stage-tntcraft {
  --member-bg: url("assets/backgrounds/tntcraft.webp");
}

.member-stage-guodong-buding {
  --member-bg: url("assets/backgrounds/guodong-buding.webp");
}

.member-frame {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.18), rgba(18, 18, 18, 0.82)),
    var(--bg);
  contain: paint;
}

.member-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(18, 18, 18, 0.72), rgba(18, 18, 18, 0.32) 52%, rgba(18, 18, 18, 0.78)),
    var(--member-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  opacity: var(--stage-bg-opacity);
  transform: scale(var(--stage-bg-scale));
  will-change: transform, opacity;
}

.member-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, transparent 0 18rem, rgba(18, 18, 18, 0.52) 34rem),
    linear-gradient(180deg, rgba(18, 18, 18, 0.72), transparent 34%, rgba(18, 18, 18, 0.86));
}

.member-scene {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100% - 40px, 1060px);
  min-height: 100vh;
  padding: 88px 0;
}

.stage-avatar-wrap {
  position: relative;
  isolation: isolate;
  display: block;
  width: 164px;
  height: 164px;
  border: 2px solid rgba(255, 180, 95, 0.72);
  border-radius: 50%;
  overflow: hidden;
  background: #282522;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 0 12px rgba(255, 255, 255, 0.04);
  transform-origin: center;
  opacity: var(--stage-avatar-opacity);
  transform: translateY(var(--stage-avatar-y)) scale(var(--stage-avatar-scale));
  will-change: transform, opacity;
}

.stage-avatar-wrap::after {
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 180, 95, 0.32), transparent 68%);
  filter: blur(10px);
}

.stage-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-member-info {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 22px;
  text-align: center;
  transform: translateY(var(--stage-info-y));
  will-change: transform;
}

.stage-name-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: var(--stage-name-opacity);
  transform: translateY(var(--stage-name-y)) scale(var(--stage-name-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.stage-name-row strong {
  font-size: 4.2rem;
  line-height: 0.95;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.68);
}

.stage-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(560px, 100%);
}

.member-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 26px;
  border: 1px solid rgba(255, 180, 95, 0.5);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  opacity: var(--stage-cta-opacity);
  transform: translateY(var(--stage-cta-y));
  backdrop-filter: blur(12px);
  will-change: transform, opacity;
  transition:
    transform 180ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.member-cta:hover,
.member-cta:focus-visible {
  transform: translateY(calc(var(--stage-cta-y) - 2px));
  border-color: rgba(255, 180, 95, 0.64);
  background: rgba(255, 180, 95, 0.14);
  outline: none;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  min-width: 0;
}

.role {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  border: 1px solid rgba(255, 180, 95, 0.34);
  border-radius: 8px;
  padding: 8px 14px;
  color: #ffe0bd;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  background: rgba(211, 91, 56, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  opacity: var(--stage-role-opacity);
  transform: translateY(var(--stage-role-y)) scale(var(--stage-role-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 16px;
  color: rgba(247, 243, 236, 0.9);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  opacity: var(--stage-signature-opacity);
  transform: translateY(var(--stage-signature-y)) scale(var(--stage-signature-scale));
  transform-origin: center;
  will-change: transform, opacity;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: #e5d8c7;
  font-size: 0.78rem;
  opacity: var(--stage-video-opacity);
  transform: translateY(var(--stage-video-y));
  will-change: transform, opacity;
}

.video-meta span,
.video-meta {
  max-width: 100%;
}

.video-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(0, 0, 0, 0.24);
}

.side-progress {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 10;
  display: grid;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(12px, -50%);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.side-progress.is-visible,
.side-progress:hover,
.side-progress:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.progress-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 180, 95, 0.36);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.progress-dot:hover,
.progress-dot:focus-visible,
.progress-dot.is-active {
  transform: translateX(-4px) scale(1.08);
  border-color: rgba(255, 180, 95, 0.76);
  background: rgba(255, 180, 95, 0.12);
  outline: none;
}

.progress-dot img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  padding: 26px 20px 34px;
  color: var(--muted);
  font-size: 0.88rem;
  background: #121212;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #d7c7b3;
}

.loading-text {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    padding: 28px 0 38px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    min-height: auto;
    padding: 12px 0 42px;
  }

  .brand-mark {
    width: min(100%, 280px);
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .tagline {
    font-size: 1.08rem;
  }

  .section-heading {
    display: block;
  }

  .members-preview {
    grid-template-columns: repeat(3, 1fr);
  }

  .stage-avatar-wrap {
    width: 108px;
    height: 108px;
  }

  .stage-name-row strong {
    font-size: 2.7rem;
  }

  .role,
  .signature {
    min-height: 46px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .side-progress {
    right: 8px;
    gap: 7px;
  }

  .progress-dot {
    width: 34px;
    height: 34px;
  }

  .progress-dot img {
    width: 24px;
    height: 24px;
  }

  .video-meta {
    font-size: 0.74rem;
  }
}

@media (max-width: 560px) {
  .stage-meta-row {
    width: min(100%, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .member-stage,
  .member-frame,
  .member-frame::before,
  .stage-avatar-wrap,
  .stage-member-info,
  .member-cta {
    position: relative;
    top: auto;
    opacity: 1;
    transform: none;
  }
}
