/* ============================================================
   CSS 커스텀 변수
   ============================================================ */
:root {
    /* 색상 팔레트 */
    --color-bg: #08080d;
    --color-bg-2: #0f0f1a;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-2: rgba(255, 255, 255, 0.08);
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-2: rgba(255, 255, 255, 0.13);

    /* 액센트 컬러 - 따뜻한 오렌지/코랄 */
    --color-accent: #f4a261;
    --color-accent-2: #e76f51;
    --color-accent-light: #ffd6c2;
    --color-accent-pink: #ffb5b5;
    --color-gold: #d4a853;

    /* 텍스트 */
    --color-text: #fff8f0;
    --color-text-2: rgba(255, 248, 240, 0.62);
    --color-text-3: rgba(255, 248, 240, 0.32);

    /* 그라데이션 */
    --grad-accent: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    --grad-warm: linear-gradient(135deg, #ffd6c2 0%, #f4a261 50%, #e76f51 100%);
    --grad-hero-bg: radial-gradient(ellipse at 20% 40%, rgba(244, 162, 97, 0.10) 0%, transparent 55%),
                    radial-gradient(ellipse at 80% 20%, rgba(231, 111, 81, 0.07) 0%, transparent 45%),
                    radial-gradient(ellipse at 60% 80%, rgba(212, 168, 83, 0.05) 0%, transparent 40%),
                    linear-gradient(180deg, #08080d 0%, #0f0f1a 50%, #08080d 100%);

    /* 그림자 */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 8px 30px rgba(244, 162, 97, 0.3);
    --shadow-glow: 0 0 40px rgba(244, 162, 97, 0.12);

    /* 폰트 */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-sans: 'Noto Sans KR', sans-serif;

    /* 레이아웃 */
    --section-padding: 130px 0;
    --container-width: 1360px;
    --gap: 18px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 28px;

    /* 트랜지션 */
    --t: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast: all 0.2s ease;
    --t-slow: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   리셋 & 기본 스타일
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    color: inherit;
    font-family: inherit;
}

/* ============================================================
   스크롤 진행바
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--grad-accent);
    z-index: 9999;
    transition: width 0.1s linear;
    will-change: width;
}

/* ============================================================
   파티클
   ============================================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    will-change: transform;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(110vh) translateX(0) scale(0);
        opacity: 0;
    }
    8% { opacity: 0.5; }
    85% { opacity: 0.15; }
    100% {
        transform: translateY(-15vh) translateX(20px) scale(1.2);
        opacity: 0;
    }
}

/* ============================================================
   히어로 섹션
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-hero-bg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center top, transparent 30%, rgba(8, 8, 13, 0.6) 80%),
        radial-gradient(ellipse at center bottom, rgba(8, 8, 13, 0.8) 20%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(244, 162, 97, 0.08);
    border: 1px solid rgba(244, 162, 97, 0.2);
    padding: 9px 26px;
    border-radius: 100px;
    margin-bottom: 44px;
    animation: fadeInDown 1s ease 0.1s both;
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 36px;
    animation: fadeInUp 1.2s ease 0.3s both;
}

.hero-title .line-1,
.hero-title .line-2 {
    display: block;
    font-size: clamp(58px, 9.5vw, 116px);
    color: var(--color-text);
    letter-spacing: -2px;
}

.hero-title .line-3 {
    display: block;
    font-size: clamp(68px, 11.5vw, 138px);
    font-style: italic;
    letter-spacing: -3px;
}

.hero-title .accent {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 300;
    color: var(--color-text-2);
    letter-spacing: 0.5px;
    min-height: 1.7em;
    margin-bottom: 52px;
    animation: fadeInUp 1.2s ease 0.5s both;
}

.cursor {
    animation: cursorBlink 1s ease-in-out infinite;
    color: var(--color-accent);
    font-weight: 100;
}

@keyframes cursorBlink {
    0%, 48% { opacity: 1; }
    52%, 100% { opacity: 0; }
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 17px 44px;
    background: var(--grad-accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: var(--shadow-accent);
    transition: var(--t);
    animation: fadeInUp 1.2s ease 0.7s both;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(244, 162, 97, 0.45);
}

.cta-btn:active {
    transform: translateY(-1px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeInUp 1.5s ease 1.2s both;
}

.scroll-line {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--color-accent) 50%, transparent);
    animation: scrollLineAnim 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLineAnim {
    0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
    30% { opacity: 1; }
    70% { transform: scaleY(1); transform-origin: top; }
    71% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   공통 섹션 스타일
   ============================================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 44px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 22px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 66px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text-2);
    font-weight: 300;
}

/* ============================================================
   스크롤 등장 애니메이션
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(44px);
    transition:
        opacity 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   갤러리 섹션
   ============================================================ */
.gallery-section {
    background: var(--color-bg-2);
}

.gallery-grid {
    columns: 4 220px;
    column-gap: var(--gap);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: var(--gap);
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition:
        opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
    background: var(--color-surface-2);
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 162, 97, 0.15);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(8, 8, 13, 0.65) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--t-fast);
}

.gallery-item:hover .gallery-zoom-icon {
    background: rgba(244, 162, 97, 0.25);
    border-color: rgba(244, 162, 97, 0.3);
}

/* ============================================================
   타임라인 섹션
   ============================================================ */
.timeline-section {
    background: var(--color-bg);
}

.timeline-wrapper {
    position: relative;
    padding-top: 20px;
}

/* 중앙 세로 라인 */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-border-2) 8%,
        var(--color-border-2) 92%,
        transparent 100%
    );
    transform: translateX(-50%);
    pointer-events: none;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0 40px;
    align-items: start;
    margin-bottom: 110px;
    opacity: 0;
    transform: translateY(44px);
    transition:
        opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* 홀수: 텍스트 왼쪽, 사진 오른쪽 */
.timeline-item:nth-child(odd) .timeline-info {
    text-align: right;
    order: 1;
}
.timeline-item:nth-child(odd) .timeline-center {
    order: 2;
}
.timeline-item:nth-child(odd) .timeline-photos-grid {
    order: 3;
}

/* 짝수: 사진 왼쪽, 텍스트 오른쪽 */
.timeline-item:nth-child(even) .timeline-photos-grid {
    order: 1;
}
.timeline-item:nth-child(even) .timeline-center {
    order: 2;
}
.timeline-item:nth-child(even) .timeline-info {
    text-align: left;
    order: 3;
}

.timeline-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--grad-accent);
    box-shadow: 0 0 20px rgba(244, 162, 97, 0.5), 0 0 0 4px rgba(8, 8, 13, 1);
    flex-shrink: 0;
    position: relative;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.revealed .timeline-dot {
    transform: scale(1);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(244, 162, 97, 0.25);
    animation: none;
}

.timeline-item.revealed .timeline-dot::after {
    animation: dotPulse 3s ease infinite;
    animation-delay: 0.5s;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.6); opacity: 0; }
}

.timeline-info {
    padding: 10px 0 30px;
}

.timeline-season {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(244, 162, 97, 0.08);
    border: 1px solid rgba(244, 162, 97, 0.15);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 18px;
}

.timeline-desc {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-text-2);
    font-weight: 300;
    line-height: 1.9;
}

/* 타임라인 첫 항목 (시작 카드) */
.timeline-item.timeline-item--start {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin-bottom: 130px;
}

.timeline-item--start .timeline-center {
    order: 0;
    margin-bottom: 32px;
    display: none;
}

.timeline-start-card {
    order: 1;
    max-width: 480px;
    width: 100%;
    padding: 52px 48px 48px;
    background: linear-gradient(
        145deg,
        rgba(244, 162, 97, 0.08) 0%,
        rgba(231, 111, 81, 0.05) 50%,
        rgba(212, 168, 83, 0.04) 100%
    );
    border: 1px solid rgba(244, 162, 97, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(244, 162, 97, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timeline-start-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.timeline-start-heart {
    font-size: 36px;
    color: var(--color-accent-2);
    margin-bottom: 24px;
    animation: heartbeat 2.5s ease-in-out infinite;
    display: block;
}

.timeline-start-card .timeline-season {
    font-size: 11px;
    letter-spacing: 6px;
    padding: 6px 18px;
    margin-bottom: 24px;
}

.timeline-start-card .timeline-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 300;
    font-style: italic;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.3;
}

.timeline-start-card .timeline-desc {
    font-size: 15px;
    color: var(--color-text-2);
    font-weight: 300;
    line-height: 1.9;
}

/* 타임라인 사진 그리드 */
.timeline-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.timeline-photos-grid .tl-photo:first-child {
    grid-column: span 3;
    aspect-ratio: 16 / 9;
}

.timeline-photos-grid .tl-photo:first-child:only-child {
    grid-column: 1 / -1;
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: auto;
}

.tl-photo {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    position: relative;
    background: var(--color-surface-2);
}

.tl-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.tl-photo:hover img {
    transform: scale(1.06);
}

.tl-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(244, 162, 97, 0);
    transition: background 0.3s ease;
}

.tl-photo:hover::after {
    background: rgba(244, 162, 97, 0.05);
}

.tl-photo--hidden {
    display: none;
}

.tl-show-more {
    grid-column: 1 / -1;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-accent);
    padding: 12px 24px;
    border: 1px solid rgba(244, 162, 97, 0.2);
    border-radius: 100px;
    background: rgba(244, 162, 97, 0.06);
    cursor: pointer;
    margin-top: 4px;
    transition: var(--t-fast);
}

.tl-show-more:hover {
    background: rgba(244, 162, 97, 0.12);
}

/* ============================================================
   타임라인 카운터
   ============================================================ */
.timeline-counter {
    text-align: center;
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
}

.counter-heart {
    font-size: 42px;
    color: var(--color-accent-2);
    margin-bottom: 24px;
    animation: heartbeat 2.5s ease-in-out infinite;
}

.counter-label {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-2);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.counter-time {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    font-style: italic;
    color: var(--color-accent);
    letter-spacing: 1px;
}

/* ============================================================
   뷰 토글 (타임라인 / 지도)
   ============================================================ */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 36px;
    border-radius: 100px;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: inline-flex;
}

.section-header .view-toggle {
    display: inline-flex;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-text-3);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--t-fast);
    position: relative;
}

.view-toggle-btn:first-child { border-radius: 100px 0 0 100px; }
.view-toggle-btn:last-child { border-radius: 0 100px 100px 0; }

.view-toggle-btn.active {
    color: white;
    background: var(--grad-accent);
    box-shadow: 0 2px 12px rgba(244, 162, 97, 0.3);
}

.view-toggle-btn:not(.active):hover {
    color: var(--color-text-2);
    background: var(--color-surface-2);
}

.view-toggle-btn svg {
    opacity: 0.7;
}

.view-toggle-btn.active svg {
    opacity: 1;
}

/* 뷰 콘텐츠 전환 */
.view-content {
    display: none;
    animation: viewFadeIn 0.5s ease;
}

.view-content.view-active {
    display: block;
}

@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   지도 스타일
   ============================================================ */

/* 통계 카드 */
.map-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.map-stat-card {
    text-align: center;
    padding: 24px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    min-width: 130px;
    position: relative;
    overflow: hidden;
}

.map-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, var(--color-accent), var(--color-gold));
}

.map-stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    background: linear-gradient(135deg, #ff6b9d, var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.map-stat-unit {
    font-size: 20px;
}

.map-stat-label {
    font-size: 12px;
    color: var(--color-text-3);
    margin-top: 6px;
    letter-spacing: 1px;
}

/* 지도 컨테이너 */
.map-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

#map {
    width: 100%;
    height: 600px;
}

.leaflet-container {
    font-family: var(--font-sans) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.leaflet-control-zoom a {
    background: rgba(255,255,255,0.95) !important;
    color: #333 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: #fff !important;
}

.map-dark .leaflet-control-zoom a {
    background: rgba(17,17,24,0.92) !important;
    color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important;
}

.map-dark .leaflet-control-zoom a:hover {
    background: #1a1a24 !important;
}

.map-dark .leaflet-tile-pane {
    /* MapTiler 다크 스타일 자체 적용 */
}

.map-light .leaflet-tile-pane {
    /* MapTiler 밝은 스타일 자체 적용 */
}

/* 테마 토글 */
.map-theme-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.map-theme-btn {
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--t-fast);
    background: rgba(255,255,255,0.85);
    color: #666;
}

.map-theme-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.map-theme-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.map-theme-btn.active {
    background: #ff6b9d;
    color: white;
}

.map-theme-btn:not(.active):hover {
    background: rgba(255,255,255,0.95);
    color: #333;
}

/* 커스텀 마커 */
.custom-pin {
    position: relative;
    width: 40px;
    height: 40px;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff6b9d;
    border: 2.5px solid white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(255,107,157,0.4), 0 0 16px rgba(255,107,157,0.2);
    transition: var(--t-fast);
    cursor: pointer;
}

.pin-dot::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,107,157,0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: mapPing 2.5s ease-out infinite;
}

.pin-dot.selected {
    width: 18px;
    height: 18px;
    background: var(--color-accent);
    border-color: white;
    box-shadow: 0 0 24px rgba(244,162,97,0.6), 0 0 48px rgba(244,162,97,0.2);
}

.pin-dot.selected::after {
    border-color: rgba(244,162,97,0.25);
}

@keyframes mapPing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* 핀 라벨 */
.pin-label {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    background: rgba(17,17,24,0.92);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,107,157,0.15);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
}

.pin-label .pin-label-date {
    display: block;
    font-size: 10px;
    font-weight: 300;
    color: var(--color-text-3);
    margin-top: 2px;
}

.custom-pin:hover .pin-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 커스텀 팝업 */
.leaflet-popup-content-wrapper {
    background: rgba(17,17,24,0.96) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-tip {
    background: rgba(17,17,24,0.96) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: none !important;
}

.leaflet-popup-close-button {
    color: var(--color-text-3) !important;
    font-size: 20px !important;
    top: 8px !important;
    right: 12px !important;
    z-index: 10;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 280px;
    max-width: 320px;
}

.map-popup-inner { padding: 0; }

.map-popup-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-height: 200px;
    overflow: hidden;
}

.map-popup-photos img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.map-popup-photos img:hover { opacity: 0.8; }
.map-popup-photos.single-photo { grid-template-columns: 1fr; }
.map-popup-photos.single-photo img { height: 180px; }
.map-popup-photos.two-photos { grid-template-columns: repeat(2, 1fr); }
.map-popup-photos.two-photos img { height: 130px; }

.map-popup-body { padding: 18px 20px; }

.map-popup-season {
    font-size: 11px;
    color: #ff6b9d;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.map-popup-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.map-popup-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-2);
    line-height: 1.7;
}

.map-popup-photo-count {
    font-size: 11px;
    color: var(--color-text-3);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

/* 범례 */
.map-legend {
    text-align: center;
    padding: 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--color-text-3);
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6b9d;
    border: 1.5px solid white;
    box-shadow: 0 0 6px rgba(255,107,157,0.3);
}

.map-legend-line {
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, #ff6b9d, var(--color-accent));
    display: none;
}

/* 장소 카드 */
.map-place-list-title {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-3);
    text-align: center;
    margin: 60px 0 32px;
}

.map-place-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.map-place-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--t);
    position: relative;
}

.map-place-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b9d, var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.map-place-card:hover {
    border-color: rgba(255,107,157,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,107,157,0.1);
}

.map-place-card:hover::before { opacity: 1; }

.map-place-card.active {
    border-color: rgba(244,162,97,0.3);
    box-shadow: 0 4px 24px rgba(244,162,97,0.12);
}

.map-place-card.active::before {
    opacity: 1;
    background: linear-gradient(180deg, var(--color-accent), var(--color-gold));
}

.map-place-card-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    height: 80px;
    overflow: hidden;
    background: var(--color-bg);
}

.map-place-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.map-place-card:hover .map-place-card-preview img { transform: scale(1.05); }

.map-place-card-preview.cols-1 { grid-template-columns: 1fr; }
.map-place-card-preview.cols-2 { grid-template-columns: repeat(2, 1fr); }

.map-place-card-body { padding: 20px 24px; }

.map-place-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.map-place-card-location {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.map-place-card-date {
    font-size: 12px;
    color: var(--color-text-3);
    margin-bottom: 8px;
}

.map-place-card-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-2);
    line-height: 1.7;
}

.map-place-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.map-place-card-photos-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color-accent);
    background: rgba(244,162,97,0.08);
    padding: 4px 10px;
    border-radius: 100px;
}

/* ============================================================
   메시지 섹션
   ============================================================ */
.message-section {
    background: var(--color-bg-2);
    overflow: hidden;
}

.message-bg-deco {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.07) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.message-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-2);
    border-radius: 36px;
    padding: 80px 90px;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.message-heart {
    display: block;
    font-size: 52px;
    color: var(--color-accent-2);
    margin-bottom: 36px;
    animation: heartbeat 2.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.09); }
    56% { transform: scale(1); }
}

.message-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 28px;
}

.message-divider {
    width: 64px;
    height: 1px;
    background: var(--grad-accent);
    margin: 0 auto 44px;
    border-radius: 1px;
}

.message-body {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 300;
    color: var(--color-text-2);
    line-height: 2;
    text-align: left;
}

.message-sign {
    font-family: var(--font-serif);
    font-size: 28px;
    font-style: italic;
    color: var(--color-accent);
    text-align: center;
    margin-top: 4px;
}

/* ============================================================
   별자리 CTA 카드
   ============================================================ */
.constellation-cta {
    position: relative;
    overflow: hidden;
    max-width: 520px;
    margin: 4rem auto 0;
    padding: 2.8rem 2.5rem 2.5rem;
    background: radial-gradient(ellipse at 30% 0%, rgba(244, 162, 97, 0.06) 0%, transparent 60%),
                var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.constellation-cta:hover {
    border-color: rgba(244, 162, 97, 0.2);
    box-shadow: 0 0 40px rgba(244, 162, 97, 0.06);
}

/* 장식 별 */
.constellation-cta-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.cta-star {
    position: absolute;
    color: var(--color-accent);
    opacity: 0.15;
    font-size: 0.7rem;
    animation: ctaStarFloat 6s ease-in-out infinite;
}
.cta-star-1 { top: 15%; left: 12%; animation-delay: 0s; }
.cta-star-2 { top: 22%; right: 14%; animation-delay: 2s; font-size: 0.5rem; }
.cta-star-3 { bottom: 20%; left: 18%; animation-delay: 4s; font-size: 0.6rem; opacity: 0.1; }
@keyframes ctaStarFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-6px) scale(1.2); opacity: 0.3; }
}

.constellation-cta-tag {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: inline-block;
    margin-bottom: 1.4em;
    padding: 0.3em 1em;
    border: 1px solid rgba(244, 162, 97, 0.2);
    border-radius: 20px;
}
.constellation-cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}
.constellation-cta-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--color-text-2);
    margin-bottom: 1.8em;
}
.constellation-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.8em 2.2em;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    color: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.35s var(--t), box-shadow 0.35s var(--t);
    cursor: pointer;
}
.constellation-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(244, 162, 97, 0.3);
}
.constellation-cta-btn .cta-arrow {
    transition: transform 0.3s ease;
    font-size: 1.1em;
}
.constellation-cta-btn:hover .cta-arrow {
    transform: translateX(5px);
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .constellation-cta {
        margin: 3rem 0 0;
        padding: 2.2rem 1.5rem 2rem;
        border-radius: 16px;
    }
    .constellation-cta-title {
        font-size: 1.3rem;
    }
}

/* ============================================================
   푸터
   ============================================================ */
.footer {
    background: linear-gradient(180deg, var(--color-bg-2) 0%, var(--color-bg) 40%);
    padding: 80px 44px 64px;
    text-align: center;
    border-top: 1px solid rgba(244, 162, 97, 0.1);
}

.footer::before {
    content: '';
    display: block;
    width: 48px;
    height: 1px;
    background: var(--grad-accent);
    margin: 0 auto 40px;
}

.footer-main {
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-3);
    letter-spacing: 6px;
    margin-top: 18px;
}

/* ============================================================
   라이트박스
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox:not([hidden]) {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lb-close,
.lb-nav,
.lb-image-wrap,
.lb-counter {
    pointer-events: auto;
}

.lb-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 200px);
    max-height: calc(100vh - 100px);
    padding: 20px;
}

.lb-image {
    max-width: 100%;
    max-height: calc(100vh - 130px);
    border-radius: var(--radius);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    transition: opacity 0.28s ease, transform 0.28s ease;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

/* 닫기 버튼 */
.lb-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* 네비게이션 버튼 */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-fast);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 2;
}

.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-nav:hover {
    background: rgba(244, 162, 97, 0.18);
    border-color: rgba(244, 162, 97, 0.25);
    color: white;
    transform: translateY(-50%) scale(1.06);
}

.lb-nav:disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* 카운터 */
.lb-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 3px;
    background: rgba(0, 0, 0, 0.45);
    padding: 9px 22px;
    border-radius: 100px;
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

/* ============================================================
   공통 애니메이션 키프레임
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   반응형 디자인
   ============================================================ */

/* 태블릿 ~ 1024px */
@media (max-width: 1024px) {
    :root {
        --section-padding: 90px 0;
    }

    .container {
        padding: 0 32px;
    }

    .gallery-grid {
        columns: 3 180px;
    }

    /* 타임라인: 세로 라인 제거, 단일 컬럼 */
    .timeline-wrapper::before {
        display: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 70px;
    }

    .timeline-item.timeline-item--start {
        margin-bottom: 80px;
    }

    .timeline-start-card {
        padding: 44px 36px 40px;
    }

    .timeline-item:nth-child(odd) .timeline-info,
    .timeline-item:nth-child(even) .timeline-info {
        text-align: left;
        order: 2;
        padding: 0;
    }

    .timeline-item:nth-child(odd) .timeline-center,
    .timeline-item:nth-child(even) .timeline-center {
        order: 1;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding-top: 0;
    }

    .timeline-center::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--color-border-2);
    }

    .timeline-item:nth-child(odd) .timeline-photos-grid,
    .timeline-item:nth-child(even) .timeline-photos-grid {
        order: 3;
    }

    .message-card {
        padding: 64px 56px;
    }
}

/* 태블릿 소형 ~ 768px */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
        --gap: 12px;
    }

    .container {
        padding: 0 22px;
    }

    #map { height: 450px; }
    .map-stats { gap: 12px; }
    .map-stat-card { min-width: 100px; padding: 16px 20px; }
    .map-stat-number { font-size: 28px; }
    .map-place-cards { grid-template-columns: 1fr; }
    .leaflet-popup-content { min-width: 240px; max-width: 280px; }

    .hero-badge {
        font-size: 11px;
        padding: 7px 20px;
        margin-bottom: 32px;
    }

    .gallery-grid {
        columns: 2 140px;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    .section-header {
        margin-bottom: 52px;
    }

    .timeline-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-photos-grid .tl-photo:first-child {
        grid-column: span 3;
    }

    .timeline-photos-grid .tl-photo:first-child:only-child {
        grid-column: 1 / -1;
        max-width: 280px;
        margin: 0 auto;
        aspect-ratio: auto;
    }

    .message-card {
        padding: 48px 36px;
        border-radius: 28px;
    }

    .message-body {
        font-size: 16px;
    }

    .lb-image-wrap {
        max-width: 100vw;
        padding: 10px;
    }

    .lb-nav { width: 46px; height: 46px; }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }

    .music-toggle {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* 모바일 ~ 480px */
@media (max-width: 480px) {
    :root {
        --section-padding: 56px 0;
        --gap: 10px;
    }

    .container {
        padding: 0 16px;
    }

    #map { height: 380px; }
    .map-stats { gap: 8px; padding: 0 0 36px; }
    .map-stat-card { min-width: 70px; padding: 14px 12px; }
    .map-stat-number { font-size: 22px; }
    .map-stat-label { font-size: 10px; }
    .map-theme-btn { padding: 6px 10px; font-size: 10px; }

    .hero-title .line-1,
    .hero-title .line-2 {
        letter-spacing: -1px;
    }

    .hero-title .line-3 {
        letter-spacing: -2px;
    }

    .cta-btn {
        padding: 14px 34px;
        font-size: 13px;
    }

    .gallery-grid {
        columns: 2 120px;
        column-gap: 8px;
    }

    .gallery-item {
        margin-bottom: 8px;
        border-radius: 12px;
    }

    .timeline-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 4px;
    }

    .tl-photo {
        border-radius: 8px;
    }

    .timeline-photos-grid .tl-photo:first-child {
        grid-column: span 2;
    }

    .timeline-photos-grid .tl-photo:first-child:only-child {
        grid-column: 1 / -1;
        max-width: 280px;
        margin: 0 auto;
        aspect-ratio: auto;
    }

    .timeline-start-card {
        padding: 36px 24px 32px;
    }

    .message-card {
        padding: 40px 28px;
        border-radius: 24px;
    }

    .message-title {
        font-size: 36px;
    }

    .message-body {
        font-size: 15px;
    }

    .footer {
        padding: 64px 20px 48px;
    }

    .lb-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .lb-counter {
        font-size: 11px;
        padding: 7px 16px;
    }
}

/* 대형 모니터 1600px+ */
@media (min-width: 1600px) {
    .gallery-grid {
        columns: 5 200px;
    }
}

/* ============================================================
   인트로 오버레이
   ============================================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 8, 13, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    animation: introFloat 3s ease-in-out infinite;
}

@keyframes introFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.intro-heart {
    font-size: 48px;
    color: #ff6b9d;
    margin-bottom: 24px;
    animation: introHeartbeat 1.5s ease-in-out infinite;
}

@keyframes introHeartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.intro-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    color: var(--color-text);
    margin-bottom: 12px;
}

.intro-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(14px, 3vw, 16px);
    color: var(--color-text-3);
    margin-bottom: 36px;
    letter-spacing: 1px;
}

.intro-btn {
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 2px;
    padding: 14px 40px;
    border: 1px solid rgba(244, 162, 97, 0.4);
    border-radius: 100px;
    background: transparent;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.intro-btn:hover {
    background: rgba(244, 162, 97, 0.1);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(244, 162, 97, 0.15);
}

.intro-music-info {
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-text-3);
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* ============================================================
   음악 토글 버튼
   ============================================================ */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-3);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.music-toggle.playing {
    opacity: 1;
    pointer-events: auto;
    color: var(--color-accent);
    border-color: rgba(244, 162, 97, 0.3);
}

.music-toggle.paused {
    opacity: 1;
    pointer-events: auto;
}

.music-toggle:hover {
    background: var(--color-surface-2);
    transform: scale(1.1);
}

.music-toggle.playing .music-icon {
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 모션 감소 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-progress {
        transition: none !important;
    }

    .intro-content { animation: none; }
    .intro-heart { animation: none; }
    .music-toggle.playing .music-icon { animation: none; }
}
