/* Custom Font - Madelyn */
@font-face {
    font-family: 'madelyn_regular';
    src: url('font/madelyn_regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GowunDodum-Regular';
    src: url('font/GowunDodum-Regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafaf8;
    --text-primary: #1a1a1a;
    --text-secondary: #512a11;
    --accent-gold: #c5a059;
    --accent-gold-light: #e6d5b0;
    --accent-gold-dark: #8b7355;
    --accent-sage: #9cb8a0;
    --accent-sage-dark: #7a9a7e;
    --accent-warm: #b8956b;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --font-serif: 'Noto Serif KR', serif;
    --font-dodum: 'GowunDodum-Regular', cursive;
    --font-hand: 'Parisienne', cursive;
    --font-madelyn: 'madelyn_regular', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
}

/* Mobile Container Strategy */
.container {
    width: 100%;
    max-width: 480px; /* Standard Mobile width cap */
    margin: 0 auto;
    background-color: var(--bg-secondary);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    padding-bottom: 10px;
}

/* Common Section */
section {
    padding: 100px 20px; /* Increased padding for more whitespace */
}

h2 {
    font-size: 1.5rem; /* Slightly larger heading */
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px; /* More space below heading */
    font-weight: 500;
    letter-spacing: 0.15rem; /* More tracking */
    font-family: var(--font-hand); /* Use script font for headers for elegance? or keep serif? Let's keep Serif but make it elegant. Actually user reference likely has serif or sans. Let's stick to serif for now but tracked out. */
    font-family: var(--font-serif);
}

/* Hero Section */
#hero {
    position: relative;
    text-align: center;
    transition: opacity 0.3s ease-out;
}



.hero-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

.hero-text {
  padding: 40px 20px 0;
  margin-top: 120px;
  /* background:
    linear-gradient(to bottom,
      var(--bg-secondary) 0%,
      var(--bg-primary) 20%); */
}

.eng-date {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.names {
    font-family: var(--font-hand);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.names span {
    display: block;
}

.names .and {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin: 5px 0;
    font-family: var(--font-serif);
}

.kor-names {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.2rem;
}

.venue {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Invitation Section */
#invitation {
    background-color: var(--bg-secondary);
    text-align: center;
    background:
    /* linear-gradient(to bottom,
      var(--bg-primary) 0%,
      var(--bg-secondary) 20%); */
}

.invitation-text p {
    font-size: 1rem; /* Slightly larger */
    line-height: 2.4; /* looser leading */
    color: var(--text-secondary);
    font-family: var(--font-dodum);
    font-weight: 300;
}

.poem {
    margin-top: 40px;
}

/* 양가 소개 섹션 */
#family {
    background-color: var(--bg-secondary);
    padding: 60px 20px;
}

.family-intro {
    max-width: 400px;
    margin: 0 auto;
}

.family-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.family-side {
    flex: 1;
    text-align: center;
}

.family-side:first-child {
    text-align: right;
}

.family-side:last-child {
    text-align: left;
}

.parents-name {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
    font-family: var(--font-dodum);
    line-height: 1.6;
}

.parents-name .relation {
    display: inline;
    color: #aaa;
}

.person-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3rem;
    font-family: var(--font-dodum);
}

.family-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--accent-gold-light),
        transparent
    );
}

/* 축하 연락하기 버튼 */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
    padding: 18px 24px;
    background: #9cb8a0;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-dodum);
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #8aa98e;
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn.active svg {
    transform: rotate(90deg);
}

/* 연락처 패널 */
.contact-panel {
    display: none;
    margin-top: 16px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.contact-panel.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.contact-section {
    padding: 16px 20px;
}

.contact-section:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.contact-label {
    font-size: 0.8rem;
    color: #9cb8a0;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: var(--font-dodum);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.contact-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-dodum);
}

.contact-actions {
    display: flex;
    gap: 8px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 50%;
    color: #9cb8a0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-icon:hover {
    background: #9cb8a0;
    color: #fff;
}

/* Calendar Section */
#calendar {
    background-color: var(--bg-secondary);
    text-align: center;
}

.calendar-wrapper {
    margin-top: 30px;
}

.date-big {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-serif);
    margin-bottom: 5px;
}

.time {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 0 auto;
    max-width: 320px; /* Keep calendar compact */
    font-size: 0.9rem;
}

.calendar-day-head {
    color: var(--accent-gold);
    font-size: 0.75rem;
    padding: 10px 0;
    font-weight: 500;
}

.calendar-day {
    padding: 10px 0;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.sat { color: #6c757d; }
.calendar-day.sun { color: #d9534f; }

.calendar-day.wedding {
    padding: 0;
    color: #fff;
}

.calendar-day.wedding::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: var(--accent-gold-light);
    border-radius: 50%;
    z-index: -1;
}

.d-day-counter {
    margin-top: 40px;
    font-size: 1rem;
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 50px;
    display: inline-block;
    color: var(--text-primary);
}

#d-day {
    color: var(--accent-gold);
    font-weight: bold;
}

/* ======================================
   Timeline Section - Our Story
   Scroll-Driven Animation
   ====================================== */
#timeline {
    background-color: var(--bg-secondary);
    text-align: center;
    padding: 100px 15px 80px;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: #999;
    margin-top: -30px;
    margin-bottom: 20px;
    font-family: var(--font-dodum);
}

/* 함께한 시간 실시간 카운터 */
.together-counter {
    margin-bottom: 50px;
}

.counter-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.counter-number {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-primary);
    font-family: 'Noto Serif KR', serif;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    font-size: 0.65rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.counter-since {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    font-family: var(--font-dodum);
}

.story-timeline {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

/* 중앙 타임라인 선 - 미니멀 */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(197, 160, 89, 0.15) 15%,
        rgba(197, 160, 89, 0.15) 85%,
        transparent
    );
}

/* 타임라인 진행 선 (스크롤에 따라 채워짐) */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        to bottom,
        var(--accent-gold),
        rgba(197, 160, 89, 0.4)
    );
}

/* 각 스토리 행 - scroll-driven 기본 상태 */
.story-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
    --progress: 0;
}

.story-row:last-child {
    margin-bottom: 0;
}

/* 좌측/우측 - 이미지 영역 */
.story-left,
.story-right {
    display: flex;
}

.story-left {
    justify-content: flex-end;
}

.story-right {
    justify-content: flex-start;
}

.story-left .story-image,
.story-right .story-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold-light);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
    /* scroll-driven: 방향에 따라 다름 */
    opacity: calc(var(--progress) * 1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-left .story-image {
    /* 좌측 이미지: 좌측에서 나타남 */
    transform: translateX(calc((1 - var(--progress)) * -30px)) scale(calc(0.8 + var(--progress) * 0.2));
}

.story-right .story-image {
    /* 우측 이미지: 우측에서 나타남 */
    transform: translateX(calc((1 - var(--progress)) * 30px)) scale(calc(0.8 + var(--progress) * 0.2));
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-row:hover .story-left .story-image,
.story-row:hover .story-right .story-image {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.story-row:hover .story-left .story-image img,
.story-row:hover .story-right .story-image img {
    transform: scale(1.1);
}

/* ======================================
   Story Slideshow (2018-2024 자동 슬라이드)
   ====================================== */
.story-left .story-slideshow,
.story-right .story-slideshow {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold-light);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.15);
    /* scroll-driven */
    opacity: calc(var(--progress) * 1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-left .story-slideshow {
    margin-left: auto;
    transform: translateX(calc((1 - var(--progress)) * -30px)) scale(calc(0.8 + var(--progress) * 0.2));
}

.story-right .story-slideshow {
    margin-right: auto;
    transform: translateX(calc((1 - var(--progress)) * 30px)) scale(calc(0.8 + var(--progress) * 0.2));
}

.story-row-slideshow:hover .story-left .story-slideshow,
.story-row-slideshow:hover .story-right .story-slideshow {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
}

.story-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-slideshow .slide.active {
    opacity: 1;
    transform: scale(1);
}

.story-slideshow .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 슬라이드 인디케이터 */
.slide-indicators {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.slide-indicators .indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide-indicators .indicator.active {
    background: #fff;
    transform: scale(1.3);
}

/* 중앙 - 타임라인 점 */
.story-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.story-dot {
    width: 14px;
    height: 14px;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-gold-light);
    border-radius: 50%;
    /* scroll-driven: 스케일 애니메이션 */
    transform: scale(calc(var(--progress) * 1));
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* 점 활성화 상태 (progress > 0.5) */
.story-row[data-active="true"] .story-dot {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2);
}

/* 텍스트 컨테이너 */
.story-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: calc(var(--progress) * 1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-left .story-text {
    /* 좌측 텍스트: 우측 정렬, 좌측에서 나타남 */
    align-items: flex-end;
    text-align: right;
    padding-right: 5px;
    transform: translateX(calc((1 - var(--progress)) * -30px));
}

.story-right .story-text {
    /* 우측 텍스트: 좌측 정렬, 우측에서 나타남 */
    align-items: flex-start;
    text-align: left;
    padding-left: 5px;
    transform: translateX(calc((1 - var(--progress)) * 30px));
}

/* 개별 텍스트 요소들 */
.story-date,
.story-title,
.story-desc {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-date {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.05rem;
}

.story-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-dodum);
}

.story-desc {
    font-size: 0.85rem;
    color: #999;
    font-family: var(--font-dodum);
    line-height: 1.4;
}

/* 접근성: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .story-row {
        --progress: 1 !important;
    }
    .story-row .story-image,
    .story-row .story-slideshow,
    .story-row .story-dot,
    .story-row .story-left .story-text,
    .story-row .story-right .story-text {
        opacity: 1 !important;
        transform: none !important;
    }
    .timeline-progress {
        height: 100% !important;
    }
}

/* Gallery Section */
#gallery {
    background-color: var(--bg-secondary);
    padding: 0;
}

#gallery h2 {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 30px;
}

.gallery-item {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-more {
    display: block;
    margin: 30px auto 60px;
    padding: 12px 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn-copy {
    display: block;
    margin: 15px auto 20px;
    padding: 8px 20px;
    background: #000000;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background: #333333;
}

/* Location Section */
#location {
    text-align: center;
    background: var(--bg-secondary);
}

.venue-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.venue-detail {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Map Image */
.map-image-wrapper {
    margin: 0 auto 30px;
    width: 100%;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Transport Image */
.transport-image-wrapper {
    margin-top: 30px;
    width: 100%;
}

.transport-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Map Buttons */
.map-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    font-family: var(--font-dodum);
    gap: 10px;
    margin-bottom: 40px;
}

.btn-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.map-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
    border-radius: 10px;
}

/* Footer / RSVP */
footer {
    padding: 30px 20px;
    background: var(--bg-secondary);
}

.account-wrapper {
    text-align: center;
}

.account-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.15rem;
    margin-bottom: 12px;
}

.account-desc {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 10px;
}

.account-section {
    margin-top: 12px;
}

.account-section:first-of-type {
    margin-top: 28px;
}

/* 심플 아코디언 버튼 */
.account-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: var(--accent-gold-dark);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: var(--font-dodum);
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.account-accordion:hover {
    background: var(--text-secondary);
}

.account-accordion svg {
    transition: transform 0.3s ease;
}

.account-accordion.active svg {
    transform: rotate(90deg);
}

/* Account Panel */
.account-panel {
    display: none;
    margin-top: 16px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.account-panel.active {
    display: block;
    padding: 16px;
    animation: slideDown 0.3s ease;
}

.account-group {
    text-align: left;
}

.account-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 4px;
}

.account-item:last-child {
    border-bottom: none;
}

.account-name {
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.account-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: sans-serif;
}

.account-item .copy-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-gold-dark);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: var(--accent-gold-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.account-item .copy-btn:hover {
    background: var(--accent-gold-dark);
    color: #fff;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Flower Petals - 컨테이너 영역 내 */
#petal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
}

.petal {
    position: absolute;
    top: -30px;
    animation: petalFall linear forwards;
}

/* 잎 모양 SVG */
.petal svg {
    width: 100%;
    height: 100%;
}

/* 연한 연두색 잎 */
.petal.light svg path {
    fill: #ecf39e;
    stroke: #d4e157;
    stroke-width: 0.5;
}

/* 진한 초록색 잎 */
.petal.dark svg path {
    fill: #4f772d;
    stroke: #31572c;
    stroke-width: 0.5;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.85;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(20px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-15px);
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(25px);
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(-10px);
        opacity: 0;
    }
}
/* Handwriting Overlay on Hero Image */
.handwriting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 22%;
    pointer-events: none;
    z-index: 2;
}

.handwriting-svg {
    width: 90%;
    max-width: 400px;
    height: auto;
    overflow: visible;
}

.handwriting-text {
    font-family: var(--font-madelyn);
    font-size: 52px;
    fill: #512a11;
    opacity: 0;
    cursor: default;
    pointer-events: all;
    transition: all 0.3s ease;
}

/* Letter-by-letter animation */
.handwriting-line-1 {
    animation: letterFadeIn 2s ease-out forwards;
}

.handwriting-line-2 {
    animation: letterFadeIn 2s ease-out 0.8s forwards;
}

@keyframes letterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive hover effect */
.handwriting-text:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(81, 42, 17, 0.3));
}


.eng-date-sub {
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    color: var(--text-secondary);
    margin: 10px 0 5px;
}

/* Scroll Effect for Names */
.names-container {
    overflow: hidden; /* Prevent horizontal scrollbar on body if names move too far */
    padding: 10px 0;
}

.names {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack vertically initially if screen is narrow, or keep block? User asked for sideways. Let's keep existing block span look but allow transform */
    gap: 10px;
}

/* Override existing .names span display */
.names span {
    display: inline-block; /* Allow transform */
    transition: transform 0.1s linear; /* Smooth movement */
}

.name-part {
    position: relative;
    z-index: 2;
}

.and {
    z-index: 1;
}

/* Quick Transfer Modal */
.transfer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-end;
}

.transfer-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.transfer-modal-content {
    background: #fff;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px 20px 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUpModal 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from { 
        transform: translateY(100%);
    }
    to { 
        transform: translateY(0);
    }
}

.transfer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.transfer-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #191f28;
    margin: 0;
}

.transfer-modal-close {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.transfer-modal-close:hover {
    background-color: #f5f5f5;
}

.transfer-modal-desc {
    font-size: 0.9rem;
    color: #8b95a1;
    margin: 0 0 24px 0;
}

.transfer-app-grid {
    display: flex;
    gap: 16px;
}

.transfer-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 16px;
    background: #f7f8f9;
    transition: background-color 0.2s, transform 0.2s;
    min-width: 80px;
}

.transfer-app-item:hover {
    background: #eef0f2;
}

.transfer-app-item:active {
    transform: scale(0.95);
}

.transfer-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 8px;
    object-fit: cover;
}

.transfer-app-name {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

/* Footer Illustration */
.footer-illustration {
    position: relative;
    margin-top: 60px;
    text-align: center;
    width: 100%;
}

.footer-illustration img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: inline-block;
    opacity: 0.9;
}

.footer-illustration .closing-message {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-dodum);
    z-index: 10;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.03em;
    line-height: 1.6;
    white-space: nowrap;
}

