/* 서리 내린 새벽 신당: 몽환적인 안개, 시선이 모이는 어둠, 손끝이 시린 달빛 */
:root {
    --bg: #131720;
    --bg-deep: #0f121a;
    --surface: rgba(255, 255, 255, 0.05);
    --card: rgba(35, 42, 57, 0.72);
    --lavender: #c6cde2;
    --lavender-strong: #a5b1d7;
    --gold: #adc9d6;
    --rose: #c8bddc;
    --text: #f3f4f9;
    --muted: #babfcd;
    --border: rgba(198, 205, 226, 0.24);
    --radius: 14px;
    --serif: "Noto Serif KR", "Batang", "AppleMyungjo", serif;
    --sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg-deep);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(165, 177, 215, 0.22), transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200, 189, 220, 0.16), transparent 70%),
        linear-gradient(180deg, var(--bg-deep) 0%, #1a202e 55%, #242b3c 100%);
    background-attachment: fixed;
    font-family: var(--sans);
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.shrine-bg {
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

/* ---------- 밤하늘: 반짝이는 별과 은은한 달무리 ---------- */

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
}

.stars-1 {
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 2px),
        radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.7), transparent 2px),
        radial-gradient(1.5px 1.5px at 46% 30%, rgba(173, 201, 214, 0.9), transparent 2px),
        radial-gradient(1px 1px at 63% 78%, rgba(255, 255, 255, 0.6), transparent 2px),
        radial-gradient(1.5px 1.5px at 79% 22%, rgba(255, 255, 255, 0.85), transparent 2px),
        radial-gradient(1px 1px at 91% 54%, rgba(198, 205, 226, 0.9), transparent 2px);
    background-size: 420px 420px;
    animation: twinkle 5s ease-in-out infinite alternate;
}

.stars-2 {
    background-image:
        radial-gradient(1px 1px at 8% 44%, rgba(255, 255, 255, 0.6), transparent 2px),
        radial-gradient(1px 1px at 34% 12%, rgba(198, 205, 226, 0.8), transparent 2px),
        radial-gradient(1.5px 1.5px at 55% 58%, rgba(255, 255, 255, 0.75), transparent 2px),
        radial-gradient(1px 1px at 72% 36%, rgba(173, 201, 214, 0.7), transparent 2px),
        radial-gradient(1px 1px at 88% 82%, rgba(255, 255, 255, 0.6), transparent 2px);
    background-size: 300px 300px;
    animation: twinkle 7s ease-in-out 1.5s infinite alternate-reverse;
}

.moon-glow {
    position: absolute;
    top: -180px;
    left: 50%;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 205, 226, 0.16), transparent 65%);
}

/* ---------- 레이아웃 ---------- */

.home,
.form-page,
.result-page {
    width: min(100% - 40px, 640px);
    margin: 0 auto;
    padding: 64px 0 36px;
}

.home {
    width: min(100% - 48px, 880px);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-fade {
    animation: page-fade 700ms ease-out both;
}

body.is-leaving .page-fade {
    animation: page-leave 260ms ease-in both;
}

/* ---------- 메인 일러스트: 달밤의 작은 신당 ---------- */

.shrine-illust {
    display: block;
    width: min(100%, 440px);
    height: auto;
    margin: 0 0 24px;
    overflow: visible;
    animation: illust-emerge 1400ms ease-out both;
}

.illust-stars {
    animation: twinkle 4s ease-in-out infinite alternate;
}

.illust-cloud {
    animation: cloud-drift 14s ease-in-out infinite alternate;
}

.illust-cloud-slow {
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

.illust-door,
.illust-door-glow {
    animation: glow-breathe 4s ease-in-out infinite;
}

/* 등롱은 처마에 매달린 끈을 축으로 살짝 흔들린다. */
.illust-lantern {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: lantern-sway 5s ease-in-out infinite;
}

.illust-lantern-late {
    animation-delay: -2.5s;
}

.illust-firefly {
    animation: firefly 6s ease-in-out infinite;
}

.illust-firefly-2 {
    animation-delay: -2s;
    animation-duration: 7s;
}

.illust-firefly-3 {
    animation-delay: -4s;
    animation-duration: 8s;
}

/* ---------- 촛불 ---------- */

.candle {
    position: relative;
    width: 28px;
    height: 76px;
    margin-bottom: 22px;
}


.candle-glow {
    position: absolute;
    left: 50%;
    top: -18px;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 201, 214, 0.32), rgba(198, 205, 226, 0.12) 45%, transparent 70%);
    animation: glow-breathe 3.5s ease-in-out infinite;
}

.candle-flame {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 12px;
    height: 24px;
    margin-left: -6px;
    border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
    background: radial-gradient(ellipse at 50% 75%, #e9f2f6 0%, #bdd4e0 40%, #96b9cb 75%, rgba(150, 185, 203, 0) 100%);
    box-shadow: 0 0 16px rgba(173, 201, 214, 0.6);
    transform-origin: 50% 100%;
    animation: candle-flicker 3.5s ease-in-out infinite;
}

.candle-wick {
    position: absolute;
    left: 50%;
    top: 26px;
    width: 2px;
    height: 6px;
    margin-left: -1px;
    background: #475063;
}

.candle-body {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 44px;
    margin-left: -9px;
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(90deg, #ced2e0, #f5f7fc 45%, #d7dbe8);
    box-shadow: inset 0 3px 3px rgba(255, 255, 255, 0.5);
}

/* ---------- 타이포그래피 ---------- */

.eyebrow,
.section-label {
    color: var(--lavender);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 12px;
}

.home > .eyebrow {
    margin: 0 0 8px;
}

.section-label {
    margin: 0;
}

.shrine-seal {
    color: var(--gold);
    letter-spacing: 0.2em;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.35;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 8vw, 62px);
    letter-spacing: 0.08em;
    text-shadow: 0 0 36px rgba(165, 177, 215, 0.45);
}

.home > h1 {
    font-size: clamp(42px, 7vw, 68px);
}

h1.title-small {
    font-size: clamp(28px, 6vw, 40px);
    letter-spacing: 0.04em;
}

h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

h3 {
    margin: 0;
    font-size: 18px;
}

.subtitle {
    margin: 24px 0 0;
    color: #e2e5ef;
    font-size: 15px;
    line-height: 2;
}

.divider {
    width: 56px;
    height: 1px;
    margin: 28px 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.description {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

/* ---------- 버튼과 링크 ---------- */

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border: 1px solid rgba(173, 201, 214, 0.45);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #a5b1d7, #7b88b4);
    box-shadow: 0 8px 28px rgba(123, 136, 180, 0.35);
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home .primary-button {
    max-width: 320px;
}

.primary-button:hover:not(:disabled) {
    border-color: var(--gold);
    box-shadow: 0 10px 34px rgba(165, 177, 215, 0.5);
    transform: translateY(-1px);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.primary-button.is-lighting {
    cursor: progress;
    opacity: 0.85;
}

.footnote,
.helper {
    color: var(--muted);
    font-size: 11px;
}

.footnote {
    max-width: 320px;
    margin: 44px 0 0;
}

.back-link,
.secondary-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 180ms ease;
}

.back-link {
    display: inline-block;
    margin-bottom: 44px;
}

.back-link:hover,
.secondary-link:hover {
    color: var(--gold);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 44px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.topbar .back-link {
    margin-bottom: 0;
}

.seeker-bar {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.text-button {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: none;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.text-button:hover {
    color: var(--gold);
}

/* 카카오 로그인·결제 버튼은 카카오 브랜드 색을 따른다. */
.kakao-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    min-height: 54px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    color: rgba(0, 0, 0, 0.85);
    background: #fee500;
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: filter 180ms ease, transform 180ms ease;
}

.kakao-button:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.kakao-button-wide {
    max-width: none;
    margin: 18px 0 14px;
}

/* ---------- 고민 입력 ---------- */

.form-page h1,
.result-page h1 {
    font-size: clamp(30px, 7vw, 44px);
    letter-spacing: 0.02em;
}

.form-page .subtitle {
    margin: 14px 0 32px;
}

.form-error {
    margin: -12px 0 24px;
    padding: 12px 16px;
    border: 1px solid rgba(200, 189, 220, 0.4);
    border-radius: 10px;
    color: #efebf7;
    background: rgba(200, 189, 220, 0.12);
    font-size: 13px;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(6px);
}

/* legend는 fieldset 테두리에 걸리므로 float로 카드 안쪽에 둔다. */
.form-section legend {
    float: left;
    width: 100%;
    margin-bottom: 4px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border);
    color: var(--gold);
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 0.08em;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-label {
    color: #e6e8f1;
    font-size: 13px;
}

.optional {
    margin-left: 6px;
    color: var(--muted);
    font-size: 11px;
}

/* 라디오 버튼을 별빛 테두리의 선택 칸으로 보여준다. */
.choice-group {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 8px;
}

.choice-group-small {
    width: min(100%, 200px);
}

.choice {
    position: relative;
    cursor: pointer;
}

.choice input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choice span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    font-size: 14px;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.choice-group-small .choice span {
    min-height: 38px;
    font-size: 13px;
}

.choice:hover span {
    color: var(--text);
}

.choice input:checked + span {
    border-color: var(--gold);
    color: #fff;
    background: linear-gradient(135deg, rgba(165, 177, 215, 0.6), rgba(123, 136, 180, 0.6));
}

.choice input:focus-visible + span {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.birth-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 8px;
}

.question-form select,
.question-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    color: var(--text);
    background-color: rgba(15, 18, 26, 0.55);
    font: inherit;
    transition: border-color 180ms ease;
}

.question-form select {
    appearance: none;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--lavender) 50%),
        linear-gradient(135deg, var(--lavender) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.question-form select:focus,
.question-form textarea:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

.question-form textarea {
    min-height: 150px;
    resize: vertical;
}

.question-form textarea::placeholder {
    color: #8d92a2;
}

.question-form select option {
    color: var(--text);
    background: #222838;
}

.helper-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.helper-row .helper {
    margin: 0;
}

.char-count {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.char-count.is-near-limit {
    color: var(--gold);
}

/* ---------- 결과 ---------- */

.result-page .eyebrow {
    margin-bottom: 12px;
}

.seeker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.category-tag {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--lavender);
    background: var(--surface);
    font-size: 12px;
}

.omen-card,
.offer-card {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 16px 40px rgba(15, 18, 26, 0.35);
    backdrop-filter: blur(6px);
}

.omen-reveal {
    animation: omen-reveal 1400ms ease-out 200ms both;
}

/* 결과 카드가 위에서부터 차례로 떠오른다. */
.reveal-2 {
    animation-delay: 500ms;
}

.reveal-3 {
    animation-delay: 800ms;
}

.reveal-4 {
    animation-delay: 1100ms;
}

.reveal-5 {
    animation-delay: 1400ms;
}

.omen-card .interpretation + .interpretation {
    margin-top: 12px;
}

.charm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
}

.charm {
    padding: 14px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-align: center;
}

.charm dt {
    color: var(--muted);
    font-size: 11px;
}

.charm dd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 16px;
}

.charm-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ---------- 리포트 목차·서비스 안내 ---------- */

/* 잠긴 리포트 미리보기: 첫 문장 앞부분만 보이고 뒤는 흐린 줄로 가린다. */
.report-preview {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: preview;
}

.report-preview li {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    counter-increment: preview;
}

.preview-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-title {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 15px;
}

.preview-title::before {
    content: counter(preview) ". ";
    color: var(--muted);
}

.toc-lock {
    margin-left: auto;
    font-size: 13px;
    opacity: 0.85;
}

.preview-teaser {
    margin: 8px 0 6px;
    color: #e6e8f1;
    font-size: 14px;
}

.locked-lines {
    display: grid;
    gap: 6px;
    filter: blur(3px);
}

.locked-lines span {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(198, 205, 226, 0.45), rgba(198, 205, 226, 0.18));
}

.locked-lines span:first-child {
    width: 92%;
}

.locked-lines span:last-child {
    width: 64%;
}

/* ---------- 봉인된 두 번째 징조 ---------- */

.sealed-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(173, 201, 214, 0.45);
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 15% 50%, rgba(173, 201, 214, 0.16), transparent 60%),
        var(--card);
    box-shadow: 0 0 30px rgba(173, 201, 214, 0.12);
}

.seal {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.seal-talisman {
    display: block;
    width: 56px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(173, 201, 214, 0.45));
    animation: seal-float 3.5s ease-in-out infinite;
}

.seal.is-shaking .seal-talisman {
    animation: seal-shake 600ms ease-in-out;
}

.sealed-title {
    margin: 4px 0 0;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 18px;
}

.sealed-message {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.sealed-message a {
    color: var(--gold);
}

[hidden] {
    display: none !important;
}

/* ---------- 예시 리포트 ---------- */

.sample-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--lavender);
    font-size: 13px;
    text-underline-offset: 3px;
}

.sample-link:hover {
    color: var(--gold);
}

.sample-banner {
    margin: 0 0 28px;
    padding: 12px 16px;
    border: 1px solid rgba(198, 205, 226, 0.4);
    border-radius: 12px;
    color: #e6e8f1;
    background: rgba(165, 177, 215, 0.12);
    font-size: 13px;
}

.unsealed-card {
    border-color: rgba(173, 201, 214, 0.5);
    box-shadow: 0 0 30px rgba(173, 201, 214, 0.12);
}

/* ---------- 부적 간직하기 ---------- */

.keep-card {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.keep-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.ghost-button {
    padding: 10px 16px;
    border: 1px solid rgba(173, 201, 214, 0.45);
    border-radius: 999px;
    color: var(--gold);
    background: transparent;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.ghost-button:hover {
    background: rgba(173, 201, 214, 0.1);
}

.keep-daily {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #e6e8f1;
    font-size: 13px;
    cursor: pointer;
}

.keep-daily input {
    width: 16px;
    height: 16px;
    accent-color: var(--lavender-strong);
}

.keep-card .helper {
    margin: 4px 0 0;
}

.keep-message {
    min-height: 1em;
    margin: 6px 0 0;
    color: var(--gold);
    font-size: 12px;
}

/* ---------- 메인 화면 오늘의 부적 ---------- */

.daily-charm {
    width: min(100%, 360px);
    margin: -8px 0 28px;
    padding: 16px 18px;
    border: 1px solid rgba(173, 201, 214, 0.4);
    border-radius: var(--radius);
    background: var(--card);
}

.daily-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 6px;
    margin: 10px 0 0;
    color: var(--gold);
    font-size: 14px;
}

.daily-word {
    margin: 8px 0 6px;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 15px;
}

/* ---------- 궁합 ---------- */

.compat-entry {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin-top: 12px;
    text-decoration: none;
}

/* 관계 선택지는 다섯 개라 한 줄에 다 들어가지 않으면 줄을 바꾼다. */
.choice-group-wrap {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.score-card {
    text-align: center;
}

.score-ring {
    --score: 80;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
    margin: 18px auto 6px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #1e2433 62%, transparent 63%),
        conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(198, 205, 226, 0.18) 0);
    box-shadow: 0 0 40px rgba(173, 201, 214, 0.18);
}

.score-number {
    color: #e9f2f6;
    font-family: var(--serif);
}

.score-number strong {
    font-size: 54px;
    font-weight: 500;
}

.score-number small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 16px;
}

.score-card .inline-cta,
.keyword-card .inline-cta {
    text-align: left;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- 시즌 배너 · 신년운세 ---------- */

.season-banner {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
    margin: 16px 0 0;
    padding: 8px 18px;
    border: 1px solid rgba(173, 201, 214, 0.55);
    border-radius: 999px;
    color: #e9f2f6;
    background: rgba(173, 201, 214, 0.1);
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 0 24px rgba(173, 201, 214, 0.18);
    transition: background-color 180ms ease;
}

.season-banner:hover {
    background: rgba(173, 201, 214, 0.18);
}

.season-mark {
    color: var(--gold);
}

.season-banner small {
    color: var(--gold);
    font-size: 12px;
}

.keyword-card {
    text-align: center;
}

.keyword {
    margin: 10px 0 0;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 56px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(173, 201, 214, 0.35);
}

.month-list dt {
    font-size: 15px;
}

/* ---------- 후기 ---------- */

.review-summary {
    margin: 4px 0 8px;
}

.review-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.review-stars,
.review-score strong {
    color: var(--gold);
    font-size: 18px;
}

.review-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.review-list li {
    padding: 8px 0;
    border-top: 1px dashed var(--border);
    color: #e6e8f1;
    font-size: 13px;
}

.review-meta {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.review-card {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.review-thanks {
    margin: 10px 0 0;
    color: var(--gold);
    font-size: 14px;
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background-color: rgba(15, 18, 26, 0.55);
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.review-form .helper {
    margin: 0;
}

/* 별점: 오른쪽에서 왼쪽으로 배치해, 고른 별과 그 앞의 별이 함께 빛나게 한다. */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
}

.star-rating input {
    position: absolute;
    opacity: 0;
}

.star-rating label {
    color: rgba(198, 205, 226, 0.35);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 120ms ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--gold);
}

.star-rating input:focus-visible + label {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- 궁합권 · 보관함 ---------- */

.credit-form {
    margin: 8px 0 18px;
    padding: 14px;
    border: 1px solid rgba(173, 201, 214, 0.45);
    border-radius: 12px;
    background: rgba(173, 201, 214, 0.07);
}

.credit-note {
    margin: 0 0 10px;
    color: var(--gold) !important;
}

.my-report-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.my-report {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.my-report-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.my-report-link strong {
    font-family: var(--serif);
    font-weight: 500;
}

.my-report-date,
.my-report-summary {
    color: var(--muted);
    font-size: 12px;
}

.my-report-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-report-link:hover strong {
    color: var(--gold);
}

.my-report-delete {
    flex-shrink: 0;
    margin: 0;
}

/* ---------- 흐름 아래 리포트 연결 ---------- */

.inline-cta {
    display: block;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(173, 201, 214, 0.4);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(173, 201, 214, 0.07);
    font-size: 13px;
    text-decoration: none;
    transition: background-color 180ms ease;
}

.inline-cta:hover {
    background: rgba(173, 201, 214, 0.13);
}

.inline-cta strong {
    display: block;
    margin-top: 6px;
    color: var(--gold);
    font-weight: 500;
}

/* ---------- 휴대폰 하단 고정 버튼 ---------- */

.sticky-cta {
    display: none;
}

@media (max-width: 640px) {
    .sticky-cta {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 10px 10px 16px;
        border: 1px solid rgba(173, 201, 214, 0.45);
        border-radius: 999px;
        background: rgba(25, 31, 44, 0.92);
        box-shadow: 0 10px 30px rgba(9, 11, 17, 0.6);
        backdrop-filter: blur(8px);
        transform: translateY(140%);
        transition: transform 300ms ease;
    }

    .sticky-cta.is-visible {
        transform: none;
    }

    .sticky-text {
        flex: 1;
        min-width: 0;
        color: #e6e8f1;
        font-size: 12px;
    }

    .sticky-button {
        flex-shrink: 0;
        padding: 10px 16px;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(135deg, #a5b1d7, #7b88b4);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
    }

    /* 고정 버튼이 마지막 링크를 가리지 않도록 여유를 둔다. */
    .result-page {
        padding-bottom: 96px;
    }
}

.toc-note {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 1px 8px;
    border: 1px solid rgba(173, 201, 214, 0.4);
    border-radius: 999px;
    color: var(--gold);
    font-size: 11px;
}

.service-guide {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.service-guide ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 12px;
}

.service-guide li + li {
    margin-top: 4px;
}

/* ---------- 리포트 본문 ---------- */

.report-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #e6e8f1;
    font-size: 14px;
}

.report-list li + li {
    margin-top: 10px;
}

.report-list li::marker {
    color: var(--gold);
}

.reflection-list li {
    font-family: var(--serif);
    font-size: 15px;
}

.area + .area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.area h3 {
    margin-top: 12px;
    color: var(--gold);
    font-size: 16px;
}

.area-guide {
    margin: 10px 0 0;
    color: var(--lavender);
    font-size: 13px;
}

.offer-card > .primary-button {
    margin-top: 8px;
}

.shrine-word {
    margin: 36px 0 0;
    text-align: center;
}

.shrine-word blockquote {
    margin: 10px 0 0;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 20px;
    text-shadow: 0 0 24px rgba(173, 201, 214, 0.25);
}

.shrine-word blockquote::before,
.shrine-word blockquote::after {
    color: var(--lavender);
}

.shrine-word blockquote::before {
    content: "“ ";
}

.shrine-word blockquote::after {
    content: " ”";
}

.omen-card blockquote {
    margin: 18px 0 28px;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.8;
    text-shadow: 0 0 24px rgba(173, 201, 214, 0.25);
}

.interpretation {
    margin: 10px 0 0;
    color: #e2e5ef;
    font-size: 14px;
}

.offer-card h2 {
    margin-top: 10px;
}

.offer-card p {
    color: var(--muted);
    font-size: 13px;
}

.product-list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.product {
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.product:last-child {
    border-bottom: 1px solid var(--border);
}

.product-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.product p {
    margin: 6px 0 0;
}

.product-link {
    display: block;
    margin: -16px -12px;
    padding: 16px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background-color 180ms ease;
}

.product-link:hover {
    background: rgba(165, 177, 215, 0.14);
}

.product-cta {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);
    font-size: 13px;
}

.question-echo {
    margin: 12px 0 22px;
    padding-left: 14px;
    border-left: 2px solid var(--lavender);
    color: #e6e8f1;
    font-size: 14px;
    white-space: pre-line;
}

.perspectives {
    margin: 14px 0 0;
}

.perspectives dt {
    margin-top: 18px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 16px;
}

.perspectives dt:first-child {
    margin-top: 0;
}

.perspectives dd {
    margin: 6px 0 0;
    color: #e2e5ef;
    font-size: 14px;
}

.follow-up-form {
    gap: 12px;
    margin-top: 12px;
}

.follow-up-form .form-error {
    margin: 0;
}

.offer-card .price {
    margin: 0;
    color: var(--gold);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.offer-card .helper {
    margin: 0 0 14px;
    font-size: 11px;
}

.secondary-link {
    display: inline-block;
    margin: 24px 0;
}

/* ---------- 애니메이션 ---------- */

@keyframes twinkle {
    from {
        opacity: 0.45;
    }
    to {
        opacity: 1;
    }
}

@keyframes candle-flicker {
    0%, 100% {
        opacity: 0.92;
        transform: scale(1, 1) rotate(0deg);
    }
    25% {
        transform: scale(0.96, 1.04) rotate(-1.5deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.03, 0.97) rotate(1deg);
    }
    75% {
        transform: scale(0.98, 1.02) rotate(-0.5deg);
    }
}

@keyframes glow-breathe {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes illust-emerge {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes seal-float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-4px) rotate(2deg);
    }
}

@keyframes seal-shake {
    0%, 100% {
        transform: rotate(0);
    }
    20% {
        transform: rotate(-9deg);
    }
    40% {
        transform: rotate(8deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    80% {
        transform: rotate(3deg);
    }
}

@keyframes cloud-drift {
    from {
        transform: translateX(-6px);
    }
    to {
        transform: translateX(8px);
    }
}

@keyframes lantern-sway {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes firefly {
    0%, 100% {
        opacity: 0.2;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: translate(4px, -8px);
    }
}

@keyframes page-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes page-leave {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes omen-reveal {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: none;
    }
}

/* ---------- 반응형 ---------- */

@media (max-width: 480px) {
    .home,
    .form-page,
    .result-page {
        width: min(100% - 32px, 640px);
        padding-top: 36px;
    }

    .home {
        padding-top: 28px;
    }

    .back-link,
    .topbar {
        margin-bottom: 32px;
    }

    .shrine-illust {
        margin-bottom: 16px;
    }

    .form-section {
        padding: 16px 14px;
    }

    .omen-card,
    .offer-card {
        padding: 18px;
    }

    .omen-card blockquote {
        font-size: 19px;
    }

    .charm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .helper-row {
        flex-direction: column;
        gap: 4px;
    }

    .char-count {
        align-self: flex-end;
    }

    .question-form select {
        padding-left: 10px;
        padding-right: 28px;
        background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    }
}

/* =====================================================================
   메인 화면 개편: 상단 길잡이, 오늘의 신당 카드, 진행 순서, 상품 진열대,
   소원 등불 미리보기, 자주 묻는 질문
   ===================================================================== */

.home-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding: 18px 0;
}

.home-nav-brand {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: 0.24em;
    text-decoration: none;
}

.home-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 18px;
}

.home-nav-links a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 180ms ease;
}

.home-nav-links a:hover {
    color: var(--gold);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.trust-row li {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(15, 18, 26, 0.35);
    font-size: 12px;
}

.trust-row strong {
    color: var(--gold);
    font-weight: 500;
}

.scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.scroll-hint:hover {
    color: var(--gold);
}

.scroll-hint-arrow {
    color: var(--gold);
    animation: hint-bob 1.8s ease-in-out infinite;
}

.home-sections {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 24px 0 40px;
}

.home-section {
    margin: 0 auto 96px;
    text-align: center;
    scroll-margin-top: 24px;
}

.home-section > .section-label {
    margin-bottom: 10px;
    color: var(--gold);
}

.home-section h2 {
    font-size: clamp(24px, 4.6vw, 32px);
    letter-spacing: 0.03em;
}

.section-lead {
    max-width: 540px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 14px;
}

.live-count {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.live-count strong {
    color: var(--gold);
    font-weight: 500;
}

/* ---------- 오늘의 신당 카드 ---------- */

.card-spread {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(10px, 3vw, 22px);
    margin: 12px 0 28px;
    perspective: 1200px;
}

.shrine-card {
    position: relative;
    width: clamp(96px, 26vw, 156px);
    aspect-ratio: 2 / 3;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    cursor: pointer;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 500ms ease, filter 500ms ease;
    animation: card-idle 4.8s ease-in-out infinite;
}

.shrine-card:nth-of-type(1) {
    transform: rotate(-7deg) translateY(10px);
    animation-delay: -1.2s;
}

.shrine-card:nth-of-type(3) {
    transform: rotate(7deg) translateY(10px);
    animation-delay: -2.6s;
}

.card-spread:not(.is-drawn) .shrine-card:hover,
.card-spread:not(.is-drawn) .shrine-card:focus-visible {
    transform: translateY(-14px) rotate(0);
    animation-play-state: paused;
}

.shrine-card:disabled {
    cursor: default;
}

.card-spread.is-drawn .shrine-card {
    animation: none;
}

.card-spread.is-drawn .shrine-card:not(.is-chosen) {
    opacity: 0.28;
    filter: saturate(0.4);
    transform: scale(0.88) translateY(14px);
}

.card-spread.is-drawn .shrine-card.is-chosen {
    transform: translateY(-8px) scale(1.08);
}

.shrine-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1000ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.shrine-card.is-flipped .shrine-card-inner {
    transform: rotateY(180deg);
}

.shrine-card-back,
.shrine-card-front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 14px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.shrine-card-back {
    border: 1px solid rgba(173, 201, 214, 0.6);
    background:
        radial-gradient(circle at 50% 50%, rgba(173, 201, 214, 0.16), transparent 55%),
        repeating-linear-gradient(45deg, rgba(173, 201, 214, 0.06) 0 2px, transparent 2px 12px),
        linear-gradient(160deg, #414f71, #1c2333);
    box-shadow:
        inset 0 0 0 6px rgba(19, 23, 32, 0.55),
        inset 0 0 0 7px rgba(173, 201, 214, 0.35),
        0 14px 34px rgba(9, 11, 17, 0.55);
}

.card-back-seal {
    display: grid;
    place-items: center;
    width: 48%;
    aspect-ratio: 1;
    border: 1px solid rgba(173, 201, 214, 0.7);
    border-radius: 50%;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(22px, 6vw, 34px);
    text-shadow: 0 0 18px rgba(173, 201, 214, 0.6);
}

.shrine-card-front {
    --card-color: var(--gold);
    padding: 10px;
    border: 1px solid var(--card-color);
    background:
        radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--card-color) 32%, transparent), transparent 66%),
        linear-gradient(180deg, #1f2636, #131720);
    box-shadow: 0 0 40px color-mix(in srgb, var(--card-color) 35%, transparent), 0 14px 34px rgba(9, 11, 17, 0.55);
    transform: rotateY(180deg);
}

.card-hanja {
    color: var(--card-color);
    font-family: var(--serif);
    font-size: clamp(40px, 11vw, 66px);
    line-height: 1.1;
    text-shadow: 0 0 24px color-mix(in srgb, var(--card-color) 70%, transparent);
}

.card-name {
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: clamp(13px, 3.4vw, 16px);
}

.card-keyword {
    color: var(--muted);
    font-size: clamp(10px, 2.6vw, 12px);
}

.card-reading {
    max-width: 540px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    animation: omen-reveal 900ms ease-out both;
}

.card-reading blockquote {
    margin: 0;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.8;
}

.card-advice {
    margin: 12px 0 0;
    color: var(--gold);
    font-size: 14px;
}

.card-reading .primary-button {
    max-width: 360px;
    margin: 20px auto 10px;
}

.card-reading .helper {
    margin: 0;
}

/* ---------- 진행 순서 ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.steps li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.step-no {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1;
}

.steps strong {
    margin-top: 6px;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
}

.steps li > span:last-child {
    color: var(--muted);
    font-size: 13px;
}

/* ---------- 상품 진열대 ---------- */

.showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.showcase-card:hover,
.showcase-card:focus-within {
    border-color: rgba(173, 201, 214, 0.6);
    box-shadow: 0 18px 40px rgba(9, 11, 17, 0.45);
    transform: translateY(-3px);
}

.showcase-card.is-featured {
    border-color: rgba(173, 201, 214, 0.65);
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(173, 201, 214, 0.16), transparent 70%),
        var(--card);
    box-shadow: 0 0 36px rgba(173, 201, 214, 0.16);
}

.showcase-badge {
    align-self: flex-start;
    padding: 2px 10px;
    border: 1px solid rgba(173, 201, 214, 0.45);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(173, 201, 214, 0.1);
    font-size: 11px;
}

.showcase-card h3 {
    margin: 14px 0 2px;
    font-size: 19px;
}

.showcase-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 10px;
}

.showcase-price strong {
    color: #fff;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
}

.showcase-price del {
    color: var(--muted);
    font-size: 13px;
}

.showcase-pitch {
    margin: 0 0 12px;
    color: #e6e8f1;
    font-size: 13px;
}

.showcase-features {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.showcase-features li {
    position: relative;
    padding: 3px 0 3px 18px;
    color: var(--muted);
    font-size: 13px;
}

.showcase-features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 10px;
    line-height: 2.2;
}

.showcase-link {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    color: var(--gold);
    font-size: 14px;
    text-decoration: none;
}

/* 카드 어디를 눌러도 들어가도록 링크의 누를 수 있는 영역을 카드 전체로 넓힌다. */
.showcase-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
}

.sample-entry {
    display: inline-block;
    margin-top: 22px;
}

.home-section .review-summary {
    max-width: 540px;
    margin: 18px auto 0;
    text-align: left;
}

.home-section .review-score {
    justify-content: center;
}

/* ---------- 소원 등불 미리보기 ---------- */

.lantern-mini-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lantern-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(100%, 220px);
    padding: 20px 16px 16px;
    border: 1px solid color-mix(in srgb, var(--lantern) 45%, transparent);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--lantern) 22%, transparent), transparent 75%),
        var(--card);
    animation: lantern-float 6s ease-in-out infinite;
}

.lantern-mini:nth-child(2) {
    animation-delay: -2s;
}

.lantern-mini:nth-child(3) {
    animation-delay: -4s;
}

.lantern-mini-light {
    width: 16px;
    height: 20px;
    border-radius: 45% 45% 40% 40%;
    background: var(--lantern);
    box-shadow: 0 0 18px var(--lantern);
}

.lantern-mini-wish {
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 15px;
}

.lantern-mini-meta {
    color: var(--muted);
    font-size: 11px;
}

.lantern-entry {
    display: inline-block;
    margin-top: 22px;
    text-decoration: none;
}

/* ---------- 자주 묻는 질문 ---------- */

.faq {
    max-width: 660px;
    margin: 24px auto 0;
    text-align: left;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    position: relative;
    padding: 16px 32px 16px 4px;
    color: #f3f4f9;
    font-size: 15px;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 6px;
    color: var(--gold);
    font-size: 18px;
    transform: translateY(-50%);
    transition: transform 200ms ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details p {
    margin: 0 0 16px;
    padding: 0 4px;
    color: var(--muted);
    font-size: 13.5px;
}

.home-final .final-line {
    margin: 0 0 20px;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: clamp(19px, 4vw, 24px);
}

.home-final .primary-button {
    max-width: 320px;
}

.home-footer .footnote {
    margin: 0 auto;
    text-align: center;
}

/* =====================================================================
   소원 등불 화면
   ===================================================================== */

.lantern-page {
    width: min(100% - 40px, 920px);
    margin: 0 auto;
    padding: 64px 0 48px;
}

.lantern-page > .subtitle {
    margin-top: 16px;
}

.launch-card {
    max-width: 600px;
}

.launch-done {
    margin: 0;
    color: var(--gold);
    font-size: 14px;
}

.lantern-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lantern-form input[type="text"],
.lantern-select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background-color: rgba(15, 18, 26, 0.55);
    font: inherit;
    transition: border-color 180ms ease;
}

.lantern-form input[type="text"]::placeholder {
    color: #8d92a2;
}

.lantern-form input[type="text"]:focus,
.lantern-select:focus {
    outline: 1px solid var(--gold);
    border-color: var(--gold);
}

.lantern-select option {
    color: var(--text);
    background: #222838;
}

.lantern-form .primary-button {
    margin-top: 14px;
}

.lantern-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
    padding: 0;
    border: 0;
}

.lantern-colors legend {
    margin-bottom: 8px;
    padding: 0;
}

.lantern-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #e6e8f1;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease;
}

.lantern-color input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lantern-color:has(input:checked) {
    border-color: var(--lantern);
    background: color-mix(in srgb, var(--lantern) 16%, transparent);
}

.lantern-color:has(input:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.lantern-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lantern);
    box-shadow: 0 0 10px var(--lantern);
}

.lantern-section {
    margin-top: 56px;
}

.lantern-sky {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 26px 16px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.lantern {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 14px 16px;
    border: 1px solid color-mix(in srgb, var(--lantern) 28%, transparent);
    border-radius: 18px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, color-mix(in srgb, var(--lantern) 20%, transparent), transparent 80%),
        rgba(35, 42, 57, 0.5);
    scroll-margin-top: 24px;
    animation: lantern-float 6.5s ease-in-out infinite;
    animation-delay: var(--drift-delay, 0s);
}

.lantern.is-mine {
    border-color: rgba(173, 201, 214, 0.55);
}

.lantern-body {
    position: absolute;
    top: 14px;
    left: 50%;
    width: 34px;
    height: 44px;
    margin-left: -17px;
    border-radius: 45% 45% 38% 38%;
    background: radial-gradient(circle at 50% 62%, #e9f2f6 0, var(--lantern) 48%,
        color-mix(in srgb, var(--lantern) 55%, #191e2c) 100%);
    box-shadow: 0 0 28px color-mix(in srgb, var(--lantern) 75%, transparent);
}

.lantern-cap {
    position: absolute;
    top: -4px;
    right: 7px;
    left: 7px;
    height: 5px;
    border-radius: 2px;
    background: #56627e;
}

.lantern-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--lantern) 35%, transparent), transparent 70%);
    animation: glow-breathe 3.6s ease-in-out infinite;
}

.lantern-tassel {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 2px;
    height: 10px;
    margin-left: -1px;
    background: var(--lantern);
}

.lantern-wish {
    margin: 0 0 8px;
    color: #e9f2f6;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.6;
}

.lantern-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 6px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.lantern-meta span + span::before {
    content: "·";
    margin-right: 6px;
}

.lantern-mine {
    color: var(--gold);
}

.lantern-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    margin-top: auto;
    padding-top: 12px;
}

.lantern-actions form {
    margin: 0;
}

.lantern-actions .text-button {
    font-size: 12px;
}

.bless-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid color-mix(in srgb, var(--lantern) 60%, transparent);
    border-radius: 999px;
    color: #e9f2f6;
    background: transparent;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.bless-button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--lantern) 16%, transparent);
    transform: translateY(-1px);
}

.bless-button.is-blessed,
.bless-button:disabled {
    background: color-mix(in srgb, var(--lantern) 20%, transparent);
    cursor: default;
}

.bless-button.just-blessed {
    animation: bless-pulse 700ms ease-out;
}

.bless-count {
    color: var(--lantern);
    font-weight: 500;
}

.lantern-report {
    font-size: 11px;
    opacity: 0.7;
}

.lantern-page > .footnote {
    max-width: none;
    text-align: center;
}

/* ---------- 움직임 ---------- */

@keyframes hint-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes card-idle {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}

@keyframes lantern-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes bless-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ---------- 좁은 화면 ---------- */

@media (max-width: 720px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .steps li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .home-nav-brand {
        font-size: 13px;
    }

    .home-nav-links {
        gap: 4px 12px;
    }

    .home-nav-links a {
        font-size: 12px;
    }

    .home {
        padding-top: 64px;
    }

    .home-section {
        margin-bottom: 72px;
    }

    .card-reading {
        padding: 20px 18px;
    }

    .lantern-page {
        width: min(100% - 32px, 920px);
        padding-top: 36px;
    }

    .lantern-sky {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }

    .lantern {
        padding: 66px 10px 14px;
    }

    .lantern-wish {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* 조심할 것: 좋은 말 사이에 섞어 긴장감을 주되, 경고처럼 무섭지 않게 장밋빛으로 */
:root {
    --caution: #dca6af;
    --caution-bg: rgba(220, 166, 175, 0.08);
    --caution-border: rgba(220, 166, 175, 0.35);
}

.caution-tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border: 1px solid var(--caution-border);
    border-radius: 999px;
    color: var(--caution);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}

.card-caution {
    margin: 10px auto 0;
    max-width: 440px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.daily-avoid {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.daily-avoid strong {
    color: var(--caution);
    font-weight: 600;
}

.caution-card {
    border-color: var(--caution-border);
    background: linear-gradient(180deg, var(--caution-bg), transparent 80%), var(--card);
}

.caution-card .section-label {
    color: var(--caution);
}

.caution-card h3 {
    margin: 18px 0 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.caution-list li::marker {
    color: var(--caution);
}

/* =====================================================================
   서리 내린 신당 — 몽환 · 집중 · 싸늘함
   - 몽환: 천천히 흐르는 두 겹의 안개, 흐릿한 달무리, 얇은 결(노이즈)
   - 집중: 화면 가장자리를 어둡게 눌러(비네팅) 가운데 글로 시선을 모은다
   - 싸늘함: 청회색 밤, 은빛 서리 테두리, 빛나지만 따뜻하지 않은 달빛
   ===================================================================== */
:root {
    --bg: #0a0e1a;
    --bg-deep: #05070f;
    --surface: rgba(180, 205, 235, 0.04);
    --card: rgba(16, 24, 42, 0.62);
    --lavender: #a9b9d8;
    --lavender-strong: #8296c4;
    --gold: #cfe4f2;
    --rose: #b8aed6;
    --text: #e8eef6;
    --muted: #8e9bb3;
    --border: rgba(170, 200, 230, 0.16);
    --frost: rgba(205, 228, 245, 0.55);
    --frost-soft: rgba(205, 228, 245, 0.08);
    --glow: rgba(150, 190, 235, 0.35);
    --caution: #d99aa8;
    --caution-bg: rgba(217, 154, 168, 0.06);
    --caution-border: rgba(217, 154, 168, 0.3);
}

html {
    background: var(--bg-deep);
}

body {
    color: var(--text);
    background:
        radial-gradient(ellipse 60% 38% at 50% -4%, rgba(140, 175, 225, 0.20), transparent 70%),
        radial-gradient(ellipse 90% 50% at 50% 110%, rgba(90, 110, 170, 0.18), transparent 70%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #0d1426 100%);
    background-attachment: fixed;
    letter-spacing: 0.01em;
}

::selection {
    color: #05070f;
    background: rgba(207, 228, 242, 0.85);
}

/* ---------- 밤하늘: 차가운 별, 흐릿한 달무리, 흐르는 안개 ---------- */

.stars-1,
.stars-2 {
    opacity: 0.75;
}

.moon-glow {
    top: -220px;
    width: 640px;
    height: 640px;
    margin-left: -320px;
    background:
        radial-gradient(circle, rgba(220, 235, 250, 0.10) 0%, rgba(160, 190, 230, 0.10) 22%, transparent 62%);
    filter: blur(2px);
    animation: moon-breathe 14s ease-in-out infinite alternate;
}

.fog {
    position: absolute;
    left: -50%;
    width: 200%;
    height: 60%;
    background-repeat: repeat-x;
    filter: blur(28px);
    opacity: 0.85;
    will-change: transform;
}

.fog-1 {
    bottom: -8%;
    background-image:
        radial-gradient(ellipse 22% 55% at 20% 60%, rgba(170, 195, 230, 0.22), transparent 70%),
        radial-gradient(ellipse 26% 45% at 55% 70%, rgba(150, 175, 220, 0.18), transparent 70%),
        radial-gradient(ellipse 20% 50% at 85% 55%, rgba(185, 205, 235, 0.20), transparent 70%);
    animation: fog-drift 70s linear infinite;
}

.fog-2 {
    top: 18%;
    height: 50%;
    opacity: 0.55;
    background-image:
        radial-gradient(ellipse 18% 40% at 30% 50%, rgba(180, 170, 225, 0.12), transparent 70%),
        radial-gradient(ellipse 24% 35% at 72% 45%, rgba(160, 195, 230, 0.10), transparent 70%);
    animation: fog-drift 110s linear infinite reverse;
}

/* 가장자리를 눌러 가운데로 시선을 모은다 */
.vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 70% at 50% 45%, transparent 45%, rgba(3, 5, 12, 0.55) 80%, rgba(2, 3, 8, 0.85) 100%);
}

/* 얇은 결: 화면이 평평한 그림처럼 보이지 않게 */
.grain {
    position: absolute;
    inset: -50%;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.88 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
}

@keyframes fog-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(50%, 0, 0); }
}

@keyframes moon-breathe {
    from { opacity: 0.7; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1.03); }
}

/* ---------- 글: 낮게 빛나는 서리 ---------- */

h1 {
    color: #eef4fb;
    letter-spacing: 0.14em;
    text-shadow:
        0 0 24px rgba(170, 205, 240, 0.35),
        0 0 64px rgba(120, 160, 220, 0.25);
}

h2,
h3 {
    color: #e3ebf5;
    letter-spacing: 0.04em;
}

.eyebrow,
.section-label {
    color: var(--lavender);
    letter-spacing: 0.32em;
    opacity: 0.9;
}

.interpretation,
.omen-card blockquote {
    color: #d7e0ec;
}

:focus-visible {
    outline: 1px solid var(--frost);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(170, 205, 240, 0.12);
}

/* ---------- 카드: 서리 낀 유리 ---------- */

.omen-card,
.offer-card,
.form-section,
.daily-charm,
.card-reading {
    position: relative;
    border: 1px solid var(--border) !important;
    background:
        linear-gradient(180deg, rgba(200, 225, 245, 0.05), transparent 38%),
        var(--card) !important;
    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    box-shadow:
        inset 0 1px 0 rgba(220, 238, 252, 0.10),
        0 18px 50px rgba(2, 4, 12, 0.55);
}

/* 위쪽 가장자리에 얇게 맺힌 서리 한 줄 */
.omen-card::after,
.offer-card::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--frost), transparent);
    opacity: 0.6;
    pointer-events: none;
}

.caution-card {
    border-color: var(--caution-border) !important;
    background:
        linear-gradient(180deg, var(--caution-bg), transparent 60%),
        var(--card) !important;
}

.caution-card::after {
    background: linear-gradient(90deg, transparent, rgba(217, 154, 168, 0.6), transparent);
}

/* ---------- 버튼: 얼어붙은 달빛 ---------- */

.primary-button {
    color: #f2f7fc;
    border: 1px solid rgba(190, 220, 245, 0.38);
    background:
        linear-gradient(180deg, rgba(220, 238, 252, 0.10), transparent 55%),
        linear-gradient(135deg, #2b3d66, #172540);
    box-shadow:
        inset 0 1px 0 rgba(225, 240, 252, 0.18),
        0 0 0 1px rgba(5, 8, 18, 0.6),
        0 10px 34px rgba(80, 130, 200, 0.22);
    text-shadow: 0 0 12px rgba(190, 220, 250, 0.35);
}

.primary-button:hover,
.primary-button:focus-visible {
    border-color: rgba(215, 235, 250, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(225, 240, 252, 0.25),
        0 0 0 1px rgba(5, 8, 18, 0.6),
        0 0 28px var(--glow),
        0 12px 40px rgba(80, 130, 200, 0.3);
}

/* ---------- 상단 바: 어둠에 녹아들게 ---------- */

.topbar {
    background: linear-gradient(180deg, rgba(5, 7, 15, 0.75), transparent);
}

@media (prefers-reduced-motion: reduce) {
    .fog,
    .moon-glow {
        animation: none !important;
    }
}

@media (max-width: 560px) {
    .fog {
        filter: blur(20px);
    }

    .vignette {
        background:
            radial-gradient(ellipse 95% 75% at 50% 45%, transparent 50%, rgba(3, 5, 12, 0.6) 100%);
    }
}

/* =====================================================================
   메뉴: 들어오자마자 무엇을 볼 수 있는지 서비스 이름 그대로 보이게
   ===================================================================== */

.home-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
    padding-top: 14px;
}

.sitenav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sitenav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sitenav-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.sitenav-hanja {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.22em;
    opacity: 0.8;
}

.sitenav-name {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.sitenav-account {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 13px;
}

.sitenav-account a,
.sitenav-account .text-button {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.sitenav-account a:hover,
.sitenav-account a.is-active {
    color: var(--gold);
}

.sitenav-account form {
    margin: 0;
}

.sitenav-menu {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
}

.sitenav-menu::-webkit-scrollbar {
    display: none;
}

.sitenav-menu a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #d3dcea;
    background: rgba(12, 18, 34, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.sitenav-menu a:hover {
    border-color: rgba(205, 228, 245, 0.45);
    color: #f2f7fc;
}

.sitenav-menu a.is-active {
    border-color: rgba(205, 228, 245, 0.7);
    color: #05070f;
    background: linear-gradient(180deg, #e6f0f8, #b9cde0);
}

.sitenav-menu .menu-mark {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 13px;
    opacity: 0.85;
}

.sitenav-menu a.is-active .menu-mark {
    color: #24334f;
}

.sitenav-menu small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.sitenav-menu a.is-active small {
    color: #3b4a66;
}

/* 다른 화면의 상단 바 안에서는 아래 구분선과 간격만 맞춘다 */
.topbar {
    display: block;
    padding-top: 0;
    background: none;
}

/* 첫 화면은 메뉴가 위에 겹치므로 본문을 조금 내린다 */
.home {
    padding-top: 128px;
}

/* ---------- 첫 화면 서비스 카드 ---------- */

.service-menu-title {
    margin: 30px 0 14px;
    color: #e3ebf5;
    font-size: 19px;
    letter-spacing: 0.06em;
}

.service-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    width: min(100%, 680px);
}

.service-tile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "mark body"
        "mark tag";
    align-items: start;
    gap: 4px 14px;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(200, 225, 245, 0.05), transparent 45%),
        var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(220, 238, 252, 0.08), 0 14px 40px rgba(2, 4, 12, 0.5);
    text-align: left;
    text-decoration: none;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.service-tile:hover,
.service-tile:focus-visible {
    border-color: rgba(205, 228, 245, 0.5);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(220, 238, 252, 0.14), 0 0 26px var(--glow), 0 16px 44px rgba(2, 4, 12, 0.55);
}

.service-mark {
    grid-area: mark;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(205, 228, 245, 0.3);
    border-radius: 50%;
    color: var(--gold);
    background: radial-gradient(circle at 50% 35%, rgba(205, 228, 245, 0.14), transparent 70%);
    font-family: var(--serif);
    font-size: 21px;
}

.service-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.service-name {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-name small {
    margin-left: 4px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
}

.service-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.service-tag {
    grid-area: tag;
    margin-top: 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 500;
}

/* 가장 많이 찾는 고민 풀이는 한 줄을 다 쓰고 더 또렷하게 */
.service-main {
    grid-column: 1 / -1;
    border-color: rgba(205, 228, 245, 0.32);
}

.service-main .service-name {
    font-size: 22px;
}

.service-sample {
    margin-top: 16px;
}

@media (max-width: 560px) {
    .home-header {
        width: calc(100% - 24px);
        padding-top: 10px;
    }

    .sitenav-hanja {
        display: none;
    }

    .sitenav-menu {
        margin: 0 -12px;
        padding: 2px 12px;
    }

    .sitenav-menu a {
        padding: 7px 12px;
        font-size: 13px;
    }

    .home {
        padding-top: 112px;
    }

    .service-menu {
        grid-template-columns: 1fr;
    }

    .service-tile {
        padding: 15px 16px 14px;
    }
}


/* ---------- 하단 약관 링크·사업자 정보 ---------- */

.site-footer {
    margin: 56px 0 0;
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-bottom: 10px;
    font-size: 12px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--gold);
    text-decoration: underline;
}

.site-footer-links strong {
    color: var(--text);
    font-weight: 600;
}

.site-footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    margin: 0;
    overflow-wrap: anywhere;
}

.site-footer-note {
    max-width: 420px;
    margin: 10px auto 0;
}

/* 휴대폰 하단 고정 버튼이 있는 화면에서는 그 아래에 정보가 가리지 않게 여백을 둔다. */
@media (max-width: 640px) {
    body:has(.sticky-cta) .site-footer {
        padding-bottom: 88px;
    }
}

/* ---------- 결제 전 필수 동의 ---------- */

.consent-box {
    margin: 18px 0 0;
    padding: 14px 14px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(198, 205, 226, 0.05);
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.consent-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--lavender-strong);
}

.consent-list {
    margin: 8px 0 0 28px;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.consent-list li + li {
    margin-top: 4px;
}

.consent-list a {
    color: var(--lavender);
}

/* ---------- 약관·개인정보 처리방침·환불 정책 ---------- */

.legal-page h2 {
    margin: 36px 0 10px;
    font-size: 17px;
}

.legal-page h3 {
    margin: 20px 0 6px;
    font-size: 14px;
}

.legal-page p,
.legal-page li,
.legal-page td,
.legal-page th {
    color: #dfe2ec;
    font-size: 14px;
    line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
    padding-left: 20px;
}

.legal-meta {
    color: var(--muted);
    font-size: 12px;
}

.legal-table-wrap {
    overflow-x: auto;
}

.legal-page table {
    width: 100%;
    margin: 8px 0;
    border-collapse: collapse;
}

.legal-page th,
.legal-page td {
    padding: 8px 10px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal-page th {
    background: rgba(198, 205, 226, 0.06);
    font-weight: 600;
}

.legal-pending {
    color: var(--muted);
    font-style: italic;
}