:root {
  --bg: #f6f2e8;
  --panel: rgba(255, 252, 245, 0.88);
  --ink: #161616;
  --muted: #5f5a53;
  --line: rgba(22, 22, 22, 0.12);
  --green: #84f55d;
  --green-deep: #1d5f1d;
  --yellow: #ffd85b;
  --yellow-deep: #7b5400;
  --red: #ff7a59;
  --red-deep: #7d220c;
  --accent: #00c2a8;
  --shadow: 0 18px 50px rgba(22, 22, 22, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(132, 245, 93, 0.22), transparent 32%),
    radial-gradient(circle at 100% 20%, rgba(255, 122, 89, 0.18), transparent 28%),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 100%);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 22, 22, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-a {
  top: -80px;
  right: -40px;
  background: rgba(132, 245, 93, 0.6);
}

.orb-b {
  left: -120px;
  bottom: -120px;
  background: rgba(255, 122, 89, 0.4);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  animation: rise-in 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 36px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 236, 0.84)),
    linear-gradient(180deg, rgba(132, 245, 93, 0.08), rgba(255, 122, 89, 0.08));
}

.eyebrow,
.question-kicker,
.stack-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22, 22, 22, 0.06);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.x-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.92);
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 22, 22, 0.12);
}

.x-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero h1 {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.impact-line {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  color: #b6492f;
}

.lead {
  max-width: 700px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.lead span {
  color: var(--ink);
}

.lead-detail {
  margin-top: 12px;
  font-size: 16px;
}

.lead-detail strong {
  color: var(--ink);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 24px;
}

.meta-card,
.stack-card,
.card,
.option,
.persona-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.meta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.meta-card strong {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 28px;
}

.meta-card span {
  color: var(--muted);
}

.hero-actions,
.action-row,
.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 22, 22, 0.16);
}

.button-secondary {
  background: rgba(22, 22, 22, 0.08);
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
}

.tiny-note,
.keyboard-tip,
.legend p,
.status-chip {
  color: var(--muted);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market-visual {
  position: relative;
  min-height: 356px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(22, 22, 22, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 122, 89, 0.28), transparent 36%),
    radial-gradient(circle at 80% 26%, rgba(132, 245, 93, 0.24), transparent 34%),
    linear-gradient(180deg, #1d1d1d 0%, #111 100%);
}

.market-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.market-candles {
  position: absolute;
  inset: 0;
}

.candle {
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: var(--top);
  left: var(--left);
  border-radius: 999px;
}

.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 2px;
  height: calc(100% + 36px);
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.35);
}

.candle.red {
  background: linear-gradient(180deg, #ff8d72, #ff5f4b);
}

.candle.green {
  background: linear-gradient(180deg, #afff72, #54d86d);
}

.pixel-head {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  display: block;
  margin: 34px auto 0;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.28));
  animation: pulse-head 2.4s ease-in-out infinite;
}

.pulse-badge {
  position: absolute;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.pulse-a {
  top: 18px;
  right: 18px;
}

.pulse-b {
  left: 14px;
  bottom: 88px;
}

.pulse-c {
  right: 34px;
  bottom: 26px;
}

.stack-card {
  position: relative;
  padding: 18px 20px 20px;
  overflow: hidden;
}

.stack-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -26px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.16;
}

.stack-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.stack-green::after {
  background: var(--green);
}

.stack-yellow::after {
  background: var(--yellow);
}

.stack-red::after {
  background: var(--red);
}

.legend {
  margin-top: auto;
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.legend summary {
  cursor: pointer;
  font-weight: 700;
}

.quiz,
.result {
  padding: 30px;
}

.hidden {
  display: none;
}

.quiz-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.progress-meta strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 26px;
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--red));
  transition: width 0.35s ease;
}

.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.05);
  white-space: nowrap;
}

.question-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.question-header h2 {
  margin: 16px 0 10px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.question-header p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 14px;
  margin: 28px 0 30px;
}

.option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 22, 22, 0.25);
  box-shadow: 0 12px 24px rgba(22, 22, 22, 0.08);
}

.option.selected {
  border-color: rgba(22, 22, 22, 0.8);
  background: rgba(132, 245, 93, 0.17);
}

.option-key {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.08);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
}

.option-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.option-body span {
  color: var(--muted);
  line-height: 1.7;
}

.result-hero {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 228, 0.95));
  border: 1px solid var(--line);
}

.primary-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.primary-art-stage {
  display: flex;
  justify-content: center;
}

.primary-figure-shell {
  position: relative;
  width: min(100%, 300px);
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: 0 18px 32px rgba(22, 22, 22, 0.08);
  overflow: hidden;
}

.primary-figure-shell img {
  display: block;
  width: 100%;
  height: auto;
}

.primary-result-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.primary-name {
  margin-top: 10px;
}

.primary-code {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.result-hero h2 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.98;
}

.result-hero p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.verdict-block {
  margin-top: 18px;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(22, 22, 22, 0.05);
  border-left: 6px solid var(--ink);
  text-align: left;
}

.verdict-block strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-list,
.detail-list,
.dimension-list {
  display: grid;
  gap: 12px;
}

.hero-detail-list {
  width: 100%;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.hero-qr-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  width: min(100%, 520px);
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(22, 22, 22, 0.04);
  border: 1px solid rgba(22, 22, 22, 0.08);
  text-align: left;
}

.hero-qr-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.hero-qr-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-qr-inline img {
  display: block;
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(22, 22, 22, 0.08);
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.pill.green {
  background: rgba(132, 245, 93, 0.2);
  color: var(--green-deep);
}

.pill.yellow {
  background: rgba(255, 216, 91, 0.24);
  color: var(--yellow-deep);
}

.pill.red {
  background: rgba(255, 122, 89, 0.2);
  color: var(--red-deep);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.result-share-cta {
  display: grid;
  grid-template-columns: 188px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 242, 228, 0.96)),
    linear-gradient(180deg, rgba(132, 245, 93, 0.06), rgba(255, 122, 89, 0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.share-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(22, 22, 22, 0.08);
}

.share-qr-box img {
  display: block;
  width: 100%;
  max-width: 156px;
  height: auto;
  border-radius: 18px;
}

.share-qr-box span {
  font-size: 12px;
  color: var(--muted);
}

.share-cta-copy h3 {
  margin: 10px 0 10px;
}

.share-cta-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.share-cta-url {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.05);
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 13px;
}

.card {
  padding: 22px;
}

.span-2 {
  grid-column: 1 / -1;
}

.card h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 24px;
}

.detail-item,
.dimension-item,
.match-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(22, 22, 22, 0.04);
}

.detail-item strong,
.dimension-item strong,
.match-item strong {
  display: block;
  margin-bottom: 4px;
}

.detail-item span,
.dimension-item span,
.match-item span {
  color: var(--muted);
  line-height: 1.7;
}

.dimension-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.grade-H {
  background: rgba(255, 122, 89, 0.2);
  color: var(--red-deep);
}

.grade-M {
  background: rgba(255, 216, 91, 0.22);
  color: var(--yellow-deep);
}

.grade-L {
  background: rgba(132, 245, 93, 0.22);
  color: var(--green-deep);
}

.dimension-meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.radar-wrap {
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: auto;
}

.radar-wrap svg {
  width: min(100%, 430px);
  height: auto;
}

.radar-label {
  font-size: 10px;
  fill: var(--muted);
}

.radar-axis {
  stroke: rgba(22, 22, 22, 0.12);
  stroke-width: 1;
}

.radar-ring {
  fill: none;
  stroke: rgba(22, 22, 22, 0.08);
}

.radar-area {
  fill: rgba(0, 194, 168, 0.2);
  stroke: var(--ink);
  stroke-width: 2;
}

.radar-point {
  fill: var(--ink);
}

.result-actions p {
  margin: 0 0 18px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
}

.persona-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.persona-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 22, 22, 0.06);
}

.persona-card.active {
  border-color: rgba(22, 22, 22, 0.72);
  box-shadow: 0 14px 30px rgba(22, 22, 22, 0.12);
}

.persona-card-head {
  margin-top: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.persona-card h4 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.persona-card p {
  margin: 4px 0 12px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

.persona-art {
  display: grid;
  place-items: center;
  min-height: 150px;
}

.persona-art-reference {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: #fff;
}

.persona-art-reference img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-top-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.92) 84%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.persona-card-foot {
  font-size: 12px;
  color: var(--muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-head {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.02);
  }
}

@media (max-width: 900px) {
  .hero,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-share-cta {
    grid-template-columns: 1fr;
  }

  .quiz-top {
    grid-template-columns: 1fr;
  }

  .status-chip {
    justify-self: start;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .hero,
  .quiz,
  .result,
  .question-card {
    padding: 20px;
  }

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

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

  .hero-topline {
    align-items: flex-start;
  }

  .share-qr-box {
    width: min(100%, 220px);
    margin: 0 auto;
  }

  .option-key {
    width: 34px;
    height: 34px;
  }

  .radar-wrap {
    min-height: 320px;
  }

  .dimension-meta {
    flex-direction: column;
  }

  .hero-qr-inline {
    grid-template-columns: 1fr 82px;
    gap: 12px;
    padding: 12px 14px;
  }

  .hero-qr-copy strong {
    font-size: 15px;
  }

  .hero-qr-copy span {
    font-size: 13px;
  }

  .hero-qr-inline img {
    width: 82px;
    height: 82px;
    padding: 7px;
  }

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

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

  .persona-art-reference {
    min-height: 156px;
  }
}
