:root {
  color-scheme: light;
  --bg: #f4f2f0;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: #ffffff;
  --panel-soft: #f6f4f2;
  --ink: #1d2230;
  --muted: #747a8a;
  --line: rgba(72, 80, 96, 0.15);
  --line-strong: rgba(72, 80, 96, 0.25);
  --teal: #17977e;
  --teal-dark: #0c715f;
  --orange: #f27a21;
  --violet: #6557c9;
  --gold: #e0ad44;
  --shadow: 0 24px 70px rgba(60, 64, 76, 0.14);
  --soft-shadow: 0 14px 34px rgba(60, 64, 76, 0.12);
  font-family: "Bahnschrift", "Aptos", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(24, 151, 126, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(101, 87, 201, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(180deg, #f9f8f7 0%, #ece9ef 100%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.5)),
    linear-gradient(180deg, transparent 0%, rgba(220, 217, 224, 0.55) 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

.creator-home {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  overflow-wrap: anywhere;
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand-mark,
.top-nav,
.dock-panel,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
}

.brand-glyph {
  width: 28px;
  height: 24px;
  border: 3px solid var(--teal);
  border-bottom-color: transparent;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-mark span:last-child {
  display: grid;
  gap: 2px;
}

.brand-mark strong {
  font-size: 18px;
  line-height: 1;
}

.brand-mark em,
.roster-card em,
.profile-card span,
.ability-block em,
.site-footer {
  color: var(--muted);
  font-style: normal;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
}

.top-nav a {
  min-width: 58px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #3c4354;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.top-nav a:hover,
.dock-panel a:hover {
  background: rgba(23, 151, 126, 0.1);
  color: var(--teal-dark);
}

.selection-console {
  position: relative;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 304px;
  gap: 22px;
  min-height: 650px;
  margin-top: 12px;
}

.selection-console > *,
.command-bar > * {
  min-width: 0;
  max-width: 100%;
}

.selection-console::before,
.selection-console::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(72, 80, 96, 0.42);
  pointer-events: none;
}

.selection-console::before {
  top: 0;
  left: -12px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.selection-console::after {
  right: -12px;
  bottom: 0;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.roster-panel,
.stats-panel,
.hero-hangar,
.video-section,
.follow-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.roster-panel,
.stats-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.triangle-mark {
  width: 26px;
  height: 24px;
  border: 3px solid var(--teal);
  border-bottom-color: transparent;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.panel-heading p,
.eyebrow,
.section-label,
.roster-foot span {
  margin: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.panel-heading h2 {
  margin: 4px 0 0;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1;
}

.roster-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.roster-card:hover,
.video-card:hover,
.follow-card:hover {
  transform: translateY(-2px);
}

.roster-card-active,
.roster-card:hover {
  border-color: rgba(242, 122, 33, 0.72);
  background: rgba(255, 255, 255, 0.92);
}

.roster-card img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.roster-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.roster-card em {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
}

.roster-card b {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
}

.roster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 4px 2px;
}

.roster-foot strong {
  font-size: 13px;
}

.hero-hangar {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.24) 22%, rgba(255, 255, 255, 0.86) 100%),
    linear-gradient(180deg, rgba(248, 247, 246, 0.92), rgba(235, 232, 238, 0.72));
}

.hero-hangar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(124, 128, 140, 0.09) 19% 20%, transparent 20% 80%, rgba(124, 128, 140, 0.08) 80% 81%, transparent 81%),
    radial-gradient(ellipse at 50% 82%, rgba(242, 122, 33, 0.18), transparent 42%);
}

.hero-title-block,
.creator-stage,
.dock-panel {
  position: relative;
  z-index: 1;
}

.hero-title-block {
  max-width: 620px;
}

.hero-title-block h1 {
  margin: 6px 0 0;
  color: var(--teal);
  font-size: 76px;
  font-weight: 900;
  line-height: 0.94;
}

.hero-title-block p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: #5f6472;
  font-size: 17px;
  line-height: 1.75;
  word-break: break-word;
}

.creator-stage {
  display: grid;
  place-items: center;
  min-height: 380px;
}

.stage-rings {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: min(520px, 80%);
  aspect-ratio: 2.2 / 1;
  transform: translateX(-50%);
}

.stage-rings span {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(23, 151, 126, 0.38);
  border-radius: 50%;
  transform: perspective(440px) rotateX(68deg);
}

.stage-rings span:nth-child(2) {
  inset: 24px;
  border-color: rgba(242, 122, 33, 0.62);
  animation: ring-pulse 3.8s ease-in-out infinite;
}

.stage-rings span:nth-child(3) {
  inset: 48px;
  border-color: rgba(101, 87, 201, 0.28);
}

.creator-avatar {
  position: relative;
  z-index: 1;
  width: min(330px, 58vw);
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow:
    0 32px 80px rgba(36, 43, 54, 0.2),
    0 0 0 12px rgba(255, 255, 255, 0.42);
  animation: avatar-float 5s ease-in-out infinite;
}

.stage-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border: 1px solid rgba(101, 87, 201, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 255, 0.8);
  color: #656072;
  font-size: 12px;
  font-weight: 800;
}

.stage-caption strong {
  flex: 0 0 auto;
  color: var(--teal-dark);
}

.dock-panel {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 8px;
}

.dock-panel a,
.section-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 7px;
  color: #394052;
  font-size: 14px;
  font-weight: 900;
}

.stats-panel {
  gap: 14px;
}

.profile-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.profile-card img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-card strong,
.profile-card span {
  display: block;
}

.profile-card span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.stat-block,
.ability-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.stat-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.stat-list div,
.stat-list dd {
  min-width: 0;
}

.stat-list dt {
  margin: 0 0 7px;
  color: #4d5464;
  font-size: 13px;
  font-weight: 800;
}

.stat-list dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.stat-list dd span {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--teal) 0 var(--value), rgba(30, 45, 65, 0.1) var(--value) 100%);
}

.stat-list b {
  text-align: right;
}

.ability-block ul {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ability-block li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ability-block li span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
}

.ability-block strong,
.ability-block em {
  display: block;
  grid-column: 2;
}

.ability-block em {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.video-section,
.follow-section {
  margin-top: 22px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: var(--teal-dark);
  font-size: 30px;
  line-height: 1.1;
}

.section-heading p:last-child {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-link {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.video-card:hover {
  border-color: rgba(23, 151, 126, 0.45);
}

.video-card-large {
  grid-column: span 2;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card span,
.video-card h3 {
  display: block;
  margin-left: 14px;
  margin-right: 14px;
}

.video-card span {
  margin-top: 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.video-card h3 {
  margin-top: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.24;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.follow-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease;
}

.follow-card img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.follow-card h3,
.follow-card p {
  margin: 0;
}

.follow-card h3 {
  color: var(--teal-dark);
  font-size: 19px;
}

.follow-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.qr-open-button {
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(23, 151, 126, 0.38);
  border-radius: 7px;
  background: rgba(23, 151, 126, 0.12);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.qr-open-button:hover {
  background: rgba(23, 151, 126, 0.2);
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
}

.qr-modal.hidden {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 12, 18, 0.56);
}

.qr-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, calc(100% - 24px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.qr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qr-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #4e5565;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-panel img {
  width: min(420px, calc(100vw - 64px));
  max-width: 100%;
  aspect-ratio: 1;
  margin: 12px auto 0;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.qr-modal-panel p {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 2px 2px 0;
  font-size: 12px;
}

.icp-link:hover {
  color: var(--ink);
}

@keyframes avatar-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.68;
    transform: perspective(440px) rotateX(68deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: perspective(440px) rotateX(68deg) scale(1.04);
  }
}

@media (max-width: 1080px) {
  .selection-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .roster-panel,
  .stats-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-heading,
  .profile-card,
  .stat-block,
  .ability-block,
  .roster-foot {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .creator-home {
    width: 100%;
    max-width: 100%;
    padding-top: 10px;
    padding-right: 10px;
    padding-left: 10px;
    overflow: hidden;
  }

  .command-bar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .top-nav a {
    min-width: 0;
    flex: 1;
  }

  .selection-console {
    min-height: 0;
    gap: 14px;
  }

  .selection-console::before,
  .selection-console::after {
    display: none;
  }

  .hero-hangar,
  .video-section,
  .follow-section {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .hero-title-block h1 {
    font-size: 48px;
  }

  .hero-title-block p:last-child {
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .creator-stage {
    min-height: 300px;
  }

  .creator-avatar {
    width: min(250px, 72vw);
  }

  .dock-panel {
    flex-direction: column;
  }

  .roster-panel,
  .stats-panel,
  .video-grid,
  .follow-grid {
    grid-template-columns: 1fr;
  }

  .roster-panel,
  .stats-panel,
  .hero-hangar,
  .video-section,
  .follow-section,
  .brand-mark,
  .top-nav {
    max-width: 100%;
    overflow: hidden;
  }

  .roster-card b {
    display: none;
  }

  .video-card-large {
    grid-column: span 1;
  }

  .follow-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .follow-card img {
    width: 104px;
    height: 104px;
  }

  .qr-modal-panel {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .creator-avatar,
  .stage-rings span:nth-child(2) {
    animation: none;
  }

  .roster-card,
  .video-card,
  .follow-card {
    transition: none;
  }
}
