:root {
  --frame-width: 448px;
  --ink: #07090d;
  --deep: #071426;
  --deep-blue: #061f34;
  --deep-blue-pressed: #041522;
  --cta-top: #10324e;
  --cta-bottom: #061a2a;
  --line: rgba(255, 255, 255, 0.42);
  --line-soft: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --dim: rgba(0, 0, 0, 0.58);
  --moon-gold: #d8c4a2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #05070b;
}

body {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  font-family:
    "Pretendard Variable",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  display: none;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

:where(button, input, select, a):focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.field-line:focus-within {
  border-bottom-color: rgba(216, 196, 162, 0.72);
}

.primary-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.24),
    0 16px 36px rgba(0, 0, 0, 0.32);
}

.secondary-button:focus-visible,
.outline-choice:focus-visible,
.toggle-chip:focus-visible,
.quiet-toggle:focus-visible,
.back-button:focus-visible,
.brand-mark:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100vw, var(--frame-width));
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.42);
}

@media (min-width: 700px) {
  body::before,
  body::after {
    display: block;
  }

  body::before {
    inset: -34px;
    z-index: 0;
    background: url("./assets/yeongwol-doryeong-hero-mobile.jpg") center top / cover no-repeat;
    filter: blur(28px) saturate(0.88) brightness(0.52);
    transform: scale(1.04);
  }

  body::after {
    z-index: 0;
    background: rgba(3, 6, 11, 0.64);
  }
}

@media (min-width: 900px) and (min-height: 640px) {
  body {
    place-items: stretch;
  }

  .app-shell {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    background: #05070b;
    box-shadow: none;
  }

  .screen-info::before,
  .screen-reading::before,
  .screen-teaser::before,
  .screen-detail::before,
  .screen-sample::before,
  .screen-order::before,
  .screen-process::before,
  .screen-privacy::before,
  .screen-order-done::before,
  .screen-admin::before {
    background:
      linear-gradient(90deg, rgba(2, 5, 10, 0.86) 0%, rgba(2, 5, 10, 0.52) 38%, rgba(2, 5, 10, 0.22) 64%, rgba(2, 5, 10, 0.72) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.84));
  }

  body[data-step="home"] .hero-bg {
    inset: 0;
    background:
      linear-gradient(90deg, rgba(2, 5, 10, 0.82) 0%, rgba(2, 5, 10, 0.46) 34%, rgba(2, 5, 10, 0.16) 58%, rgba(2, 5, 10, 0.58) 100%),
      linear-gradient(180deg, rgba(2, 5, 10, 0.08) 0%, rgba(2, 5, 10, 0.16) 44%, rgba(2, 5, 10, 0.88) 100%),
      url("./assets/yeongwol-doryeong-hero-desktop.jpg") center center / cover no-repeat;
    transform: scale(1.01);
  }

  body[data-step="home"] .moon-sheen {
    background:
      linear-gradient(104deg, rgba(209, 226, 255, 0.2) 0%, rgba(209, 226, 255, 0) 36%),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2) 100%);
  }

  body[data-step="home"] .veil-top {
    height: 172px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  }

  body[data-step="home"] .veil-bottom {
    height: 46vh;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
  }

  body[data-step="home"] .screen-home .top-bar {
    left: max(56px, calc((100vw - 1120px) / 2));
    right: max(56px, calc((100vw - 1120px) / 2));
    padding-left: 0;
    padding-right: 0;
  }

  body[data-step="home"] .home-lockup {
    left: max(56px, calc((100vw - 1120px) / 2));
    right: auto;
    bottom: 136px;
    width: 610px;
    max-width: calc(100vw - 112px);
    text-align: left;
  }

  body[data-step="home"] .product-kicker {
    margin-bottom: 12px;
    font-size: 18px;
  }

  body[data-step="home"] .hero-title {
    font-size: 84px;
    line-height: 0.92;
  }

  body[data-step="home"] .hero-copy {
    margin-top: 18px;
    font-size: 22px;
  }

  body[data-step="home"] .bottom-actions {
    left: max(56px, calc((100vw - 1120px) / 2));
    right: auto;
    bottom: calc(env(safe-area-inset-bottom) + 64px);
    width: 360px;
    max-width: calc(100vw - 112px);
  }

  body:not([data-step="home"]) .step-header,
  body:not([data-step="home"]) .top-back,
  body:not([data-step="home"]) .speech-stack,
  body:not([data-step="home"]) .info-form,
  body:not([data-step="home"]) .teaser-panel,
  body:not([data-step="home"]) .detail-panel,
  body:not([data-step="home"]) .sample-panel,
  body:not([data-step="home"]) .order-panel,
  body:not([data-step="home"]) .process-panel,
  body:not([data-step="home"]) .privacy-panel,
  body:not([data-step="home"]) .done-panel,
  body:not([data-step="home"]) .admin-panel,
  body:not([data-step="home"]) .bottom-actions {
    --desktop-panel-left: max(72px, calc((100vw - 1120px) / 2));
    --desktop-panel-width: 430px;
  }

  body:not([data-step="home"]) .step-header {
    left: var(--desktop-panel-left);
    right: auto;
    width: var(--desktop-panel-width);
    padding-left: 0;
    padding-right: 0;
  }

  body:not([data-step="home"]) .top-back {
    left: var(--desktop-panel-left);
  }

  body:not([data-step="home"]) .speech-stack,
  body:not([data-step="home"]) .info-form,
  body:not([data-step="home"]) .teaser-panel,
  body:not([data-step="home"]) .detail-panel,
  body:not([data-step="home"]) .sample-panel,
  body:not([data-step="home"]) .order-panel,
  body:not([data-step="home"]) .process-panel,
  body:not([data-step="home"]) .privacy-panel,
  body:not([data-step="home"]) .done-panel,
  body:not([data-step="home"]) .admin-panel {
    left: var(--desktop-panel-left);
    right: auto;
    width: var(--desktop-panel-width);
  }

  body:not([data-step="home"]) .bottom-actions {
    left: var(--desktop-panel-left);
    right: auto;
    width: var(--desktop-panel-width);
  }

  body:not([data-step="home"]) .reading-panel {
    width: 480px;
    max-width: calc(100vw - 144px);
    margin: 0 auto;
  }
}

@media (min-width: 900px) and (max-width: 1080px) and (min-height: 640px) {
  body[data-step="home"] .home-lockup {
    width: 520px;
  }

  body[data-step="home"] .hero-title {
    font-size: 72px;
  }

  body[data-step="home"] .hero-copy {
    font-size: 20px;
  }
}

.hero-bg {
  position: absolute;
  inset: -16px;
  z-index: 0;
  background:
    linear-gradient(rgba(3, 8, 15, 0.06), rgba(3, 8, 15, 0.12)),
    url("./assets/yeongwol-doryeong-hero-mobile.jpg") center top / cover no-repeat;
  transform: scale(1.02);
  animation: moon-breath 18s ease-in-out infinite alternate;
  will-change: transform, filter;
}

.moon-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(209, 226, 255, 0.16) 0%, rgba(209, 226, 255, 0) 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.16) 100%);
  mix-blend-mode: screen;
  opacity: 0.58;
  animation: light-drift 16s ease-in-out infinite alternate;
}

.ink-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.36) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1.5px),
    radial-gradient(circle at 52% 16%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.5px);
  background-size:
    180px 220px,
    240px 260px,
    210px 240px;
}

.veil {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.veil-top {
  top: 0;
  height: 136px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
}

.veil-bottom {
  bottom: 0;
  height: 240px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88));
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: none;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.screen.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.top-bar,
.step-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 60px;
  padding: calc(env(safe-area-inset-top) + 16px) 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  text-decoration: none;
}

.brand-seal {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(7, 12, 18, 0.38);
  font-family: "Noto Serif KR", serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.brand-type {
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.home-lockup {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 118px;
  z-index: 4;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.product-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}

.hero-title {
  margin: 0;
  font-family: "Song Myung", "Noto Serif KR", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 0.96;
}

.hero-title span {
  display: block;
}

.hero-copy {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
}

.bottom-actions {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom) + 34px);
  z-index: 6;
  display: flex;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-width: 0;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.primary-button {
  flex: 1;
  color: var(--white);
  border: 1px solid rgba(216, 196, 162, 0.46);
  background:
    linear-gradient(90deg, rgba(216, 196, 162, 0.1), rgba(216, 196, 162, 0) 24%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, var(--cta-top) 0%, var(--deep-blue) 52%, var(--cta-bottom) 100%);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(216, 196, 162, 0.14);
}

.primary-button:active {
  background: var(--deep-blue-pressed);
}

.primary-button:disabled {
  cursor: progress;
  opacity: 0.78;
}

.secondary-button {
  flex: 0 0 82px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.split-actions .primary-button {
  flex: 1;
}

.back-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.58);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.back-button span {
  display: block;
  margin-top: -1px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.top-back {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 16px);
  left: 20px;
  z-index: 6;
}

.speech-stack {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 34%;
  z-index: 5;
  min-height: 238px;
}

.speech {
  position: absolute;
  margin: 0;
  width: min(242px, 100%);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(180deg, rgba(10, 18, 30, 0.68), rgba(5, 10, 18, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(216, 196, 162, 0.5);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.52;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.speech-a {
  left: 0;
  top: 0;
  border-radius: 12px 12px 12px 4px;
}

.speech-b {
  right: 0;
  top: 112px;
  border-radius: 12px 12px 4px 12px;
}

.screen-info::before,
.screen-reading::before,
.screen-teaser::before,
.screen-detail::before,
.screen-sample::before,
.screen-order::before,
.screen-process::before,
.screen-privacy::before,
.screen-order-done::before,
.screen-admin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.78)),
    rgba(0, 0, 0, 0.58);
}

.step-header {
  align-items: center;
  padding-top: calc(env(safe-area-inset-top) + 13px);
}

.step-header strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 40px;
}

.step-header > span {
  width: 40px;
  height: 40px;
}

.info-form {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  top: calc(env(safe-area-inset-top) + 104px);
  bottom: calc(env(safe-area-inset-bottom) + 112px);
  overflow: auto;
  padding: 2px 0 20px;
  scrollbar-width: none;
}

.info-form::-webkit-scrollbar {
  display: none;
}

.field-line {
  display: block;
  padding: 0 0 14px;
  margin: 0 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
}

.field-label {
  display: block;
  margin: 0 0 10px;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-form .field-label {
  color: rgba(216, 196, 162, 0.9);
  font-size: 15px;
}

input,
select {
  width: 100%;
  height: 32px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
  font-weight: 500;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.field-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
}

.field-note.is-warning {
  color: #f1d6b8;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--white) 50%),
    linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 13px,
    calc(100% - 8px) 13px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.76);
}

select option {
  color: #111827;
}

.inline-toggle,
.gender-options {
  display: flex;
  align-items: center;
  gap: 9px;
}

.inline-toggle {
  gap: 0;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.16);
}

.toggle-chip,
.quiet-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.inline-toggle .toggle-chip {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.inline-toggle .toggle-chip::before {
  display: none;
}

.inline-toggle .toggle-chip.is-selected {
  color: var(--white);
  background: rgba(216, 196, 162, 0.18);
}

.quiet-toggle.leap-toggle {
  display: none;
  margin-top: 10px;
}

.quiet-toggle.leap-toggle.is-visible {
  display: inline-flex;
}

.toggle-chip::before,
.check-dot {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.toggle-chip.is-selected,
.quiet-toggle.is-selected {
  color: var(--white);
}

.toggle-chip.is-selected::before,
.quiet-toggle.is-selected .check-dot {
  background:
    radial-gradient(circle at 50% 50%, var(--white) 0 3px, transparent 4px),
    rgba(255, 255, 255, 0.2);
}

.gender-field {
  margin-top: 6px;
}

.gender-options {
  gap: 12px;
}

.outline-choice {
  flex: 1;
  height: 50px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
}

.outline-choice.is-selected {
  color: var(--white);
  background: rgba(4, 51, 109, 0.64);
  border-color: rgba(255, 255, 255, 0.88);
}

.form-error {
  min-height: 22px;
  margin: 18px 0 0;
  color: #f4d7c3;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.reading-panel {
  position: absolute;
  z-index: 3;
  inset: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reading-panel h2 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
}

.reading-mark {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: reading-breathe 5.6s ease-in-out infinite;
}

.reading-mark::before,
.reading-mark::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.reading-mark::after {
  inset: 30px;
}

.reading-mark span {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95), rgba(211, 223, 244, 0.74) 42%, rgba(255, 255, 255, 0.1) 66%),
    rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 32px rgba(200, 218, 255, 0.38);
}

.reading-mark i {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  transform-origin: center;
  animation: reading-turn 5.8s ease-in-out infinite alternate;
}

.teaser-panel {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  top: calc(env(safe-area-inset-top) + 92px);
  bottom: calc(env(safe-area-inset-bottom) + 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-panel,
.sample-panel {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  top: calc(env(safe-area-inset-top) + 72px);
  bottom: calc(env(safe-area-inset-bottom) + 110px);
  overflow: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.detail-panel::-webkit-scrollbar,
.sample-panel::-webkit-scrollbar {
  display: none;
}

.detail-panel h2,
.sample-panel h2 {
  margin: 0 0 14px;
  max-width: 340px;
  font-family: "Noto Serif KR", serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
}

.teaser-panel .product-kicker,
.detail-panel .product-kicker,
.sample-panel .product-kicker,
.order-panel .product-kicker,
.process-panel .product-kicker,
.privacy-panel .product-kicker,
.done-panel .product-kicker,
.admin-panel .product-kicker {
  color: rgba(216, 196, 162, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.myeong-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 0 8px;
}

.myeong-summary div {
  min-width: 0;
  padding: 8px 4px 7px;
  border: 1px solid rgba(216, 196, 162, 0.3);
  background: rgba(216, 196, 162, 0.045);
}

.myeong-summary span,
.myeong-summary strong {
  display: block;
  text-align: center;
}

.myeong-summary span {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.myeong-summary strong {
  color: var(--white);
  font-family: "Noto Serif KR", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.reading-note {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-preview {
  border-top: 1px solid rgba(216, 196, 162, 0.34);
}

.sample-cta {
  width: 100%;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: baseline;
  margin: 14px 0 0;
  padding: 12px 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(216, 196, 162, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  text-align: left;
}

.sample-cta span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.sample-cta strong {
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.detail-preview section {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.detail-preview span {
  color: rgba(216, 196, 162, 0.78);
  font-family: "Noto Serif KR", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.detail-preview h3 {
  margin: 0 0 5px;
  color: var(--white);
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.detail-preview p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
  word-break: keep-all;
}

.sample-copy {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
}

.sample-spec {
  display: grid;
  margin: 0 0 10px;
  padding: 2px 0;
  border-top: 1px solid rgba(216, 196, 162, 0.34);
  border-bottom: 1px solid var(--line-soft);
}

.sample-spec div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sample-spec div:last-child {
  border-bottom: 0;
}

.sample-spec span,
.sample-outline span {
  color: rgba(216, 196, 162, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.sample-outline span {
  font-family: "Noto Serif KR", serif;
  font-size: 19px;
}

.sample-spec strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.sample-outline {
  border-top: 1px solid rgba(216, 196, 162, 0.3);
}

.sample-outline section {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.sample-outline h3 {
  margin: 0 0 5px;
  color: var(--white);
  font-family: "Noto Serif KR", serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
}

.sample-outline p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}

.sample-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  word-break: keep-all;
}

.order-panel,
.process-panel,
.privacy-panel,
.done-panel,
.admin-panel {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  top: calc(env(safe-area-inset-top) + 84px);
  bottom: calc(env(safe-area-inset-bottom) + 110px);
  overflow: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.order-panel::-webkit-scrollbar,
.process-panel::-webkit-scrollbar,
.privacy-panel::-webkit-scrollbar,
.done-panel::-webkit-scrollbar,
.admin-panel::-webkit-scrollbar {
  display: none;
}

.order-panel h2,
.process-panel h2,
.privacy-panel h2,
.done-panel h2,
.admin-panel h2 {
  margin: 0 0 12px;
  max-width: 340px;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
}

.order-copy,
.process-copy,
.privacy-copy,
.done-panel > p:not(.product-kicker) {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.58;
  word-break: keep-all;
}

.admin-copy {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  word-break: keep-all;
}

.order-panel .order-copy {
  margin-bottom: 14px;
}

.screen-order .order-panel h2 {
  margin-bottom: 10px;
}

.screen-order .service-offer {
  margin-bottom: 8px;
}

.screen-order .service-offer div {
  padding: 6px 0;
}

.screen-order .order-guide {
  padding: 6px 0;
}

.screen-order .process-detail-button {
  margin-bottom: 10px;
  padding: 7px 0;
}

.privacy-panel .privacy-copy {
  margin-bottom: 20px;
}

.process-panel .process-copy {
  margin-bottom: 20px;
}

.service-offer {
  display: grid;
  margin: 0 0 12px;
  padding: 2px 0;
  border-top: 1px solid rgba(216, 196, 162, 0.38);
  border-bottom: 1px solid var(--line-soft);
}

.service-offer div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.service-offer div:last-child {
  border-bottom: 0;
}

.service-offer span {
  color: rgba(216, 196, 162, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.service-offer strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.service-offer .service-price strong {
  color: rgba(255, 255, 255, 0.98);
  font-size: 20px;
  letter-spacing: 0;
}

.order-scope {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.order-scope span {
  color: rgba(216, 196, 162, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.order-scope strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.order-guide {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.order-guide + .order-guide {
  border-top: 0;
}

.order-payment {
  margin-bottom: 12px;
}

.order-guide span {
  color: rgba(216, 196, 162, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.order-guide strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.process-detail-button {
  width: 100%;
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 12px;
  padding: 9px 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  text-align: left;
}

.process-detail-button span {
  color: rgba(216, 196, 162, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.process-detail-button strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.process-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.process-list dt {
  color: rgba(216, 196, 162, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.process-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}

.process-list dd span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.process-note {
  margin: 18px 0 0;
  padding: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.56;
  word-break: keep-all;
}

.order-form .compact-field {
  margin-bottom: 12px;
}

.consent-toggle {
  margin: -4px 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
}

.order-privacy {
  margin: -2px 0 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.privacy-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: -2px 0 8px;
}

.privacy-summary .order-privacy {
  margin: 0;
}

.privacy-detail-button {
  min-height: 30px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.privacy-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.privacy-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.privacy-list dt {
  color: rgba(216, 196, 162, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.privacy-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.privacy-caution {
  margin: 18px 0 0;
  padding: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.56;
  word-break: keep-all;
}

.done-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.receipt-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
}

.receipt-summary div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: baseline;
}

.receipt-summary span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.receipt-summary strong {
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.receipt-basis {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.done-summary {
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
}

.done-summary span,
.done-summary strong {
  display: block;
}

.done-summary span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.done-summary strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  word-break: keep-all;
}

.done-summary em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.done-next {
  display: grid;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(216, 196, 162, 0.22);
}

.done-next div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
}

.done-next dt {
  color: rgba(216, 196, 162, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.done-next dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.admin-ops {
  display: grid;
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(216, 196, 162, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-ops div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
}

.admin-ops dt {
  color: rgba(216, 196, 162, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.admin-ops dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.admin-ops dd.is-ready {
  color: rgba(169, 226, 185, 0.9);
}

.admin-ops dd.needs-work {
  color: rgba(244, 215, 195, 0.9);
}

.admin-stat {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.admin-stat span,
.admin-card small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.admin-stat strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.admin-actions {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0 0;
}

.admin-export-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.admin-export-button:disabled {
  cursor: default;
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-actions span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-empty,
.admin-card {
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.16);
}

.admin-empty {
  padding: 18px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}

.admin-card {
  padding: 13px 14px;
}

.admin-card strong {
  display: block;
  margin: 3px 0 8px;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.admin-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 10px;
  margin: 0;
}

.admin-card dt {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 800;
}

.admin-card dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.admin-draft {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.admin-draft > span {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.admin-draft p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}

.admin-draft-actions {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.admin-copy-button {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-copy-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.admin-sync-actions {
  margin-top: 10px;
}

.admin-draft-actions small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}

.teaser-panel h2 {
  margin: 0 0 18px;
  max-width: 360px;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.28;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.58);
  word-break: keep-all;
}

.teaser-panel h2 span {
  display: block;
}

.fortune-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.fortune-keys li {
  min-width: 58px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 800;
}

.result-basis {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.insight-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.insight-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.insight-row dt {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.insight-row dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.58;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.screen.is-active .home-lockup,
.screen.is-active .bottom-actions,
.screen.is-active .speech,
.screen.is-active .info-form,
.screen.is-active .reading-panel,
.screen.is-active .teaser-panel,
.screen.is-active .detail-panel,
.screen.is-active .sample-panel,
.screen.is-active .order-panel,
.screen.is-active .process-panel,
.screen.is-active .privacy-panel,
.screen.is-active .done-panel,
.screen.is-active .admin-panel {
  animation: quiet-rise 720ms ease both;
}

.screen.is-active .bottom-actions {
  animation-delay: 120ms;
}

.screen.is-active .speech-b {
  animation-delay: 140ms;
}

@keyframes moon-breath {
  from {
    transform: scale(1.015) translateY(0);
    filter: brightness(0.96) saturate(0.96);
  }
  to {
    transform: scale(1.055) translateY(-10px);
    filter: brightness(1.05) saturate(1.02);
  }
}

@keyframes light-drift {
  from {
    opacity: 0.56;
    transform: translateX(-8px);
  }
  to {
    opacity: 0.82;
    transform: translateX(8px);
  }
}

@keyframes reading-turn {
  from {
    opacity: 0.28;
    transform: rotate(-18deg);
  }
  to {
    opacity: 0.68;
    transform: rotate(18deg);
  }
}

@keyframes reading-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(216, 196, 162, 0);
    opacity: 0.92;
  }
  50% {
    box-shadow: 0 0 28px rgba(216, 196, 162, 0.14);
    opacity: 1;
  }
}

@keyframes quiet-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 700px) {
  .home-lockup {
    bottom: 102px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-copy {
    margin-top: 10px;
    font-size: 18px;
  }

  .speech-stack {
    top: 32%;
  }

  .speech {
    width: min(232px, 100%);
    min-height: 0;
    padding: 14px 16px;
    font-size: 16px;
  }

  .speech-b {
    top: 104px;
  }

  .info-form {
    top: calc(env(safe-area-inset-top) + 86px);
  }

  .field-line {
    margin-bottom: 21px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 56px;
  }

  .primary-button,
  .secondary-button {
    font-size: 17px;
  }

  .speech-stack {
    left: 20px;
    right: 20px;
  }

  .speech {
    width: min(228px, 100%);
    font-size: 16px;
  }

  .insight-row {
    gap: 5px;
  }
}

@media (max-width: 340px) {
  .order-panel,
  .process-panel,
  .privacy-panel,
  .done-panel,
  .admin-panel {
    left: 18px;
    right: 18px;
    top: calc(env(safe-area-inset-top) + 78px);
  }

  .order-panel h2,
  .process-panel h2,
  .privacy-panel h2,
  .done-panel h2,
  .admin-panel h2 {
    margin-bottom: 10px;
    font-size: 27px;
    line-height: 1.25;
  }

  .order-copy,
  .process-copy,
  .privacy-copy,
  .done-panel > p:not(.product-kicker) {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.52;
  }

  .service-offer,
  .order-scope {
    margin-bottom: 10px;
  }

  .service-offer div,
  .order-guide,
  .order-scope,
  .privacy-list div,
  .process-list div {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .process-detail-button {
    margin-bottom: 8px;
    padding: 7px 0;
  }

  .field-line.compact-field {
    margin-bottom: 9px;
  }

  .screen-order .product-kicker {
    margin-bottom: 8px;
  }

  .screen-order .order-copy {
    display: none;
  }

  .screen-order .service-offer div {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .screen-order .service-offer span,
  .screen-order .order-guide span,
  .screen-order .process-detail-button span {
    font-size: 12px;
  }

  .screen-order .service-offer strong,
  .screen-order .order-guide strong,
  .screen-order .process-detail-button strong {
    font-size: 13px;
    line-height: 1.38;
  }

  .screen-order .service-offer .service-price strong {
    font-size: 18px;
  }

  .screen-order .order-guide {
    grid-template-columns: 66px 1fr;
    gap: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .screen-order .process-detail-button {
    display: none;
  }

  .screen-order .privacy-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .screen-order .privacy-detail-button {
    justify-self: start;
    min-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Final platform redesign: locked by QUALITY_RULES.md */
:root {
  --frame-width: 390px;
  --app-paper: #f7f5f1;
  --app-paper-2: #ffffff;
  --app-ink: #111318;
  --app-muted: #6c7078;
  --app-line: #e4e0d8;
  --app-blue: #1358ac;
  --app-blue-pressed: #0f4b94;
  --app-navy: #101924;
  --app-red: #d63c28;
  --app-gold: #d9c39a;
  --app-radius: 8px;
  --app-shadow: 0 8px 24px rgba(17, 19, 24, 0.08);
}

html,
body {
  background: #ebe8e2;
}

body {
  color: var(--app-ink);
}

body::before {
  background: linear-gradient(135deg, #f1eee7 0%, #ddd7cc 100%) !important;
  filter: none !important;
  transform: none !important;
}

body::after {
  background: rgba(255, 255, 255, 0.2) !important;
}

.app-shell {
  width: min(100vw, var(--frame-width));
  max-width: var(--frame-width);
  height: 100dvh;
  background: var(--app-paper);
  color: var(--app-ink);
  box-shadow:
    0 0 0 1px rgba(17, 19, 24, 0.08),
    0 28px 60px rgba(17, 19, 24, 0.14);
}

.hero-bg,
.moon-sheen,
.ink-texture,
.veil {
  display: none;
}

.screen {
  color: var(--app-ink);
  background: var(--app-paper);
}

.screen-home {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.screen-home::-webkit-scrollbar,
.premium-report::-webkit-scrollbar,
.detail-panel::-webkit-scrollbar,
.info-form::-webkit-scrollbar {
  display: none;
}

.home-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: calc(10px + env(safe-area-inset-top)) 28px 8px;
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(12px);
}

.brand-mark-light {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--app-ink);
  text-decoration: none;
}

.brand-mark-light .brand-seal {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--app-red);
  color: #fff8ef;
  font-family: "Noto Serif KR", serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark-light .brand-type {
  color: var(--app-ink);
  font-family: "Noto Serif KR", serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
}

.menu-button {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #16191f;
}

.category-tabs {
  position: sticky;
  top: calc(62px + env(safe-area-inset-top));
  z-index: 18;
  display: flex;
  gap: 27px;
  align-items: center;
  min-height: 44px;
  padding: 0 28px;
  overflow-x: auto;
  background: rgba(247, 245, 241, 0.96);
  border-bottom: 1px solid rgba(17, 19, 24, 0.08);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0;
  background: transparent;
  color: #5f636b;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}

.category-tab.is-active {
  color: #111318;
}

.category-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #111318;
}

.home-feed {
  display: grid;
  gap: 28px;
  padding: 16px 28px 0;
}

.feature-section {
  display: grid;
  gap: 12px;
}

.product-hero-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 405px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--app-navy);
  text-align: left;
  box-shadow: var(--app-shadow);
}

.hero-card-bg,
.product-image,
.report-cover-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/yeongwol-doryeong-hero-mobile.jpg");
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-card-bg {
  background-position: 50% 17%;
  transform: scale(1.02);
}

.hero-card-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.06) 0%, rgba(10, 16, 28, 0.16) 45%, rgba(8, 12, 18, 0.86) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.25), rgba(5, 10, 18, 0));
}

.ranking-badge {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 50px;
  background: #17356c;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.hero-card-copy {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 28px;
  display: grid;
  justify-items: center;
  padding: 0 18px;
  text-align: center;
}

.hero-title-small {
  margin-bottom: 4px;
  color: #edf6ff;
  font-family: "Noto Serif KR", serif;
  font-size: 23px;
  font-weight: 900;
  text-shadow:
    0 1px 0 rgba(6, 12, 20, 0.5),
    0 8px 18px rgba(0, 0, 0, 0.34);
}

.hero-title-art {
  display: block;
  margin: 0;
  color: #f6fbff;
  font-family: "Noto Serif KR", "Song Myung", serif;
  font-size: clamp(52px, 16vw, 66px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  -webkit-text-stroke: 0.6px rgba(12, 22, 34, 0.58);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.52),
    0 3px 0 rgba(14, 27, 45, 0.3),
    0 10px 18px rgba(0, 0, 0, 0.52),
    12px 0 24px rgba(52, 137, 255, 0.42);
}

.hero-title-art span {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 46%, #dceaff 72%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card-caption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 13px;
  height: 18px;
  align-items: center;
}

.carousel-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d4d1cc;
}

.carousel-dots .is-active {
  background: #15181d;
}

.home-section {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading h2 {
  margin: 0;
  color: #111318;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.section-heading a {
  color: #7b8089;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--app-ink);
}

.product-card .product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  overflow: hidden;
  border-radius: var(--app-radius);
  background-color: #18202d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.product-card .product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(10, 14, 20, 0.74) 100%),
    linear-gradient(135deg, rgba(214, 60, 40, 0.1), rgba(19, 88, 172, 0.2));
}

.card-love .product-image {
  background-position: 52% 20%;
  filter: hue-rotate(330deg) saturate(0.96) brightness(1.08);
}

.card-reunion .product-image {
  background-position: 58% 10%;
  filter: hue-rotate(18deg) saturate(0.85) brightness(0.98);
}

.card-temptation .product-image {
  background-position: 47% 33%;
  filter: saturate(1.16) contrast(1.05);
}

.card-chemistry .product-image {
  background-position: 54% 47%;
  filter: hue-rotate(8deg) saturate(1.08) brightness(0.9);
}

.product-card-title {
  color: #15181e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.product-card-copy {
  color: #6c7078;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.magazine-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.magazine-card {
  display: grid;
  align-content: end;
  min-height: 118px;
  padding: 14px;
  border-radius: var(--app-radius);
  background:
    linear-gradient(180deg, rgba(16, 25, 36, 0.05), rgba(16, 25, 36, 0.76)),
    url("./assets/yeongwol-doryeong-hero-desktop.jpg") 50% 22% / cover no-repeat;
  color: #fff;
  text-decoration: none;
}

.magazine-card:nth-child(2) {
  background-position: 55% 35%;
  filter: saturate(0.95);
}

.magazine-number {
  margin-bottom: 24px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.magazine-card strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.magazine-card span:last-child {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.editorial-list {
  display: grid;
  gap: 8px;
}

.editorial-list button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--app-line);
  background: transparent;
  color: var(--app-ink);
  text-align: left;
}

.editorial-list span {
  grid-row: span 2;
  color: var(--app-blue);
  font-size: 13px;
  font-weight: 900;
}

.screen-teaser .teaser-panel .fortune-keys li {
  border-color: rgba(19, 88, 172, 0.18);
  background: rgba(19, 88, 172, 0.07);
  color: var(--app-blue);
}

.editorial-list strong {
  font-size: 15px;
  font-weight: 900;
}

.editorial-list em {
  color: var(--app-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.bottom-nav {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: env(safe-area-inset-bottom);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 64px;
  padding: 6px 6px 7px;
  border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -10px 30px rgba(24, 29, 39, 0.1);
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #555b65;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav span {
  color: inherit;
  font-size: 17px;
  line-height: 1;
}

.bottom-nav .is-active {
  color: #111318;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  border-radius: var(--app-radius);
  font-size: 16px;
  font-weight: 800;
  box-shadow: none;
}

.primary-button {
  background: var(--app-blue);
  color: #fff;
}

.primary-button:active {
  background: var(--app-blue-pressed);
}

.secondary-button {
  background: #ebe8e2;
  color: #262a31;
}

.screen-intro,
.screen-info,
.screen-teaser {
  background: var(--app-paper);
}

.screen-intro::before,
.screen-info::before,
.screen-teaser::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 241, 0.9)),
    url("./assets/yeongwol-doryeong-hero-mobile.jpg") center 12% / cover no-repeat;
  filter: none;
}

.screen-intro::after,
.screen-info::after,
.screen-teaser::after {
  display: none;
}

.top-back,
.step-header {
  color: var(--app-ink);
}

.back-button {
  color: var(--app-ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 19, 24, 0.08);
}

.product-intro {
  top: auto;
  bottom: calc(128px + env(safe-area-inset-bottom));
  gap: 12px;
  color: var(--app-ink);
}

.product-intro .product-kicker {
  color: var(--app-blue);
  font-size: 13px;
  font-weight: 900;
}

.product-intro h2 {
  margin: 0;
  color: var(--app-ink);
  font-family: "Noto Serif KR", serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.18;
}

.product-intro .speech {
  border: 1px solid rgba(17, 19, 24, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: #30343b;
  box-shadow: 0 8px 20px rgba(17, 19, 24, 0.07);
}

.info-form,
.teaser-panel {
  color: var(--app-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(17, 19, 24, 0.08);
}

.teaser-panel {
  position: absolute;
  top: 76px;
  left: 20px;
  right: 20px;
  bottom: calc(102px + env(safe-area-inset-bottom));
  width: auto;
  max-width: none;
  display: block;
  padding: 22px 20px 24px;
  overflow-y: auto;
  scrollbar-width: none;
}

.teaser-panel::-webkit-scrollbar {
  display: none;
}

.teaser-panel h2 {
  margin: 8px 0 18px;
  color: var(--app-ink);
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  line-height: 1.24;
  text-shadow: none;
}

.screen-teaser .teaser-panel h2 {
  color: var(--app-ink);
  text-shadow: none;
}

.fortune-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.fortune-keys li {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(19, 88, 172, 0.18);
  border-radius: 999px;
  background: rgba(19, 88, 172, 0.07);
  color: var(--app-blue);
  font-size: 13px;
  font-weight: 900;
}

.result-basis {
  margin: 0 0 18px;
  color: #747982;
  font-size: 12px;
  font-weight: 700;
}

.insight-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--app-line);
}

.insight-row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--app-line);
}

.insight-row dt {
  color: #141820;
  font-size: 14px;
  font-weight: 900;
}

.insight-row dd {
  margin: 0;
  color: #4f5661;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: 14px;
  line-height: 1.7;
}

.screen-teaser .teaser-panel .insight-row dt {
  color: #141820;
}

.screen-teaser .teaser-panel .insight-row dd {
  color: #4f5661;
}

.field-line {
  border-bottom-color: #d9d5cc;
}

.field-label,
.field-note,
.quiet-toggle,
.teaser-panel .product-kicker,
.result-basis,
.reading-note {
  color: var(--app-muted);
}

.field-line input,
.field-line select {
  color: var(--app-ink);
}

.field-line input::placeholder {
  color: #a0a3aa;
}

.toggle-chip,
.outline-choice {
  color: var(--app-muted);
  border-color: #d7d2c8;
}

.toggle-chip.is-selected,
.outline-choice.is-selected,
.quiet-toggle.is-selected {
  border-color: var(--app-blue);
  background: rgba(19, 88, 172, 0.08);
  color: var(--app-blue);
}

.screen-reading {
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.16), rgba(6, 10, 18, 0.88)),
    url("./assets/yeongwol-doryeong-hero-mobile.jpg") center 16% / cover no-repeat;
}

.screen-detail {
  background: #0d1119;
  color: #f8fbff;
}

.screen-detail::before {
  background: #0d1119;
}

.premium-report {
  inset: 72px 0 84px;
  width: 100%;
  max-width: none;
  padding: 0 0 40px;
  overflow-y: auto;
  color: #f8fbff;
  background: #0d1119;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report-cover {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #101924;
}

.report-cover-bg {
  background-position: 50% 13%;
  transform: scale(1.02);
}

.report-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 17, 25, 0.03) 0%, rgba(13, 17, 25, 0.18) 42%, rgba(13, 17, 25, 0.94) 100%),
    linear-gradient(90deg, rgba(13, 17, 25, 0.36), rgba(13, 17, 25, 0.04), rgba(13, 17, 25, 0.36));
}

.report-cover-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 34px;
}

.report-cover-copy .product-kicker {
  color: var(--app-gold);
  font-size: 13px;
  font-weight: 900;
}

.report-cover-copy h2 {
  margin: 8px 0 14px;
  color: #f8fbff;
  font-family: "Noto Serif KR", serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
}

.report-cover-copy p:last-child {
  margin: 0;
  color: rgba(248, 251, 255, 0.78);
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: 15px;
  line-height: 1.75;
}

.report-myeong {
  margin: -18px 24px 0;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.report-myeong span {
  color: #747982;
}

.report-myeong strong {
  color: #111318;
}

.report-note {
  margin: 14px 28px 8px;
  color: rgba(248, 251, 255, 0.62);
}

.report-chapters {
  display: grid;
  gap: 16px;
  padding: 8px 22px 22px;
}

.report-chapter {
  position: relative;
  overflow: hidden;
  min-height: 258px;
  padding: 26px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 82% 8%, rgba(83, 143, 219, 0.3), rgba(83, 143, 219, 0) 36%),
    #121824;
}

.report-chapter::before {
  content: "";
  position: absolute;
  inset: auto -10% -24% 34%;
  height: 150px;
  background: linear-gradient(90deg, rgba(217, 195, 154, 0), rgba(217, 195, 154, 0.16));
  transform: rotate(-9deg);
}

.report-chapter span {
  display: block;
  margin-bottom: 28px;
  color: rgba(217, 195, 154, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.report-chapter h3 {
  position: relative;
  margin: 0 0 13px;
  color: #fff;
  font-family: "Noto Serif KR", serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.25;
}

.report-chapter p {
  position: relative;
  margin: 0;
  color: rgba(248, 251, 255, 0.79);
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: 15px;
  line-height: 1.78;
}

.report-chapter strong {
  color: #fff;
}

.report-ending {
  display: grid;
  gap: 8px;
  margin: 6px 22px 22px;
  padding: 22px;
  border: 1px solid rgba(217, 195, 154, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.report-ending span {
  color: var(--app-gold);
  font-size: 11px;
  font-weight: 900;
}

.report-ending strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.report-ending p {
  margin: 0;
  color: rgba(248, 251, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

body[data-step="detail"] .bottom-actions {
  background: linear-gradient(180deg, rgba(13, 17, 25, 0), rgba(13, 17, 25, 0.96) 22%);
}

body[data-step="detail"] .secondary-button {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
}

@media (min-width: 900px) and (min-height: 640px) {
  body {
    place-items: center;
  }

  .app-shell {
    width: min(100vw, var(--frame-width));
    max-width: var(--frame-width);
    height: min(100dvh, 860px);
    background: var(--app-paper);
    box-shadow:
      0 0 0 1px rgba(17, 19, 24, 0.08),
      0 28px 70px rgba(17, 19, 24, 0.22);
  }

  body[data-step="home"] .screen-home .top-bar,
  body[data-step="home"] .home-lockup,
  body[data-step="home"] .bottom-actions {
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
  }

  body[data-step="home"] .hero-title {
    font-size: clamp(52px, 16vw, 66px);
  }

  body:not([data-step="home"]) .step-header,
  body:not([data-step="home"]) .top-back,
  body:not([data-step="home"]) .speech-stack,
  body:not([data-step="home"]) .info-form,
  body:not([data-step="home"]) .teaser-panel,
  body:not([data-step="home"]) .detail-panel,
  body:not([data-step="home"]) .sample-panel,
  body:not([data-step="home"]) .order-panel,
  body:not([data-step="home"]) .process-panel,
  body:not([data-step="home"]) .privacy-panel,
  body:not([data-step="home"]) .done-panel,
  body:not([data-step="home"]) .admin-panel,
  body:not([data-step="home"]) .bottom-actions {
    --desktop-panel-left: 24px;
    --desktop-panel-width: calc(var(--frame-width) - 48px);
  }

  body:not([data-step="home"]) .step-header {
    left: 24px;
    width: calc(var(--frame-width) - 48px);
  }
}

@media (max-width: 374px) {
  .home-app-header,
  .category-tabs,
  .home-feed {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bottom-nav {
    left: 20px;
    right: 20px;
  }

  .product-hero-card {
    min-height: 386px;
  }

  .hero-title-art {
    font-size: 50px;
  }
}

.screen-teaser .teaser-panel .fortune-keys li {
  border-color: rgba(19, 88, 172, 0.18) !important;
  background: rgba(19, 88, 172, 0.07) !important;
  color: var(--app-blue) !important;
}

.screen-teaser .teaser-panel .insight-row dt {
  color: #141820 !important;
}

.screen-teaser .teaser-panel .insight-row dd {
  color: #4f5661 !important;
}

body[data-step="teaser"] .screen-teaser .teaser-panel {
  color: var(--app-ink) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

body[data-step="teaser"] .screen-teaser .teaser-panel :where(h2, h2 span) {
  color: var(--app-ink) !important;
  text-shadow: none !important;
}

body[data-step="teaser"] .screen-teaser .teaser-panel .product-kicker,
body[data-step="teaser"] .screen-teaser .teaser-panel .result-basis {
  color: #747982 !important;
}

body[data-step="teaser"] .screen-teaser .teaser-panel .fortune-keys li {
  border-color: rgba(19, 88, 172, 0.18) !important;
  background: rgba(19, 88, 172, 0.07) !important;
  color: var(--app-blue) !important;
}

body[data-step="teaser"] .screen-teaser .teaser-panel .insight-row dt {
  color: #141820 !important;
}

body[data-step="teaser"] .screen-teaser .teaser-panel .insight-row dd {
  color: #4f5661 !important;
}

/* Final completion pass: image-led home, intro, and full report */
:root {
  --frame-width: 390px;
  --app-paper: #f7f5f1;
  --app-paper-2: #ffffff;
  --app-ink: #111318;
  --app-muted: #626872;
  --app-line: #e5e0d7;
  --app-blue: #1358ac;
  --app-blue-pressed: #0f4b94;
  --app-navy: #101924;
  --app-gold: #d9c39a;
  --app-red: #d63c28;
  --app-radius: 8px;
  --app-shadow: 0 8px 24px rgba(17, 19, 24, 0.08);
}

body {
  background: #ebe8e2;
  color: var(--app-ink);
}

.app-shell {
  width: min(100vw, var(--frame-width));
  max-width: var(--frame-width);
  background: var(--app-paper);
}

@media (min-width: 900px) and (min-height: 640px) {
  body {
    place-items: center;
  }

  .app-shell {
    width: min(100vw, var(--frame-width));
    max-width: var(--frame-width);
    background: var(--app-paper);
    box-shadow:
      0 0 0 1px rgba(17, 19, 24, 0.08),
      0 28px 60px rgba(17, 19, 24, 0.14);
  }
}

.home-app-header {
  min-height: 60px;
  padding: calc(10px + env(safe-area-inset-top)) 26px 8px;
  background: rgba(247, 245, 241, 0.96);
  backdrop-filter: blur(10px);
}

.brand-mark-light .brand-seal {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-family: "Noto Serif KR", serif;
  font-size: 12px;
}

.brand-mark-light .brand-type {
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 18px;
  font-weight: 900;
}

.category-tabs {
  top: calc(60px + env(safe-area-inset-top));
  gap: 25px;
  min-height: 42px;
  padding: 0 26px;
  background: rgba(247, 245, 241, 0.98);
}

.category-tab {
  min-height: 40px;
  font-size: 13px;
  font-weight: 800;
}

.home-feed {
  gap: 26px;
  padding: 15px 26px 0;
}

.product-hero-card {
  min-height: 405px;
  border-radius: 10px;
  background: #101924;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.12);
}

.hero-card-bg {
  background-image: url("./assets/production/home-hero-390x844.webp");
  background-size: 100% auto;
  background-position: center -98px;
  transform: none;
}

.hero-card-shade {
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0) 0%, rgba(8, 14, 24, 0.12) 45%, rgba(6, 10, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(7, 12, 20, 0.2), rgba(7, 12, 20, 0));
}

.ranking-badge {
  right: 11px;
  width: 34px;
  height: 50px;
  background: #143574;
  font-size: 10px;
}

.hero-card-copy {
  bottom: 24px;
  padding: 0 16px;
}

.hero-title-small {
  margin-bottom: 4px;
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 23px;
  font-weight: 900;
  color: #f2f8ff;
  text-shadow:
    0 1px 0 rgba(4, 10, 18, 0.64),
    0 8px 18px rgba(0, 0, 0, 0.34);
}

.hero-title-art {
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: clamp(56px, 15.4vw, 62px);
  font-weight: 900;
  line-height: 0.98;
  -webkit-text-stroke: 0.35px rgba(11, 22, 36, 0.56);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 17px rgba(0, 0, 0, 0.5),
    8px 0 18px rgba(68, 140, 255, 0.28);
}

.hero-title-art span {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 48%, #d9e7ff 78%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-card-caption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.section-heading h2 {
  font-family: "Pretendard Variable", "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 900;
}

.product-card-title {
  font-family: "Pretendard Variable", "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.product-card .product-image {
  border-radius: 8px;
  box-shadow: none;
}

.primary-button {
  min-height: 56px;
  border-radius: 8px;
  background: var(--app-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: none;
}

.primary-button:active {
  background: var(--app-blue-pressed);
}

.secondary-button {
  min-height: 56px;
  border-radius: 8px;
  background: #ebe8e2;
  color: #262a31;
  box-shadow: none;
}

.screen-intro {
  background: var(--app-paper);
}

.screen-intro.is-active {
  overflow-y: auto;
}

.screen-intro::before,
.screen-intro::after {
  display: none;
}

.intro-layout {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(76px + env(safe-area-inset-top)) 20px calc(112px + env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
}

.intro-layout::-webkit-scrollbar {
  display: none;
}

.intro-visual-card {
  position: relative;
  flex: 0 0 auto;
  height: 386px;
  overflow: hidden;
  border-radius: 14px;
  background: #101924;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.12);
}

.intro-hero-image {
  position: absolute;
  inset: 0;
  background-image: url("./assets/production/intro-hero-390x844.webp");
  background-size: 100% auto;
  background-position: center -70px;
  background-repeat: no-repeat;
}

.product-intro {
  position: static;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  display: grid;
  gap: 8px;
  min-height: 0;
  color: var(--app-ink);
}

.product-intro .product-kicker {
  margin: 0;
  color: var(--app-blue);
  font-size: 13px;
  font-weight: 900;
}

.product-intro h2 {
  margin: 0 0 3px;
  color: var(--app-ink);
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
  word-break: keep-all;
}

.product-intro .speech {
  position: static;
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #303741;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.06);
  transform: none;
}

.intro-actions {
  left: 20px;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: block;
  z-index: 8;
  padding: 0;
}

.intro-actions .primary-button {
  width: 100%;
}

.screen-detail,
.screen-detail::before {
  background: var(--app-paper);
  color: var(--app-ink);
}

.screen-detail .step-header {
  background: rgba(247, 245, 241, 0.96);
}

.premium-report {
  inset: 64px 0 78px;
  width: 100%;
  max-width: none;
  padding: 0 0 34px;
  overflow-y: auto;
  color: var(--app-ink);
  background: var(--app-paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report-cover {
  min-height: 526px;
  background: #101924;
}

.report-cover-bg {
  background-image: url("./assets/production/intro-hero-390x844.webp");
  background-size: 100% auto;
  background-position: center -70px;
  transform: none;
}

.report-cover-shade {
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.12) 42%, rgba(7, 11, 18, 0.9) 100%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.24), rgba(7, 11, 18, 0.04), rgba(7, 11, 18, 0.24));
}

.report-cover-copy {
  left: 26px;
  right: 26px;
  bottom: 30px;
}

.report-cover-copy .product-kicker {
  color: #e4cf9f;
  font-size: 13px;
}

.report-cover-copy h2 {
  max-width: 330px;
  color: #fff;
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 35px;
  font-weight: 900;
  line-height: 1.12;
}

.report-cover-copy p:last-child {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.report-status,
.report-summary-card {
  display: grid;
  gap: 8px;
  margin: 18px 20px 0;
  padding: 18px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.report-status span,
.report-section-kicker {
  margin: 0;
  color: var(--app-blue);
  font-size: 12px;
  font-weight: 900;
}

.report-status strong,
.report-summary-card h3 {
  margin: 0;
  color: var(--app-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.report-status p,
.report-summary-card p {
  margin: 0;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.report-myeong {
  margin: 16px 20px 0;
  border-radius: 10px;
  box-shadow: none;
}

.report-note {
  margin: 12px 22px 0;
  color: var(--app-muted);
}

.element-bars {
  display: grid;
  gap: 9px;
}

.element-bar {
  display: grid;
  grid-template-columns: 26px 1fr 42px;
  gap: 10px;
  align-items: center;
  color: var(--app-ink);
  font-size: 12px;
  font-weight: 900;
}

.element-bar i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8df;
}

.element-bar i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: #1358ac;
}

.element-bar strong {
  color: var(--app-muted);
  text-align: right;
}

.report-chapters {
  display: grid;
  gap: 16px;
  padding: 18px 20px 22px;
}

.report-chapter {
  min-height: 356px;
  padding: 26px 22px 24px;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 248, 243, 0.96)),
    radial-gradient(circle at 86% 0%, rgba(19, 88, 172, 0.08), rgba(19, 88, 172, 0) 34%);
  box-shadow: none;
}

.report-chapter::before {
  inset: auto -18% -24% 36%;
  height: 160px;
  background: linear-gradient(90deg, rgba(217, 195, 154, 0), rgba(217, 195, 154, 0.22));
}

.report-chapter span {
  margin-bottom: 44px;
  color: var(--app-blue);
  font-size: 12px;
  font-weight: 900;
}

.report-chapter[data-access="premium"] span {
  color: #8b6a29;
}

.report-chapter h3 {
  color: var(--app-ink);
  font-family: "Noto Serif KR", "Gowun Batang", serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.25;
}

.report-chapter p {
  color: #343a44;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: 16px;
  line-height: 1.78;
}

.report-ending {
  margin: 0 20px 20px;
  border: 1px solid rgba(19, 88, 172, 0.14);
  border-radius: 10px;
  background: #ffffff;
}

.report-ending span {
  color: var(--app-blue);
}

.report-ending strong {
  color: var(--app-ink);
}

.report-ending p {
  color: var(--app-muted);
}

.report-toc-button {
  position: absolute;
  right: 20px;
  bottom: calc(94px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #111318;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.18);
}

.report-toc-drawer {
  position: absolute;
  inset: 0;
  z-index: 50;
}

.report-toc-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 19, 24, 0.28);
}

.report-toc-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74dvh;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  box-shadow: 0 -18px 44px rgba(17, 19, 24, 0.18);
}

.report-toc-sheet > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--app-ink);
  font-size: 17px;
  font-weight: 900;
}

.report-toc-list {
  display: grid;
}

.report-toc-list button {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border-top: 1px solid var(--app-line);
  background: transparent;
  color: var(--app-ink);
  text-align: left;
}

.report-toc-list span {
  color: var(--app-blue);
  font-size: 12px;
  font-weight: 900;
}

.report-toc-list strong {
  font-size: 14px;
  font-weight: 900;
}

.report-toc-list em {
  color: var(--app-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

body[data-step="detail"] .bottom-actions {
  background: linear-gradient(180deg, rgba(247, 245, 241, 0), rgba(247, 245, 241, 0.96) 22%);
}

body[data-step="detail"] .secondary-button {
  background: #ebe8e2;
  color: #262a31;
}

/* GPTS home screen lock: the home UI is reproduced from the approved GPTS screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-step="home"] .hero-bg,
body[data-step="home"] .moon-sheen,
body[data-step="home"] .ink-texture,
body[data-step="home"] .veil {
  display: none;
}

.screen-home {
  padding: 0;
  background: #fff;
}

.screen-home.is-active {
  overflow-y: auto;
  scrollbar-width: none;
}

.screen-home.is-active::-webkit-scrollbar {
  display: none;
}

.gpts-home-stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: visible;
  background: #fff;
}

.coded-home {
  flex: 0 0 auto;
  min-height: 100dvh;
  padding: 14px 13px 92px;
  background: #fff;
}

.coded-home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 52px;
}

.coded-home-logo {
  display: block;
  width: 63px;
  height: 52px;
}

.coded-home-logo img {
  display: block;
  width: 63px;
  height: 52px;
  object-fit: contain;
  object-position: left top;
}

.coded-menu-button {
  display: grid;
  gap: 5px;
  align-content: center;
  justify-items: end;
  width: 44px;
  height: 44px;
  margin-top: 12px;
  background: transparent;
}

.coded-menu-button span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #121b31;
}

.coded-pill-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.coded-pill-tabs button {
  flex: 0 0 58px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f3f5 0%, #ececef 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.coded-pill-tabs button:first-child,
.coded-pill-tabs button:nth-child(2) {
  flex-basis: 74px;
}

.coded-pill-tabs button.is-active {
  background: #121a30;
  box-shadow: 0 8px 18px rgba(18, 26, 48, 0.16);
}

.coded-home-feed {
  display: grid;
  gap: 17px;
}

.coded-hero-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 13px;
  background: #101924;
  box-shadow: none;
}

.coded-hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

.coded-recommend-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.coded-heart-dot,
.coded-arrow-dot {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
}

.coded-heart-dot {
  background: #f7e1e7;
}

.coded-heart-dot svg {
  width: 20px;
  height: 20px;
  fill: #d76083;
}

.coded-arrow-dot {
  justify-self: end;
  background: #f4f5f8;
}

.coded-arrow-dot svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #121b31;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coded-row-copy {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.coded-row-copy i,
.coded-card-copy i {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #eff0f3, #e6e6ea);
}

.coded-row-copy i:first-child {
  width: 84px;
  height: 11px;
}

.coded-row-copy i:last-child {
  width: 150px;
  height: 10px;
}

.coded-product-list {
  display: grid;
  gap: 12px;
}

.coded-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 136px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 103px;
  padding: 9px 18px 9px 11px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 2px 12px rgba(18, 22, 30, 0.07),
    inset 0 0 0 1px rgba(18, 22, 30, 0.05);
}

.coded-product-card img {
  display: block;
  width: 136px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.coded-card-copy {
  display: grid;
  gap: 9px;
  align-content: center;
}

.coded-card-copy i:first-child {
  width: 43px;
  height: 16px;
}

.coded-card-copy i:nth-child(2) {
  width: 144px;
  height: 10px;
}

.coded-card-copy i:nth-child(3) {
  width: 105px;
  height: 10px;
}

.coded-card-copy .tone-pink {
  background: linear-gradient(90deg, #efbed0, #f6d9e2);
}

.coded-card-copy .tone-lavender {
  background: linear-gradient(90deg, #c9aee7, #dfc9f2);
}

.coded-card-heart {
  align-self: start;
  justify-self: end;
  margin-top: 18px;
}

.coded-card-heart svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #b8bbc3;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coded-home {
  padding-bottom: 112px;
}

.coded-pill-tabs {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.coded-pill-tabs::-webkit-scrollbar {
  display: none;
}

.coded-pill-tabs button {
  flex: 0 0 auto;
  min-width: 58px;
  height: 30px;
  padding: 0 17px;
  color: #606572;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  background: #f2f2f4;
}

.coded-pill-tabs button:first-child,
.coded-pill-tabs button:nth-child(2) {
  flex-basis: auto;
}

.coded-pill-tabs button.is-active,
.coded-pill-tabs button.is-selected {
  color: #ffffff;
  background: #111a30;
}

.coded-recommend-row {
  min-height: 52px;
}

.coded-row-copy {
  min-width: 0;
  color: #111827;
}

.coded-row-copy strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coded-row-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #8b909b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coded-feed-section {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.coded-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.coded-section-head p {
  margin: 0 0 4px;
  color: #111827;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.coded-section-head strong {
  display: block;
  color: #858b96;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0;
}

.coded-section-head button,
.coded-section-head a {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7c828d;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.coded-product-list {
  display: grid;
  gap: 12px;
}

.coded-product-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  min-height: 106px;
  padding: 10px 14px 10px 10px;
  text-align: left;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 9px 24px rgba(20, 25, 34, 0.08),
    inset 0 0 0 1px rgba(18, 22, 30, 0.06);
}

.coded-card-media {
  position: relative;
  display: block;
  width: 126px;
  height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #121a30;
}

.coded-card-media img,
.coded-product-card .coded-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transform: scale(1.01);
}

.coded-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(90deg, rgba(17, 26, 48, 0.26), rgba(17, 26, 48, 0));
}

.coded-card-media em {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
}

.coded-card-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: center;
}

.coded-card-copy strong {
  display: block;
  overflow: hidden;
  color: #171923;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coded-card-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #838894;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.coded-card-tag {
  justify-self: start;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  color: #bc5471;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  background: #f8dfe8;
}

.coded-card-tag.tone-lavender {
  color: #7658a8;
  background: #e8ddf4;
}

.coded-card-tag.tone-rose {
  color: #ad4f63;
  background: #f5d9df;
}

.coded-card-tag.tone-night {
  color: #ffffff;
  background: #111a30;
}

.coded-card-heart {
  margin-top: 14px;
}

.coded-mini-grid,
.coded-idol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coded-mini-grid button,
.coded-idol-card {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: #f7f7f9;
  color: #151a26;
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(18, 22, 30, 0.05);
}

.coded-mini-grid span,
.coded-idol-card span {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  background: #111a30;
}

.coded-mini-grid strong,
.coded-idol-card strong {
  display: block;
  margin: 0;
  color: #151a26;
  font-size: 14px;
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: 0;
}

.coded-idol-card {
  min-height: 112px;
  background:
    linear-gradient(160deg, rgba(17, 26, 48, 0.06), rgba(217, 222, 229, 0.14)),
    #ffffff;
  box-shadow:
    0 8px 20px rgba(20, 25, 34, 0.06),
    inset 0 0 0 1px rgba(18, 22, 30, 0.06);
}

.coded-idol-card small {
  display: block;
  color: #858b96;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}

.screen-intro {
  background: #ffffff;
}

.intro-layout {
  gap: 14px;
  padding: calc(68px + env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
}

.intro-visual-card {
  height: 350px;
  border-radius: 12px;
  background: #111a30;
  box-shadow:
    0 8px 20px rgba(20, 25, 34, 0.09),
    inset 0 0 0 1px rgba(18, 22, 30, 0.06);
}

.intro-hero-image {
  background-image: url("./assets/production/home-hero-card-gpts.webp");
  background-size: cover;
  background-position: center;
}

body[data-product="love"] .intro-hero-image {
  background-image: url("./assets/production/home-card-love-man.webp");
}

body[data-product="reunion"] .intro-hero-image {
  background-image: url("./assets/production/home-card-reunion-man.webp");
}

body[data-product="temptation"] .intro-hero-image {
  background-image: url("./assets/production/home-card-temptation-man.webp");
}

body[data-product="chemistry"] .intro-hero-image {
  background-image: url("./assets/production/home-card-chemistry-man.webp");
}

.report-cover-bg {
  background-image: url("./assets/production/home-hero-card-gpts.webp");
  background-size: cover;
  background-position: center;
}

body[data-product="love"] .report-cover-bg {
  background-image: url("./assets/production/home-card-love-man.webp");
  background-position: 30% center;
}

body[data-product="reunion"] .report-cover-bg {
  background-image: url("./assets/production/home-card-reunion-man.webp");
  background-position: 30% center;
}

body[data-product="temptation"] .report-cover-bg {
  background-image: url("./assets/production/home-card-temptation-man.webp");
  background-position: 30% center;
}

body[data-product="chemistry"] .report-cover-bg {
  background-image: url("./assets/production/home-card-chemistry-man.webp");
  background-position: 30% center;
}

.product-intro {
  gap: 9px;
}

.product-intro .product-kicker {
  color: #13427b;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.product-intro h2 {
  color: #111827;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: 0;
}

.product-intro .speech {
  min-height: 0;
  padding: 14px 15px;
  border: 1px solid rgba(18, 22, 30, 0.06);
  border-radius: 8px;
  background: #ffffff;
  color: #343944;
  font-family: "Pretendard Variable", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.58;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 7px 18px rgba(20, 25, 34, 0.05);
}

.intro-actions {
  left: 14px;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
}

.intro-actions .primary-button,
.adult-gate-actions .primary-button,
.bottom-actions .primary-button {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #111a30;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    0 10px 24px rgba(17, 26, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.intro-actions .primary-button:active,
.adult-gate-actions .primary-button:active,
.bottom-actions .primary-button:active {
  background: #0c1428;
}

.coded-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  width: min(100vw, var(--frame-width));
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 5px 22px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid rgba(18, 22, 30, 0.05);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 32px rgba(18, 22, 30, 0.08);
}

.coded-bottom-nav a,
.coded-bottom-nav button {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111a30;
}

.coded-bottom-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coded-bottom-nav .is-active svg {
  fill: #111a30;
  stroke-width: 0;
}

.adult-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
}

.adult-gate[hidden] {
  display: none;
}

.adult-gate-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 19, 24, 0.34);
}

.adult-gate-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  box-shadow: 0 -18px 44px rgba(17, 19, 24, 0.2);
}

.adult-gate-badge {
  display: inline-grid;
  min-width: 44px;
  height: 32px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #111318;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.adult-gate-sheet h2 {
  margin: 0 0 10px;
  color: var(--app-ink);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.adult-gate-sheet strong {
  display: block;
  margin-bottom: 10px;
  color: var(--app-blue);
  font-size: 14px;
  font-weight: 900;
}

.adult-gate-sheet p {
  margin: 0;
  color: var(--app-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.72;
}

.adult-gate-actions {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 10px;
  margin-top: 20px;
}

.adult-gate-actions .secondary-button,
.adult-gate-actions .primary-button {
  position: static;
  min-height: 56px;
  border-radius: 8px;
  font-size: 15px;
}

@media (max-width: 374px) {
  .home-app-header,
  .category-tabs,
  .home-feed {
    padding-left: 20px;
    padding-right: 20px;
  }

  .product-hero-card {
    min-height: 386px;
  }

  .hero-card-bg {
    background-position: center -92px;
  }

  .hero-title-art {
    font-size: 50px;
  }

  .intro-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro-visual-card {
    height: 360px;
  }
}
