:root {
  color-scheme: light;
  --paper: #fffdfc;
  --peach: #fff1e9;
  --coral: #ff8175;
  --coral-deep: #b8433c;
  --mint: #ddf4e8;
  --mint-deep: #287b62;
  --lavender: #eee8ff;
  --ink: #241f1c;
  --ink-soft: #665e59;
  --line: #e9e1dc;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(83, 55, 42, 0.1);
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff8f3;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
img { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(40, 123, 98, 0.55); outline-offset: 4px; }

.site-header, .site-footer, main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-link img { object-fit: contain; }

.site-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

.site-nav a, .site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.home-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.home-page main { display: grid; place-items: center; }

.home-entry {
  display: flex;
  width: min(100%, 560px);
  min-height: min(760px, calc(100svh - 88px));
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 56px;
  text-align: center;
}

.home-entry-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  object-fit: contain;
}

.home-entry h1 {
  margin-bottom: 18px;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.home-entry .button { width: min(100%, 340px); }

.home-entry-intro { margin-bottom: 8px; color: var(--mint-deep); font-size: 15px; font-weight: 700; }
.home-entry-description { max-width: 360px; margin-bottom: 26px; color: var(--ink-soft); font-size: 16px; }
.home-entry-note { margin: 12px 0 28px; color: var(--ink-soft); font-size: 12px; }
.app-store-badge { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.app-store-badge img { width: auto; height: 44px; }
.home-store-link { margin-top: 0; }
.official-instagram { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 12px; color: var(--ink-soft); font-size: 12px; text-align: left; text-decoration: none; }
.official-instagram img { width: 24px; height: 24px; flex-shrink: 0; }
.official-instagram > span { display: flex; flex-direction: column; gap: 2px; }
.official-instagram strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.official-instagram:hover strong { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button-primary {
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(255, 129, 117, 0.2);
  color: var(--ink);
}

.privacy-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 120px;
  padding: 82px clamp(24px, 5vw, 70px);
  border-radius: 38px;
  background: var(--mint);
}

.privacy-section a { flex: 0 0 auto; color: var(--mint-deep); font-weight: 750; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 48px;
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer > div { display: flex; align-items: baseline; gap: 9px; }
.site-footer strong { color: var(--ink); font-size: 16px; }
.site-footer p { grid-column: 1 / -1; margin: 0; }

.compact-footer {
  display: flex;
  justify-content: center;
  padding: 16px 0 24px;
}

.compact-footer nav { justify-content: center; }

.type-page {
  min-height: 100vh;
  background: #fffaf6;
}

.type-share-shell {
  display: block;
  min-height: calc(100vh - 190px);
  padding: 42px 0 110px;
}

.type-story {
  width: min(980px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(112, 92, 81, 0.1);
  border-radius: 46px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.type-story-hero {
  padding: clamp(28px, 5vw, 48px);
  background: var(--white);
}

.type-share-label { margin-bottom: 8px; color: var(--mint-deep); font-weight: 780; }
.type-story-hero h1 { margin-bottom: 10px; font-size: clamp(56px, 10vw, 76px); font-weight: 900; letter-spacing: -0.065em; line-height: 1; }
.type-story-hero h2 { margin-bottom: 12px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.045em; }
.type-story-hero > p:last-of-type { max-width: 34rem; margin-bottom: 22px; color: var(--ink-soft); font-size: 16px; }
.type-primary-action { width: min(560px, 100%); }
.type-primary-action .button { width: 100%; }
.type-detail-title { margin: 0 0 14px; font-size: 18px; }
.type-result-details { width: min(560px, 100%); }
.type-axis-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; }
.type-axis-direction { width: 50%; left: 0; }
.type-axis-direction.is-right { left: 50%; }

.type-traits {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}


.type-recommendations { padding: 28px clamp(28px, 5vw, 48px) 20px; border-top: 1px solid var(--line); }
.type-recommendations .result-section-heading h2 { font-size: 22px; }
.type-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; padding: 0 clamp(28px, 7vw, 78px); }
.type-connect-links { padding: 24px 24px 32px; border-top: 1px solid var(--line); }
.type-store-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin: 0; padding: 0; }
.type-social-links { display: flex; justify-content: center; margin: 18px 0 0; }
.type-store-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: 13px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assessment-page { min-height: 100vh; }
.assessment-header { width: min(760px, calc(100% - 48px)); }
.header-label { color: var(--ink-soft); font-size: 14px; font-weight: 700; }

.assessment-main {
  display: grid;
  width: min(760px, calc(100% - 48px));
  min-height: calc(100vh - 164px);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 48px 0 88px;
}

.assessment-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 590px;
  padding: clamp(32px, 7vw, 70px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.assessment-shell.is-result {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.assessment-shell.is-intro {
  min-height: 0;
  padding-block: clamp(56px, 10vw, 78px);
}

.assessment-shell[aria-busy="true"] {
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--ink-soft);
}

.loading-mark { margin-bottom: 18px; animation: breathe 1.6s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.76; }
  50% { transform: scale(1.04); opacity: 1; }
}

.assessment-intro {
  display: flex;
  min-height: 450px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.assessment-shell.is-intro .assessment-intro { min-height: 300px; }

.assessment-intro-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  border-radius: 24px;
}

.question-axis {
  margin-bottom: 12px;
  color: var(--coral-deep);
  font-size: 14px;
  font-weight: 760;
}

.assessment-intro h1, .question-screen h1, .assessment-error h1 {
  max-width: 660px;
  margin-bottom: 14px;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 830;
  letter-spacing: -0.052em;
  line-height: 1.2;
}

.assessment-intro-meta, .confirmation-note, .assessment-error p {
  color: var(--ink-soft);
}

.assessment-intro-meta { margin: 0 0 34px; font-size: 15px; font-weight: 620; }
.assessment-intro .button { width: min(100%, 340px); }

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coral-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.text-button:disabled { cursor: default; opacity: 0; }

.assessment-progress {
  height: 5px;
  margin-bottom: 50px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.assessment-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 220ms ease;
}

.question-screen h1 { min-height: 2.4em; }
.confirmation-note { margin: -6px 0 24px; }
.answer-list { display: grid; gap: 10px; margin-top: 34px; }

.answer-list button {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 252, 0.9);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 680;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.answer-list button span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--peach);
  color: var(--coral-deep);
  font-size: 13px;
}

.answer-list button:focus-visible {
  border-color: var(--coral);
  background: var(--peach);
}
.question-screen h1:focus { outline: none; }
.skin-profile-card #result-title:focus { outline: none; }

.assessment-error {
  display: grid;
  min-height: 450px;
  align-content: center;
  justify-items: start;
}

.assessment-result { min-width: 0; animation: result-in 320ms ease-out both; }

.skin-profile-card {
  padding: clamp(28px, 5vw, 40px);
  border: 1px solid rgba(112, 92, 81, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.result-heading {
  text-align: left;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-heading p { margin-bottom: 14px; color: var(--mint-deep); font-size: 14px; font-weight: 800; }
.result-heading h1 { margin-bottom: 5px; font-size: clamp(52px, 11vw, 72px); letter-spacing: -0.06em; line-height: 0.96; }
.result-heading h2 { margin: 0; font-size: clamp(25px, 4.2vw, 34px); letter-spacing: -0.045em; }
.result-summary { max-width: 35rem; margin: 18px 0 26px; color: var(--ink-soft); font-size: 17px; }
.result-axis-card { padding: 24px 26px; border-radius: 26px; background: #fff7f1; }
.result-axes { display: grid; gap: 0; }
.result-axis { padding: 20px 0; border-bottom: 1px solid rgba(102, 94, 89, 0.11); }
.result-axis:first-child { padding-top: 0; }
.result-axis:last-child { padding-bottom: 0; border-bottom: 0; }
.result-axis-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.result-axis-title strong { font-size: 17px; }
.result-axis-title > span { max-width: 58%; color: var(--coral-deep); font-size: 12px; font-weight: 730; text-align: right; }
.result-axis-title > span.is-left { text-align: left; }
.result-axis-title > span.is-center { text-align: center; }
.result-axis-title > span.is-right { text-align: right; }
.result-axis-track { position: relative; height: 18px; margin-bottom: 6px; }
.result-axis-track::before { position: absolute; top: 6px; right: 0; left: 0; height: 6px; border-radius: 999px; background: var(--line); content: ""; }
.axis-segment { position: absolute; z-index: 1; top: 6px; height: 6px; border-radius: 999px; background: var(--mint-deep); }
.axis-center { position: absolute; z-index: 2; top: 2px; left: 50%; width: 2px; height: 14px; background: #aaa09a; transform: translateX(-1px); }
.axis-marker { position: absolute; z-index: 3; top: 9px; width: 14px; height: 14px; border: 3px solid var(--mint-deep); border-radius: 50%; background: var(--paper); box-shadow: 0 3px 9px rgba(40, 123, 98, 0.18); transform: translate(-50%, -50%); }
.result-axis-poles { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.result-axis-pole { display: flex; max-width: 47%; flex-direction: column; color: var(--ink-soft); font-size: 11px; line-height: 1.42; }
.result-axis-pole strong { font-size: 12px; font-weight: 800; }
.result-axis-pole small { margin-top: 2px; font-size: 10px; }
.result-axis-pole.is-right { align-items: flex-end; text-align: right; }
.result-axis-pole.is-active strong { color: var(--mint-deep); }
.result-recommendations { min-width: 0; margin: 48px 0 28px; }
.result-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.result-section-heading p { margin: 0; color: var(--coral-deep); font-size: 13px; font-weight: 760; }
.result-section-heading h2 { max-width: 420px; margin: 0; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.04em; line-height: 1.25; }
.recommendation-teasers { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recommendation-teaser { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.teaser-visual { position: relative; aspect-ratio: 1 / 0.82; overflow: hidden; background: var(--peach); }
.teaser-visual img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) saturate(0.76); transform: scale(1.09); }
.recommendation-teaser.is-revealed .teaser-visual { background: #fff; }
.recommendation-teaser.is-revealed .teaser-visual img { filter: none; transform: none; object-fit: contain; }
.teaser-example-label { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: var(--mint); color: var(--mint-deep); font-size: 11px; font-weight: 760; }
.teaser-veil { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,253,252,0.68)); }
.teaser-veil b { padding: 7px 11px; border: 1px solid rgba(255,255,255,0.9); border-radius: 999px; background: rgba(255,253,252,0.86); color: var(--coral-deep); font-size: 11px; }
.teaser-copy { padding: 18px 17px 20px; }
.teaser-copy > span { color: var(--mint-deep); font-size: 11px; font-weight: 760; }
.teaser-copy h3 { min-height: 2.65em; margin: 7px 0 10px; font-size: 17px; letter-spacing: -0.035em; line-height: 1.34; }
.teaser-copy p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.teaser-copy .teaser-category { margin-bottom: 8px; color: var(--mint-deep); font-weight: 760; }
.result-actions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.result-actions .button { min-width: 0; padding: 10px 8px; gap: 6px; font-size: 14px; min-height: 52px; }
.button-kakao { background: #fee500; color: #191919; box-shadow: none; }
.button-kakao:hover { background: #f2d900; }
.button-kakao::before { content: ''; width: 28px; height: 29px; flex-shrink: 0; background: url('/assets/brand/kakaotalk-sharing-medium.svg') center / contain no-repeat; }
.button-kakao:hover::before { background-image: url('/assets/brand/kakaotalk-sharing-medium-hover.svg'); }
.button-save-image { background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.button-save-image:hover { background: var(--peach); }
.button-save-image:disabled { opacity: .55; cursor: wait; }
.button-kakao:disabled { opacity: .65; cursor: wait; }
.result-secondary-actions .text-button:disabled { opacity: .55; cursor: wait; }
.result-image-note { font-size: 12px; text-align: center; color: var(--muted); margin: 8px 0 0; }
.skin-profile-card > .result-store-badges { margin: 20px auto 0; }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.app-action { gap: 9px; }
.app-action img { width: 26px; height: 26px; object-fit: contain; }
.button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.store-fallback { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--lavender); }
.store-fallback p { margin-bottom: 10px; color: var(--ink-soft); font-size: 13px; }
.store-fallback div { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.store-fallback a { color: var(--ink); font-size: 14px; font-weight: 750; }
.type-store-links span, .store-fallback span { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: 13px; }
.restart-button { display: block; margin: 18px auto 0; text-align: center; }

.result-dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.result-dialog::backdrop { background: rgba(36,31,28,.46); }
.result-dialog .dialog-heading { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.dialog-heading h2 { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -.04em; }
.dialog-heading button { min-width: 44px; min-height: 44px; padding: 0; flex-shrink: 0; }
.result-dialog p, .result-dialog li { font-size: 14px; color: var(--ink-soft); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.result-dialog h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.03em; }
.result-dialog .dialog-result-code { margin: 12px 0; color: var(--mint-deep); font-weight: 750; }
.handoff-step { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.handoff-step ol { padding-left: 22px; }
.handoff-step li + li { margin-top: 8px; }
.handoff-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.handoff-stores a, .handoff-stores span { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.handoff-stores a { color: var(--coral-deep); font-weight: 750; }
.result-dialog .handoff-note { font-size: 12px; }
.handoff-feedback { padding: 12px; border-radius: 12px; background: var(--lavender); }
.remember-result { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--mint); }
.remember-result [data-action="forget-result"] { margin-top: 8px; min-height: 44px; }
.remember-result [data-remember-status]:empty { display: none; }
.story-preview { display: block; width: min(100%, 300px); height: auto; margin: 16px auto; border-radius: 12px; border: 1px solid var(--line); }
.story-controls { display: grid; gap: 10px; }
.skin-profile-card .result-summary { margin-bottom: 20px; font-size: 15px; line-height: 1.65; }
.skin-profile-card .result-actions { align-items: center; margin-top: 24px; }
.result-store-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; min-height: 56px; gap: 4px 16px; }
.result-store-badges .store-pending { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: 13px; }
.result-store-badges .store-badge img { width: auto; height: 40px; }
.result-secondary-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.result-secondary-actions .text-button { min-height: 44px; padding: 8px 0; font-size: 13px; }
.result-feedback { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.result-feedback:empty { display: none; }
.result-details { margin-top: 24px; }
.result-details h2 { margin: 0 0 14px; font-size: 18px; }
.result-retention summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 650; }
.result-retention summary::marker { color: var(--mint-deep); }
.result-retention summary:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 3px; border-radius: 4px; }
.result-details .result-axis-title > span { max-width: 65%; }
.result-details .result-axis-poles { font-size: 11px; color: var(--ink-soft); }
.assessment-result .result-recommendations { margin: 28px 0 18px; }
.assessment-result .result-section-heading { margin-bottom: 14px; }
.assessment-result .result-section-heading h2 { font-size: 22px; }
.result-product { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; border-radius: 20px; }
.result-product .teaser-visual { aspect-ratio: auto; height: 156px; }
.result-product .teaser-copy { padding: 16px 16px 16px 4px; }
.result-product .teaser-copy h3 { min-height: 0; margin: 7px 0; font-size: 17px; }
.result-locked-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.result-locked-product { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; column-gap: 10px; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.result-locked-product img { grid-row: span 2; width: 38px; height: 48px; object-fit: contain; filter: blur(5px); }
.result-locked-product span { font-size: 13px; font-weight: 700; }
.result-locked-product small { color: var(--ink-soft); font-size: 11px; }
.assessment-result .preview-note { margin: 12px 0 0; font-size: 12px; }
.result-retention { border-top: 1px solid var(--line); color: var(--ink-soft); }
.result-retention p { font-size: 13px; }
.result-retention .text-button { min-height: 44px; margin-right: 12px; font-size: 13px; }
.result-dialog [hidden] { display: none; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 390px) { .result-dialog { padding: 20px 16px; } }

.assessment-footer {
  display: flex;
  width: min(760px, calc(100% - 48px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover, .site-footer a:hover { color: var(--coral-deep); }
  .button:hover { transform: translateY(-2px); }
  .answer-list button:hover {
    box-shadow: 0 8px 20px rgba(83, 55, 42, 0.08);
    transform: translateX(3px);
  }
}

.legal-page { background: var(--paper); }
.legal-back { color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }

.legal-main {
  width: min(760px, calc(100% - 48px));
  padding: 64px 0 120px;
}

.legal-title { margin-bottom: 70px; }
.legal-title > p:first-child { margin-bottom: 12px; color: var(--coral-deep); font-size: 14px; font-weight: 760; }
.legal-title h1, .not-found h1 { margin-bottom: 24px; font-size: clamp(38px, 6vw, 58px); font-weight: 840; letter-spacing: -0.055em; line-height: 1.18; }
.legal-title > p:last-child { max-width: 40rem; color: var(--ink-soft); }

.legal-title dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-title dl div { display: flex; gap: 8px; }
.legal-title dt { color: var(--ink-soft); }
.legal-title dd { margin: 0; font-weight: 680; }
.legal-main section { margin-top: 48px; }
.legal-main section h2 { margin-bottom: 14px; font-size: 23px; letter-spacing: -0.035em; }
.legal-main section p, .legal-main li { color: #4f4844; }
.legal-main li + li { margin-top: 8px; }
.legal-main a { color: var(--coral-deep); }

.contact-panel { padding: 28px; border-radius: 24px; background: var(--mint); }
.contact-panel .button { margin: 10px 0 14px; color: var(--ink); }
.contact-panel small { display: block; color: var(--ink-soft); }
.safety-notice { padding: 24px 28px; border-left: 5px solid var(--coral); background: var(--peach); }

.step-list { margin: 24px 0; padding: 0; list-style: none; }
.step-list li { display: flex; align-items: flex-start; gap: 14px; }
.step-list li span { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--peach); color: var(--coral-deep); font-size: 13px; font-weight: 800; }
.step-list li p { margin: 2px 0 14px; }

.legal-link-list { display: grid; gap: 2px; margin-top: 64px; border-top: 1px solid var(--line); }
.legal-link-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.legal-link-list span { color: var(--ink-soft); font-size: 13px; }

.not-found { min-height: calc(100vh - 88px); padding: 18vh 0; text-align: center; }
.not-found > p:first-child { margin-bottom: 8px; color: var(--coral-deep); font-size: 18px; font-weight: 800; }
.not-found .button { margin-top: 22px; }

@media (max-width: 820px) {
  .site-header, .site-footer, main { width: min(100% - 34px, 680px); }
  .site-header { min-height: 72px; }
  .site-nav a:not(:last-child) { display: none; }
  .privacy-section { align-items: flex-start; flex-direction: column; margin-bottom: 88px; padding-block: 52px; }
  .site-footer { grid-template-columns: 1fr; }
  .type-share-shell { width: min(100% - 34px, 680px); }
  .assessment-header, .assessment-main, .assessment-footer { width: min(100% - 34px, 680px); }
  .legal-main { width: min(100% - 34px, 680px); padding-top: 44px; }
}

@media (max-width: 480px) {
  .button { width: 100%; }
  .home-entry { min-height: calc(100svh - 72px); padding: 12px 0 40px; }
  .home-entry-mark { width: 64px; height: 64px; margin-bottom: 16px; }
  .home-entry h1 { font-size: clamp(28px, 8.2vw, 34px); }
  .home-entry-description { max-width: 310px; font-size: 15px; }
  .site-footer nav { gap: 14px 20px; }
  .type-share-shell { padding: 18px 0 72px; }
  .type-story { border-radius: 30px; }
  .type-story-hero {
    padding: 28px 24px;
  }
  .type-story-hero h1 { font-size: clamp(48px, 16vw, 60px); }
  .type-traits { grid-template-columns: 1fr; }
  .type-recommendations { padding-inline: 24px; }
  .type-actions { grid-template-columns: 1fr; padding-inline: 24px; }
  .assessment-main { min-height: calc(100vh - 138px); padding: 16px 0 54px; }
  .assessment-shell { min-height: 600px; padding: 28px 22px; border-radius: 30px; }
  .assessment-intro h1, .question-screen h1, .assessment-error h1 { font-size: 32px; }
  .assessment-intro-mark { width: 80px; height: 80px; margin-bottom: 24px; border-radius: 22px; }
  .assessment-progress { margin-bottom: 40px; }
  .question-screen h1 { min-height: 3.6em; }
  .answer-list button { min-height: 60px; }
  .skin-profile-card { padding: 26px 20px; border-radius: 28px; }
  .result-heading h1 { font-size: clamp(50px, 15vw, 60px); }
  .result-heading h2 { font-size: 24px; }
  .result-summary { margin: 16px 0 22px; font-size: 15px; }
  .result-axis-card { padding: 16px 14px; border-radius: 22px; }
  .result-axis { padding-block: 8px; }
  .result-axis-title { gap: 12px; margin-bottom: 5px; line-height: 1.35; }
  .result-axis-title strong { font-size: 14px; }
  .result-axis-title > span { font-size: 11px; }
  .result-axis-track { height: 16px; margin-bottom: 3px; }
  .result-axis-track::before, .axis-segment { top: 5px; height: 6px; }
  .axis-center { top: 1px; height: 14px; }
  .axis-marker { top: 8px; }
  .result-axis-poles { gap: 10px; }
  .result-axis-pole { line-height: 1.3; }
  .result-axis-pole strong { font-size: 11px; }
  .result-axis-pole small { font-size: 10px; }
  .result-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .recommendation-teasers {
    width: 100%;
    max-width: 100%;
    grid-template-columns: none;
    grid-auto-columns: minmax(240px, 84%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .recommendation-teaser { scroll-snap-align: start; }
  .assessment-result .button, .assessment-error .button { width: 100%; }
  .legal-title { margin-bottom: 54px; }
  .legal-title dl { display: grid; }
  .legal-link-list a { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (max-width: 360px) {
  .assessment-header, .assessment-main, .assessment-footer { width: calc(100% - 24px); }
  .assessment-header .header-label { display: none; }
  .assessment-shell { padding: 26px 18px; }
  .assessment-intro h1, .question-screen h1, .assessment-error h1 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.preview-note { margin: 10px 0 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
:root { --analytics-consent-border: #e9dfd7; }

/* Preserve HTML hidden semantics for app result recovery controls. */
[data-restore] [hidden] { display: none !important; }

.result-image-fallback { margin: 20px auto 0; max-width: 360px; }
.result-image-fallback[hidden] { display: none; }
.result-image-fallback img { display: block; width: 100%; height: auto; border-radius: 20px; }

.home-footer { flex-wrap: wrap; gap: 0 16px; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.home-footer a { display: inline-flex; min-height: 44px; align-items: center; color: inherit; }

/* Official store badges: unmodified artwork, 40px high and 1/4-height clear space. */
.result-store-badges, .type-store-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:20px; padding:10px; }
.store-badge { display:inline-flex; align-items:center; min-height:40px; text-decoration:none; flex-shrink:0; }
.store-badge img { display:block; width:auto; height:40px; }
.home-store-links { margin-top:24px; }

.app-journey { margin:24px auto; padding:20px; max-width:560px; background:var(--surface, #fff); border:1px solid #eadfd5; border-radius:20px; text-align:left; }
.app-journey h2 { margin:0 0 14px; font-size:20px; }
.app-journey ol { margin:0 0 18px; padding-left:24px; line-height:1.9; }
.app-journey strong { display:inline-block; color:var(--forest, #245e49); font-size:13px; }
.app-journey .button { display:flex; width:100%; box-sizing:border-box; justify-content:center; text-align:center; }
.home-entry [data-app-journey-slot] { width:100%; max-width:440px; }
.assessment-outcomes { display:grid; gap:10px; padding-left:20px; margin:20px auto 24px; text-align:left; max-width:250px; color:var(--ink-soft); }
.inapp-guidance { margin:16px 0; padding:14px; border-radius:12px; background:#edf4ef; color:#245e49; font-size:14px; line-height:1.6; }
.result-locked-product small { white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
