:root {
  --bg: #09101f;
  --bg-soft: #152546;
  --panel: rgba(16, 25, 58, 0.84);
  --panel-strong: rgba(19, 31, 72, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(146, 188, 255, 0.16);
  --border-strong: rgba(255, 130, 204, 0.42);
  --text: #fdf8ff;
  --muted: rgba(232, 236, 255, 0.76);
  --muted-strong: rgba(247, 240, 255, 0.93);
  --accent: #6eb8ff;
  --accent-2: #ff7fcf;
  --accent-3: #ffd1ea;
  --accent-4: #9fc3ff;
  --shadow: 0 24px 80px rgba(6, 10, 28, 0.5);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1160px, calc(100vw - 28px));
}



* {

  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(110, 184, 255, 0.26), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 127, 207, 0.2), transparent 25%),
    radial-gradient(circle at 56% 100%, rgba(173, 196, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #070d1b 0%, #101937 46%, #120a1d 100%);
}



button,
a,
select {
  font: inherit;
}

button,
select {
  appearance: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow-x: clip;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.42;
  z-index: 0;
}


.ambient-a {
  width: 320px;
  height: 320px;
  top: 68px;
  left: -120px;
  background: rgba(110, 184, 255, 0.42);
}

.ambient-b {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 260px;
  background: rgba(255, 127, 207, 0.26);
}



.topbar,
.footer,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.page-result .topbar,
.page-quiz .topbar {
  position: static;
  top: auto;
}

.brand {


  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.08rem;
  color: #fdf8ff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(110, 184, 255, 0.24);
}



.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-copy small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.topbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.topbar-link {
  min-height: 42px;
  padding: 10px 16px;
  white-space: nowrap;
}




.ghost-button,
.primary-button,
.secondary-button,
.compact-button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.ghost-button,
.secondary-button,
.compact-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(110, 184, 255, 0.22);
}



.compact-button {
  min-height: 42px;
  padding: 10px 16px;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.compact-button:hover,
.option-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

main {
  padding-bottom: 48px;
}

.hero,
.section-block,
.page-heading {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 18px 0 56px;
}

.page-home .hero {
  min-height: auto;
  padding-bottom: 32px;
}


.hero-copy h1,
.page-heading h1,
.section-heading h2,
.result-hero h2 {
  margin: 16px 0;
  font-weight: 800;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 9vw, 5.1rem);
  max-width: 12ch;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-3);
}


.hero-copy p,

.page-heading p,
.section-heading p,
.feature-card p,
.preview-type p,
.formula-card p,
.summary-card p,
.info-card p,
.result-panel p,
.catalog-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.8;
}

.result-panel p {
  margin: 14px 0 0;
}

.result-panel .detail-copy {
  color: var(--muted-strong);
}


.eyebrow,
.mini-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.eyebrow {
  background: rgba(141, 125, 255, 0.12);
  border-color: rgba(141, 125, 255, 0.28);
  color: #d7d1ff;
}

.hero-actions,
.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.compact {
  gap: 10px;
}

.hero-metrics,
.feature-grid,
.result-dual-grid,
.catalog-grid {
  display: grid;
  gap: 14px;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metrics li,
.panel-card,
.formula-card,
.submit-bar,
.question-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-metrics li {
  padding: 16px;
  border-radius: 18px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.hero-metrics span {
  color: var(--muted);
}

.formula-card {
  padding: 22px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
}

.formula-card-top,
.section-heading,
.catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.formula-step,
.small-label,
.preview-type small,
.catalog-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.formula-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.08;
}

.tag-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.section-block {
  padding: 18px 0 72px;
}

.compact-top {
  padding-top: 0;
}

.section-heading {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-heading.narrow {
  max-width: 760px;
}

.home-sample-preview {
  margin-top: 28px;
}

.home-sample-preview .formula-card {
  max-width: 760px;
}

.section-heading h2,

.page-heading h1,
.result-hero h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.feature-grid.three {
  grid-template-columns: 1fr;
}

.feature-grid.four {
  grid-template-columns: 1fr;
}

.panel-card {
  border-radius: 24px;
  padding: 20px;
}

.feature-card,
.preview-type,
.info-card,
.catalog-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: #a8dfff;
  font-weight: 700;
}



.feature-card h3,
.preview-type h3,
.info-card h3,
.catalog-card h3,
.result-panel h3,
.empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.page-heading {
  padding: 20px 0 24px;
}

.quiz-heading,
.result-heading {
  padding-bottom: 18px;
}

.quiz-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.summary-card strong,
.mbti-label strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.28rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  margin: 12px 0 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 220ms ease;
}

.mbti-card p {
  margin: 0 0 14px;
}

.mbti-select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.question-section {
  padding-bottom: 96px;
}

.quiz-masonry {
  column-count: 1;
  column-gap: 14px;
}

.question-card {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 22px;
  padding: 18px;
}

.question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.question-number,
.question-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.question-category {
  color: #bfeeff;
  font-size: 0.84rem;
}

.question-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  line-height: 1.5;
}

.question-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-shot {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  line-height: 1.6;
}

.bubble.me {
  margin-left: auto;
  background: rgba(141, 125, 255, 0.14);
}

.option-cluster {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.option-button.is-selected {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(110, 184, 255, 0.18), rgba(255, 127, 207, 0.12));
}



.submit-bar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}


.submit-bar small {
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.submit-bar strong {
  font-size: 1.1rem;
}

.empty-state,
.result-hero,
.result-panel {
  border-radius: 26px;
}

.empty-state {
  padding: 28px;
  text-align: center;
}

.result-hero {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.result-dual-grid {
  margin-top: 18px;
  grid-template-columns: 1fr;
}

.result-panel {
  padding: 22px;
}

.result-panel-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.result-panel .avatar-shell.large {
  width: min(65%, 320px);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--avatar-soft), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 20px 42px rgba(8, 12, 30, 0.34),
    0 0 0 1px var(--avatar-accent);
}


.result-panel .avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.result-panel-copy {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.result-panel .mini-badge {
  margin: 0 auto;
}

.result-panel-copy h3 {
  margin: 4px 0 0;
  font-size: clamp(2.15rem, 7vw, 3rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow:
    0 12px 30px rgba(110, 184, 255, 0.22),
    0 0 24px rgba(255, 127, 207, 0.18);
}

#self-result .result-panel-copy h3,
#need-result .result-panel-copy h3 {
  max-width: 12ch;
}

#self-result .result-panel-sub,
#need-result .result-panel-sub {
  color: var(--muted-strong);
}

.result-panel-sub {
  color: var(--muted);
  margin-top: 0;
  max-width: 24ch;
}


.result-score {
  display: inline-flex;
  align-self: center;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  box-shadow: 0 10px 24px rgba(8, 12, 30, 0.18);
}


.result-insights {
  margin-top: 18px;
}

.page-result .section-block.compact-top {
  padding-top: 28px;
}

.page-result .section-block.compact-top .section-heading.narrow {
  margin: 0 auto 22px;
}

.page-result .section-block.compact-top .section-heading.narrow .eyebrow {
  align-self: center;
}


.catalog-block + .catalog-block {
  margin-top: 28px;
}


.catalog-head {
  margin-bottom: 14px;
}

.catalog-head h3,
.catalog-head p {
  margin: 0;
}

.catalog-head p {
  color: var(--muted);
}

.catalog-grid {
  grid-template-columns: 1fr;
}

.catalog-grid.need-grid {
  grid-template-columns: 1fr;
}

.catalog-card {
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.catalog-card.is-active {
  outline: 1px solid rgba(110, 184, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(110, 184, 255, 0.22) inset, var(--shadow);
}

.catalog-card.is-double-active {
  outline: 1px solid rgba(255, 127, 207, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 127, 207, 0.22) inset,
    0 0 0 1px rgba(110, 184, 255, 0.18),
    var(--shadow);
}





.footer {
  padding: 0 0 calc(32px + env(safe-area-inset-bottom));
}

.footer p {
  margin: 0;
  color: rgba(245, 247, 255, 0.48);
  text-align: center;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

.floating-card {
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 720px) {
  .feature-grid.three,
  .feature-grid.four,
  .quiz-toolbar,
  .catalog-grid.need-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-dual-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-masonry {
    column-count: 2;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.04fr 0.96fr;
  }

  .page-home .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid.three {

    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quiz-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


  .quiz-masonry {
    column-count: 3;
  }

  .result-dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-grid.need-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .page-home .topbar,
  .page-quiz .topbar,
  .page-result .topbar,
  .page-profile .topbar {
    flex-wrap: nowrap;
    align-items: center;
  }

  .page-home .topbar .brand,
  .page-quiz .topbar .brand,
  .page-result .topbar .brand,
  .page-profile .topbar .brand {
    width: auto;
    flex: 0 0 auto;
  }

  .page-home .topbar .topbar-actions,
  .page-quiz .topbar .topbar-actions,
  .page-result .topbar .topbar-actions,
  .page-profile .topbar .topbar-actions {
    order: 2;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .page-home .topbar .ghost-button,
  .page-quiz .topbar .ghost-button,
  .page-result .topbar .ghost-button,
  .page-profile .topbar .ghost-button {
    order: 2;
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .page-home .topbar .topbar-actions .ghost-button,
  .page-quiz .topbar .topbar-actions .ghost-button,
  .page-result .topbar .topbar-actions .ghost-button,
  .page-profile .topbar .topbar-actions .ghost-button {
    margin-left: 0;
  }

  .page-home .topbar .topbar-link,
  .page-quiz .topbar .topbar-link,
  .page-result .topbar .topbar-link,
  .page-profile .topbar .topbar-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
    white-space: nowrap;
  }



  .hero-copy h1 {
    max-width: none;
  }


  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .home-catalog-grid,
  .page-result .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-bar {

    flex-direction: column;
    align-items: stretch;
  }

  .submit-bar .primary-button {
    width: 100%;
  }
}


@media (max-width: 560px) {
  :root {
    --container: min(100vw - 22px, 100%);
  }

  .result-panel-head {
    align-items: center;
  }

  .catalog-card-top {
    align-items: flex-start;
  }


  .page-result .catalog-grid {
    gap: 12px;
  }

  .page-result .catalog-card {
    padding: 16px;
  }


  .avatar-shell.large {
    width: 88px;
    height: 88px;
  }

  .page-result .result-panel .avatar-shell.large {
    width: 65%;
    height: auto;
  }


  .avatar-shell.small {
    width: 60px;
    height: 60px;
  }

  .brand-copy small {
    display: none;
  }

  .ghost-button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .page-home .topbar .ghost-button,
  .page-quiz .topbar .ghost-button,
  .page-result .topbar .ghost-button,
  .page-profile .topbar .ghost-button {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .page-home .topbar .topbar-actions .ghost-button,
  .page-quiz .topbar .topbar-actions .ghost-button,
  .page-result .topbar .topbar-actions .ghost-button,
  .page-profile .topbar .topbar-actions .ghost-button {
    margin-left: 0;
  }

  .page-home .topbar .topbar-actions,
  .page-quiz .topbar .topbar-actions,
  .page-result .topbar .topbar-actions,
  .page-profile .topbar .topbar-actions {
    gap: 6px;
  }

  .page-home .topbar .topbar-link,
  .page-quiz .topbar .topbar-link,
  .page-result .topbar .topbar-link,
  .page-profile .topbar .topbar-link {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.82rem;
  }





  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-card,
  .formula-card,
  .question-card,
  .submit-bar,
  .result-hero,
  .result-panel,
  .empty-state {
    border-radius: 22px;
  }
}

.profile-card-link,
.result-panel-link {
  color: inherit;
  text-decoration: none;
}

.profile-card-link {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-card-link:hover {
  transform: translateY(-2px);
}

.profile-card-link:focus-visible,
.result-panel-link:focus-visible,
.detail-back-link:focus-visible {
  outline: 2px solid rgba(255, 127, 207, 0.72);
  outline-offset: 4px;
}


.profile-link-hint {
  margin-top: auto;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-panel-link {
  display: block;
  margin: -22px;
  padding: 22px;
  border-radius: inherit;
}

.result-panel-cta {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.result-panel-link:hover .result-panel-cta {
  color: #ffffff;
}

.detail-hero {
  margin: 20px 0 18px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
}

.detail-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-back-link {
  text-decoration: none;
}

.detail-hero-main {
  display: grid;
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.detail-hero .avatar-shell.large {
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--avatar-soft), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 20px 42px rgba(8, 12, 30, 0.34),
    0 0 0 1px var(--avatar-accent);
}

.detail-hero .avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.detail-hero-copy {
  width: min(100%, 72ch);
  margin: 0 auto;
}

.detail-hero-copy small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: center;
}

.detail-hero-copy h1,
.detail-hero-copy .detail-hero-lead {
  text-align: center;
}

.detail-hero-copy .tag-row {
  justify-content: center;
}


.detail-hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  line-height: 0.96;
  font-weight: 800;
  text-shadow:
    0 12px 30px rgba(110, 184, 255, 0.2),
    0 0 24px rgba(255, 127, 207, 0.16);
}


.detail-hero-copy p {
  margin: 0 0 14px;
  max-width: 72ch;
}

.detail-hero-lead {
  color: var(--muted-strong) !important;
  font-size: 1.05rem;
}

.detail-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.detail-section {
  border-radius: 24px;
}

.detail-section h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.08;
}

.detail-section .detail-copy {
  color: var(--muted-strong);
}

.detail-section-wrap {

  padding-bottom: 18px;
}

.detail-advice-grid .advice-card {
  min-height: 100%;
}

.advice-card p {
  margin: 0;
  color: var(--muted-strong);
}

.detail-cta {
  margin: 10px 0 56px;
}

.detail-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .detail-hero-main {
    grid-template-columns: minmax(260px, 0.72fr) 1fr;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .detail-hero {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .detail-hero .avatar-shell.large {
    width: min(100%, 240px);
  }

  .detail-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}



