:root {
  color-scheme: dark;
  --bg: #080612;
  --bg-2: #18122b;
  --panel: rgba(17, 14, 31, 0.88);
  --panel-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff8f1;
  --muted: rgba(255, 248, 241, 0.68);
  --pink: #ff3d9a;
  --blue: #34d7ff;
  --yellow: #f5ff4a;
  --green: #58ffb0;
  --dark: #080612;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 61, 154, 0.34), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(52, 215, 255, 0.28), transparent 28%),
    radial-gradient(circle at 64% 88%, rgba(245, 255, 74, 0.16), transparent 31%),
    linear-gradient(145deg, #070511 0%, #15102a 44%, #221034 100%);
  color: var(--text);
}

button {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.noise-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.58;
  mix-blend-mode: screen;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.screen {
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 34px;
}

.home-screen {
  display: grid;
  align-content: center;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.brand {
  color: var(--text);
  font-weight: 900;
}

.live-pill,
.badge,
.mini-pill,
.tag,
.rare-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.live-pill {
  padding: 7px 10px;
  color: var(--yellow);
}

.hero {
  display: grid;
  gap: 22px;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 12vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--yellow);
  text-shadow: 4px 4px 0 rgba(255, 61, 154, 0.72);
}

.lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 248, 241, 0.82);
  font-size: 17px;
  line-height: 1.75;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.quiz-card,
.result-panel,
.identity-card,
.soft-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.badge {
  width: fit-content;
  padding: 8px 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.feature-row,
.result-actions,
.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-pill {
  padding: 9px 11px;
  color: rgba(255, 248, 241, 0.82);
  font-size: 13px;
}

.identity-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 22px;
  background:
    radial-gradient(circle at 84% 16%, rgba(52, 215, 255, 0.28), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(255, 61, 154, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
}

.identity-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.identity-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.id-label {
  width: fit-content;
  padding: 8px 10px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.identity-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 9vw, 58px);
  line-height: 1.05;
}

.identity-card p {
  margin: 0;
  color: rgba(255, 248, 241, 0.75);
  line-height: 1.7;
}

.sample-card h2 {
  max-width: 420px;
}

.preview-stack {
  display: grid;
  gap: 10px;
}

.preview-stack div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(8, 6, 18, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-stack strong {
  font-size: 14px;
  color: var(--yellow);
}

.preview-stack span {
  color: rgba(255, 248, 241, 0.72);
  line-height: 1.6;
  font-size: 13px;
}

.sticker-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.tag {
  padding: 7px 10px;
  color: var(--text);
  font-size: 13px;
}

.tag.hot {
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

.tag.blue {
  background: var(--blue);
  color: #06101c;
  font-weight: 900;
}

.cta,
.ghost-btn,
.option-btn {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--yellow), var(--green));
  color: #08110d;
  font-weight: 950;
  box-shadow: 8px 8px 0 rgba(255, 61, 154, 0.62);
}

.ghost-btn {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
}

.quiz-screen,
.result-screen {
  display: grid;
  align-content: start;
  gap: 16px;
}

.progress-shell {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--yellow));
  transition: width 0.28s ease;
}

.quiz-card,
.result-panel,
.soft-panel {
  padding: 18px;
  background: rgba(10, 8, 22, 0.82);
  backdrop-filter: blur(18px);
}

.question-index {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.question-title {
  margin: 0 0 16px;
  font-size: clamp(25px, 7vw, 40px);
  line-height: 1.22;
}

.options {
  display: grid;
  gap: 10px;
}

.option-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  text-align: left;
  line-height: 1.55;
}

.option-btn:hover,
.option-btn.selected {
  border-color: rgba(245, 255, 74, 0.8);
  background: rgba(245, 255, 74, 0.14);
}

.result-hero {
  display: grid;
  gap: 14px;
  text-align: left;
}

.result-title {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(42px, 12vw, 78px);
  line-height: 0.98;
  text-shadow: 4px 4px 0 rgba(255, 61, 154, 0.62);
}

.result-subtitle {
  margin: 0;
  color: rgba(255, 248, 241, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.rare-pill {
  width: fit-content;
  padding: 9px 12px;
  color: var(--blue);
  font-weight: 900;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 61, 154, 0.16);
  color: #ffd4e9;
  font-size: 13px;
  font-weight: 800;
}

.section-title {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 950;
}

.soft-panel p {
  margin: 0;
  color: rgba(255, 248, 241, 0.78);
  line-height: 1.75;
}

.panel-intro {
  margin-bottom: 14px !important;
  color: rgba(255, 248, 241, 0.85) !important;
}

.dimension-grid {
  display: grid;
  gap: 10px;
}

.meter {
  display: grid;
  gap: 7px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 248, 241, 0.78);
  font-size: 13px;
}

.meter-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.meter-copy {
  color: rgba(255, 248, 241, 0.66);
  font-size: 13px;
  line-height: 1.65;
}

.expression-grid,
.scenario-grid,
.profile-atlas {
  display: grid;
  gap: 12px;
}

.expression-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expression-grid > div,
.scenario-card,
.profile-card {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.expression-grid strong,
.scenario-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 14px;
}

.expression-grid p,
.scenario-card p,
.profile-card p {
  margin: 0;
  color: rgba(255, 248, 241, 0.76);
  line-height: 1.72;
}

.scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-atlas {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-card-head h2 {
  margin: 0;
  font-size: 18px;
}

.profile-card-head span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.profile-deep {
  margin: 0 0 10px;
  color: rgba(255, 248, 241, 0.86);
  line-height: 1.72;
}

.profile-note {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8, 6, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-note strong {
  color: var(--yellow);
  font-size: 13px;
}

.profile-note span {
  color: rgba(255, 248, 241, 0.78);
  line-height: 1.65;
  font-size: 13px;
}

.deep-panel .insight-pair {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.deep-panel .insight-pair > div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deep-panel .insight-pair strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  transform: translateX(-50%) translateY(18px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(245, 255, 74, 0.96);
  color: #0b0a14;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .screen {
    padding: 18px 14px 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 18px;
  }

  .identity-card {
    min-height: 330px;
  }

  .cta {
    width: 100%;
  }

  .expression-grid,
  .scenario-grid,
  .profile-atlas {
    grid-template-columns: 1fr;
  }
}
